Popups.c 38.9 KB
Newer Older
hu's avatar
hu committed
1
#include "Popups.h"
hu's avatar
hu committed
2 3 4 5
#include "Popup_List.h"
#include "Popup_Message_List.h"
#include "Sound_List.h"

hu's avatar
hu committed
6
#include "GUI.h"
hu's avatar
hu committed
7
#include "Common_Interface.h"
hu's avatar
hu committed
8 9 10 11 12 13 14
#include "Sound_Scheduler.h"
#include "Gauges.h"
#include "GaugesInterface.h"
#include "CAN_Communication_Matrix.h"

#include "Data_Gear.h"
#include "Line_in.h"
hu's avatar
hu committed
15
#include "Telltales_user.h"
hu's avatar
hu committed
16 17 18
#include "Data_CoolantTemperature.h"
#include "Data_Voltmeter.h"
#include "Data_Fuel_User.h"
hu's avatar
hu committed
19
#include "FuelConfig.h"
hu's avatar
hu committed
20 21
#include "Service_TPMS.h"

hu's avatar
hu committed
22 23
void Popups_Management_Service(void)
{
24
    Popups_Polling();
hu's avatar
hu committed
25 26 27
}

void Popups_Polling(void)
hu's avatar
hu committed
28
{
29
    uint16_t i = 0x00u;
hu's avatar
hu committed
30
    COMMON_PowerStatus_t u8IG_st;
31 32
    uint32_t u32IG_OFF_Timer = 0x00u;
    uint32_t u32IG_ON_Timer = 0x00u;
hu's avatar
hu committed
33 34 35 36
    uint8_t Can_BusOFF = 0x00u;
    uint8_t variable_1 = 0x00u;
    uint8_t variable_2 = 0x00u;
    uint8_t variable_3 = 0x00u;
37
    uint32_t variable_4 = 0x00u;
hu's avatar
hu committed
38
    uint16_t variable_5 = 0x00u;
39 40
    uint16_t V_Speed = 0u;
    uint16_t E_Speed = 0u;
hu's avatar
hu committed
41

42 43 44
    u32IG_ON_Timer = Common_GetIgnOnTime();
    u32IG_OFF_Timer = Common_GetIgnOffTime();
    u8IG_st = Common_Get_IG_Sts();
hu's avatar
hu committed
45

46 47
    V_Speed = Common_Get_Disp_V_Speed(); /*车速*/
    E_Speed = Common_Get_Act_E_Speed();  /*转速*/
hu's avatar
hu committed
48

hu's avatar
hu committed
49
    /*CAN 通讯异常*/
50
    for (i = 0u; i < ID_TOTAL_MAX; i++)
hu's avatar
hu committed
51
    {
52
        if (CAN_MSG_Status(i) == CAN_SIG_LOST)
hu's avatar
hu committed
53 54 55
        {
            Can_BusOFF++;
        }
hu's avatar
hu committed
56
    }
hu's avatar
hu committed
57

58
    if ((u32IG_ON_Timer <= PopupStart) && (u32IG_ON_Timer >= 2u))
hu's avatar
hu committed
59 60 61 62
    {
    }
    else
    {
63
        if (u8IG_st == COMMON_POWER_ON)
hu's avatar
hu committed
64 65
        {
            /*----第一组---------------------------------------------------------------------*/
hu's avatar
hu committed
66
            if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
67
            {
hu's avatar
hu committed
68
                /*0.--1--紧急警报-刹车*/
hu's avatar
hu committed
69 70
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
71

hu's avatar
hu committed
72 73 74 75 76 77 78
                if ((variable_1 == 0x07u) || (variable_2 == 0x07u))
                {
                    Popup_Request(POPUP1_BRAKE_BLACK);
                    Popup_Clear(POPUP1_BRAKE_BRAKE);
                    Popup_Clear(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
79
                    Popup_Clear(POPUT1_ASR_OPERATE);
80
                    return;
hu's avatar
hu committed
81 82 83 84 85
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BLACK);
                }
hu's avatar
hu committed
86

hu's avatar
hu committed
87
                /*1.--1--紧急警报-紧急制动*/
hu's avatar
hu committed
88
                variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
89

hu's avatar
hu committed
90 91 92 93 94 95
                if (variable_1 == 0x07u)
                {
                    Popup_Request(POPUP1_BRAKE_BRAKE);
                    Popup_Clear(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
96
                    Popup_Clear(POPUT1_ASR_OPERATE);
97
                    return;
hu's avatar
hu committed
98 99 100 101 102
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
hu's avatar
hu committed
103

hu's avatar
hu committed
104
                /*2.--2--车间距警报-刹车(红字)*/
hu's avatar
hu committed
105 106
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
107

hu's avatar
hu committed
108 109 110 111 112
                if ((variable_1 == 0x06u) || (variable_2 == 0x06u))
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
113
                    Popup_Clear(POPUT1_ASR_OPERATE);
114
                    return;
hu's avatar
hu committed
115 116 117 118 119
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_R);
                }
hu's avatar
hu committed
120

hu's avatar
hu committed
121
                /*3.--2--车间距警报-碰撞报警*/
hu's avatar
hu committed
122
                variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
123

hu's avatar
hu committed
124 125 126 127
                if (variable_1 == 0x06u)
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
128
                    Popup_Clear(POPUT1_ASR_OPERATE);
129
                    return;
hu's avatar
hu committed
130 131 132 133 134
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_COLLISION);
                }
hu's avatar
hu committed
135

hu's avatar
hu committed
136
                /*4.--3--车间距警报-刹车(黄字)*/
hu's avatar
hu committed
137 138 139 140 141 142
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();

                if ((variable_1 == 0x05u) || (variable_2 == 0x05u))
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_Y);
143
                    Popup_Clear(POPUT1_ASR_OPERATE);
144
                    return;
hu's avatar
hu committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_Y);
                }
            }
            else
            {
                Popup_Clear(POPUP1_BRAKE_BLACK);
                Popup_Clear(POPUP1_BRAKE_BRAKE);
                Popup_Clear(POPUP1_BRAKE_SPACING_R);
                Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                Popup_Clear(POPUP1_BRAKE_SPACING_Y);
            }

hu's avatar
hu committed
160
            /*5.--4--ASR工作*/
hu's avatar
hu committed
161 162
            variable_1 = Get_ID_18F0010B_Sig_ATC_or_ASR_Lamp_State();

