Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
58afa751
Commit
58afa751
authored
Feb 27, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改混动车型IGN ON状态判断条件
parent
24d341c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
34 deletions
+93
-34
CommonInterface.c
...ware/Source/Application/CommonInterface/CommonInterface.c
+63
-26
System_Monitor_User.c
...are/Source/Component/System_Monitor/System_Monitor_User.c
+30
-8
No files found.
Firmware/Source/Application/CommonInterface/CommonInterface.c
View file @
58afa751
...
@@ -51,26 +51,67 @@ void Common_Set_IG_Sts_Valid(DataValid_t Val)
...
@@ -51,26 +51,67 @@ void Common_Set_IG_Sts_Valid(DataValid_t Val)
void
Common_Input_Para
(
void
)
void
Common_Input_Para
(
void
)
{
{
if
(
SYS_OPR_STAT_IGN_ON
)
#if (PART_NUMBER == RMR42E_60)
{
if
(
SYS_OPR_STAT_IGN_ON
)
if
((
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
{
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
if
((
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
System_Indicator_CANFlag
!=
1
))
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
{
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
PowerIgnOffTimeLine
=
0ul
;
PowerIgnOffTimeLine
=
0ul
;
if
(
PowerIgnOnTimeLine
<
0x7ffffffful
&&
(
Get_CAN_Power_State
()
!=
PKEY_ON
))
if
(
PowerIgnOnTimeLine
<
0x7ffffffful
&&
(
Get_CAN_Power_State
()
!=
PKEY_ON
))
{
PowerIgnOnTimeLine
+=
2u
;
}
}
else
if
(
System_Indicator_CANFlag
==
1
)
{
{
PowerIgnOnTimeLine
+=
2u
;
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
PowerIgnOffTimeLine
=
0ul
;
PowerIgnOnTimeLine
=
0ul
;
}
else
{
PowerIgnOnTimeLine
=
0ul
;
if
(
PowerIgnOffTimeLine
<
0x7ffffffful
)
{
PowerIgnOffTimeLine
+=
2u
;
}
Common_Set_IG_Sts
(
COMMON_POWER_OFF
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
}
if
((
Get_CAN_Power_State
()
==
PKEY_ON
)
||
(
Power_Stay_Flag
==
1
))
{
PowerIgnOnTimeLine
=
0ul
;
Power_Stay_Flag
=
0
;
}
}
else
{
PowerIgnOnTimeLine
=
0ul
;
if
(
PowerIgnOffTimeLine
<
0x7ffffffful
)
{
PowerIgnOffTimeLine
+=
2u
;
}
}
Common_Set_IG_Sts
(
COMMON_POWER_OFF
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
}
}
else
if
(
System_Indicator_CANFlag
==
1
)
#else
if
(
SYS_OPR_STAT_IGN_ON
)
{
{
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
PowerIgnOffTimeLine
=
0ul
;
PowerIgnOffTimeLine
=
0ul
;
PowerIgnOnTimeLine
=
0ul
;
// g_PowerWakeupLineLow = 0UL;
if
(
PowerIgnOnTimeLine
<
0x7ffffffful
)
{
PowerIgnOnTimeLine
+=
2u
;
}
}
}
else
else
{
{
...
@@ -79,25 +120,21 @@ void Common_Input_Para(void)
...
@@ -79,25 +120,21 @@ void Common_Input_Para(void)
{
{
PowerIgnOffTimeLine
+=
2u
;
PowerIgnOffTimeLine
+=
2u
;
}
}
// if ((RTE_GPIO_Get_Level(WAKEUP_KL15_IN) == 0U) && (g_PowerWakeupLineLow < 0x7ffffffful))
// {
// g_PowerWakeupLineLow += 2UL;
// }
// else if(RTE_GPIO_Get_Level(WAKEUP_KL15_IN) == 1U)
// {
// g_PowerWakeupLineLow = 0UL;
// }
Common_Set_IG_Sts
(
COMMON_POWER_OFF
);
Common_Set_IG_Sts
(
COMMON_POWER_OFF
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
}
}
if
((
Get_CAN_Power_State
()
==
PKEY_ON
)
||
(
Power_Stay_Flag
==
1
))
#endif
{
PowerIgnOnTimeLine
=
0ul
;
Power_Stay_Flag
=
0
;
}
}
else
{
PowerIgnOnTimeLine
=
0ul
;
if
(
PowerIgnOffTimeLine
<
0x7ffffffful
)
{
PowerIgnOffTimeLine
+=
2u
;
}
Common_Set_IG_Sts
(
COMMON_POWER_OFF
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
}
}
}
uint32_t
Common_GetIgnOnTime
(
void
)
uint32_t
Common_GetIgnOnTime
(
void
)
...
...
Firmware/Source/Component/System_Monitor/System_Monitor_User.c
View file @
58afa751
...
@@ -104,14 +104,36 @@ monitorlib_uint8_t Sys_Read_KL15_Valid(void)
...
@@ -104,14 +104,36 @@ monitorlib_uint8_t Sys_Read_KL15_Valid(void)
monitorlib_uint8_t
System_LINE_KL15
(
void
)
monitorlib_uint8_t
System_LINE_KL15
(
void
)
{
{
static
monitorlib_uint8_t
u8KL15
=
0
;
static
monitorlib_uint8_t
u8KL15
=
0
;
if
((
Get_CAN_Num_MMCU_PowerMode
()
!=
0x0
)
||
(
System_Indicator_CANFlag
==
1
)
)
{
#if (PART_NUMBER == RMR42E_60)
u8KL15
=
1u
;
if
((
Get_CAN_Num_MMCU_PowerMode
()
!=
0x0
)
||
(
System_Indicator_CANFlag
==
1
)
)
}
{
else
u8KL15
=
1u
;
{
}
u8KL15
=
0u
;
else
}
{
u8KL15
=
0u
;
}
#else
if
((
Sys_Read_KL15_Voltage
()
>=
5500u
)
&&
(
Sys_Read_KL30_Voltage
()
>=
5500u
))
{
if
((
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH0
(
CAN_CH0_ID_CAN_0x220_Msg
))
==
CAN_SIG_NORMAL
)
&&
(
Get_CAN_CH0_ID_220_Sig_VCU_KeySts
()
==
1U
))
{
u8KL15
=
1U
;
}
else
{
u8KL15
=
0U
;
}
}
else
{
u8KL15
=
0U
;
}
#endif
return
u8KL15
;
return
u8KL15
;
}
}
...
...
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