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

hu's avatar
hu committed
7
#include "GUI.h"
hu's avatar
hu committed
8
#include "Common_Interface.h"
hu's avatar
hu committed
9 10 11 12 13 14 15
#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
16
#include "CD4051.h"
hu's avatar
hu committed
17
#include "Telltales_user.h"
hu's avatar
hu committed
18
#include "Data_CoolantTemperature.h"
19
#include "Data_VehicleSpeed.h"
hu's avatar
hu committed
20 21
#include "Data_Voltmeter.h"
#include "Data_Fuel_User.h"
hu's avatar
hu committed
22
#include "FuelConfig.h"
hu's avatar
hu committed
23
#include "Service_TPMS.h"
hu's avatar
hu committed
24
#include "Telltales.h"
hu's avatar
hu committed
25

hu's avatar
hu committed
26 27
#include "kwp2000_service.h"

hu's avatar
hu committed
28 29 30 31 32 33 34 35
/*-------------------------------------------------------------------------
 * Function Name  : Popups_Management_Service
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
36 37
void Popups_Management_Service(void)
{
38
    Popups_Polling();
hu's avatar
hu committed
39 40
}

hu's avatar
hu committed
41 42 43 44 45 46 47 48
/*-------------------------------------------------------------------------
 * Function Name  : Popups_Polling
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
49
void Popups_Polling(void)
hu's avatar
hu committed
50
{
51
    uint16_t i = 0x00u;
hu's avatar
hu committed
52
    COMMON_PowerStatus_t u8IG_st;
53 54
    uint32_t u32IG_OFF_Timer = 0x00u;
    uint32_t u32IG_ON_Timer = 0x00u;
hu's avatar
hu committed
55 56 57 58
    uint8_t Can_BusOFF = 0x00u;
    uint8_t variable_1 = 0x00u;
    uint8_t variable_2 = 0x00u;
    uint8_t variable_3 = 0x00u;
59
    uint32_t variable_4 = 0x00u;
hu's avatar
hu committed
60
    uint16_t variable_5 = 0x00u;
61 62
    uint16_t V_Speed = 0u;
    uint16_t E_Speed = 0u;
hu's avatar
hu committed
63

64 65 66
    u32IG_ON_Timer = Common_GetIgnOnTime();
    u32IG_OFF_Timer = Common_GetIgnOffTime();
    u8IG_st = Common_Get_IG_Sts();
hu's avatar
hu committed
67

68 69
    V_Speed = Common_Get_Disp_V_Speed(); /*车速*/
    E_Speed = Common_Get_Act_E_Speed();  /*转速*/
hu's avatar
hu committed
70

hu's avatar
hu committed
71
    /*CAN 通讯异常*/
72
    for (i = 0u; i < ID_TOTAL_MAX; i++)
hu's avatar
hu committed
73
    {
74
        if (CAN_MSG_Status(i) == CAN_SIG_LOST)
hu's avatar
hu committed
75 76 77
        {
            Can_BusOFF++;
        }
hu's avatar
hu committed
78
    }
hu's avatar
hu committed
79

80
    if ((u32IG_ON_Timer <= PopupStart) && (u32IG_ON_Timer >= 2u))
hu's avatar
hu committed
81
    {
82
        ;
hu's avatar
hu committed
83 84 85
    }
    else
    {
86
        if (u8IG_st == COMMON_POWER_ON)
hu's avatar
hu committed
87 88
        {
            /*----第一组---------------------------------------------------------------------*/
hu's avatar
hu committed
89
            if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
90
            {
hu's avatar
hu committed
91
                /*0.--1--紧急警报-刹车*/
hu's avatar
hu committed
92 93
                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
94

hu's avatar
hu committed
95 96 97 98 99 100 101
                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);
102
                    Popup_Clear(POPUT1_ASR_OPERATE);
103
                    return;
hu's avatar
hu committed
104 105 106 107 108
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BLACK);
                }
hu's avatar
hu committed
109

hu's avatar
hu committed
110
                /*1.--1--紧急警报-紧急制动*/
hu's avatar
hu committed
111
                variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
112

hu's avatar
hu committed
113 114 115 116 117 118
                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);
119
                    Popup_Clear(POPUT1_ASR_OPERATE);
120
                    return;
hu's avatar
hu committed
121 122 123 124 125
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
hu's avatar
hu committed
126

hu's avatar
hu committed
127
                /*2.--2--车间距警报-刹车(红字)*/
hu's avatar
hu committed
128 129
                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
130

hu's avatar
hu committed
131 132 133 134 135
                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);
136
                    Popup_Clear(POPUT1_ASR_OPERATE);
137
                    return;
hu's avatar
hu committed
138 139 140 141 142
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_R);
                }
hu's avatar
hu committed
143

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

hu's avatar
hu committed
147 148 149 150
                if (variable_1 == 0x06u)
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
151
                    Popup_Clear(POPUT1_ASR_OPERATE);
152
                    return;
hu's avatar
hu committed
153 154 155 156 157
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_COLLISION);
                }
hu's avatar
hu committed
158

hu's avatar
hu committed
159
                /*4.--3--车间距警报-刹车(黄字)*/
hu's avatar
hu committed
160 161 162 163 164 165
                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);
166
                    Popup_Clear(POPUT1_ASR_OPERATE);
167
                    return;
hu's avatar
hu committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
                }
                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
183
            /*5.--4--ASR工作*/
hu's avatar
hu committed
184 185
            variable_1 = Get_ID_18F0010B_Sig_ATC_or_ASR_Lamp_State();

hu's avatar
hu committed
186
            if ((variable_1 == 0x01u) && (K_Line_Set.K_Line_LID21 == 0x01u))
hu's avatar
hu committed
187 188 189 190 191 192 193
            {
                Popup_Request(POPUT1_ASR_OPERATE);
            }
            else
            {
                Popup_Delete(POPUT1_ASR_OPERATE);
            }
hu's avatar
hu committed
194

195
            /*----第二组---------------------------------------------------------------------*/
hu's avatar
hu committed
196
            /*6.--1--PTO紧急警报-刹车*/
197
            variable_1 = Get_ID_18FED900_Sig_PTO_SW();
198
            variable_2 = Line_In_Get_Status(LINE_IN_PTO); // B01
199

200
            if (((variable_1 == 0x01u) || (variable_2 == LINE_IN_LOGIC_VALID)) && (V_Speed >= 66u))
201 202 203 204 205 206 207 208
            {
                Popup_Request(POPUT2_PTO);
            }
            else
            {
                Popup_Delete(POPUT2_PTO);
            }

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

212
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed >= 66u)) // 6.67Km
213 214 215 216 217 218 219 220
            {
                Popup_Request(POPUP2_PARKING_BRAKE);
            }
            else
            {
                Popup_Delete(POPUP2_PARKING_BRAKE);
            }

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