hu's avatar
hu committed
163
            if ((variable_1 == 0x01u) && (K_Line_Set.K_Line_LID21 == 0x01u))
hu's avatar
hu committed
164 165 166 167 168 169 170
            {
                Popup_Request(POPUT1_ASR_OPERATE);
            }
            else
            {
                Popup_Delete(POPUT1_ASR_OPERATE);
            }
hu's avatar
hu committed
171

172
            /*----第二组---------------------------------------------------------------------*/
hu's avatar
hu committed
173
            /*6.--1--PTO紧急警报-刹车*/
174
            variable_1 = Get_ID_18FED900_Sig_PTO_SW();
175
            variable_2 = Line_In_Get_Status(LINE_IN_PTO); // B01
176

177
            if (((variable_1 == 0x01u) || (variable_2 == LINE_IN_LOGIC_VALID)) && (V_Speed >= 66u))
178 179 180 181 182 183 184 185
            {
                Popup_Request(POPUT2_PTO);
            }
            else
            {
                Popup_Delete(POPUT2_PTO);
            }

hu's avatar
hu committed
186
            /*7.--2--忘记松手刹车    LINE_IN_Get_PARK_BRAKE 驻车制动*/
187 188
            variable_1 = Line_In_Get_Status(LINE_IN_PARK_BRAKE);

189
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed >= 66u)) // 6.67Km
190 191 192 193 194 195 196 197
            {
                Popup_Request(POPUP2_PARKING_BRAKE);
            }
            else
            {
                Popup_Delete(POPUP2_PARKING_BRAKE);
            }

hu's avatar
hu committed
198
            /*8.--3--遥控调整车辆高度(有车速)*/
199 200
            variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);

201
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed > 5u)) // 0.5Km
202 203 204 205 206 207 208 209 210
            {
                Popup_Request(POPUP2_AIRMATIC_HIGHT);
            }
            else
            {
                Popup_Delete(POPUP2_AIRMATIC_HIGHT);
            }

            /*----第三组---------------------------------------------------------------------*/
hu's avatar
hu committed
211
            /*9.--1--自动巡航模式*/
212
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
213
            variable_2 = Common_Get_Cruise_TimeSta();
214

hu's avatar
hu committed
215
            if ((variable_1 == 0x01u) && (variable_2 == 1u))
216 217 218 219 220 221 222 223
            {
                Popup_Request(POPUP3_CRUISE);
            }
            else
            {
                Popup_Delete(POPUP3_CRUISE);
            }

hu's avatar
hu committed
224
            /*10.--2--可变SLD 模式*/
225
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
226
            variable_2 = Common_Get_Cruise_SLD_TimeSta();
227

hu's avatar
hu committed
228
            if ((variable_1 == 0x03u) && (variable_2 == 1u))
229 230 231 232 233 234 235
            {
                Popup_Request(POPUP3_VARIABLE_SLD);
            }
            else
            {
                Popup_Delete(POPUP3_VARIABLE_SLD);
            }
hu's avatar
hu committed
236

237 238
            /*----第四组---------------------------------------------------------------------*/
            if (E_Speed < 350u)
hu's avatar
hu committed
239
            {
hu's avatar
hu committed
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
                if (K_Line_Set.K_Line_LID2B == 0x00u)
                {
                    /*11.--1--充电异常(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
                    variable_2 = Common_VolWarning_Sta();

                    if ((variable_1 == LINE_IN_LOGIC_VALID) || (variable_2 < 4u))
                    {
                        Popup_Request(POPUT4_ABNORMAL_CHARGE);
                    }
                    else
                    {
                        Popup_Delete(POPUT4_ABNORMAL_CHARGE);
                    }

                    /*12.--2--油压(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
                    variable_2 = Common_VolWarning_Sta();

                    if ((variable_1 == LINE_IN_LOGIC_VALID) || (variable_2 < 4u))
                    {
                        Popup_Request(POPUP4_OIL_PRESSURE);
                    }
                    else
                    {
                        Popup_Delete(POPUP4_OIL_PRESSURE);
                    }
267 268 269
                }
                else
                {
hu's avatar
hu committed
270 271
                    Popup_Clear(POPUT4_ABNORMAL_CHARGE);
                    Popup_Clear(POPUP4_OIL_PRESSURE);
272 273
                }

hu's avatar
hu committed
274
                /*13.--3--AMT初始化异常           DM1 SPN4220 Key On時*/
275 276 277 278 279 280 281 282 283 284 285
                variable_4 = Get_ID_18FECA03_Sig_SPN();

                if ((variable_4 == 4220u) && (K_Line_Set.K_Line_LID41 == 0x13u))
                {
                    Popup_Request(POPUP4_AMT_INIT_EXCE);
                }
                else
                {
                    Popup_Delete(POPUP4_AMT_INIT_EXCE);
                }

hu's avatar
hu committed
286
                /*14.--4--尿素品质异常(系统检测)*/
287 288 289 290 291 292 293 294 295
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_QUALITY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_QUALITY);
                }

hu's avatar
hu committed
296
                /*15.--5--尿素喷射异常(系统检测)*/
297 298 299 300 301 302 303 304 305
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SPRAY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SPRAY);
                }

hu's avatar
hu committed
306
                /*16.--6--尿素水补给(系统检测)*/
307 308 309 310 311 312 313 314 315
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SUPPLY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SUPPLY);
                }

hu's avatar
hu committed
316
                /*17.--7--AMT初始化结束               DM1 SPN4021  Key On時*/
317 318 319 320 321 322 323 324 325 326 327
                variable_4 = Get_ID_18FECA03_Sig_SPN();

                if ((variable_4 == 4021u) && (K_Line_Set.K_Line_LID41 == 0x13u))
                {
                    Popup_Request(POPUP4_START_ENG);
                }
                else
                {
                    Popup_Delete(POPUP4_START_ENG);
                }

hu's avatar
hu committed
328
                /*18.--8--DPD自动再生*/
329 330 331 332 333 334 335 336
                if (0)
                {
                    Popup_Request(POPUP4_DPD_AUTO);
                }
                else
                {
                    Popup_Delete(POPUP4_DPD_AUTO);
                }
