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
b7969cf3
Commit
b7969cf3
authored
Jun 05, 2025
by
huangguoqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:诊断获取软件版本号
parent
dcd21f87
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
34 deletions
+52
-34
RTE_CAN.c
YueJin_test_bench/source/Appliciation/RTE_CAN.c
+9
-1
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+24
-14
UDS_ISO14229_Server.c
YueJin_test_bench/source/Appliciation/UDS_ISO14229_Server.c
+19
-19
No files found.
YueJin_test_bench/source/Appliciation/RTE_CAN.c
View file @
b7969cf3
...
...
@@ -156,13 +156,21 @@ void Can_Abort_All(void)
}
/*****Lower*******/
/**
* @brief 从CAN通道读取消息
*
* 该函数用于从指定的CAN通道读取消息,并根据消息ID进行相应的处理。
*
* @param m_id 消息ID
* @param m_dlc 数据长度码(DLC)
* @param m_Msg 消息数据数组
*/
void
Can_Read_Msg
(
uint32_t
m_id
,
uint8_t
m_dlc
,
uint8_t
m_Msg
[])
{
Co_Can_Buff_Set
(
&
CAN_CH4_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH4
(
m_id
),
m_dlc
,
m_Msg
);
//UDS_ReceivedMsg(m_id, m_dlc);
if
(
(
m_id
==
DIAG_ID_Rx_FUN
)
||
(
m_id
==
DIAG_ID_Rx_PHY
)
)
{
DoCAN_L_Data_Indication
(
m_id
,
m_dlc
,
m_Msg
);
}
}
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
b7969cf3
...
...
@@ -65,6 +65,8 @@ void Sys_Run_Mode_2ms_Tasks_Group(void)
{
RTE_ADC_Services
(
);
Get_static_Current
();
COM_RX_Process
(
);
COM_TX_Process
();
}
/*==============================================================================
...
...
@@ -72,8 +74,7 @@ void Sys_Run_Mode_2ms_Tasks_Group(void)
------------------------------------------------------------------------------*/
void
Sys_Run_Mode_5ms_Tasks_Group
(
void
)
{
COM_RX_Process
(
);
COM_TX_Process
();
}
/*==============================================================================
...
...
@@ -131,29 +132,38 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Display_PageNum
();
User_CheckMode_Service
(
100u
);
//TFT_LCD_Draw_Bmp(3, 40, ( uint8_t * )gImage_Dsy_words_1X6_Y16);
POWER_CTRL_KL30
=
1
;
POWER_CTRL_KL30_B
=
1
;
testtime
++
;
//POWER_CTRL_KL15 = 1;
// testtime++;
// if((testtime >
0)&&(testtime < 2
0))
// if((testtime >
50)&&(testtime < 7
0))
// {
// Left_Led = 1;
// Right_Led = 1;
// Headlights_Led = 1;
// can_flag=1;
// }
// else
// else
if((testtime > 80)&&(testtime < 100))
// {
// Left_Led = 0;
// Right_Led = 0;
// Headlights_Led = 0;
// can_flag=2;
// }
// else if((testtime > 120)&&(testtime < 140))
// {
// can_flag=3;
// }
// else if((testtime > 160)&&(testtime < 180))
// {
// can_flag=4;
// }
// if(testtime >
4
0)
// if(testtime >
20
0)
// {
// testtime = 0;
// }
// General_Number_Disp(test, 100 , 100 );
}
/*=================================================================*/
...
...
YueJin_test_bench/source/Appliciation/UDS_ISO14229_Server.c
View file @
b7969cf3
This diff is collapsed.
Click to expand it.
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