224
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed > 5u)) // 0.5Km
225 226 227 228 229 230 231 232 233
            {
                Popup_Request(POPUP2_AIRMATIC_HIGHT);
            }
            else
            {
                Popup_Delete(POPUP2_AIRMATIC_HIGHT);
            }

            /*----第三组---------------------------------------------------------------------*/
hu's avatar
hu committed
234
            /*9.--1--自动巡航模式*/
235
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
236
            variable_2 = Common_Get_Cruise_TimeSta();
237

hu's avatar
hu committed
238
            if ((variable_1 == 0x01u) && (variable_2 == 1u))
239 240 241 242 243 244 245 246
            {
                Popup_Request(POPUP3_CRUISE);
            }
            else
            {
                Popup_Delete(POPUP3_CRUISE);
            }

hu's avatar
hu committed
247
            /*10.--2--可变SLD 模式*/
248
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
249
            variable_2 = Common_Get_Cruise_SLD_TimeSta();
250

hu's avatar
hu committed
251
            if ((variable_1 == 0x03u) && (variable_2 == 1u))
252 253 254 255 256 257 258
            {
                Popup_Request(POPUP3_VARIABLE_SLD);
            }
            else
            {
                Popup_Delete(POPUP3_VARIABLE_SLD);
            }
hu's avatar
hu committed
259

260 261
            /*----第四组---------------------------------------------------------------------*/
            if (E_Speed < 350u)
hu's avatar
hu committed
262
            {
hu's avatar
hu committed
263 264 265 266
                if (K_Line_Set.K_Line_LID2B == 0x00u)
                {
                    /*11.--1--充电异常(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
267 268
                    variable_2 = Gui_Get_Voltmeter_DisplayMode(); /*当前电压格数*/
                    variable_3 = Get_Voltmeter_Valid();
hu's avatar
hu committed
269

270
                    if ((variable_1 == LINE_IN_LOGIC_VALID) || ((variable_2 < 4u) && (variable_3 == 1u)))
hu's avatar
hu committed
271 272 273 274 275 276 277 278 279 280
                    {
                        Popup_Request(POPUT4_ABNORMAL_CHARGE);
                    }
                    else
                    {
                        Popup_Delete(POPUT4_ABNORMAL_CHARGE);
                    }

                    /*12.--2--油压(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
281 282
                    variable_2 = Gui_Get_Voltmeter_DisplayMode(); /*当前电压格数*/
                    variable_3 = Get_Voltmeter_Valid();
hu's avatar
hu committed
283

284
                    if ((variable_1 == LINE_IN_LOGIC_VALID) || ((variable_2 < 4u) && (variable_3 == 1u)))
hu's avatar
hu committed
285 286 287 288 289 290 291
                    {
                        Popup_Request(POPUP4_OIL_PRESSURE);
                    }
                    else
                    {
                        Popup_Delete(POPUP4_OIL_PRESSURE);
                    }
292 293 294
                }
                else
                {
hu's avatar
hu committed
295 296
                    Popup_Clear(POPUT4_ABNORMAL_CHARGE);
                    Popup_Clear(POPUP4_OIL_PRESSURE);
297 298
                }

hu's avatar
hu committed
299
                /*13.--3--AMT初始化异常           DM1 SPN4220 Key On時*/
300 301 302 303 304 305 306 307 308 309 310
                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
311
                /*14.--4--尿素品质异常(系统检测)*/
312 313 314 315 316 317 318 319 320
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_QUALITY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_QUALITY);
                }

hu's avatar
hu committed
321
                /*15.--5--尿素喷射异常(系统检测)*/
322 323 324 325 326 327 328 329 330
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SPRAY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SPRAY);
                }

hu's avatar
hu committed
331
                /*16.--6--尿素水补给(系统检测)*/
332 333 334 335 336 337 338 339 340
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SUPPLY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SUPPLY);
                }

hu's avatar
hu committed
341
                /*17.--7--AMT初始化结束               DM1 SPN4021  Key On時*/
342 343 344 345 346 347 348 349 350 351 352
                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
353
                /*18.--8--DPD自动再生*/
354 355 356 357 358 359 360 361
                if (0)
                {
                    Popup_Request(POPUP4_DPD_AUTO);
                }
                else
                {
                    Popup_Delete(POPUP4_DPD_AUTO);
                }
hu's avatar
hu committed
362 363 364
            }
            else
            {
365 366 367 368 369 370 371 372
                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
373 374
            }

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

380
            if (K_Line_Set.K_Line_LID43 == 0x82)
hu's avatar
hu committed
381
            {
382 383 384 385 386 387 388 389
                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
390 391 392
            }
            else
            {
393
                Popup_Clear(POPUP5_OVER_HEAT);
hu's avatar
hu committed
394 395
            }

396
            /*20.--2--冷却水(冷却液不足) B32 GND*/
397
            variable_1 = Line_In_Get_Status(LINE_IN_LOW_COOLANT);
hu's avatar
hu committed
398

399 400 401 402 403 404 405 406
            if (variable_1 == LINE_IN_LOGIC_VALID)
            {
                Popup_Request(POPUP5_LOW_COOLANT);
            }
            else
            {
                Popup_Delete(POPUP5_LOW_COOLANT);
            }
hu's avatar
hu committed
407

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

411 412 413 414 415 416 417 418
            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
419

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

423
            /*23.--5--通信系统-请与五十铃公司联系*/
424 425 426 427 428 429 430 431
            if (Can_BusOFF == ID_TOTAL_MAX)
            {
                Popup_Request(POPUP5_CAN_ERROR);
            }
            else
            {
                Popup_Delete(POPUP5_CAN_ERROR);
            }
hu's avatar
hu committed
432

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

436 437 438 439 440 441 442 443
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_SPEED_LIMIT);
            }
            else
            {
                Popup_Delete(POPUP5_SPEED_LIMIT);
            }
hu's avatar
hu committed
444

445
            /*25.--7--扭矩限制-图2 ID:18FF2300 Byte:7 Bit:4,3   01(B)*/
446 447 448 449 450 451 452 453
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_TORQUE_REDUCTION);
            }
            else
            {
                Popup_Delete(POPUP5_TORQUE_REDUCTION);
            }
hu's avatar
hu committed
454

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

458 459 460 461 462 463 464 465
            if (variable_1 == 0x01u)
            {
                Popup_Request(POPUP5_INCORRECT_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_INCORRECT_ADBLUE);
            }
hu's avatar
hu committed
466

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

470 471 472 473 474 475 476 477
            if (variable_1 == 1)
            {
                Popup_Request(POPUP5_CRITICAL_EMISSION);
            }
            else
            {
                Popup_Delete(POPUP5_CRITICAL_EMISSION);
            }
hu's avatar
hu committed
478

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

