You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "sysapi.h"
|
|
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
|
|
|
|
|
|
class CSimTest
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CSimTest(int index, const char* ate);
|
|
|
|
|
virtual ~CSimTest(void);
|
|
|
|
|
|
|
|
|
|
int Init();
|
|
|
|
|
int Deinit();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
void ChkTest();
|
|
|
|
|
void ChkHome();
|
|
|
|
|
void ChkConn();
|
|
|
|
|
void RecvMsg();
|
|
|
|
|
void Disconnect();
|
|
|
|
|
|
|
|
|
|
int FindEnd(char* pszmsg);
|
|
|
|
|
int ParseMsg(char* pszmsg); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
int ParseStartParam(char* pszmsg);
|
|
|
|
|
|
|
|
|
|
void SendMsg(const char *pszFormat, ...); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
|
|
|
|
|
int Process(); //<2F>̺߳<DFB3><CCBA><EFBFBD>
|
|
|
|
|
static int WINAPI ThreadFun(void* param);
|
|
|
|
|
|
|
|
|
|
bool isRun() { return _bhome || _btest; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
int _status; //<2F><><EFBFBD><EFBFBD>״̬
|
|
|
|
|
int _index;
|
|
|
|
|
char _ate[MAX_NAME_LEN];
|
|
|
|
|
|
|
|
|
|
bool m_brun; //<2F>߳<EFBFBD><DFB3><EFBFBD><EFBFBD>б<EFBFBD>ʶ
|
|
|
|
|
Handle m_hThread; //<2F>߳̾<DFB3><CCBE><EFBFBD>
|
|
|
|
|
int _skt; //<2F><><EFBFBD>Ӿ<EFBFBD><D3BE><EFBFBD>
|
|
|
|
|
|
|
|
|
|
//ģ<><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
bool _bsendgr; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>GR
|
|
|
|
|
bool _btest; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
bool _bhome; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ԭ<EFBFBD><D4AD>
|
|
|
|
|
ulong _start; //<2F><><EFBFBD>Կ<EFBFBD>ʼʱ<CABC><CAB1>
|
|
|
|
|
char _res[MAX_BUF_LEN]; //<2F><><EFBFBD>Խ<EFBFBD><D4BD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
string SN;
|
|
|
|
|
string Machine;
|
|
|
|
|
string User;
|
|
|
|
|
string Config;
|
|
|
|
|
string Lot;
|
|
|
|
|
string Mode;
|
|
|
|
|
string SiteID;
|
|
|
|
|
string ProjectID;
|
|
|
|
|
string RetryMode;
|
|
|
|
|
};
|