hu's avatar
hu committed
337 338 339
            }
            else
            {
340 341 342 343 344 345 346 347
                Popup_Clear(POPUT4_ABNORMAL_CHARGE);
                Popup_Clear(POPUP4_OIL_PRESSURE);
                Popup_Clear(POPUP4_AMT_INIT_EXCE);
                Popup_Clear(POPUP4_ADBLUE_QUALITY);
                Popup_Clear(POPUP4_ADBLUE_SPRAY);
                Popup_Clear(POPUP4_ADBLUE_SUPPLY);
                Popup_Clear(POPUP4_START_ENG);
                Popup_Clear(POPUP4_DPD_AUTO);
hu's avatar
hu committed
348 349
            }

350
            /*----第五组---------------------------------------------------------------------*/
hu's avatar
hu committed
351
            /*19.--1--过热(过热,请在安全的场所停车)有车速     LID $43 :0x82*/
352 353
            variable_1 = Coolant_Get_Valid();
            variable_2 = Coolant_Get_CurSeg();
hu's avatar
hu committed
354

355
            if (K_Line_Set.K_Line_LID43 == 0x82)
hu's avatar
hu committed
356
            {
357 358 359 360 361 362 363 364
                if ((variable_1 == 1u) && (variable_2 >= 12u))
                {
                    Popup_Request(POPUP5_OVER_HEAT);
                }
                else if (variable_2 <= 9u)
                {
                    Popup_Delete(POPUP5_OVER_HEAT);
                }
hu's avatar
hu committed
365 366 367
            }
            else
            {
368
                Popup_Clear(POPUP5_OVER_HEAT);
hu's avatar
hu committed
369 370
            }

371 372
            /*20.冷却水(冷却液不足) B32 GND*/
            variable_1 = Line_In_Get_Status(LINE_IN_LOW_COOLANT);
hu's avatar
hu committed
373

374 375 376 377 378 379 380 381
            if (variable_1 == LINE_IN_LOGIC_VALID)
            {
                Popup_Request(POPUP5_LOW_COOLANT);
            }
            else
            {
                Popup_Delete(POPUP5_LOW_COOLANT);
            }
hu's avatar
hu committed
382

hu's avatar
hu committed
383
            /*21.油压(机油)请在安全场所停车 发动机启动(350r/min)后、350r/min持续5秒以上时,A32信号(10ms周期监测),连续20次检出Lo时。*/
384
            variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
hu's avatar
hu committed
385

386 387 388 389 390 391 392 393
            if ((E_Speed > 350u) && (variable_1 == LINE_IN_LOGIC_VALID))
            {
                Popup_Request(POPUP5_ENGINE_OIL_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP5_ENGINE_OIL_PRESSURE);
            }
hu's avatar
hu committed
394

395 396
            /*22.仪表故障-请与五十铃公司联系*/
            Popup_Clear(POPUP5_METER_FAILURE);
hu's avatar
hu committed
397

398 399 400 401 402 403 404 405 406
            /*23.通信系统-请与五十铃公司联系*/
            if (Can_BusOFF == ID_TOTAL_MAX)
            {
                Popup_Request(POPUP5_CAN_ERROR);
            }
            else
            {
                Popup_Delete(POPUP5_CAN_ERROR);
            }
hu's avatar
hu committed
407

408 409
            /*24.车速限制-图1   ID:18FF2300 Byte:7 Bit:4,3   10(B)*/
            variable_1 = Get_ID_18FF2300_Sig_Engine_Derate();
hu's avatar
hu committed
410

411 412 413 414 415 416 417 418
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_SPEED_LIMIT);
            }
            else
            {
                Popup_Delete(POPUP5_SPEED_LIMIT);
            }
hu's avatar
hu committed
419

420 421 422 423 424 425 426 427 428
            /*25.扭矩限制-图2 ID:18FF2300 Byte:7 Bit:4,3   01(B)*/
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_TORQUE_REDUCTION);
            }
            else
            {
                Popup_Delete(POPUP5_TORQUE_REDUCTION);
            }
hu's avatar
hu committed
429

430 431
            /*26.尿素品质异常-图1 ID:18FF2300 Byte:3 Bit:6,5  01(B)*/
            variable_1 = Get_ID_18FF2300_Sig_Amber3();
hu's avatar
hu committed
432

433 434 435 436 437 438 439 440
            if (variable_1 == 0x01u)
            {
                Popup_Request(POPUP5_INCORRECT_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_INCORRECT_ADBLUE);
            }
hu's avatar
hu committed
441

442 443
            /*27.临界排放故障-图1 ID:18FF2300 Byte:7 Bit:6,5  01(B)*/
            variable_1 = Get_ID_18FF2300_Sig_EXH_System();
hu's avatar
hu committed
444

445 446 447 448 449 450 451 452
            if (variable_1 == 1)
            {
                Popup_Request(POPUP5_CRITICAL_EMISSION);
            }
            else
            {
                Popup_Delete(POPUP5_CRITICAL_EMISSION);
            }
hu's avatar
hu committed
453

hu's avatar
hu committed
454
            if (K_Line_Set.K_Line_LID41 = 0x13u)
455
            {
hu's avatar
hu committed
456 457
                /*28.AMT异常-图1 ID:18FF8503 Byte:1 Bit:4,3 01(B) LID $41 : 0x13          PGN:65413  TC2DIS*/
                variable_1 = Get_ID_18FF8503_Sig_Spanner_Warning();
hu's avatar
hu committed
458

hu's avatar
hu committed
459 460 461 462 463 464 465 466
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_SPANNER_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_SPANNER_WARNING);
                }
hu's avatar
hu committed
467

hu's avatar
hu committed
468 469
                /*29.AMT异常(气压低下)-图1 ID:18FF8503 Byte:2 Bit:6,5 01(B) LID $41 : 0x13  PGN:65413  TC2DIS*/
                variable_1 = Get_ID_18FF2300_Sig_Glow_Lamp();
hu's avatar
hu committed
470

hu's avatar
hu committed
471 472 473 474 475 476 477 478
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_LOW_AIR_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_LOW_AIR_WARNING);
                }
479 480 481
            }
            else
            {
hu's avatar
hu committed
482 483
                Popup_Clear(POPUP5_AMT_SPANNER_WARNING);
                Popup_Clear(POPUP5_AMT_LOW_AIR_WARNING);
484
            }
hu's avatar
hu committed
485

hu's avatar
hu committed
486 487
            /*30.胎压 低圧警報-轮胎漏气警告 ID:18011733  Byte:5 Bit:5 01(B) LID $3E : 0x01*/
            variable_1 = Get_TPMSFast_air_leakage();
hu's avatar
hu committed
488