hu's avatar
hu committed
484 485 486 487 488 489 490 491
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_SPANNER_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_SPANNER_WARNING);
                }
hu's avatar
hu committed
492

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

hu's avatar
hu committed
496 497 498 499 500 501 502 503
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_LOW_AIR_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_LOW_AIR_WARNING);
                }
504 505 506
            }
            else
            {
hu's avatar
hu committed
507 508
                Popup_Clear(POPUP5_AMT_SPANNER_WARNING);
                Popup_Clear(POPUP5_AMT_LOW_AIR_WARNING);
509
            }
hu's avatar
hu committed
510

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

514
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
515
            {
hu's avatar
hu committed
516
                Popup_Request(POPUP5_LOW_PRESSURE_ALARM);
517 518 519
            }
            else
            {
hu's avatar
hu committed
520
                Popup_Delete(POPUP5_LOW_PRESSURE_ALARM);
521
            }
hu's avatar
hu committed
522

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

hu's avatar
hu committed
526
            if (variable_1 == 0x01u)
527 528 529 530 531 532 533
            {
                Popup_Request(POPUP5_APP_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_APP_ADBLUE);
            }
hu's avatar
hu committed
534

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

hu's avatar
hu committed
538
            if (variable_1 == 0x02u)
539 540 541 542 543 544 545
            {
                Popup_Request(POPUP5_ADBLUE_LEVEL_LOW);
            }
            else
            {
                Popup_Delete(POPUP5_ADBLUE_LEVEL_LOW);
            }
hu's avatar
hu committed
546

547
            /*33.--15--低圧警報(低下)ID:18011733  Byte:5 Bit:8 01(B) LID $3E : 0x01*/
hu's avatar
hu committed
548 549
            variable_1 = Get_TPMSLow_Presure_Sta();

550
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
551
            {
hu's avatar
hu committed
552
                Popup_Request(POPUP5_LOW_FAILURE);
553 554 555
            }
            else
            {
hu's avatar
hu committed
556
                Popup_Delete(POPUP5_LOW_FAILURE);
557
            }
hu's avatar
hu committed
558

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

562
            if ((K_Line_Set.K_Line_LID27 == 0x01u) && ((variable_1 == 0x02u) || (variable_1 == 0x03u)))
563 564 565 566 567 568 569
            {
                Popup_Request(POPUP5_CAMERA_POLLUTION);
            }
            else
            {
                Popup_Delete(POPUP5_CAMERA_POLLUTION);
            }
hu's avatar
hu committed
570

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

hu's avatar
hu committed
574
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
575
            {
hu's avatar
hu committed
576
                Popup_Request(POPUP5_AdBlue_INJ_SYSTEM);
577 578 579
            }
            else
            {
hu's avatar
hu committed
580
                Popup_Delete(POPUP5_AdBlue_INJ_SYSTEM);
581
            }
hu's avatar
hu committed
582

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

hu's avatar
hu committed
586
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
587
            {
hu's avatar
hu committed
588
                Popup_Request(POPUP5_AdBlue_DOS_MALFUNC);
589 590 591
            }
            else
            {
hu's avatar
hu committed
592
                Popup_Delete(POPUP5_AdBlue_DOS_MALFUNC);
593
            }
hu's avatar
hu committed
594

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

598
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
599 600 601 602 603 604 605
            {
                Popup_Request(POPUP5_TPMS_HIGH_AIR);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_AIR);
            }
hu's avatar
hu committed
606

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

610
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
611 612 613 614 615 616 617
            {
                Popup_Request(POPUP5_TPMS_HIGH_TEMP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_TEMP);
            }
hu's avatar
hu committed
618

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

hu's avatar
hu committed
622
            if (variable_1 == 0x01u)
623 624 625 626 627 628 629
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH1);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH1);
            }
hu's avatar
hu committed
630

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

hu's avatar
hu committed
634
            if (variable_1 == 0x04u)
635 636 637 638 639 640 641
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH2);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH2);
            }
hu's avatar
hu committed
642

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

647
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && ((variable_1 == 0x01u) || (variable_2 == CAN_SIG_LOST)))
648 649 650 651 652 653 654
            {
                Popup_Request(POPUP5_TPMS_FAILURE);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_FAILURE);
            }
hu's avatar
hu committed
655

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

659
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 1))
660 661 662 663 664 665 666
            {
                Popup_Request(POPUP5_TPMS_MONITOR_DROP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_MONITOR_DROP);
            }
hu's avatar
hu committed
667

hu's avatar
hu committed
668 669
            /*----第六组---------------------------------------------------------------------*/
            if (V_Speed < 66u)
670
            {
671
                /*43.--1--遥控车辆高度调整中(无车速) B30 28V*/
hu's avatar
hu committed
672
                variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);
hu's avatar
hu committed
673

hu's avatar
hu committed
674
                if (variable_1 == 0x01u)
hu's avatar
hu committed
675 676 677 678 679 680 681
                {
                    Popup_Request(POPUP6_HEIGHT_CONTROL);
                }
                else
                {
                    Popup_Delete(POPUP6_HEIGHT_CONTROL);
                }
hu's avatar
hu committed
682

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

hu's avatar
hu committed
687
                if ((variable_1 == 0x01u) || (variable_2 == 0x01u))
hu's avatar
hu committed
688 689 690 691 692 693 694
                {
                    Popup_Request(POPUP6_PTO_STOP);
                }
                else
                {
                    Popup_Delete(POPUP6_PTO_STOP);
                }
695 696 697
            }
            else
            {
hu's avatar
hu committed
698 699
                Popup_Clear(POPUP6_HEIGHT_CONTROL);
                Popup_Clear(POPUP6_PTO_STOP);
700
            }
hu's avatar
hu committed
701

hu's avatar
hu committed
702
            /*----第七组---------------------------------------------------------------------*/
703
            /*45.--1--充电异常-请与五十铃公司联系*/
hu's avatar
hu committed
704
            variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
705
            variable_2 = Common_Get_VolWarning_Sta();
hu's avatar
hu committed
706

hu's avatar
hu committed
707
            if ((variable_1 == 0x01u) || ((variable_2 == 0x01u) && (E_Speed > 350u)))
708
            {
hu's avatar
hu committed
709
                Popup_Request(POPUP7_CHARGE_ABNORMAL);
710 711 712
            }
            else
            {
hu's avatar
hu committed
713
                Popup_Delete(POPUP7_CHARGE_ABNORMAL);
714
            }
715 716

            /*46.--2--AMT異常-AMT异常  ID:18FF8503 Bite:1 Bit:2,1   LID $41 : 0x13*/
hu's avatar
hu committed
717
            variable_1 = Get_ID_18FF8503_Sig_Stop_Warning();
hu's avatar
hu committed
718

