Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LE19
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
时昊
LE19
Commits
c03c402b
Commit
c03c402b
authored
Feb 16, 2024
by
李秉薇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更添加F102DID
parent
0564a79d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
113 additions
and
34 deletions
+113
-34
Application.DebugWithoutBootloader.cspy.bat
...tion/settings/Application.DebugWithoutBootloader.cspy.bat
+3
-2
EOL_Para.c
le19源码/Source/Application/UDS/APP/Common/EOL_Para.c
+45
-7
EOL_Para.h
le19源码/Source/Application/UDS/APP/Common/EOL_Para.h
+11
-0
UDS_Common.c
le19源码/Source/Application/UDS/APP/Common/UDS_Common.c
+27
-1
UDS_Common.h
le19源码/Source/Application/UDS/APP/Common/UDS_Common.h
+5
-6
UDS_DTC.c
le19源码/Source/Application/UDS/APP/Common/UDS_DTC.c
+1
-1
UDS_22Service_Filter.c
.../Application/UDS/APP/UDS_22Service/UDS_22Service_Filter.c
+1
-1
UDS_22Service_Main.c
...ce/Application/UDS/APP/UDS_22Service/UDS_22Service_Main.c
+5
-5
UDS_22Service_Main.h
...ce/Application/UDS/APP/UDS_22Service/UDS_22Service_Main.h
+1
-1
UDS_2EService_Filter.c
.../Application/UDS/APP/UDS_2EService/UDS_2EService_Filter.c
+2
-2
UDS_2EService_Main.c
...ce/Application/UDS/APP/UDS_2EService/UDS_2EService_Main.c
+11
-7
UDS_2EService_Main.h
...ce/Application/UDS/APP/UDS_2EService/UDS_2EService_Main.h
+1
-1
No files found.
le19源码/IAR_EWARM/Application/settings/Application.DebugWithoutBootloader.cspy.bat
View file @
c03c402b
...
@@ -25,7 +25,7 @@ if not "%~1" == "" goto debugFile
...
@@ -25,7 +25,7 @@ if not "%~1" == "" goto debugFile
@echo on
@echo on
"
C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" --backend -f "D:\le19基于lg02y的变更单号0059的基础上改
\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
"
E:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\A_Work\A_PROJECT\LE19\le19\le19Ô´Âë\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" --backend -f "D:\A_Work\A_PROJECT\LE19\le
19\le19Ô´Âë\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
@echo off
goto end
goto end
...
@@ -34,7 +34,7 @@ goto end
...
@@ -34,7 +34,7 @@ goto end
@echo on
@echo on
"
C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" "--debug_file=%~1" --backend -f "D:\le19基于lg02y的变更单号0059的基础上改
\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
"
E:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\A_Work\A_PROJECT\LE19\le19\le19Ô´Âë\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" "--debug_file=%~1" --backend -f "D:\A_Work\A_PROJECT\LE19\le
19\le19Ô´Âë\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
@echo off
:end
:end
\ No newline at end of file
le19源码/Source/Application/UDS/APP/Common/EOL_Para.c
View file @
c03c402b
...
@@ -4,11 +4,13 @@
...
@@ -4,11 +4,13 @@
_EOL_F101
EOL_F101
;
_EOL_F101
EOL_F101
;
_EOL_F110
EOL_F110
;
_EOL_F110
EOL_F110
;
_EOL_F100
EOL_F100
;
_EOL_F100
EOL_F100
;
_EOL_F102
EOL_F102
;
_EOL_7101
EOL_7101
;
_EOL_7101
EOL_7101
;
_EOL_7102
EOL_7102
;
_EOL_7102
EOL_7102
;
void
EOL_InitVal
(
void
)
void
EOL_InitVal
(
void
)
{
{
uint8_t
i
;
EOL_F101
.
F101_Byte
[
0u
]
=
0xFFu
;
EOL_F101
.
F101_Byte
[
0u
]
=
0xFFu
;
EOL_F110
.
F110_Byte
[
0u
]
=
0xF7u
;
/*默认手动*/
EOL_F110
.
F110_Byte
[
0u
]
=
0xF7u
;
/*默认手动*/
...
@@ -37,6 +39,13 @@ void EOL_InitVal(void)
...
@@ -37,6 +39,13 @@ void EOL_InitVal(void)
EOL_F100
.
F100_Byte
[
14u
]
=
0xFFu
;
EOL_F100
.
F100_Byte
[
14u
]
=
0xFFu
;
EOL_F100
.
F100_Byte
[
15u
]
=
0xFFu
;
EOL_F100
.
F100_Byte
[
15u
]
=
0xFFu
;
for
(
i
=
0
;
i
<
24
;
i
++
)
{
EOL_F102
.
F102_Byte
[
i
]
=
0x00u
;
}
EOL_F102
.
F102_Byte
[
21
]
=
0x60
;
}
}
void
EOL_SetF101
(
uint8_t
EOL
[],
uint8_t
len
)
void
EOL_SetF101
(
uint8_t
EOL
[],
uint8_t
len
)
...
@@ -52,6 +61,18 @@ void EOL_SetF101(uint8_t EOL[], uint8_t len)
...
@@ -52,6 +61,18 @@ void EOL_SetF101(uint8_t EOL[], uint8_t len)
}
}
}
}
void
EOL_SetF102
(
uint8_t
EOL
[],
uint8_t
len
)
{
uint8_t
i
;
if
(
len
==
24u
)
{
for
(
i
=
0u
;
i
<
sizeof
(
EOL_F102
);
i
++
)
{
EOL_F102
.
F102_Byte
[
i
]
=
EOL
[
i
];
}
}
}
void
EOL_SetF110
(
uint8_t
EOL
[],
uint8_t
len
)
void
EOL_SetF110
(
uint8_t
EOL
[],
uint8_t
len
)
{
{
...
@@ -105,20 +126,19 @@ _EOL_F101 EOL_GetF101(void)
...
@@ -105,20 +126,19 @@ _EOL_F101 EOL_GetF101(void)
return
EOL_F101
;
return
EOL_F101
;
}
}
_EOL_F110
EOL_GetF110
(
void
)
{
return
EOL_F110
;
}
_EOL_F100
EOL_GetF100
(
void
)
_EOL_F100
EOL_GetF100
(
void
)
{
{
return
EOL_F100
;
return
EOL_F100
;
}
}
_EOL_F110
EOL_GetF110
(
void
)
{
return
EOL_F110
;
}
_EOL_
7101
EOL_Get7101
(
void
)
_EOL_
F102
EOL_GetF102
(
void
)
{
{
return
EOL_
7101
;
return
EOL_
F102
;
}
}
_EOL_7102
EOL_Get7102
(
void
)
_EOL_7102
EOL_Get7102
(
void
)
...
@@ -859,3 +879,20 @@ uint8_t Val_EOL_F110_BMSL(void)
...
@@ -859,3 +879,20 @@ uint8_t Val_EOL_F110_BMSL(void)
Res
=
(
uint8_t
)((
EOL_F110
.
F110_Byte
[
5u
]
>>
2u
)
&
0x01u
);
Res
=
(
uint8_t
)((
EOL_F110
.
F110_Byte
[
5u
]
>>
2u
)
&
0x01u
);
return
Res
;
return
Res
;
}
}
/****F102***/
/**byte21*/
uint8_t
Val_EOL_F102_RadarType
(
void
)
{
uint8_t
Res
=
0u
;
Res
=
(
uint8_t
)((
EOL_F102
.
F102_Byte
[
21u
]
>>
0u
)
&
0x0Fu
);
return
Res
;
}
uint8_t
Val_EOL_F102_MaximumSpeedLimit
(
void
)
{
uint8_t
Res
=
0u
;
Res
=
(
uint8_t
)((
EOL_F102
.
F102_Byte
[
21u
]
>>
4u
)
&
0x0Fu
);
return
Res
;
}
\ No newline at end of file
le19源码/Source/Application/UDS/APP/Common/EOL_Para.h
View file @
c03c402b
...
@@ -19,6 +19,11 @@ typedef struct
...
@@ -19,6 +19,11 @@ typedef struct
uint8_t
F100_Byte
[
16u
];
uint8_t
F100_Byte
[
16u
];
}
_EOL_F100
;
}
_EOL_F100
;
typedef
struct
{
uint8_t
F102_Byte
[
24u
];
}
_EOL_F102
;
typedef
struct
typedef
struct
{
{
uint8_t
F7101_Byte
[
3u
];
uint8_t
F7101_Byte
[
3u
];
...
@@ -171,15 +176,20 @@ void EOL_SetF101(uint8_t EOL[], uint8_t len);
...
@@ -171,15 +176,20 @@ void EOL_SetF101(uint8_t EOL[], uint8_t len);
void
EOL_SetF110
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_SetF110
(
uint8_t
EOL
[],
uint8_t
len
);
/*设置网络拓扑配置F110*/
/*设置网络拓扑配置F110*/
void
EOL_SetF100
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_SetF100
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_SetF102
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_Set7101
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_Set7101
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_Set7102
(
uint8_t
EOL
[],
uint8_t
len
);
void
EOL_Set7102
(
uint8_t
EOL
[],
uint8_t
len
);
/*获取下线配置F101*/
/*获取下线配置F101*/
_EOL_F101
EOL_GetF101
(
void
);
_EOL_F101
EOL_GetF101
(
void
);
/*获取下线配置F110*/
/*获取下线配置F110*/
_EOL_F110
EOL_GetF110
(
void
);
_EOL_F110
EOL_GetF110
(
void
);
/*获取下线配置F112*/
_EOL_F102
EOL_GetF102
(
void
);
/*获取网络拓扑*/
/*获取网络拓扑*/
_EOL_F100
EOL_GetF100
(
void
);
_EOL_F100
EOL_GetF100
(
void
);
_EOL_7101
EOL_Get7101
(
void
);
_EOL_7101
EOL_Get7101
(
void
);
_EOL_7102
EOL_Get7102
(
void
);
_EOL_7102
EOL_Get7102
(
void
);
uint8_t
Val_EOL_F102_RadarType
(
void
);
uint8_t
Val_EOL_F102_MaximumSpeedLimit
(
void
);
#endif
#endif
\ No newline at end of file
le19源码/Source/Application/UDS/APP/Common/UDS_Common.c
View file @
c03c402b
...
@@ -905,6 +905,7 @@ void Ser2EToDFlashInfoInit(void)
...
@@ -905,6 +905,7 @@ void Ser2EToDFlashInfoInit(void)
uint8_t
i
;
uint8_t
i
;
_EOL_F101
EOL_F101
;
_EOL_F101
EOL_F101
;
_EOL_F110
EOL_F110
;
_EOL_F110
EOL_F110
;
_EOL_F102
EOL_F102
;
Ser2EToDFlashInfo
.
Flag
=
0x7AA7A55Au
;
Ser2EToDFlashInfo
.
Flag
=
0x7AA7A55Au
;
memset
(
Ser2EToDFlashInfo
.
DID_DFEC
,
0
,
64u
);
memset
(
Ser2EToDFlashInfo
.
DID_DFEC
,
0
,
64u
);
...
@@ -931,6 +932,7 @@ void Ser2EToDFlashInfoInit(void)
...
@@ -931,6 +932,7 @@ void Ser2EToDFlashInfoInit(void)
EOL_InitVal
();
EOL_InitVal
();
EOL_F101
=
EOL_GetF101
();
EOL_F101
=
EOL_GetF101
();
EOL_F110
=
EOL_GetF110
();
EOL_F110
=
EOL_GetF110
();
EOL_F102
=
EOL_GetF102
();
for
(
i
=
0u
;
i
<
16u
;
++
i
)
for
(
i
=
0u
;
i
<
16u
;
++
i
)
{
{
Ser2EToDFlashInfo
.
DID_F101
[
i
]
=
EOL_F101
.
F101_Byte
[
i
];
Ser2EToDFlashInfo
.
DID_F101
[
i
]
=
EOL_F101
.
F101_Byte
[
i
];
...
@@ -939,7 +941,11 @@ void Ser2EToDFlashInfoInit(void)
...
@@ -939,7 +941,11 @@ void Ser2EToDFlashInfoInit(void)
{
{
Ser2EToDFlashInfo
.
DID_F110
[
i
]
=
EOL_F110
.
F110_Byte
[
i
];
Ser2EToDFlashInfo
.
DID_F110
[
i
]
=
EOL_F110
.
F110_Byte
[
i
];
}
}
for
(
i
=
0u
;
i
<
24u
;
++
i
)
{
Ser2EToDFlashInfo
.
DID_F102
[
i
]
=
EOL_F102
.
F102_Byte
[
i
];
}
Ser2EToDFlashInfo
.
DID_7101
[
0
]
=
0x00u
;
Ser2EToDFlashInfo
.
DID_7101
[
0
]
=
0x00u
;
Ser2EToDFlashInfo
.
DID_7101
[
1
]
=
0x30u
;
Ser2EToDFlashInfo
.
DID_7101
[
1
]
=
0x30u
;
Ser2EToDFlashInfo
.
DID_7101
[
2
]
=
0x00u
;
Ser2EToDFlashInfo
.
DID_7101
[
2
]
=
0x00u
;
...
@@ -992,6 +998,26 @@ void DTCToDFlashInfoInit(void)
...
@@ -992,6 +998,26 @@ void DTCToDFlashInfoInit(void)
*/
*/
void
DTCConfigurationInit
(
void
)
void
DTCConfigurationInit
(
void
)
{
{
if
(
Val_EOL_F102_RadarType
()
!=
2
)
{
DTCToDFlashInfo
.
DTC
[
cnU015987
].
DTCStatus
=
DTCNoTestLastClear
|
DTCNoTestThisCycle
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
DTCAgeing
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
DTCCount
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
DTCPendingCount
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
ECUPowerVoltage
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
VehicleSpeed
=
0x0000u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
OccurrenceCounter
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
FirstMalfunction
=
0x00000000u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
LastMalfunction
=
0x00000000u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
min
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
sec
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
hour
=
0x00u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
month
=
0x01u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
day
=
0x01u
;
DTCToDFlashInfo
.
DTC
[
cnU015987
].
Snapshot
.
Time
.
year
=
0x00u
;
}
/*if(!Val_EOL_F110_EMS())
/*if(!Val_EOL_F110_EMS())
{
{
DTCToDFlashInfo.DTC[cnU010087].DTCStatus = DTCNoTestLastClear | DTCNoTestThisCycle;
DTCToDFlashInfo.DTC[cnU010087].DTCStatus = DTCNoTestLastClear | DTCNoTestThisCycle;
...
...
le19源码/Source/Application/UDS/APP/Common/UDS_Common.h
View file @
c03c402b
...
@@ -336,20 +336,19 @@ typedef struct
...
@@ -336,20 +336,19 @@ typedef struct
uint8_t
DID_DFEF
[
64
];
uint8_t
DID_DFEF
[
64
];
uint8_t
DID_F101
[
16
];
uint8_t
DID_F101
[
16
];
uint8_t
DID_F110
[
8
];
uint8_t
DID_F110
[
8
];
uint8_t
DID_F10
0
[
16
];
uint8_t
DID_F10
2
[
24
];
uint8_t
DID_7101
[
3
];
uint8_t
DID_7101
[
3
];
uint8_t
DID_7102
[
3
];
uint8_t
DID_7102
[
3
];
uint8_t
DID_7103
[
1
];
uint8_t
DID_7103
[
1
];
uint8_t
Filling
[
1
];
}
Ser2EToDFlashInfoUnion
;
}
Ser2EToDFlashInfoUnion
;
typedef
struct
typedef
struct
{
{
uint16_t
ECUPowerVoltage
;
uint16_t
ECUPowerVoltage
;
uint8_t
OccurrenceCounter
;
uint8_t
OccurrenceCounter
;
uint16_t
VehicleSpeed
;
uint16_t
VehicleSpeed
;
uint32_t
FirstMalfunction
;
uint32_t
FirstMalfunction
;
uint32_t
LastMalfunction
;
uint32_t
LastMalfunction
;
struct
struct
{
{
uint8_t
sec
;
uint8_t
sec
;
...
...
le19源码/Source/Application/UDS/APP/Common/UDS_DTC.c
View file @
c03c402b
...
@@ -429,7 +429,7 @@ void TestDTC_U015987(void)
...
@@ -429,7 +429,7 @@ void TestDTC_U015987(void)
{
{
if
(
DTCList
[
cnU015987
][
1u
])
if
(
DTCList
[
cnU015987
][
1u
])
{
{
//if(Val_EOL_F110_AC()
)
if
(
Val_EOL_F102_RadarType
()
==
2
)
{
{
if
(
Radra_Get_Warning
()
==
6u
)
if
(
Radra_Get_Warning
()
==
6u
)
{
{
...
...
le19源码/Source/Application/UDS/APP/UDS_22Service/UDS_22Service_Filter.c
View file @
c03c402b
...
@@ -5,7 +5,7 @@ const uint8_t S22DLC [] = {2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u,
...
@@ -5,7 +5,7 @@ const uint8_t S22DLC [] = {2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u, 2u,
const
uint16_t
S22DID
[]
=
{
0xF199u
,
0xF187u
,
0xF18Au
,
0xF190u
,
0xF1A2u
,
0xF191u
,
0xF189u
,
0xF193u
,
const
uint16_t
S22DID
[]
=
{
0xF199u
,
0xF187u
,
0xF18Au
,
0xF190u
,
0xF1A2u
,
0xF191u
,
0xF189u
,
0xF193u
,
0xF195u
,
0xF180u
,
0xF112u
,
0xF198u
,
0xF197u
,
0xF113u
,
0xF182u
,
0xF186u
,
0xF195u
,
0xF180u
,
0xF112u
,
0xF198u
,
0xF197u
,
0xF113u
,
0xF182u
,
0xF186u
,
0xF18Bu
,
0xF18Cu
,
0x0200u
,
0x0201u
,
0xDFECu
,
0xDFEDu
,
0xDFEEu
,
0xDFEFu
,
0xF18Bu
,
0xF18Cu
,
0x0200u
,
0x0201u
,
0xDFECu
,
0xDFEDu
,
0xDFEEu
,
0xDFEFu
,
0xF110u
,
0xF101u
,
0xF10
0
,
0x7101
,
0x7102u
,
0x7103u
,
0xF306u
,
0xF307u
};
0xF110u
,
0xF101u
,
0xF10
2
,
0x7101
,
0x7102u
,
0x7103u
,
0xF306u
,
0xF307u
};
/**
/**
*22服务是否支持功能寻址
*22服务是否支持功能寻址
...
...
le19源码/Source/Application/UDS/APP/UDS_22Service/UDS_22Service_Main.c
View file @
c03c402b
...
@@ -139,8 +139,8 @@ void UDS_22Service_DID(void)
...
@@ -139,8 +139,8 @@ void UDS_22Service_DID(void)
case
0xF110
:
case
0xF110
:
UDS_22Service_DID_F110
();
/*网络拓扑配置*/
UDS_22Service_DID_F110
();
/*网络拓扑配置*/
break
;
break
;
case
0xF10
0
:
case
0xF10
2
:
UDS_22Service_DID_F10
0
();
/*网络拓扑配置*/
UDS_22Service_DID_F10
2
();
/*网络拓扑配置*/
break
;
break
;
case
0x7101
:
case
0x7101
:
UDS_22Service_DID_7101
();
/*读取首保里程*/
UDS_22Service_DID_7101
();
/*读取首保里程*/
...
@@ -406,10 +406,10 @@ void UDS_22Service_DID_F1A2(void)
...
@@ -406,10 +406,10 @@ void UDS_22Service_DID_F1A2(void)
*22服务DIDF100
*22服务DIDF100
*网络拓扑配置
*网络拓扑配置
*/
*/
void
UDS_22Service_DID_F10
0
(
void
)
void
UDS_22Service_DID_F10
2
(
void
)
{
{
memcpy
(
DiagMSG
.
msgData
.
DidDetail
.
Data
,
Ser2EToDFlashInfo
.
DID_F10
0
,
sizeof
(
Ser2EToDFlashInfo
.
DID_F100
));
memcpy
(
DiagMSG
.
msgData
.
DidDetail
.
Data
,
Ser2EToDFlashInfo
.
DID_F10
2
,
sizeof
(
Ser2EToDFlashInfo
.
DID_F102
));
UDS_Service_Response
(
0x22u
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2u
+
16
u
,
DiagMSG
.
msgData
.
Data
);
UDS_Service_Response
(
0x22u
,
POSITIVE_RSP
,
DIAG_ID_Tx
,
2u
+
24
u
,
DiagMSG
.
msgData
.
Data
);
}
}
/**
/**
...
...
le19源码/Source/Application/UDS/APP/UDS_22Service/UDS_22Service_Main.h
View file @
c03c402b
...
@@ -31,7 +31,7 @@ void UDS_22Service_DID_F197(void);
...
@@ -31,7 +31,7 @@ void UDS_22Service_DID_F197(void);
void
UDS_22Service_DID_F198
(
void
);
void
UDS_22Service_DID_F198
(
void
);
void
UDS_22Service_DID_F199
(
void
);
void
UDS_22Service_DID_F199
(
void
);
void
UDS_22Service_DID_F1A2
(
void
);
void
UDS_22Service_DID_F1A2
(
void
);
void
UDS_22Service_DID_F10
0
(
void
);
void
UDS_22Service_DID_F10
2
(
void
);
void
UDS_22Service_DID_F101
(
void
);
void
UDS_22Service_DID_F101
(
void
);
void
UDS_22Service_DID_F110
(
void
);
void
UDS_22Service_DID_F110
(
void
);
void
UDS_22Service_DID_7101
(
void
);
void
UDS_22Service_DID_7101
(
void
);
...
...
le19源码/Source/Application/UDS/APP/UDS_2EService/UDS_2EService_Filter.c
View file @
c03c402b
#include "UDS_2EService_Filter.h"
#include "UDS_2EService_Filter.h"
const
uint16_t
S2EDLC
[]
=
{
4u
,
17u
,
4u
,
8u
,
16u
,
8u
,
64u
,
64u
,
64u
,
64u
,
8u
,
8u
,
/* 16u,*/
3u
,
3u
,
1u
};
const
uint16_t
S2EDLC
[]
=
{
4u
,
17u
,
4u
,
8u
,
16u
,
8u
,
64u
,
64u
,
64u
,
64u
,
8u
,
8u
,
24u
,
3u
,
3u
,
1u
};
const
uint16_t
S2EDID
[]
=
{
0xF199u
,
0xF190u
,
0xF1A2u
,
0xF112u
,
0xF198u
,
0xF197u
,
0xDFECu
,
0xDFEDu
,
0xDFEEu
,
0xDFEFu
,
0xF101u
,
0xF110u
,
/*0xF100,*/
0x7101
,
0x7102
,
0x7103
};
const
uint16_t
S2EDID
[]
=
{
0xF199u
,
0xF190u
,
0xF1A2u
,
0xF112u
,
0xF198u
,
0xF197u
,
0xDFECu
,
0xDFEDu
,
0xDFEEu
,
0xDFEFu
,
0xF101u
,
0xF110u
,
0xF102
,
0x7101
,
0x7102
,
0x7103
};
/**
/**
*2E服务是否支持功能寻址
*2E服务是否支持功能寻址
...
...
le19源码/Source/Application/UDS/APP/UDS_2EService/UDS_2EService_Main.c
View file @
c03c402b
...
@@ -93,9 +93,6 @@ void UDS_2EService_DID(void)
...
@@ -93,9 +93,6 @@ void UDS_2EService_DID(void)
case
0xF110
:
case
0xF110
:
UDS_2EService_DID_F110
(
);
/*网络拓扑配置*/
UDS_2EService_DID_F110
(
);
/*网络拓扑配置*/
break
;
break
;
case
0xF100
:
UDS_2EService_DID_F100
(
);
/*首保里程*/
break
;
case
0x7101
:
case
0x7101
:
UDS_2EService_DID_7101
(
);
UDS_2EService_DID_7101
(
);
UDS_FLAG
=
1
;
/*首保里程*/
UDS_FLAG
=
1
;
/*首保里程*/
...
@@ -111,6 +108,9 @@ void UDS_2EService_DID(void)
...
@@ -111,6 +108,9 @@ void UDS_2EService_DID(void)
case
0xF1A2
:
case
0xF1A2
:
UDS_2EService_DID_F1A2
(
);
UDS_2EService_DID_F1A2
(
);
break
;
break
;
case
0xF102
:
UDS_2EService_DID_F102
(
);
break
;
default:
default:
break
;
break
;
}
}
...
@@ -367,12 +367,15 @@ void UDS_2EService_DID_F101(void)
...
@@ -367,12 +367,15 @@ void UDS_2EService_DID_F101(void)
UDS_Service_Response
(
0x2Eu
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
enResult
);
UDS_Service_Response
(
0x2Eu
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
enResult
);
}
}
}
}
/**
void
UDS_2EService_DID_F100
(
void
)
*2E服务DIDF102
*功能配置字数据
*/
void
UDS_2EService_DID_F102
(
void
)
{
{
uint8_t
enResult
=
WFLASH_RW_PASS
;
uint8_t
enResult
=
WFLASH_RW_PASS
;
EOL_SetF10
1
(
DiagMSG
.
msgData
.
DidDetail
.
Data
,
16
u
);
EOL_SetF10
2
(
DiagMSG
.
msgData
.
DidDetail
.
Data
,
24
u
);
memcpy
(
Ser2EToDFlashInfo
.
DID_F10
0
,
DiagMSG
.
msgData
.
DidDetail
.
Data
,
sizeof
(
Ser2EToDFlashInfo
.
DID_F100
));
memcpy
(
Ser2EToDFlashInfo
.
DID_F10
2
,
DiagMSG
.
msgData
.
DidDetail
.
Data
,
sizeof
(
Ser2EToDFlashInfo
.
DID_F102
));
enResult
=
write2EData
(
Write2EData
);
enResult
=
write2EData
(
Write2EData
);
if
(
enResult
==
WFLASH_RW_PASS
)
if
(
enResult
==
WFLASH_RW_PASS
)
{
{
...
@@ -384,6 +387,7 @@ void UDS_2EService_DID_F100(void)
...
@@ -384,6 +387,7 @@ void UDS_2EService_DID_F100(void)
UDS_Service_Response
(
0x2Eu
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
enResult
);
UDS_Service_Response
(
0x2Eu
,
NEGATIVE_RSP
,
DIAG_ID_Tx
,
1u
,
(
uint8_t
*
)
&
enResult
);
}
}
}
}
void
UDS_2EService_DID_7101
(
void
)
void
UDS_2EService_DID_7101
(
void
)
{
{
uint8_t
enResult
=
WFLASH_RW_PASS
;
uint8_t
enResult
=
WFLASH_RW_PASS
;
...
...
le19源码/Source/Application/UDS/APP/UDS_2EService/UDS_2EService_Main.h
View file @
c03c402b
...
@@ -19,7 +19,7 @@ void UDS_2EService_DID_F199(void);
...
@@ -19,7 +19,7 @@ void UDS_2EService_DID_F199(void);
void
UDS_2EService_DID_F1A2
(
void
);
void
UDS_2EService_DID_F1A2
(
void
);
void
UDS_2EService_DID_F110
(
void
);
void
UDS_2EService_DID_F110
(
void
);
void
UDS_2EService_DID_F101
(
void
);
void
UDS_2EService_DID_F101
(
void
);
void
UDS_2EService_DID_F10
0
(
void
);
void
UDS_2EService_DID_F10
2
(
void
);
void
UDS_2EService_DID_7101
(
void
);
void
UDS_2EService_DID_7101
(
void
);
void
UDS_2EService_DID_7102
(
void
);
void
UDS_2EService_DID_7102
(
void
);
void
UDS_2EService_DID_7103
(
void
);
void
UDS_2EService_DID_7103
(
void
);
...
...
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