hu's avatar
hu committed
489
            if ((K_Line_Set.K_Line_LID3E = 0x01u) && (variable_1 == 0x01u))
490
            {
hu's avatar
hu committed
491
                Popup_Request(POPUP5_LOW_PRESSURE_ALARM);
492 493 494
            }
            else
            {
hu's avatar
hu committed
495
                Popup_Delete(POPUP5_LOW_PRESSURE_ALARM);
496
            }
hu's avatar
hu committed
497

hu's avatar
hu committed
498
            /*31.尿素补给-补充尿素溶液-图1 ID:18FF2300 Byte:3 Bit:4,3 01(B)*/
499
            variable_1 = Get_ID_18FF2300_Sig_Amber2();
hu's avatar
hu committed
500

hu's avatar
hu committed
501
            if (variable_1 == 0x01u)
502 503 504 505 506 507 508
            {
                Popup_Request(POPUP5_APP_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_APP_ADBLUE);
            }
hu's avatar
hu committed
509

hu's avatar
hu committed
510 511
            /*32.尿素余量少-无车速-图2 ID:18FF2300 Byte:3 Bit:4,3 10(B)*/
            variable_1 = Get_ID_18FF2300_Sig_Amber2();
hu's avatar
hu committed
512

hu's avatar
hu committed
513
            if (variable_1 == 0x02u)
514 515 516 517 518 519 520
            {
                Popup_Request(POPUP5_ADBLUE_LEVEL_LOW);
            }
            else
            {
                Popup_Delete(POPUP5_ADBLUE_LEVEL_LOW);
            }
hu's avatar
hu committed
521

hu's avatar
hu committed
522 523 524 525
            /*33. 低圧警報(低下)ID:18011733  Byte:5 Bit:8 01(B) LID $3E : 0x01*/
            variable_1 = Get_TPMSLow_Presure_Sta();

            if ((K_Line_Set.K_Line_LID3E = 0x01u) && (variable_1 == 0x01u))
526
            {
hu's avatar
hu committed
527
                Popup_Request(POPUP5_LOW_FAILURE);
528 529 530
            }
            else
            {
hu's avatar
hu committed
531
                Popup_Delete(POPUP5_LOW_FAILURE);
532
            }
hu's avatar
hu committed
533

hu's avatar
hu committed
534
            /*34.摄像头有污染-请与五十铃公司联系 ID:18FE5BE8 Byte7  Bit5-8 0010(B) 0011(B) LID $27: 0x01*/
hu's avatar
hu committed
535
            variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
hu's avatar
hu committed
536

hu's avatar
hu committed
537
            if ((K_Line_Set.K_Line_LID27 = 0x01u) && ((variable_1 == 0x02u) || (variable_2 == 0x03u)))
538 539 540 541 542 543 544
            {
                Popup_Request(POPUP5_CAMERA_POLLUTION);
            }
            else
            {
                Popup_Delete(POPUP5_CAMERA_POLLUTION);
            }
hu's avatar
hu committed
545

hu's avatar
hu committed
546
            /*35.尿素喷射异常(停止)-图1 ID:18FF2300 Byte:3 Bit:2,1 01(B)*/
547
            variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
548

hu's avatar
hu committed
549
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
550
            {
hu's avatar
hu committed
551
                Popup_Request(POPUP5_AdBlue_INJ_SYSTEM);
552 553 554
            }
            else
            {
hu's avatar
hu committed
555
                Popup_Delete(POPUP5_AdBlue_INJ_SYSTEM);
556
            }
hu's avatar
hu committed
557

hu's avatar
hu committed
558 559
            /*36.尿素喷射异常(消耗量)-图1  ID:18FF2300 Byte:3 Bit:2,1 10(B)*/
            variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
560

hu's avatar
hu committed
561
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
562
            {
hu's avatar
hu committed
563
                Popup_Request(POPUP5_AdBlue_DOS_MALFUNC);
564 565 566
            }
            else
            {
hu's avatar
hu committed
567
                Popup_Delete(POPUP5_AdBlue_DOS_MALFUNC);
568
            }
hu's avatar
hu committed
569

hu's avatar
hu committed
570 571 572 573
            /*37.高圧警報-轮胎高压警告 ID:18011733  Byte:5 Bit:7  01(B) LID $3E : 0x01*/
            variable_1 = Get_TPMSHigh_Presure_Sta();

            if ((K_Line_Set.K_Line_LID3E = 0x01u) && (variable_1 == 0x01u))
574 575 576 577 578 579 580
            {
                Popup_Request(POPUP5_TPMS_HIGH_AIR);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_AIR);
            }
hu's avatar
hu committed
581

hu's avatar
hu committed
582 583 584
            /*38.高温警報-轮胎高温警告 ID:18011733  Byte:5 Bit:6  01(B) LID $3E : 0x01*/
            variable_1 = Get_TPMSHigh_Temperature_Sta();

hu's avatar
hu committed
585
            if ((K_Line_Set.K_Line_LID3E = 0x01u) && (variable_1 == 0x01u))
586 587 588 589 590 591 592
            {
                Popup_Request(POPUP5_TPMS_HIGH_TEMP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_TEMP);
            }
hu's avatar
hu committed
593

hu's avatar
hu committed
594
            /*39.DPD手动再生要求1-DPD需要再生 18FD7C00 Byte:1 Bit:3-1  001:On – solid*/
595
            variable_1 = Get_ID_18FD7C00_Sig_DPF_Lamp_Status_Amber();
hu's avatar
hu committed
596

hu's avatar
hu committed
597
            if (variable_1 == 0x01u)
598 599 600 601 602 603 604
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH1);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH1);
            }
hu's avatar
hu committed
605

hu's avatar
hu committed
606 607
            /*40.DPD手动再生要求2-DPD需要再生 18FD7C00 Byte:1 Bit:3-1     100:On – fast blink (1 HZ)*/
            variable_1 = Get_ID_18FD7C00_Sig_DPF_Lamp_Status_Amber();
hu's avatar
hu committed
608

hu's avatar
hu committed
609
            if (variable_1 == 0x04u)
610 611 612 613 614 615 616
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH2);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH2);
            }
hu's avatar
hu committed
617

hu's avatar
hu committed
618 619
            /*41.TPMS故障-轮胎监控失败  ID:18011733  Byte:6 Bit:ALL 0111(B) or 1000(B) or 1001(B)*/
            variable_1 = Get_TPMSSensor_fault_Sta();