hu's avatar
hu committed
719
            if ((K_Line_Set.K_Line_LID41 == 0x13u) && (variable_1 == 0x01u))
720
            {
hu's avatar
hu committed
721
                Popup_Request(POPUP7_AMT_ERROR);
722 723 724
            }
            else
            {
hu's avatar
hu committed
725
                Popup_Delete(POPUP7_AMT_ERROR);
726
            }
hu's avatar
hu committed
727

hu's avatar
hu committed
728
            /*----第八组---------------------------------------------------------------------*/
729 730 731 732
            /*47.--1--补充燃料-油箱单位*/
            variable_1 = Fuel_Get_CurSeg();    /*格*/
            variable_2 = GetFuelSensorState(); /*燃油状态*/
            variable_5 = GetFuelResistance();  /*采集的阻值*/
hu's avatar
hu committed
733 734 735

            if (K_Line_Set.K_Line_LID43 == 0x82u)
            {
736
                if ((variable_1 <= 1) && (variable_2 == FuelSensorNormal) && (variable_5 != 65535))
hu's avatar
hu committed
737 738 739 740 741 742 743 744 745 746 747 748
                {
                    Popup_Request(POPUP8_REFUEL);
                }
                else
                {
                    Popup_Delete(POPUP8_REFUEL);
                }
            }
            else
            {
                Popup_Clear(POPUP8_REFUEL);
            }
hu's avatar
hu committed
749

hu's avatar
hu committed
750
            if (K_Line_Set.K_Line_LID41 == 0x13u)
751
            {
752
                /*48.--2--AMT过热-离合器过载 ID:18FF8503 Bite:2 Bit:4,3  001(B)  LID $41 : 0x13*/
hu's avatar
hu committed
753 754 755 756 757 758 759 760 761 762 763
                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);
                }

764
                /*49.--3--AMT磨耗-离合器磨损 ID:18FF8503 Bite:2 Bit:2,1  001(B)  LID $41 : 0x13*/
hu's avatar
hu committed
765 766 767 768 769 770 771 772 773 774
                variable_1 = Get_ID_18FF8503_Sig_Manouvering_mode();

                if (variable_1 == 0x01u)
                {
                    Popup_Request(POPUP1_BRAKE_BRAKE);
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
775 776 777
            }
            else
            {
hu's avatar
hu committed
778 779
                Popup_Clear(POPUP8_ATM_CLUCH_OVERHEATING);
                Popup_Clear(POPUP1_BRAKE_BRAKE);
780
            }
hu's avatar
hu committed
781

782 783 784
            /*50.--4--低电压报警 显示条件:发动机启动(350r/min)后,7秒检测到23.5V时 显示消失条件:10秒检测到25V以上时*/
            variable_1 = Common_Get_LOW_VOLTAGE();

hu's avatar
hu committed
785
            if ((variable_1 == 0x01u) && (E_Speed > 350)) // 23.5V
786 787 788 789 790 791 792 793 794 795 796
            {
                Popup_Request(POPUP8_LOWVOLTAGE);
            }
            else if (variable_1 == 0x00u)
            {
                Popup_Delete(POPUP8_LOWVOLTAGE);
            }

            /*51.--5--过电压报警 显示条件:发动机启动(350r/min)后,7秒检测到30.4V以上时 显示消失条件:10秒检测到29.4V以下时*/
            variable_1 = Common_Get_HIGH_VOLTAGE();

hu's avatar
hu committed
797
            if ((variable_1 == 0x01u) && (E_Speed > 350)) // 30.44V
798 799 800 801 802 803 804 805 806
            {
                Popup_Request(POPUP8_OVERVOLTAGE);
            }
            else if (variable_1 == 0x00u)
            {
                Popup_Delete(POPUP8_OVERVOLTAGE);
            }

            /*52.--6--后蹄片磨损*/
hu's avatar
hu committed
807 808 809
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR2);

            if (variable_1 == LINE_IN_LOGIC_VALID)
810
            {
hu's avatar
hu committed
811
                Popup_Request(POPUP1_BRAKE_BRAKE);
812 813 814
            }
            else
            {
hu's avatar
hu committed
815
                Popup_Delete(POPUP1_BRAKE_BRAKE);
816
            }
817 818

            /*53.--7--前蹄片磨损*/
hu's avatar
hu committed
819
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR_IND);
hu's avatar
hu committed
820

hu's avatar
hu committed
821
            if (variable_1 == LINE_IN_LOGIC_VALID)
822
            {
hu's avatar
hu committed
823
                Popup_Request(POPUP1_BRAKE_BRAKE);
824 825 826
            }
            else
            {
hu's avatar
hu committed
827
                Popup_Delete(POPUP1_BRAKE_BRAKE);
828
            }
hu's avatar
hu committed
829

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

            if ((E_Speed >= 350) && (variable_1 == 0x01u))
834
            {
hu's avatar
hu committed
835
                Popup_Request(POPUP8_DPD_AUTO);
836 837 838
            }
            else
            {
hu's avatar
hu committed
839
                Popup_Delete(POPUP8_DPD_AUTO);
840
            }
hu's avatar
hu committed
841

hu's avatar
hu committed
842
            /*----第九组---------------------------------------------------------------------*/
843
            /*55.--1--气压过低-请冲入空气*/
hu's avatar
hu committed
844 845 846
            variable_1 = (uint8_t)Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS);
            variable_2 = Common_Get_L12_Air_Sta();

847
            if ((variable_1 == LINE_IN_LOGIC_VALID) || (variable_2 == 0X01U))
hu's avatar
hu committed
848 849 850 851 852 853 854 855
            {
                Popup_Request(POPUP9_AIR_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP9_AIR_PRESSURE);
            }

856
            /*56.--2--EBS故障(红)-请与五十铃公司联系*/
hu's avatar
hu committed
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874
            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);
            }
875

hu's avatar
hu committed
876
            /*----第十组---------------------------------------------------------------------*/
877
            /*57.--1--省油耗建议-急加速*/
hu's avatar
hu committed
878
            if ((AccSubSpeed.AccSpeed_Flag == 1) && (User_App.User_JADD != 0xFF))
879
            {
hu's avatar
hu committed
880
                Popup_Request(POPUP10_RAPID_ACC);
881 882 883
            }
            else
            {
hu's avatar
hu committed
884
                Popup_Delete(POPUP10_RAPID_ACC);
885
            }
886 887

            /*58.--2--省油耗建议-急减速*/
hu's avatar
hu committed
888
            if ((AccSubSpeed.SubSpeed_Flag == 1) && (User_App.User_JSUB != 0xFF))
889
            {
hu's avatar
hu committed
890
                Popup_Request(POPUP10_RAPID_SUB);
891 892 893
            }
            else
            {
hu's avatar
hu committed
894
                Popup_Delete(POPUP10_RAPID_SUB);
895
            }
