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
4448fe82
Commit
4448fe82
authored
Dec 03, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:老化板同时连多块表只发不收
parent
8ffeb956
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
44 deletions
+29
-44
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+2
-2
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+8
-24
api_RS485.c
YueJin_test_bench/source/Appliciation/api_RS485.c
+19
-18
No files found.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
4448fe82
...
...
@@ -4902,7 +4902,7 @@ void Display_Version_Info(uint32_t ON_OFF)
// TFT_LCD_Draw_Bmp(3, 160, ( uint8_t * )gImage_Alarm_12_WordX6_Y165); //24脚输出占空比
// TFT_LCD_Draw_Bmp(210, 160, ( uint8_t * )gImage_Alarm_13_ImageX222_Y166); //%
TFT_LCD_Draw_Bmp(3, 290, ( uint8_t * )gImage_gImage_checkVX6_Y165 ); //检测台版本号
uint8_t mbuff [7] = {2,5,1,1,2,
7
,0xff};
uint8_t mbuff [7] = {2,5,1,1,2,
8
,0xff};
General_Number_Disp(mbuff, 160, 290);
}
...
...
@@ -5632,7 +5632,7 @@ void Display_Send_Vspead(uint8_t menu)
case 9:
// GUI_Display_Version_Code_Service(25, 20, "Please enter password ", Letter_Num_11, PCodeText_Space_size);
Battery_evel = 0;
VSpeed_val =
99
;
VSpeed_val =
0
;
GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
break;
// case 14:
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
4448fe82
...
...
@@ -39,14 +39,14 @@ void Sys_Run_Mode_Pseudo_Real_Time_Tasks(void)
Fre_In_Service
(
FRE_VEHICLE
);
if
(
UART_Ch0_Get_TX_Busy_Flag
())
{
//
if(UART_Ch0_Get_TX_Busy_Flag())
//
{
LINE_OUT_NEG_09
=
1
;
//发送
}
else
{
LINE_OUT_NEG_09
=
0
;
//接收
}
//
}
//
else
//
{
//
LINE_OUT_NEG_09 = 0; //接收
//
}
}
...
...
@@ -140,10 +140,6 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
}
Display_PageNum
();
if
(
RS485_send_time
<
0xFFFFFFFF
)
{
RS485_send_time
++
;
}
if
(
firstpowerflag
==
2
)
{
if
(
AutoFlag
==
1
)
...
...
@@ -155,19 +151,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
else
{
MENU_CHECK_STEP_ADD
(
);
if
(
MENU_CHECK_STEP
==
0
)
{
MENU_CHECK_STEP
=
0
;
}
if
(
MENU_CHECK_STEP
==
13
)
{
AutoTime
=
0
;
}
else
{
AutoTime
=
160
;
}
AutoTime
=
160
;
}
}
...
...
YueJin_test_bench/source/Appliciation/api_RS485.c
View file @
4448fe82
...
...
@@ -25,6 +25,7 @@ static uint8_t u8RS485RecVldID[RS485_Rx_ID_Idx_Max];
uint32_t
RS485_send_time
=
0
;
// uint32_t RS485_send_num = 0;
uint8_t
RS485_TX_finish
=
0
;
uint8_t
RS485_TX_finish_laohua
=
0
;
// static RS485_Tx_Data_Ctrl_st_t stRS485TxData[RS485_Tx_ID_Idx_Max];
#define HEAD_LEN 2
...
...
@@ -35,7 +36,7 @@ uint8_t RS485_TX_finish = 0;
#define DATA_FRAME_TX_PERIOD_COUNT 10
#define UDS485SendTime 10
#define Dot485SendTime 1
#define Dot485SendTime 1
0
_ID0X40h_Data
R485_ID40h
;
_ID0X48h_Data
R485_ID48h
;
_ID0X41h_Data
R485_ID41h
;
...
...
@@ -638,18 +639,17 @@ uint8_t RS485_User_Tx_Data(void)
uint8_t
SendTime
=
0
;
void
backsend
(
void
)
{
if
(
zhenduanflag
==
Data_Mode_Write
)
{
SendTime
=
UDS485SendTime
;
}
else
SendTime
=
Dot485SendTime
;
if
(
RS485_send_time
<
0xFFFFFFFF
)
{
SendTime
=
Dot485SendTime
;
RS485_send_time
++
;
}
if
(
RS485_send_time
>=
SendTime
)
{
RS485_send_time
=
0
;
RS485_TX_finish
=
0
;
RS485_TX_finish
_laohua
=
0
;
}
}
void
TX_RX_485_service
(
void
)
...
...
@@ -657,23 +657,24 @@ void TX_RX_485_service(void)
uint32_t
sendfinishflag
;
// if(clearOdoFlag == 0)
// {
if
(
RS485_TX_finish
==
0
)
if
(
RS485_TX_finish
_laohua
==
0
)
{
LINE_OUT_NEG_09
=
1
;
if
(
zhenduanflag
==
Data_Mode_Dot
)
{
RS485_User_Tx_Data
();
}
else
if
((
zhenduanflag
==
Data_Mode_Write
)
||
(
zhenduanflag
==
Data_Mode_Read
))
{
R485_Send_0x04
();
R485_Send_0x80
();
}
}
else
{
Recv_Byte
();
RS485_TX_finish_laohua
=
1
;
// else if((zhenduanflag == Data_Mode_Write) || (zhenduanflag == Data_Mode_Read))
// {
// R485_Send_0x04();
// R485_Send_0x80();
// }
}
// else
// {
// Recv_Byte();
// }
// }
// else
// {
...
...
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