Commit 302ed7f5d21b1cfa00b045bf91fbe9563291b615

Authored by Echo
1 parent d88672d2

1.QC位:0:untest ;1:pass;other:fail;2.版本号保存之前要初始化下,否则会导致之前长的版本号有残留”

No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
... ... @@ -358,30 +358,30 @@ bool SNBase::Check_some_barcode(const char* strBarcode)
358 358
359 359 if (strBarcode[55] == '1')
360 360 {
361   - g_pMainDlg->myrslt_smt= _T("1");
  361 + g_pMainDlg->myrslt_smt= _T("PASS");
362 362 UpdateUIMsg("ATA test has passed");
363 363 }
364 364 else
365 365 {
366   - g_pMainDlg->myrslt_smt= _T("0");
  366 + g_pMainDlg->myrslt_smt= _T("FAIL");
367 367 UpdateUIMsg("ATA test failed");
368 368 }
369 369
370 370
371 371 if (strBarcode[60] == '1' && strBarcode[61] == '0') //Calibration Pass
372 372 {
373   - g_pMainDlg->myrslt_cft= _T("10");
  373 + // g_pMainDlg->myrslt_cft= _T("10");
374 374 UpdateUIMsg("Calibration has been successful");
375 375 }
376 376 else if (strBarcode[60] == '0' && strBarcode[61] == '1')//Calibration Fail
377 377 {
378   - g_pMainDlg->myrslt_cft= _T("01");
  378 + // g_pMainDlg->myrslt_cft= _T("UnTested");
379 379 UpdateUIMsg("Not yet calibrated");
380 380 }
381 381
382 382 if (strBarcode[62] == 'P' ) //Final Test Pass
383 383 {
384   - g_pMainDlg->myrslt_cft = g_pMainDlg->myrslt_cft+ _T("P");
  384 + //g_pMainDlg->myrslt_cft = g_pMainDlg->myrslt_cft+ _T("P");
385 385 UpdateUIMsg("Comprehensive test pass");
386 386 }
387 387 else
... ... @@ -389,9 +389,18 @@ bool SNBase::Check_some_barcode(const char* strBarcode)
389 389 UpdateUIMsg("Comprehensive test failed");
390 390 }
391 391
392   -
  392 + if(strBarcode[60] == '1' && strBarcode[61] == '0' && strBarcode[62] == 'P')
  393 + {
  394 + g_pMainDlg->myrslt_cft =_T("PASS");
  395 + }
  396 + else
  397 + {
  398 + g_pMainDlg->myrslt_cft =_T("Fail");
  399 + }
393 400
394 401 return true;
  402 +
  403 +
395 404 }
396 405
397 406
... ...
... ... @@ -110,6 +110,7 @@ META_RESULT SmartPhoneSN::WriteNvramLoop()
110 110 MULTIIMEI_OPTION_e multiIMEIOption = SINGLE_MD_SINGLE_IMEI;
111 111
112 112 int iRet = 0;
  113 + int iRet2 = 0;
113 114 int option = 0;
114 115 double fBeginProcess = 0.25;
115 116 double fStep = 0.04;
... ... @@ -219,8 +220,8 @@ META_RESULT SmartPhoneSN::WriteNvramLoop()
219 220 char tmpBuf1[20] = {0};
220 221 char tmpBuf2[20] = {0};
221 222 iRet = REQ_ReadModem_NVRAM_Start(WRITE_IMEI, tmpBuf1, 1);
222   - iRet = REQ_ReadModem_NVRAM_Start(WRITE_IMEI, tmpBuf2, 2);
223   - if (iRet == META_SUCCESS)
  223 + iRet2 = REQ_ReadModem_NVRAM_Start(WRITE_IMEI, tmpBuf2, 2);
  224 + if (iRet == META_SUCCESS || iRet2 == META_SUCCESS)
224 225 {
225 226 memset(a_imei_ary,0,sizeof(int)*16);
226 227
... ... @@ -265,15 +266,36 @@ META_RESULT SmartPhoneSN::WriteNvramLoop()
265 266 a_imei_ary2[10],a_imei_ary2[11],a_imei_ary2[12],a_imei_ary2[13],a_imei_ary2[14]
266 267 );
267 268
268   - g_pMainDlg->myrslt_imei.Format(_T("%s"), str_imei);
  269 + //g_pMainDlg->myrslt_imei= _T("PASS");
