Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WZ-EF01
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
WZ
WZ-EF01
Commits
26f0780c
Commit
26f0780c
authored
Mar 07, 2024
by
李秉薇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:39980
parent
e3e16430
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
UDS_ISO14229_Services.c
code/Sources/Diagnostic/src/UDS_ISO14229_Services.c
+7
-3
No files found.
code/Sources/Diagnostic/src/UDS_ISO14229_Services.c
View file @
26f0780c
...
@@ -1238,8 +1238,13 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
...
@@ -1238,8 +1238,13 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
//获取数据
//获取数据
(
void
)
memcpy
(
UDS_ISO14229_Transfer
,
A_Data
,
Service27DiagDataLength
);
(
void
)
memcpy
(
UDS_ISO14229_Transfer
,
A_Data
,
Service27DiagDataLength
);
//27服务最小长度为1
if
(
Service27DiagDataLength
<
1
)
{
NegRes
.
code
=
incorrectMessageLength
;
UDS_Service_Response
(
0x27
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1
,
(
uint8_t
*
)
(
&
NegRes
.
code
)
);
return
;
}
//不支持除27 01和27 02以外的子服务,返回12负反馈
//不支持除27 01和27 02以外的子服务,返回12负反馈
if
(
(
UDS_ISO14229_Transfer
[
0
]
!=
0x01
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x02
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x05
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x06
))
if
(
(
UDS_ISO14229_Transfer
[
0
]
!=
0x01
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x02
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x05
)
&&
(
UDS_ISO14229_Transfer
[
0
]
!=
0x06
))
{
{
...
@@ -1247,7 +1252,6 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
...
@@ -1247,7 +1252,6 @@ void UDS_Service_27_Indication ( uint32_t A_TA_type, uint16_t A_Length, uint8_t
UDS_Service_Response
(
0x27
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1
,
(
uint8_t
*
)
(
&
NegRes
.
code
)
);
UDS_Service_Response
(
0x27
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1
,
(
uint8_t
*
)
(
&
NegRes
.
code
)
);
return
;
return
;
}
}
//不支持除27 01和27 02以外的子服务,返回12负反馈
//不支持除27 01和27 02以外的子服务,返回12负反馈
if
(
((
UDS_ISO14229_Transfer
[
0
]
==
0x01
)
||
(
UDS_ISO14229_Transfer
[
0
]
==
0x02
))
&&
(
SessionType
!=
ExtendedDiagnosticSession
))
if
(
((
UDS_ISO14229_Transfer
[
0
]
==
0x01
)
||
(
UDS_ISO14229_Transfer
[
0
]
==
0x02
))
&&
(
SessionType
!=
ExtendedDiagnosticSession
))
{
{
...
...
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