hu's avatar
hu committed
620
            variable_2 = CAN_MSG_Status(ID_CanMsg18011733_Msg_Count);
hu's avatar
hu committed
621

hu's avatar
hu committed
622
            if ((K_Line_Set.K_Line_LID3E = 0x01u) && ((variable_1 == 0x01u) || (variable_2 == CAN_SIG_LOST)))
623 624 625 626 627 628 629
            {
                Popup_Request(POPUP5_TPMS_FAILURE);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_FAILURE);
            }
hu's avatar
hu committed
630

hu's avatar
hu committed
631 632 633
            /*42.TPMS電池低下-轮胎监控传感器电压下降  ID:18011733  Byte:5 Bit:4  01(B)  LID $3E : 0x01*/
            variable_1 = Get_TPMSLow_Voltage_Sta();

hu's avatar
hu committed
634
            if ((K_Line_Set.K_Line_LID3E = 0x01u) && (variable_1 == 1))
635 636 637 638 639 640 641
            {
                Popup_Request(POPUP5_TPMS_MONITOR_DROP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_MONITOR_DROP);
            }
hu's avatar
hu committed
642

hu's avatar
hu committed
643 644
            /*----第六组---------------------------------------------------------------------*/
            if (V_Speed < 66u)
645
            {
hu's avatar
hu committed
646 647
                /*43.遥控车辆高度调整中(无车速) B30 28V*/
                variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);
hu's avatar
hu committed
648

hu's avatar
hu committed
649
                if (variable_1 == 0x01u)
hu's avatar
hu committed
650 651 652 653 654 655 656
                {
                    Popup_Request(POPUP6_HEIGHT_CONTROL);
                }
                else
                {
                    Popup_Delete(POPUP6_HEIGHT_CONTROL);
                }
hu's avatar
hu committed
657

hu's avatar
hu committed
658 659 660 661
                /*44.PTO(停车中)(无车速)  /ID:18FED900  Byte:2 Bit:8,7  01(B)   OR  B01 28V*/
                variable_1 = Get_ID_18FED900_Sig_PTO_SW();
                variable_2 = Line_In_Get_Status(LINE_IN_PTO);

hu's avatar
hu committed
662
                if ((variable_1 == 0x01u) || (variable_2 == 0x01u))
hu's avatar
hu committed
663 664 665 666 667 668 669
                {
                    Popup_Request(POPUP6_PTO_STOP);
                }
                else
                {
                    Popup_Delete(POPUP6_PTO_STOP);
                }
670 671 672
            }
            else
            {
hu's avatar
hu committed
673 674
                Popup_Clear(POPUP6_HEIGHT_CONTROL);
                Popup_Clear(POPUP6_PTO_STOP);
675
            }
hu's avatar
hu committed
676

hu's avatar
hu committed
677 678 679 680
            /*----第七组---------------------------------------------------------------------*/
            /*45.充电异常-请与五十铃公司联系*/
            variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
            variable_2 = Common_VolWarning_Sta();
hu's avatar
hu committed
681

hu's avatar
hu committed
682
            if ((variable_1 == 0x01u) || ((variable_2 == 0x01u) && (E_Speed > 350u)))
683
            {
hu's avatar
hu committed
684
                Popup_Request(POPUP7_CHARGE_ABNORMAL);
685 686 687
            }
            else
            {
hu's avatar
hu committed
688
                Popup_Delete(POPUP7_CHARGE_ABNORMAL);
689
            }
hu's avatar
hu committed
690 691
            /*46.AMT異常-AMT异常  ID:18FF8503 Bite:1 Bit:2,1   LID $41 : 0x13*/
            variable_1 = Get_ID_18FF8503_Sig_Stop_Warning();
hu's avatar
hu committed
692

hu's avatar
hu committed
693
            if ((K_Line_Set.K_Line_LID41 == 0x13u) && (variable_1 == 0x01u))
694
            {
hu's avatar
hu committed
695
                Popup_Request(POPUP7_AMT_ERROR);
696 697 698
            }
            else
            {
hu's avatar
hu committed
699
                Popup_Delete(POPUP7_AMT_ERROR);
700
            }
hu's avatar
hu committed
701

hu's avatar
hu committed
702 703
            /*----第八组---------------------------------------------------------------------*/
            /*47.补充燃料-油箱单位*/
hu's avatar
hu committed
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722
            variable_1 = Fuel_Get_CurSeg();/*格*/
            variable_2 = GetFuelSensorState();/*燃油状态*/
            variable_5 = GetFuelResistance(); /*采集的阻值*/

            if (K_Line_Set.K_Line_LID43 == 0x82u)
            {
                if ((variable_1 <= 1 ) && (variable_2 == FuelSensorNormal) && (variable_5 != 65535))
                {
                    Popup_Request(POPUP8_REFUEL);
                }
                else
                {
                    Popup_Delete(POPUP8_REFUEL);
                }
            }
            else
            {
                Popup_Clear(POPUP8_REFUEL);
            }
hu's avatar
hu committed
723

hu's avatar
hu committed
724
            if (K_Line_Set.K_Line_LID41 == 0x13u)
725
            {
hu's avatar
hu committed
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748
                /*48.AMT过热-离合器过载 ID:18FF8503 Bite:2 Bit:4,3  001(B)  LID $41 : 0x13*/
                variable_1 = Get_ID_18FF8503_Sig_Clutch_Overload_warning();

                if (variable_1 == 0x01u)
                {
                    Popup_Request(POPUP8_ATM_CLUCH_OVERHEATING);
                }
                else
                {
                    Popup_Delete(POPUP8_ATM_CLUCH_OVERHEATING);
                }

                /*49.AMT磨耗-离合器磨损 ID:18FF8503 Bite:2 Bit:2,1  001(B)  LID $41 : 0x13*/
                variable_1 = Get_ID_18FF8503_Sig_Manouvering_mode();

                if (variable_1 == 0x01u)
                {
                    Popup_Request(POPUP1_BRAKE_BRAKE);
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
749 750 751
            }
            else
            {
hu's avatar
hu committed
752 753
                Popup_Clear(POPUP8_ATM_CLUCH_OVERHEATING);
                Popup_Clear(POPUP1_BRAKE_BRAKE);
754
            }
hu's avatar
hu committed
755

hu's avatar
hu committed
756
            /*50.低电压报警 显示条件:发动机启动(350r/min)后,7秒检测到23.5V时 显示消失条件:10秒检测到25V以上时*/
hu's avatar
hu committed
757
            // if (( KL30_Volt < 2350) && ( E_Speed > 350)) //23.5V
hu's avatar
hu committed
758
            //{
hu's avatar
hu committed
759 760 761
            //     Popup_Request(POPUP8_LOW_VOLTAGE_SPEED);
            // }
            // else if (KL30_Volt > 2500)
hu's avatar
hu committed
762
            //{
hu's avatar
hu committed
763 764
            //     Popup_Delete(POPUP8_LOW_VOLTAGE_SPEED);
            // }
hu's avatar
hu committed
765 766

            /*51.过电压报警 显示条件:发动机启动(350r/min)后,7秒检测到30.4V以上时 显示消失条件:10秒检测到29.4V以下时*/
hu's avatar
hu committed
767
            // if ((KL30_Volt > 3044)  && ( E_Speed > 350))  //30.44V
hu's avatar
hu committed
768
            //{
hu's avatar
hu committed
769 770 771
            //     Popup_Request(POPUP8_OVERVOLTAGE);
            // }
            // else if (KL30_Volt < 2940)
hu's avatar
hu committed
772
            //{
hu's avatar
hu committed
773 774
            //     Popup_Delete(POPUP8_OVERVOLTAGE);
            // }
hu's avatar
hu committed
775 776 777 778 779

            /*52.后蹄片磨损*/
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR2);

            if (variable_1 == LINE_IN_LOGIC_VALID)