269 270 UpdateUIMsg("IMEI read successfully "+str_imei);
270 271 spNextStage = SP_END_STAGE;
271 272 }
272 273 else
273 274 {
  275 + //g_pMainDlg->myrslt_imei= _T("Fail");
274 276 UpdateUIMsg("IMEI failed to read");
275 277 spNextStage = SP_END_STAGE;
276 278 }
  279 +
  280 + if(iRet == META_SUCCESS)
  281 + {
  282 + g_pMainDlg->myrslt_imei= _T("PASS");
  283 + }
  284 + else
  285 + {
  286 + g_pMainDlg->myrslt_imei= _T("Fail");
  287 + }
  288 +
  289 + if(iRet2 == META_SUCCESS)
  290 + {
  291 + g_pMainDlg->myrslt_imei = g_pMainDlg->myrslt_imei+ _T(",PASS");
  292 + }
  293 + else
  294 + {
  295 + g_pMainDlg->myrslt_imei = g_pMainDlg->myrslt_imei+ _T(",Fail");
  296 + }
  297 +
  298 +
277 299 }
278 300 break;
279 301
... ... @@ -2617,11 +2639,15 @@ byte SmartPhoneSN::REQ_ReadAP_NVRAM_QC(void)
2617 2639 // ::AfxMessageBox("QC test fail");
2618 2640 return 0;
2619 2641 }
2620   - else
  2642 + else if(sNVRAM_ReadCnf.buf[1006] == 1)
2621 2643 {
2622 2644 // ::AfxMessageBox("QC test pass");
2623 2645 return 1;
2624 2646 }
  2647 + else
  2648 + {
  2649 + return 3;
  2650 + }