896 897

            /*59.--3--省油耗建议-请降低发动机转速*/
hu's avatar
hu committed
898
            variable_1 = Common_Get_OverSpeed_Status();
899 900

            if ((variable_1 == 1) && (User_App.User_Speed != 0xFF))
901
            {
hu's avatar
hu committed
902
                Popup_Request(POPUP10_REVAL_ENGINE);
903 904 905
            }
            else
            {
hu's avatar
hu committed
906
                Popup_Delete(POPUP10_REVAL_ENGINE);
907
            }
908 909 910 911

            /*60.--4--省油耗建议-请降低速度*/
            variable_1 = Common_Get_OverSpeedLine_Status();

hu's avatar
hu committed
912
            if (
913 914 915
                ((variable_1 == 1) && (K_Line_Set.K_Line_LID44 != 0xFF)) ||
                ((AccSubSpeed.GslSpeed_Flag == 0x01u) && (User_App.User_Gsl == 0x01u)) ||
                ((AccSubSpeed.YblSpeed_Flag == 0x01u) && (User_App.User_Ybl == 0x01u)))
916
            {
hu's avatar
hu committed
917
                Popup_Request(POPUP10_REVAL_SPEED);
918 919 920
            }
            else
            {
hu's avatar
hu committed
921
                Popup_Delete(POPUP10_REVAL_SPEED);
922
            }
hu's avatar
hu committed
923

hu's avatar
hu committed
924
            /*----第十一组---------------------------------------------------------------------*/
925 926
            /*61.--1--发动机机油&滤清器*/
            if (((State_Flag.User_FDJYLQQ_FLAG == 1) || (State_Flag.User_FDJYLQQ_FLAG == 2)) && (Common_Get_FDJYLQQ_Sta() == 0x01u))
927
            {
928
                Popup_Request(POPUP11_ENGINE_OIL_FILTER);
929 930 931
            }
            else
            {
hu's avatar
hu committed
932
                Popup_Delete(POPUP11_ENGINE_OIL_FILTER);
933
            }
934 935 936

            /*62.--2--燃油滤清器*/
            if (((State_Flag.User_RYLQQ_FLAG == 1) || (State_Flag.User_RYLQQ_FLAG == 2)) && (Common_Get_RYLQQ_Sta() == 0x01u))
937
            {
hu's avatar
hu committed
938
                Popup_Request(POPUP11_FUEL_FILTER);
939 940 941
            }
            else
            {
hu's avatar
hu committed
942
                Popup_Delete(POPUP11_FUEL_FILTER);
943
            }
944 945 946

            /*63.--3--变速箱油*/
            if (((State_Flag.User_BSXY_FLAG == 1) || (State_Flag.User_BSXY_FLAG == 2)) && (Common_Get_BSXY_Sta() == 0x01u))
947
            {
hu's avatar
hu committed
948
                Popup_Request(POPUP11_T_MISSION_OIL);
949 950 951
            }
            else
            {
hu's avatar
hu committed
952
                Popup_Delete(POPUP11_T_MISSION_OIL);
953
            }
954 955 956

            /*64.--4--差速器油*/
            if (((State_Flag.User_CSQY_FLAG == 1) || (State_Flag.User_CSQY_FLAG == 2)) && (Common_Get_CSQY_Sta() == 0x01u))
957
            {
hu's avatar
hu committed
958
                Popup_Request(POPUP11_DIFF_OIL);
959 960 961
            }
            else
            {
hu's avatar
hu committed
962
                Popup_Delete(POPUP11_DIFF_OIL);
963
            }
964 965 966

            /*65.--5--顺畅系统离合器油*/
            // if(((State_Flag.User_LHQY_FLAG   == 1) || (State_Flag.User_LHQY_FLAG   == 2))&&(Common_Get_LHQY_Sta() ==0x01u))
hu's avatar
hu committed
967
            if (0)
968
            {
hu's avatar
hu committed
969
                Popup_Request(POPUP11_CLUTCH_OIL);
970 971 972
            }
            else
            {
hu's avatar
hu committed
973
                Popup_Delete(POPUP11_CLUTCH_OIL);
974
            }
975 976 977

            /*66.--6--动力转向液*/
            if (((State_Flag.User_DLZXY_FLAG == 1) || (State_Flag.User_DLZXY_FLAG == 2)) && (Common_Get_DLZXY_Sta() == 0x01u))
978
            {
hu's avatar
hu committed
979
                Popup_Request(POPUP11_P_STEERING_FRUID);
980 981 982
            }
            else
            {
hu's avatar
hu committed
983
                Popup_Delete(POPUP11_P_STEERING_FRUID);
984
            }
985 986 987

            /*67.--7--更换轮胎・轮胎位置*/
            if (((State_Flag.User_LT_FLAG == 1) || (State_Flag.User_LT_FLAG == 2)) && (Common_Get_LT_Sta() == 0x01u))
988
            {
hu's avatar
hu committed
989
                Popup_Request(POPUP11_TIRE_ROTATION);
990 991 992
            }
            else
            {
hu's avatar
hu committed
993
                Popup_Delete(POPUP11_TIRE_ROTATION);
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 1026 1027 1028 1029 1030 1031 1032
            }
        }
        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
1033 1034
            Popup_Clear(POPUP5_AdBlue_INJ_SYSTEM);       /*35.尿素喷射异常(停止)*/
            Popup_Clear(POPUP5_AdBlue_DOS_MALFUNC);      /*36.尿素喷射异常(消耗量)*/
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067
            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
1068 1069
}

