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
eea429cb
Commit
eea429cb
authored
Jun 20, 2024
by
张明扬
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加22服务DID读取ESP32程序内部版本号
parent
e93d1ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+6
-1
No files found.
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
eea429cb
...
...
@@ -715,7 +715,7 @@ static const uint8_t Ser22BanResponse = DisableResponseType;
static
const
uint8_t
Ser22Sub
[]
=
{
0xFF
};
static
const
uint8_t
Ser22MinLen
[]
=
{
2
};
static
const
uint8_t
Ser22SubLen
[]
=
{
2
};
static
const
uint16_t
Ser22DIDList
[]
=
{
0xF195
,
0xF193
,
0xF180
,
0xF187
,
0x1024
,
0x1028
,
0xF184
};
static
const
uint16_t
Ser22DIDList
[]
=
{
0xF195
,
0xF193
,
0xF180
,
0xF187
,
0x1024
,
0x1028
,
0xF184
,
0x2024
};
static
const
uint8_t
Ser22UnlockLevel
[]
=
{
NoNeed
};
static
const
uint8_t
Ser22SupportSession
=
DefaultMode
|
ProgrammingMode
|
ExtendedDiagnosticMode
;
static
const
uint8_t
Ser22SubSupportSession
[]
=
{
DefaultMode
|
ProgrammingMode
|
ExtendedDiagnosticMode
};
...
...
@@ -862,6 +862,11 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
UDS_Service_Response
(
0x22
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
32
,
UDS_ISO14229_Transfer
);
break
;
case
0x2024
:
// ESP32内部版本号
UDS_ISO14229_Transfer
[
3
]
=
BlueTooth
.
ESP32_SWV
;
UDS_Service_Response
(
0x22
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2
+
1
,
UDS_ISO14229_Transfer
);
break
;
default:
if
(
FunorPhy
==
DIAG_ID_Rx_FUN
)
{
...
...
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