Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
5b28fe3a
Commit
5b28fe3a
authored
Jun 02, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整诊断故障码问题
parent
d1f04e2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
RTE_CAN.c
source/Application/RTE/RTE_CAN.c
+3
-2
TP_Layer.c
source/Application/UDS_M/TP_Layer.c
+3
-3
UDS_CFG.h
source/Application/UDS_M/UDS_CFG.h
+3
-3
No files found.
source/Application/RTE/RTE_CAN.c
View file @
5b28fe3a
...
...
@@ -12,6 +12,7 @@
#include "PowerManagement.h"
#include "UDS_Common.h"
#include "UDS_CFG.H"
#include "Watchdog.h"
#include "RSCAN.h"
...
...
@@ -154,9 +155,9 @@ void Can_Read_Msg(uint32_t m_id, uint8_t m_dlc, uint8_t m_Msg[])
void
Can_Read_Msg2
(
uint32_t
m_id
,
uint8_t
m_dlc
,
uint8_t
m_Msg
[])
{
if
(
m_id
==
DIAG_ID_Rx_PHY
)
if
(
m_id
==
ID_BCM_ResAddr
)
{
LK_Link_main
(
DIAG_ID_Rx_PHY
,
(
uint8_t
*
)
m_Msg
,
(
m_dlc
&
0x0f
));
LK_Link_main
(
ID_BCM_ResAddr
,
(
uint8_t
*
)
m_Msg
,
(
m_dlc
&
0x0f
));
}
if
((
m_id
==
DIAG_ID_Rx_FUN
)
||
(
m_id
==
DIAG_ID_Rx_PHY
))
{
...
...
source/Application/UDS_M/TP_Layer.c
View file @
5b28fe3a
...
...
@@ -499,7 +499,7 @@ void TP_ReciveMultiF_handle(void)
--------------------------------------------------------------------------*/
void
TP_TransmitPDU
(
void
)
{
g_txCanMsg
.
id
=
ID_
Res
Addr
;
g_txCanMsg
.
id
=
ID_
BCM_Phy
Addr
;
_CAN_Msg
canMag
;
...
...
@@ -650,7 +650,7 @@ void TP_TransmitPDU(void)
//g_bReturn = bsp_CANSendFrame(g_txCanMsg.id, txResNum, (uint8_t *)&g_txCanMsg.msg[0], 8);
/*重新赋值----20220326----*/
canMag
.
MsgID
=
0x7E0
;
//
g_txCanMsg.id;
canMag
.
MsgID
=
g_txCanMsg
.
id
;
canMag
.
MsgDLC
=
8u
;
canMag
.
MsgPro
=
0u
;
canMag
.
MsgStd
=
0u
;
...
...
@@ -727,7 +727,7 @@ void TP_TransmitNegatePDU(_ErrorFrame *Err)
(
Err
->
FrameErr
!=
SubFunctionNotSupported
)
&&
(
Err
->
FrameErr
!=
RequestOutOfRange
))
{
g_txCanMsg
.
id
=
ID_
Res
Addr
;
g_txCanMsg
.
id
=
ID_
BCM_Phy
Addr
;
g_txCanMsg
.
msg
[
0
]
=
3
;
g_txCanMsg
.
msg
[
1
]
=
NegativeId
;
g_txCanMsg
.
msg
[
2
]
=
Err
->
RespSerId
;
...
...
source/Application/UDS_M/UDS_CFG.h
View file @
5b28fe3a
...
...
@@ -16,9 +16,9 @@
#define ID_BCM_PhyAddr 0x7E0
#define ID_BCM_ResAddr 0x7E8 //BCM物理响应
#define ID_PhyAddr 0x7E8
#define ID_ResAddr 0x7E0 //物理响应
#define ID_FunAddr 0x7df
//
#define ID_PhyAddr 0x7E8
//
#define ID_ResAddr 0x7E0 //物理响应
//
#define ID_FunAddr 0x7df
#define N_FILL 0x00
...
...
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