780
            {
hu's avatar
hu committed
781
                Popup_Request(POPUP1_BRAKE_BRAKE);
782 783 784
            }
            else
            {
hu's avatar
hu committed
785
                Popup_Delete(POPUP1_BRAKE_BRAKE);
786
            }
hu's avatar
hu committed
787 788
            /*53.前蹄片磨损*/
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR_IND);
hu's avatar
hu committed
789

hu's avatar
hu committed
790
            if (variable_1 == LINE_IN_LOGIC_VALID)
791
            {
hu's avatar
hu committed
792
                Popup_Request(POPUP1_BRAKE_BRAKE);
793 794 795
            }
            else
            {
hu's avatar
hu committed
796
                Popup_Delete(POPUP1_BRAKE_BRAKE);
797
            }
hu's avatar
hu committed
798

hu's avatar
hu committed
799
            /*54.DPD自动再生-DPD自动再生中  ID:18FED900 (AUXIO)  Byte:8  bit:5,4  01(B)  Engine Speed : 350rpm以上*/
hu's avatar
hu committed
800
            variable_1 = Get_ID_18FED900_Sig_DPF_Regeneration_Status();
hu's avatar
hu committed
801 802

            if ((E_Speed >= 350) && (variable_1 == 0x01u))
803
            {
hu's avatar
hu committed
804
                Popup_Request(POPUP8_DPD_AUTO);
805 806 807
            }
            else
            {
hu's avatar
hu committed
808
                Popup_Delete(POPUP8_DPD_AUTO);
809
            }
hu's avatar
hu committed
810

hu's avatar
hu committed
811 812
            /*----第九组---------------------------------------------------------------------*/
            /*55.气压过低-请冲入空气*/
hu's avatar
hu committed
813 814 815 816 817 818 819 820 821 822 823 824
            variable_1 = (uint8_t)Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS);
            variable_2 = Common_Get_L12_Air_Sta();

            if ((variable_1 == LINE_IN_LOGIC_VALID ) || (variable_2 == 0X01U))
            {
                Popup_Request(POPUP9_AIR_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP9_AIR_PRESSURE);
            }

hu's avatar
hu committed
825
            /*56.EBS故障(红)-请与五十铃公司联系*/
hu's avatar
hu committed
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843
            variable_1 = Get_ID_18F0010B_Sig_EBS_Red_Warning_Lamp_State();
            variable_2 = CAN_MSG_Status(ID_CanMsg18F0010B_Msg_Count);

            if (K_Line_Set.K_Line_LID21 == 0x01u)
            {
                if ((variable_1 == 0x01u) || (variable_2 == CAN_SIG_LOST))
                {
                    Popup_Request(POPUP9_EBS_ERROR);
                }
                else
                {
                    Popup_Delete(POPUP9_EBS_ERROR);
                }
            }
            else
            {
                Popup_Clear(POPUP9_EBS_ERROR);
            }
hu's avatar
hu committed
844 845 846 847
#if 0
            /*----第十组---------------------------------------------------------------------*/
            /*57.省油耗建议-急加速*/
            if ((AccSubSpeed.AccSpeed_Flag == 1) && (User_App.User_JADD != 0xFF))
848
            {
hu's avatar
hu committed
849
                Popup_Request(POPUP10_RAPID_ACC);
850 851 852
            }
            else
            {
hu's avatar
hu committed
853
                Popup_Delete(POPUP10_RAPID_ACC);
854
            }
hu's avatar
hu committed
855 856
            /*58.省油耗建议-急减速*/
            if ((AccSubSpeed.SubSpeed_Flag == 1) && (User_App.User_JSUB != 0xFF))
857
            {
hu's avatar
hu committed
858
                Popup_Request(POPUP10_RAPID_SUB);
859 860 861
            }
            else
            {
hu's avatar
hu committed
862
                Popup_Delete(POPUP10_RAPID_SUB);
863
            }
hu's avatar
hu committed
864 865
            /*59.省油耗建议-请降低发动机转速*/
            if ((DataOverESpeed == 1) && (User_App.User_Speed != 0xFF))
866
            {
hu's avatar
hu committed
867
                Popup_Request(POPUP10_REVAL_ENGINE);
868 869 870
            }
            else
            {
hu's avatar
hu committed
871
                Popup_Delete(POPUP10_REVAL_ENGINE);
872
            }
hu's avatar
hu committed
873 874 875 876 877 878
            /*60.省油耗建议-请降低速度*/
            if (
                ((DataOverSpeedK_Line == 1) && (K_Line_Set.K_Line_LID44 != 0xFF)) || \
                ((AccSubSpeed.GslSpeed_Flag) && (User_App.User_Gsl))             || \
                ((AccSubSpeed.YblSpeed_Flag) && (User_App.User_Ybl))
            )
879
            {
hu's avatar
hu committed
880
                Popup_Request(POPUP10_REVAL_SPEED);
881 882 883
            }
            else
            {
hu's avatar
hu committed
884
                Popup_Delete(POPUP10_REVAL_SPEED);
885
            }
hu's avatar
hu committed
886