hu's avatar
hu committed
1070 1071 1072 1073 1074 1075 1076 1077
/*-------------------------------------------------------------------------
 * Function Name  : Popups_Displaying
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
1078 1079
void Popups_Displaying(uint8_t PopupMsg)
{
1080
    if (PopupMsg < POPUP_MSG_NUMBER_TOTAL)
hu's avatar
hu committed
1081
    {
1082
        switch (PopupMsgAttributeTable[PopupMsg].Type)
hu's avatar
hu committed
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093
        {
        case POPUP_TYPE_GENERAL:
            GUI_General_Popup_Display(PopupMsg);
            break;

        default:
            break;
        }
    }
}

hu's avatar
hu committed
1094 1095 1096 1097 1098 1099 1100 1101
/*-------------------------------------------------------------------------
 * Function Name  : Popups_Sound_Playing
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
1102 1103 1104 1105
void Popups_Sound_Playing(uint8_t PopupSnd)
{
    uint8_t ReqCode = 0u;

1106
    ReqCode = Popup_Get_Current_Sound_Req_Code();
hu's avatar
hu committed
1107

1108
    switch (PopupSnd)
hu's avatar
hu committed
1109 1110
    {
    default:
1111
        if (ReqCode)
hu's avatar
hu committed
1112 1113 1114 1115 1116 1117
            Sound_Request(PopupSnd, ReqCode);
        else
            Sound_Delete(PopupSnd);
        break;
    }
}
hu's avatar
hu committed
1118 1119 1120 1121 1122 1123 1124 1125 1126

/*-------------------------------------------------------------------------
 * Function Name  : Popup_Alone_Sound_Server
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
1127
uint16_t Sound_test = 0;
hu's avatar
hu committed
1128 1129 1130 1131 1132 1133
void Popup_Alone_Sound_Server(void)
{
    COMMON_PowerStatus_t u8IG_st;
    uint32_t u32IG_OFF_Timer = 0x00u;
    uint32_t u32IG_ON_Timer = 0x00u;
    uint8_t variable_1 = 0u;
hu's avatar
hu committed
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144
    uint8_t variable_2 = 0u;
    uint16_t V_Speed = 0u;
    uint8_t EVSC1 = 0u;
    uint8_t EVSC2 = 0u;
    uint8_t EVSC3 = 0u;
    uint8_t EVSC4 = 0u;
    uint8_t EVSC5 = 0u;
    uint8_t EVSC6 = 0u;
    uint8_t EVSC7 = 0u;
    uint8_t EVSC8 = 0u;
    uint8_t EVSC9 = 0u;
hu's avatar
hu committed
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157

    u32IG_ON_Timer = Common_GetIgnOnTime();
    u32IG_OFF_Timer = Common_GetIgnOffTime();
    u8IG_st = Common_Get_IG_Sts();

    if ((u32IG_ON_Timer <= PopupStart) && (u32IG_ON_Timer >= 2u))
    {
        ;
    }
    else
    {
        if (u8IG_st == COMMON_POWER_ON)
        {
hu's avatar
hu committed
1158
#if 0
hu's avatar
hu committed
1159 1160
            /*00 忘拔钥匙*/
            Sound_Delete(SND_Key_Notremoved);
hu's avatar
hu committed
1161

hu's avatar
hu committed
1162
            /*01 制动*/
hu's avatar
hu committed
1163 1164
            if ((CD4051_COM1_X4_IN == 0u) && (CD4051_COM1_X7_IN == 1u))
            {
hu's avatar
hu committed
1165
                Sound_Request(SND_Braking, 1u);
hu's avatar
hu committed
1166 1167 1168 1169 1170 1171
            }
            else
            {
                Sound_Delete(SND_Braking);
            }

hu's avatar
hu committed
1172 1173 1174
            /*02 制动气压*/
            variable_1 = Common_Get_L12_Air_Sta();
            if ((variable_1 == 1u) || (CD4051_COM2_X7_IN == 0u))
hu's avatar
hu committed
1175
            {
hu's avatar
hu committed
1176
                Sound_Request(SND_Air_Brake, 1u);
hu's avatar
hu committed
1177 1178 1179 1180 1181 1182
            }
            else
            {
                Sound_Delete(SND_Air_Brake);
            }

hu's avatar
hu committed
1183
            /*03 BRAKE LOCK*/
hu's avatar
hu committed
1184 1185
            if (0)
            {
hu's avatar
hu committed
1186
                Sound_Request(SND_BRAKE_LOCK, 1u);
hu's avatar
hu committed
1187 1188 1189 1190 1191 1192
            }
            else
            {
                Sound_Delete(SND_BRAKE_LOCK);
            }

hu's avatar
hu committed
1193
            /*04 停车制动忘记复位*/
hu's avatar
hu committed
1194 1195
            if (0)
            {
hu's avatar
hu committed
1196
                Sound_Request(SND_Parking_Brake, 1u);
hu's avatar
hu committed
1197 1198 1199 1200 1201 1202
            }
            else
            {
                Sound_Delete(SND_Parking_Brake);
            }

hu's avatar
hu committed
1203
            /*05 车厢报警自卸蜂鸣器*/
hu's avatar
hu committed
1204 1205
            if (0)
            {
hu's avatar
hu committed
1206
                Sound_Request(SND_Car_Dump_SPEED, 1u);
hu's avatar
hu committed
1207 1208 1209 1210 1211 1212
            }
            else
            {
                Sound_Delete(SND_Car_Dump_SPEED);
            }

hu's avatar
hu committed
1213 1214 1215 1216
            /*06 水温过热*/
            variable_1 = Coolant_Get_CurSeg();
            variable_2 = Coolant_Get_Valid();
            if ((variable_1 >= 12u) && (variable_2 == 1u))
hu's avatar
hu committed
1217
            {
hu's avatar
hu committed
1218
                Sound_Request(SND_Temp_High, 1u);
hu's avatar
hu committed
1219 1220 1221 1222 1223 1224
            }
            else
            {
                Sound_Delete(SND_Temp_High);
            }

hu's avatar
hu committed
1225 1226
            /*07 冷却水量*/
            if (CD4051_COM5_X4_IN == 0u)
hu's avatar
hu committed
1227
            {
hu's avatar
hu committed
1228
                Sound_Request(SND_Coolant_Low, 1u);
hu's avatar
hu committed
1229 1230 1231 1232 1233 1234
            }
            else
            {
                Sound_Delete(SND_Coolant_Low);
            }

hu's avatar
hu committed
1235 1236
            /*08 -(预留:油压)*/
            if (CD4051_COM2_X1_IN == 0u)
hu's avatar
hu committed
1237
            {
hu's avatar
hu committed
1238
                Sound_Request(SND_Oil_pressure_Low, 1u);
hu's avatar
hu committed
1239 1240 1241 1242 1243 1244
            }
            else
            {
                Sound_Delete(SND_Oil_pressure_Low);
            }

hu's avatar
hu committed
1245 1246
            /*09 ACC AIR*/
            if ((CD4051_COM7_X0_IN == 0u) && (CD4051_COM1_X7_IN == 1u))
hu's avatar
hu committed
1247
            {
hu's avatar
hu committed
1248
                Sound_Request(SND_ACC_AIR, 1u);
hu's avatar
hu committed
1249 1250 1251 1252 1253 1254
            }
            else
            {
                Sound_Delete(SND_ACC_AIR);
            }

hu's avatar
hu committed
1255 1256
            /*10 倒车警报*/
            if (CD4051_COM3_X0_IN == 1u)
hu's avatar
hu committed
1257
            {
hu's avatar
hu committed
1258
                Sound_Request(SND_BackUP_SPEED, 1u);
hu's avatar
hu committed
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
            }
            else
            {
                Sound_Delete(SND_BackUP_SPEED);
            }

            /**/
            if (0)
            {
                Sound_Request(SND_DS_SPEED, 1u); /*11 DS 警报          */
            }
            else
            {
                Sound_Delete(SND_DS_SPEED);
            }

            /**/
            if (0)
            {
                Sound_Request(SND_ROWS_SPEED, 1u); /*12 ROWS 警报        */
            }
            else
            {
                Sound_Delete(SND_ROWS_SPEED);
            }

            /**/
            if (0)
            {
                Sound_Request(SND_Roll_SPEED, 1u); /*13 Roll 警报        */
            }
            else
            {
                Sound_Delete(SND_Roll_SPEED);
            }

