Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
86f2683f
Commit
86f2683f
authored
Feb 21, 2024
by
杨真东
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shihao' into 'develop'
Shihao See merge request
!13
parents
76b386fe
1870eb5f
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
107 additions
and
9 deletions
+107
-9
UDS_10Service_Filter.c
source/UDS/UDS_10Service_Filter.c
+1
-1
UDS_19Service_Filter.c
source/UDS/UDS_19Service_Filter.c
+14
-2
UDS_2FService_Filter.c
source/UDS/UDS_2FService_Filter.c
+81
-0
UDS_2FService_Filter.h
source/UDS/UDS_2FService_Filter.h
+1
-0
UDS_2FService_Main.c
source/UDS/UDS_2FService_Main.c
+10
-6
NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_ALL.srec
...2-21/NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_ALL.srec
+0
-0
NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_APP.srec
...2-21/NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_APP.srec
+0
-0
依维柯NS216软件变更记录.xlsx
utility/程序释放/NS216-2024-2-21/依维柯NS216软件变更记录.xlsx
+0
-0
依维柯NS216软件自测报告.xlsx
utility/程序释放/NS216-2024-2-21/依维柯NS216软件自测报告.xlsx
+0
-0
No files found.
source/UDS/UDS_10Service_Filter.c
View file @
86f2683f
...
...
@@ -146,7 +146,7 @@ uint8_t UDS_10Service_Sub_NRC12(void)
{
uint8_t
NRC
=
positiveResponse
;
if
((
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
DefaultSession
)
||
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ProgrammingSession
)
||
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ExtendedDiagnosticSession
)
||
(
DiagMSG
.
msgData
.
Data
[
0
]
=
0x60
))
||
(
DiagMSG
.
msgData
.
Data
[
0
]
=
=
0x60
))
{
NRC
=
positiveResponse
;
}
...
...
source/UDS/UDS_19Service_Filter.c
View file @
86f2683f
...
...
@@ -273,7 +273,19 @@ uint8_t UDS_19Service_Sub_NRC13_TotalLengthCheck(void)
NRC
=
positiveResponse
;
}
}
if
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ReportDTCSnapshotRecordByDTCNumber
)
if
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ReportDTCSnapshotRecordByDTCNumber
)
//04
{
if
(
DiagMSG
.
msgDLC
!=
5u
)
{
NRC
=
incorrectMessageLength
;
UDS_Service_Response
(
0x19u
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
NRC
);
}
else
{
NRC
=
positiveResponse
;
}
}
if
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
reportDTCExtendedDataRecordByDTCNumber
)
//06
{
if
(
DiagMSG
.
msgDLC
!=
5u
)
{
...
...
@@ -285,7 +297,7 @@ uint8_t UDS_19Service_Sub_NRC13_TotalLengthCheck(void)
NRC
=
positiveResponse
;
}
}
if
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ReportSupportedDTC
)
if
(
DiagMSG
.
msgData
.
SidDetail
.
SubID
==
ReportSupportedDTC
)
//0A
{
if
(
DiagMSG
.
msgDLC
!=
1u
)
{
...
...
source/UDS/UDS_2FService_Filter.c
View file @
86f2683f
...
...
@@ -85,6 +85,87 @@ uint8_t UDS_2FService_NRC13_MinLengthCheck(void)
*@return 负反馈编号
*/
uint8_t
UDS_2FService_NRC31
(
void
)
{
uint8_t
NRC
=
requestOutOfRange
;
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F80u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F81u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F82u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F83u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F84u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F85u
)
{
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
0u
)
{
NRC
=
positiveResponse
;
}
if
(
DiagMSG
.
msgData
.
DidDetail
.
Data
[
0
]
==
3u
)
{
NRC
=
positiveResponse
;
}
}
if
((
NRC
==
requestOutOfRange
)
&&
(
DiagMSG
.
msgID
==
DIAG_ID_Rx_PHY
))
{
UDS_Service_Response
(
0x2Fu
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
NRC
);
}
return
NRC
;
}
/**
*2F服务超出请求范围验证
*功能寻址下屏蔽该负反馈
*@return 负反馈编号
*/
uint8_t
UDS_2FService_NRC31_Total
(
void
)
{
uint8_t
NRC
=
requestOutOfRange
;
if
(
getDID
(
DiagMSG
.
msgData
.
DidDetail
.
DID_H
,
DiagMSG
.
msgData
.
DidDetail
.
DID_L
)
==
0x3F80u
)
...
...
source/UDS/UDS_2FService_Filter.h
View file @
86f2683f
...
...
@@ -12,5 +12,6 @@ uint8_t UDS_2FService_NRC13_MinLengthCheck(void);
uint8_t
UDS_2FService_NRC31
(
void
);
uint8_t
UDS_2FService_NRC13_TotalLengthCheck
(
void
);
uint8_t
UDS_2FService_NRC22
(
void
);
uint8_t
UDS_2FService_NRC31_Total
(
void
);
#endif
\ No newline at end of file
source/UDS/UDS_2FService_Main.c
View file @
86f2683f
...
...
@@ -42,6 +42,10 @@ void UDS_Service_2F_Indication(uint32_t A_TA_type, uint16_t A_Length, uint8_t A_
NRC
=
UDS_2FService_NRC13_TotalLengthCheck
();
/*2F服务总长度长度验证*/
}
if
(
NRC
==
positiveResponse
)
{
NRC
=
UDS_2FService_NRC31_Total
();
/*2F服务超出请求范围验证*/
}
if
(
NRC
==
positiveResponse
)
{
NRC
=
UDS_2FService_NRC22
();
/*2F服务条件验证*/
}
...
...
@@ -104,7 +108,7 @@ void UDS_2FService_DID_3F80(void)
LEDContrl
.
Data
[
3
]
=
DiagMSG
.
msgData
.
DidDetail
.
Data
[
4
];
len
=
7
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
/**
...
...
@@ -126,7 +130,7 @@ void UDS_2FService_DID_3F81(void)
DiagVSpeedValue
[
1
]
=
DiagMSG
.
msgData
.
DidDetail
.
Data
[
2
];
len
=
5
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
/**
...
...
@@ -148,7 +152,7 @@ void UDS_2FService_DID_3F82(void)
DiagESpeedValue
[
1
]
=
DiagMSG
.
msgData
.
DidDetail
.
Data
[
2
];
len
=
5
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
/**
...
...
@@ -169,7 +173,7 @@ void UDS_2FService_DID_3F83(void)
DiagBackLight
=
DiagMSG
.
msgData
.
DidDetail
.
Data
[
1
];
len
=
4
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
/**
...
...
@@ -191,7 +195,7 @@ void UDS_2FService_DID_3F84(void)
//DiagLCD = DiagMSG.msgData.DidDetail.Data[1];
len
=
4
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
/**
...
...
@@ -211,5 +215,5 @@ void UDS_2FService_DID_3F85(void)
DiagBuzzer
=
DiagMSG
.
msgData
.
DidDetail
.
Data
[
1
];
len
=
4
;
}
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
3u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x2Fu
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
len
,
DiagMSG
.
msgData
.
Data
);
}
\ No newline at end of file
utility/程序释放/NS216-2024-2-21/NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_ALL.srec
0 → 100644
View file @
86f2683f
This diff is collapsed.
Click to expand it.
utility/程序释放/NS216-2024-2-21/NS216_2024-2-21-09-30_SV1.0_HV1.0_BOOTSW1.5_APP.srec
0 → 100644
View file @
86f2683f
This diff is collapsed.
Click to expand it.
utility/程序释放/NS216-2024-2-21/依维柯NS216软件变更记录.xlsx
0 → 100644
View file @
86f2683f
File added
utility/程序释放/NS216-2024-2-21/依维柯NS216软件自测报告.xlsx
0 → 100644
View file @
86f2683f
File added
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