2625 2651
2626 2652
2627 2653 }
... ... @@ -4446,12 +4472,12 @@ void SmartPhoneSN::ThreadMainEntryPoint()
4446 4472 switch(resultQC)
4447 4473 {
4448 4474 case 0:
4449   - g_pMainDlg->myrslt_qc=_T("0");
  4475 + g_pMainDlg->myrslt_qc=_T("UnTested");
4450 4476 UpdateUIMsg("QC untest");
4451 4477 bAnyOperationFail = true;
4452 4478 break;
4453 4479 case 1:
4454   - g_pMainDlg->myrslt_qc=_T("1");
  4480 + g_pMainDlg->myrslt_qc=_T("PASS");
4455 4481 UpdateUIMsg("QC test pass");
4456 4482 break;
4457 4483 default:
... ...
No preview for this file type
1   ----- IMEI¶ÁÈ¡ Matches (2 in 1 files) ----
2   -SPexc.cpp (execute): UpdateUIMsg("IMEI¶ÁÈ¡³É¹¦"+str_imei);
3   -SPexc.cpp (execute): UpdateUIMsg("IMEI¶Áȡʧ°Ü");
  1 +---- myrslt_qc Matches (7 in 4 files) ----
  2 +SN WriterDlg.cpp: myrslt_qc = _T("");
  3 +SN WriterDlg.cpp: DDX_Text(pDX, IDC_RSLT_QC, myrslt_qc);
  4 +SN WriterDlg.h: CString myrslt_qc;
  5 +SNbase.cpp (execute): g_pMainDlg->SetDlgItemText(IDC_RSLT_QC, g_pMainDlg->myrslt_qc);
  6 +SPexc.cpp (execute): g_pMainDlg->myrslt_qc=_T("UnTested");
  7 +SPexc.cpp (execute): g_pMainDlg->myrslt_qc=_T("PASS");
  8 +SPexc.cpp (execute): g_pMainDlg->myrslt_qc=_T("Fail");
... ...
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
... ... @@ -22,7 +22,7 @@ Check Fastboot OEM Lock Enable = False
22 22 Check Calibration flag Enable = True
23 23 Check FinalTest flag Enable = False
24 24 Check QCTest flag Enable = True
25   -Check_SW_VER = L61_V5019A_AR_KMG_V1.02_201708220170826
  25 +Check_SW_VER = INTEX_AQUA_LIONS_N1_V02_INDIAN
26 26 Write Meid = True
27 27 Write Esn = False
28 28 Write Barcode = True
... ... @@ -67,9 +67,9 @@ Ethernet header string =
67 67 DRMKey MCID header string =
68 68 AP DB from DUT = False
69 69 MD DB from DUT = False
70   -Modem_1 database path = C:\Users\echo\Desktop\L61\L61_V5019A_AR_KMG_V1.02_20170822\db\BPLGUInfoCustomAppSrcP_MT6735_S00_MOLY_LR9_W1444_MD_LWTG_MP_V110_5_P9_1_lwg_n
  70 +Modem_1 database path = C:\Users\echo\Desktop\L71\db\BPLGUInfoCustomAppSrcP_MT6735_S00_MOLY_LR9_W1444_MD_LWTG_MP_V110_5_P5_1_lwg_n
71 71 Modem_2 database path =
72   -AP database path = C:\Users\echo\Desktop\L61\L61_V5019A_AR_KMG_V1.02_20170822\db\APDB_MT6735_S01_alps-mp-n0.mp1_W17.31
  72 +AP database path = C:\Users\echo\Desktop\L71\db\APDB_MT6735_S01_alps-mp-n0.mp1_W17.31
73 73 FP Auth path =
74 74 SP Auth path =
75 75 Hdcp Bin path =
... ...
No preview for this file type
No preview for this file type
... ... @@ -6,40 +6,20 @@
6 6 --------------------Configuration: SN Writer - Win32 Debug--------------------
7 7 </h3>
8 8 <h3>Command Lines</h3>
9   -Creating temporary file "C:\Users\echo\AppData\Local\Temp\RSPD80C.tmp" with contents
  9 +Creating temporary file "C:\Users\echo\AppData\Local\Temp\RSPAA22.tmp" with contents
10 10 [
11   -shlwapi.lib "./mtklib/meta/lib/*.lib" "./mtklib/Eboot/lib/*.lib" "./mtklib/Security/lib/*.lib" "./mtklib/SNFstream/lib/*.lib" "./mtklib/DebugTrace/lib/*.lib" "./mtklib/usbswitchtool/lib/*.lib" /nologo /subsystem:windows /incremental:yes /pdb:"Output/SN Writer.pdb" /debug /machine:I386 /out:"Output/SN Writer.exe" /pdbtype:sept
12   -.\Debug\Common.obj
13   -.\Debug\FPexc.obj
14   -.\Debug\SNbase.obj
15   -.\Debug\SPexc.obj
16   -.\Debug\AtProcess.obj
17   -.\Debug\rs232Module.obj
18   -.\Debug\xboot_debug.obj
19   -.\Debug\AUTH.obj
20   -.\Debug\SCERT.obj
21   -.\Debug\SLA.obj
22   -.\Debug\fileseldlg.obj
23   -.\Debug\ChgPasswdDlg.obj
24   -.\Debug\VerifyPasswdDlg.obj
25   -.\Debug\ScanData.obj
26   -.\Debug\SystemConfig.obj
27   -.\Debug\AboutSNDlg.obj
28   -.\Debug\autogendlg.obj
29   -.\Debug\Encryption.obj
30   -".\Debug\SN Writer.obj"
31   -".\Debug\SN WriterDlg.obj"
32   -.\Debug\StdAfx.obj
33   -".\Debug\SN Writer.res"
  11 +/nologo /MTd /W3 /Gi /GX /ZI /Od /I ".\\" /I ".\SNbase\inc" /I ".\Execute" /I ".\Extra\CBtnST" /I ".\Form\About" /I ".\Form\AutoGen" /I ".\Form\ScanData" /I ".\Form\Identify" /I ".\Form\FileSel" /I ".\Form\SystemConfig" /I ".\MtkLib\AT_cmd\inc" /I ".\CBtnST" /I ".\MtkLib\Brom\inc" /I ".\MtkLib\DebugTrace\inc" /I ".\MtkLib\SNFstream\inc" /I ".\Common" /I ".\MtkLib\Eboot\inc" /I ".\MtkLib\Meta\inc" /I ".\MtkLib\Security\inc" /I ".\MtkLib\USBSwitchTool\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FR"Debug/" /Fp"Debug/SN_Station.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
  12 +"D:\InterlockingTool\Execute\SNbase.cpp"
34 13 ]
35   -Creating command line "link.exe @C:\Users\echo\AppData\Local\Temp\RSPD80C.tmp"
  14 +Creating command line "cl.exe @C:\Users\echo\AppData\Local\Temp\RSPAA22.tmp"
36 15 <h3>Output Window</h3>
37   -Linking...
  16 +Compiling...
  17 +SNbase.cpp
38 18
39 19
40 20
41 21 <h3>Results</h3>
42   -SN Writer.exe - 0 error(s), 0 warning(s)
  22 +SNbase.obj - 0 error(s), 0 warning(s)
43 23 </pre>
44 24 </body>
45 25 </html>
... ...
... ... @@ -1093,6 +1093,7 @@ void CSNWriterDlg::OnOptionCheckQcFlag()
1093 1093 void CSNWriterDlg::OnBtSaveSwver()
1094 1094 {
1095 1095 UpdateData(TRUE);
  1096 + memset(g_sMetaComm.check_sw_ver,0x0,sizeof(g_sMetaComm.check_sw_ver));
1096 1097 memcpy(g_sMetaComm.check_sw_ver,myversion.GetBuffer(myversion.GetLength()),myversion.GetLength());
1097 1098 SaveParaToSetupFile();
1098 1099 }
... ...
Please register or login to post a comment