hu's avatar
hu committed
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307
            /*14 EVSC*/
            EVSC1 = Get_ID_18FE4F0B_Sig_ROP_Engine_Control_Active();
            EVSC2 = Get_ID_18FE4F0B_Sig_ROP_Brake_Control_Active();
            EVSC3 = Get_ID_18FE4F0B_Sig_YC_Engine_Control_Active();
            EVSC4 = Get_ID_18FE4F0B_Sig_YC_Brake_Control_Active();
            EVSC5 = Get_ID_C0320C8_Sig_ID0C0320C8_byte2_bit1_2();
            EVSC6 = Get_ID_C0320C0_Sig_ID0C0320C0_byte2_bit1_2();
            EVSC7 = Get_ID_C0320B8_Sig_ID0C0320B8_byte2_bit1_2();
            EVSC8 = Get_ID_C0320B0_Sig_ID0C0320B0_byte2_bit1_2();
            EVSC9 = Get_ID_C0320A8_Sig_ID0C0320A8_byte2_bit1_2();
            if (K_Line_Set.K_Line_LID22 == 0X01u)
            {
                if ((EVSC1 == 1u) || (EVSC2 == 1u) || (EVSC3 == 1u) || (EVSC4 == 1u) ||
1308
                        (EVSC5 == 1u) || (EVSC6 == 1u) || (EVSC7 == 1u) || (EVSC8 == 1u) || (EVSC9 == 1u))
hu's avatar
hu committed
1309 1310 1311 1312 1313 1314 1315
                {
                    Sound_Request(SND_EVSC_SPEED, 1u);
                }
                else
                {
                    Sound_Delete(SND_EVSC_SPEED);
                }
hu's avatar
hu committed
1316 1317 1318 1319 1320 1321
            }
            else
            {
                Sound_Delete(SND_EVSC_SPEED);
            }

hu's avatar
hu committed
1322 1323 1324
            /*15 DPD 手动再生*/
            variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
            if (variable_1 == 2u)
hu's avatar
hu committed
1325
            {
hu's avatar
hu committed
1326
                Sound_Request(SND_DPD_SPEED1, 1u);
hu's avatar
hu committed
1327 1328 1329 1330 1331 1332
            }
            else
            {
                Sound_Delete(SND_DPD_SPEED1);
            }

hu's avatar
hu committed
1333 1334 1335
            /*15 DPD 手动再生*/
            variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
            if (variable_1 == 1u)
hu's avatar
hu committed
1336
            {
hu's avatar
hu committed
1337
                Sound_Request(SND_DPD_SPEED2, 1u);
hu's avatar
hu committed
1338 1339 1340 1341 1342 1343
            }
            else
            {
                Sound_Delete(SND_DPD_SPEED2);
            }

hu's avatar
hu committed
1344 1345 1346
            /*15 DPD 手动再生*/
            variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
            if (variable_1 == 3u)
hu's avatar
hu committed
1347
            {
hu's avatar
hu committed
1348
                Sound_Request(SND_DPD_SPEED4, 1u);
hu's avatar
hu committed
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374
            }
            else
            {
                Sound_Delete(SND_DPD_SPEED4);
            }

            /**/
            if (0)
            {
                Sound_Request(SND_NEES, 1u); /*16 NEES             */
            }
            else
            {
                Sound_Delete(SND_NEES);
            }

            /**/
            if (0)
            {
                Sound_Request(SND_ECO_STOP, 1u); /*17 eco stop         */
            }
            else
            {
                Sound_Delete(SND_ECO_STOP);
            }

hu's avatar
hu committed
1375
            if ((K_Line_Set.K_Line_LID2A == 0X01u) || (K_Line_Set.K_Line_LID2A == 0X02u))
hu's avatar
hu committed
1376
            {
hu's avatar
hu committed
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386
                /*18 气悬车高调整*/
                variable_1 = Get_ID_CFF0F15_Sig_ID0CFF0F15_byte1_bit4_5();
                if (variable_1 == 1u)
                {
                    Sound_Request(SND_Cyclone_High4HZ, 1u);
                }
                else
                {
                    Sound_Delete(SND_Cyclone_High4HZ);
                }
hu's avatar
hu committed
1387

hu's avatar
hu committed
1388 1389 1390 1391 1392 1393 1394 1395 1396 1397
                /*18 气悬车高调整*/
                variable_1 = Get_ID_CFF0F15_Sig_ID0CFF0F15_byte1_bit4_5();
                if (variable_1 == 3u)
                {
                    Sound_Request(SND_Cyclone_High0_5, 1u);
                }
                else
                {
                    Sound_Delete(SND_Cyclone_High0_5);
                }
hu's avatar
hu committed
1398 1399 1400
            }
            else
            {
hu's avatar
hu committed
1401
                Sound_Delete(SND_Cyclone_High4HZ);
hu's avatar
hu committed
1402 1403 1404
                Sound_Delete(SND_Cyclone_High0_5);
            }

hu's avatar
hu committed
1405 1406 1407
            /*19 安全带*/
            V_Speed = Common_Get_Disp_V_Speed(); /*车速*/
            if ((CD4051_COM2_X3_IN == 0u) && (V_Speed >= 67))
hu's avatar
hu committed
1408
            {
hu's avatar
hu committed
1409
                Sound_Request(SND_SEATBELT_SPEED, 1u);
hu's avatar
hu committed
1410 1411 1412 1413 1414 1415
            }
            else
            {
                Sound_Delete(SND_SEATBELT_SPEED);
            }

hu's avatar
hu committed
1416 1417 1418 1419
            /*20 省油耗建议*/
            variable_1 = Get_ID_18FF4925_Sig_ID18FF4925_byte3_bit1_2();
            variable_2 = Get_ID_18FF4925_Sig_ID18FF4925_byte3_bit3_4();
            if ((variable_1 == 1u) || (variable_2 == 1u))
hu's avatar
hu committed
1420
            {
hu's avatar
hu committed
1421
                Sound_Request(SND_Fuel_Saving, 1u);
hu's avatar
hu committed
1422 1423 1424 1425 1426
            }
            else
            {
                Sound_Delete(SND_Fuel_Saving);
            }
hu's avatar
hu committed
1427
#endif
1428
            /*音源测试程序*/
