Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
5c14a60c
Commit
5c14a60c
authored
Aug 19, 2024
by
李茂军
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ZMY' into 'dev'
feat:修改UUID写入的字节长度位32 See merge request
!78
parents
5b37a388
b274dd21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+4
-4
UDS_ISO14229_Services.h
Firmware/Source/UDS/UDS_ISO14229_Services.h
+1
-2
No files found.
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
5c14a60c
...
...
@@ -194,7 +194,7 @@ void Data_Read_DiagPara(void)
{
uint8_t
i
;
Ser2EDFlashData
*
ReadSer2EDataForDFlash
=
(
Ser2EDFlashData
*
)
0x500600ul
;
for
(
i
=
0
;
i
<
21
;
i
++
)
for
(
i
=
0
;
i
<
32
;
i
++
)
{
Ser2EDataForDFlash
.
DID_F184
[
i
]
=
ReadSer2EDataForDFlash
->
DID_F184
[
i
];
}
...
...
@@ -857,11 +857,11 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
break
;
case
0xF184
:
// UUID
for
(
i
=
0
;
i
<
21
;
i
++
)
for
(
i
=
0
;
i
<
32
;
i
++
)
{
UDS_ISO14229_Transfer
[
i
+
2
]
=
Ser2EDataForDFlash
.
DID_F184
[
i
];
}
UDS_Service_Response
(
0x22
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
21
,
UDS_ISO14229_Transfer
);
UDS_Service_Response
(
0x22
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
32
,
UDS_ISO14229_Transfer
);
break
;
case
0x2024
:
// ESP32内部版本号
...
...
@@ -942,7 +942,7 @@ void UDS_Service_2E_Indication ( uint16_t A_TA_type, uint16_t A_Length, uint8_t
switch
(
DID
)
{
case
0xF184
:
// 写入UUID
if
(
Service2EDiagDataLength
==
23
)
//限制最大长度
if
(
Service2EDiagDataLength
==
34
)
//限制最大长度
{
for
(
i
=
0
;
i
<
(
sizeof
(
Ser2EDataForDFlash
.
DID_F184
));
i
++
)
{
...
...
Firmware/Source/UDS/UDS_ISO14229_Services.h
View file @
5c14a60c
...
...
@@ -354,8 +354,7 @@ extern DiagDFlashData DiagDataForDFlash;
typedef
struct
{
uint32_t
Flag
;
uint8_t
DID_F184
[
21
];
uint8_t
Filldata
[
11
];
uint8_t
DID_F184
[
32
];
}
Ser2EDFlashData
;
extern
Ser2EDFlashData
Ser2EDataForDFlash
;
...
...
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