hu's avatar
hu committed
887 888 889
            /*----第十一组---------------------------------------------------------------------*/
            /*61.发动机机油&滤清器*/
            if (((State_Flag.User_FDJYLQQ_FLAG == 1) || (State_Flag.User_FDJYLQQ_FLAG == 2)) && (User_FDJYLQQ_Time <= 600))
890
            {
hu's avatar
hu committed
891
                Popup_Request(POPUP11_ENGINE_OIL_FILTERPOPUP11_ENGINE_OIL_FILTER);
892 893 894
            }
            else
            {
hu's avatar
hu committed
895
                Popup_Delete(POPUP11_ENGINE_OIL_FILTER);
896
            }
hu's avatar
hu committed
897 898
            /*62.燃油滤清器*/
            if (((State_Flag.User_RYLQQ_FLAG   == 1) || (State_Flag.User_RYLQQ_FLAG   == 2)) && (User_RYLQQ_Time <= 600))
899
            {
hu's avatar
hu committed
900
                Popup_Request(POPUP11_FUEL_FILTER);
901 902 903
            }
            else
            {
hu's avatar
hu committed
904
                Popup_Delete(POPUP11_FUEL_FILTER);
905
            }
hu's avatar
hu committed
906 907
            /*63.变速箱油*/
            if (((State_Flag.User_BSXY_FLAG    == 1) || (State_Flag.User_BSXY_FLAG    == 2)) && (User_BSXY_Time <= 600))
908
            {
hu's avatar
hu committed
909
                Popup_Request(POPUP11_T_MISSION_OIL);
910 911 912
            }
            else
            {
hu's avatar
hu committed
913
                Popup_Delete(POPUP11_T_MISSION_OIL);
914
            }
hu's avatar
hu committed
915 916
            /*64.差速器油*/
            if (((State_Flag.User_CSQY_FLAG    == 1) || (State_Flag.User_CSQY_FLAG    == 2)) && (User_CSQY_Time <= 600))
917
            {
hu's avatar
hu committed
918
                Popup_Request(POPUP11_DIFF_OIL);
919 920 921
            }
            else
            {
hu's avatar
hu committed
922
                Popup_Delete(POPUP11_DIFF_OIL);
923
            }
hu's avatar
hu committed
924 925 926
            /*65.顺畅系统离合器油*/
            //if(((State_Flag.User_LHQY_FLAG   == 1) || (State_Flag.User_LHQY_FLAG   == 2))&&(User_LHQY_Time <= 600))
            if (0)
927
            {
hu's avatar
hu committed
928
                Popup_Request(POPUP11_CLUTCH_OIL);
929 930 931
            }
            else
            {
hu's avatar
hu committed
932
                Popup_Delete(POPUP11_CLUTCH_OIL);
933
            }
hu's avatar
hu committed
934 935
            /*66.动力转向液*/
            if (((State_Flag.User_DLZXY_FLAG   == 1) || (State_Flag.User_DLZXY_FLAG   == 2)) && (User_DLZXY_Time <= 600))
936
            {
hu's avatar
hu committed
937
                Popup_Request(POPUP11_P_STEERING_FRUID);
938 939 940
            }
            else
            {
hu's avatar
hu committed
941
                Popup_Delete(POPUP11_P_STEERING_FRUID);
942
            }
hu's avatar
hu committed
943 944
            /*67.更换轮胎・轮胎位置*/
            if (((State_Flag.User_LT_FLAG      == 1) || (State_Flag.User_LT_FLAG      == 2)) && (User_LT_Time <= 600))
945
            {
hu's avatar
hu committed
946
                Popup_Request(POPUP11_TIRE_ROTATION);
947 948 949
            }
            else
            {
hu's avatar
hu committed
950
                Popup_Delete(POPUP11_TIRE_ROTATION);
951
            }
hu's avatar
hu committed
952
#endif
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990
        }
        else /*ig off*/
        {
            Popup_Clear(POPUP1_BRAKE_BLACK);             /*00.紧急警报-刹车*/
            Popup_Clear(POPUP1_BRAKE_BRAKE);             /*01.紧急警报-紧急制动*/
            Popup_Clear(POPUP1_BRAKE_SPACING_R);         /*02.车间距警报-刹车(红字)*/
            Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION); /*03.车间距警报-碰撞报警*/
            Popup_Clear(POPUP1_BRAKE_SPACING_Y);         /*04.车间距警报-刹车(黄字)*/
            Popup_Clear(POPUT1_ASR_OPERATE);             /*05.ASR工作*/
            Popup_Clear(POPUT2_PTO);                     /*06.PTO紧急警报-刹车*/
            Popup_Clear(POPUP2_PARKING_BRAKE);           /*07.忘记松手刹车*/
            Popup_Clear(POPUP2_AIRMATIC_HIGHT);          /*08.遥控调整车辆高度(有车速)*/
            Popup_Clear(POPUP3_CRUISE);                  /*09.自动巡航模式*/
            Popup_Clear(POPUP3_VARIABLE_SLD);            /*10.可变SLD 模式*/
            Popup_Clear(POPUT4_ABNORMAL_CHARGE);         /*11.充电异常(系统检测)*/
            Popup_Clear(POPUP4_OIL_PRESSURE);            /*12.油压(系统检测)*/
            Popup_Clear(POPUP4_AMT_INIT_EXCE);           /*13.AMT初始化异常*/
            Popup_Clear(POPUP4_ADBLUE_QUALITY);          /*14.尿素品质异常(系统检测)*/
            Popup_Clear(POPUP4_ADBLUE_SPRAY);            /*15.尿素喷射异常(系统检测)*/
            Popup_Clear(POPUP4_ADBLUE_SUPPLY);           /*16.尿素水补给(系统检测)*/
            Popup_Clear(POPUP4_START_ENG);               /*17.AMT初始化结束*/
            Popup_Clear(POPUP4_DPD_AUTO);                /*18.DPD自动再生*/
            Popup_Clear(POPUP5_OVER_HEAT);               /*19.过热(过热,请在安全的场所停车)*/
            Popup_Clear(POPUP5_LOW_COOLANT);             /*20.冷却水(冷却水不足)*/
            Popup_Clear(POPUP5_ENGINE_OIL_PRESSURE);     /*21.油压异常*/
            Popup_Clear(POPUP5_METER_FAILURE);           /*22.仪表故障-请与五十铃公司联系*/
            Popup_Clear(POPUP5_CAN_ERROR);               /*23.通信系统-请与五十铃公司联系*/
            Popup_Clear(POPUP5_SPEED_LIMIT);             /*24.车速限制*/
            Popup_Clear(POPUP5_TORQUE_REDUCTION);        /*25.扭矩限制*/
            Popup_Clear(POPUP5_INCORRECT_ADBLUE);        /*26.尿素品质异常*/
            Popup_Clear(POPUP5_CRITICAL_EMISSION);       /*27.临界排放故障*/
            Popup_Clear(POPUP5_AMT_SPANNER_WARNING);     /*28.AMT异常-请重启发动机*/
            Popup_Clear(POPUP5_AMT_LOW_AIR_WARNING);     /*29.AMT异常(气压低下)*/
            Popup_Clear(POPUP5_LOW_PRESSURE_ALARM);      /*30.胎压报警-快速漏气*/
            Popup_Clear(POPUP5_APP_ADBLUE);              /*31.尿素补给-补充尿素溶液*/
            Popup_Clear(POPUP5_ADBLUE_LEVEL_LOW);        /*32.尿素余量少-无车速*/
            Popup_Clear(POPUP5_LOW_FAILURE);             /*33.胎压报警-气压低*/
            Popup_Clear(POPUP5_CAMERA_POLLUTION);        /*34.摄像头有污染-请与五十铃公司联系*/