hu's avatar
hu committed
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440
            if (Sound_test & 0x001) Sound_Request ( SND_Key_Notremoved,   1 ); else Sound_Delete( SND_Key_Notremoved   );
            if (Sound_test & 0x002) Sound_Request ( SND_Braking,          1 ); else Sound_Delete( SND_Braking          );
            if (Sound_test & 0x004) Sound_Request ( SND_Air_Brake,        1 ); else Sound_Delete( SND_Air_Brake        );
            if (Sound_test & 0x008) Sound_Request ( SND_BRAKE_LOCK,       1 ); else Sound_Delete( SND_BRAKE_LOCK       );
            if (Sound_test & 0x010) Sound_Request ( SND_Parking_Brake,    1 ); else Sound_Delete( SND_Parking_Brake    );
            if (Sound_test & 0x020) Sound_Request ( SND_Car_Dump_SPEED,   1 ); else Sound_Delete( SND_Car_Dump_SPEED   );
            if (Sound_test & 0x040) Sound_Request ( SND_Temp_High,        1 ); else Sound_Delete( SND_Temp_High        );
            if (Sound_test & 0x080) Sound_Request ( SND_Coolant_Low,      1 ); else Sound_Delete( SND_Coolant_Low      );
            if (Sound_test & 0x100) Sound_Request ( SND_Oil_pressure_Low, 1 ); else Sound_Delete( SND_Oil_pressure_Low );
            if (Sound_test & 0x200) Sound_Request ( SND_ACC_AIR,          1 ); else Sound_Delete( SND_ACC_AIR          );
            if (Sound_test & 0x400) Sound_Request ( SND_BackUP_SPEED,     1 ); else Sound_Delete( SND_BackUP_SPEED     );
            if (Sound_test & 0x800) Sound_Request ( SND_DS_SPEED,         1 ); else Sound_Delete( SND_DS_SPEED         );
1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451
            //if (CD4051_COM7_X0_IN == 0u) Sound_Request ( SND_Key_Notremoved,   1 ); else Sound_Delete( SND_Key_Notremoved   );/*B15 = 0*/
            //if (CD4051_COM7_X1_IN == 1u) Sound_Request ( SND_Braking,          1 ); else Sound_Delete( SND_Braking          );/*B16 = 1*/
            //if (CD4051_COM7_X2_IN == 1u) Sound_Request ( SND_Air_Brake,        1 ); else Sound_Delete( SND_Air_Brake        );/*B17 = 1*/
            //if (CD4051_COM7_X3_IN == 1u) Sound_Request ( SND_BRAKE_LOCK,       1 ); else Sound_Delete( SND_BRAKE_LOCK       );/*B14 = 1*/
            //if (CD4051_COM7_X4_IN == 1u) Sound_Request ( SND_Parking_Brake,    1 ); else Sound_Delete( SND_Parking_Brake    );/*B10 = 1*/
            //if (CD4051_COM7_X5_IN == 1u) Sound_Request ( SND_Car_Dump_SPEED,   1 ); else Sound_Delete( SND_Car_Dump_SPEED   );/*B13 = 1*/
            //if (CD4051_COM7_X6_IN == 1u) Sound_Request ( SND_Temp_High,        1 ); else Sound_Delete( SND_Temp_High        );/*B11 = 1*/
            //if (CD4051_COM7_X7_IN == 1u) Sound_Request ( SND_Coolant_Low,      1 ); else Sound_Delete( SND_Coolant_Low      );/*B12 = 1*/
            //if (CD4051_COM6_X5_IN == 1u) Sound_Request ( SND_Oil_pressure_Low, 1 ); else Sound_Delete( SND_Oil_pressure_Low );/*B04 = 1*/
            //if (CD4051_COM6_X6_IN == 1u) Sound_Request ( SND_ACC_AIR,          1 ); else Sound_Delete( SND_ACC_AIR          );/*B02 = 1*/
            //if (CD4051_COM6_X7_IN == 0u) Sound_Request ( SND_BackUP_SPEED,     1 ); else Sound_Delete( SND_BackUP_SPEED     );/*B03 = 0*/
hu's avatar
hu committed
1452 1453 1454 1455 1456 1457 1458
        }
        else /*IG-OFF*/
        {
            /*A3-28 A20-GND B39-OPEN  A2-OPEN*/
            variable_1 = Line_In_Get_Status(LINE_IN_ACC);
            if ((CD4051_COM3_X7_IN == 1u) && (CD4051_COM3_X5_IN == 0u) && (variable_1 == 1u))
            {
hu's avatar
hu committed
1459
                Sound_Request(SND_Key_Notremoved, 1u); /*00 忘拔钥匙*/
hu's avatar
hu committed
1460 1461 1462 1463 1464 1465
            }
            else
            {
                Sound_Delete(SND_Key_Notremoved);
            }

hu's avatar
hu committed
1466 1467 1468 1469
            Sound_Delete(SND_Braking);          /*01 制动*/
            Sound_Delete(SND_Air_Brake);        /*02 制动气压*/
            Sound_Delete(SND_BRAKE_LOCK);       /*03 BRAKE LOCK*/
            Sound_Delete(SND_Parking_Brake);    /*04 停车制动忘记复位*/
hu's avatar
hu committed
1470
            Sound_Delete(SND_Car_Dump_SPEED);   /*05 车厢报警自卸蜂鸣器*/
hu's avatar
hu committed
1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
            Sound_Delete(SND_Temp_High);        /*06 水温过热*/
            Sound_Delete(SND_Coolant_Low);      /*07 冷却水量*/
            Sound_Delete(SND_Oil_pressure_Low); /*08 -(预留:油压)*/
            Sound_Delete(SND_ACC_AIR);          /*09 ACC AIR*/
            Sound_Delete(SND_BackUP_SPEED);     /*10 倒车警报*/
            Sound_Delete(SND_DS_SPEED);         /*11 DS 警报*/
            Sound_Delete(SND_ROWS_SPEED);       /*12 ROWS 警报*/
            Sound_Delete(SND_Roll_SPEED);       /*13 Roll 警报*/
            Sound_Delete(SND_EVSC_SPEED);       /*14 EVSC*/
            Sound_Delete(SND_DPD_SPEED1);       /*15 DPD 手动再生*/
            Sound_Delete(SND_DPD_SPEED2);       /*15 DPD 手动再生*/
            Sound_Delete(SND_DPD_SPEED4);       /*15 DPD 手动再生*/
            Sound_Delete(SND_NEES);             /*16 NEES*/
            Sound_Delete(SND_ECO_STOP);         /*17 eco stop*/
            Sound_Delete(SND_Cyclone_High4HZ);  /*18 气悬车高调整*/
            Sound_Delete(SND_Cyclone_High0_5);  /*18 气悬车高调整*/
            Sound_Delete(SND_SEATBELT_SPEED);   /*19 安全带*/
            Sound_Delete(SND_Fuel_Saving);      /*20 省油耗建议*/
hu's avatar
hu committed
1489 1490 1491
        }
    }
}