Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
23e88013
Commit
23e88013
authored
Nov 19, 2024
by
李延凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 禅道QAC, 58139
parent
00e65d02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+13
-13
No files found.
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
23e88013
...
@@ -83,19 +83,19 @@ uint8_t MCU_PartNumber[12] = {'H', 'J', 'Y', 'B', '-', '7', '5', '0', '0', 'T',
...
@@ -83,19 +83,19 @@ uint8_t MCU_PartNumber[12] = {'H', 'J', 'Y', 'B', '-', '7', '5', '0', '0', 'T',
/* internal program info */
/* internal program info */
const
uint8_t
DID_1024
[
13
]
=
const
uint8_t
DID_1024
[
13
]
=
{
{
((
internal_version
/
100UL
)
+
0x30UL
),
(
uint8_t
)(
(
internal_version
/
100UL
)
+
0x30UL
),
'.'
,
'.'
,
(((
internal_version
/
10UL
)
%
10UL
)
+
0x30UL
),
(
uint8_t
)(
((
internal_version
/
10UL
)
%
10UL
)
+
0x30UL
),
((
internal_version
%
10UL
)
+
0x30UL
),
(
uint8_t
)(
(
internal_version
%
10UL
)
+
0x30UL
),
'_'
,
'_'
,
((
internal_date
/
10000000UL
)
+
0x30
),
(
uint8_t
)(
(
internal_date
/
10000000UL
)
+
0x30
),
(((
internal_date
/
1000000UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
1000000UL
)
%
10UL
)
+
0x30
),
(((
internal_date
/
100000UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
100000UL
)
%
10UL
)
+
0x30
),
(((
internal_date
/
10000UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
10000UL
)
%
10UL
)
+
0x30
),
(((
internal_date
/
1000UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
1000UL
)
%
10UL
)
+
0x30
),
(((
internal_date
/
100UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
100UL
)
%
10UL
)
+
0x30
),
(((
internal_date
/
10UL
)
%
10UL
)
+
0x30
),
(
uint8_t
)(
((
internal_date
/
10UL
)
%
10UL
)
+
0x30
),
((
internal_date
%
10UL
)
+
0x30
)
(
uint8_t
)(
(
internal_date
%
10UL
)
+
0x30
)
};
};
/*写App有效性标志*/
/*写App有效性标志*/
...
@@ -680,12 +680,12 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
...
@@ -680,12 +680,12 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
case
0x5000U
:
// 读UUID
case
0x5000U
:
// 读UUID
(
void
)
memcpy
(
&
UDS_ISO14229_Transfer
[
2
],
Diag_Write_Data
.
DID_5000
,
sizeof
(
Diag_Write_Data
.
DID_5000
));
(
void
)
memcpy
(
&
UDS_ISO14229_Transfer
[
2
],
Diag_Write_Data
.
DID_5000
,
sizeof
(
Diag_Write_Data
.
DID_5000
));
UDS_Service_Response
(
si
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
sizeof
(
Diag_Write_Data
.
DID_5000
),
UDS_ISO14229_Transfer
);
UDS_Service_Response
(
si
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
(
uint16_t
)(
2
+
sizeof
(
Diag_Write_Data
.
DID_5000
)
),
UDS_ISO14229_Transfer
);
break
;
break
;
case
0x1024
:
// 读内部版本号
case
0x1024
:
// 读内部版本号
(
void
)
memcpy
(
&
UDS_ISO14229_Transfer
[
2
],
DID_1024
,
sizeof
(
DID_1024
));
(
void
)
memcpy
(
&
UDS_ISO14229_Transfer
[
2
],
DID_1024
,
sizeof
(
DID_1024
));
UDS_Service_Response
(
si
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
sizeof
(
DID_1024
),
UDS_ISO14229_Transfer
);
UDS_Service_Response
(
si
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
(
uint16_t
)(
2
+
sizeof
(
DID_1024
)
),
UDS_ISO14229_Transfer
);
break
;
break
;
// case 0x2024: // ESP32内部版本号
// case 0x2024: // ESP32内部版本号
...
...
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