hu's avatar
hu committed
991 992
            Popup_Clear(POPUP5_AdBlue_INJ_SYSTEM);       /*35.尿素喷射异常(停止)*/
            Popup_Clear(POPUP5_AdBlue_DOS_MALFUNC);      /*36.尿素喷射异常(消耗量)*/
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025
            Popup_Clear(POPUP5_TPMS_HIGH_AIR);           /*37.高圧警報-轮胎高压警告*/
            Popup_Clear(POPUP5_TPMS_HIGH_TEMP);          /*38.高温警報-轮胎高温警告*/
            Popup_Clear(POPUP5_PUSH_DPD_SWITCH1);        /*39.DPD手动再生要求1-请按下DPD开关*/
            Popup_Clear(POPUP5_PUSH_DPD_SWITCH2);        /*40.DPD手动再生要求2-请按下DPD开关*/
            Popup_Clear(POPUP5_TPMS_FAILURE);            /*41.TPMS故障*/
            Popup_Clear(POPUP5_TPMS_MONITOR_DROP);       /*42.TPMS電池低下-轮胎监控传感器电压下降*/
            Popup_Clear(POPUP6_HEIGHT_CONTROL);          /*43.遥控车辆高度调整中(无车速)*/
            Popup_Clear(POPUP6_PTO_STOP);                /*44.PTO(停车中)*/
            Popup_Clear(POPUP7_CHARGE_ABNORMAL);         /*45.充电异常-请与五十铃公司联系*/
            Popup_Clear(POPUP7_AMT_ERROR);               /*46.AMT異常-请联系经销商*/
            Popup_Clear(POPUP8_REFUEL);                  /*47.补充燃料-油箱单位*/
            Popup_Clear(POPUP8_ATM_CLUCH_OVERHEATING);   /*48.AMT过热-选择合适的档位*/
            Popup_Clear(POPUP8_ATM_WORN_OUT);            /*49.AMT磨耗-离合器磨损*/
            Popup_Clear(POPUP8_LOWVOLTAGE);              /*50.低电压报警*/
            Popup_Clear(POPUP8_OVERVOLTAGE);             /*51.过电压报警*/
            Popup_Clear(POPUP8_BRAKE_BLOCKR);            /*52.后蹄片磨损*/
            Popup_Clear(POPUP8_BRAKE_BLOCKF);            /*53.前蹄片磨损*/
            Popup_Clear(POPUP8_DPD_AUTO);                /*54.DPD自动再生-再生将自动完成,不需要操作开关*/
            Popup_Clear(POPUP9_AIR_PRESSURE);            /*55.气压过低-请冲入空气*/
            Popup_Clear(POPUP9_EBS_ERROR);               /*56.EBS故障(红)-请与五十铃公司联系*/
            Popup_Clear(POPUP10_RAPID_ACC);              /*57.省油耗建议-急加速*/
            Popup_Clear(POPUP10_RAPID_SUB);              /*58.省油耗建议-急减速*/
            Popup_Clear(POPUP10_REVAL_ENGINE);           /*59.省油耗建议-请降低发动机转速*/
            Popup_Clear(POPUP10_REVAL_SPEED);            /*60.省油耗建议-请降低速度*/
            Popup_Clear(POPUP11_ENGINE_OIL_FILTER);      /*61.发动机机油&滤清器*/
            Popup_Clear(POPUP11_FUEL_FILTER);            /*62.燃油滤清器*/
            Popup_Clear(POPUP11_T_MISSION_OIL);          /*63.变速箱油*/
            Popup_Clear(POPUP11_DIFF_OIL);               /*64.差速器油*/
            Popup_Clear(POPUP11_CLUTCH_OIL);             /*65.顺畅系统离合器油*/
            Popup_Clear(POPUP11_P_STEERING_FRUID);       /*66.动力转向液*/
            Popup_Clear(POPUP11_TIRE_ROTATION);          /*67.更换轮胎・轮胎位置*/
        }
    }
hu's avatar
hu committed
1026 1027
}

hu's avatar
hu committed
1028 1029
void Popups_Displaying(uint8_t PopupMsg)
{
1030
    if (PopupMsg < POPUP_MSG_NUMBER_TOTAL)
hu's avatar
hu committed
1031
    {
1032
        switch (PopupMsgAttributeTable[PopupMsg].Type)
hu's avatar
hu committed
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043
        {
        case POPUP_TYPE_GENERAL:
            GUI_General_Popup_Display(PopupMsg);
            break;

        default:
            break;
        }
    }
}

hu's avatar
hu committed
1044 1045 1046 1047
void Popups_Sound_Playing(uint8_t PopupSnd)
{
    uint8_t ReqCode = 0u;

1048
    ReqCode = Popup_Get_Current_Sound_Req_Code();
hu's avatar
hu committed
1049

1050
    switch (PopupSnd)
hu's avatar
hu committed
1051 1052
    {
    default:
1053
        if (ReqCode)
hu's avatar
hu committed
1054 1055 1056 1057 1058 1059
            Sound_Request(PopupSnd, ReqCode);
        else
            Sound_Delete(PopupSnd);
        break;
    }
}