
BETA903A USER MANUAL
- 85 -
void CPGPSTestDlg::OnClose()
{
if (m_bOpenGPS)
m_pSerialPort->Close();
delete m_pSerialPort;
delete m_pGPSTranslator;
CDialog::OnClose();
}
/*******************************************************************************************
Implement function used to process receive data from serial port
********************************************************************************************/
LRESULT CPGPSTestDlg::OnCommRecv(WPARAM wParam, LPARAM lParam)
{
CString tmp;
char *buf;
DWORD buflen;
int i;
buf = (char *)wParam;
buflen = (DWORD)lParam;
if (m_bShowMsg)
{
for (i = 0; i < buflen; i++, buf++)
{
tmp.Format(_T("%c"), *buf);
m_str= tmp;
}
UpdateData(FALSE);
}
// Catch a complete GPS message. Start with '$', end by '*', ignore checksum.
i = 0;
while (buflen>0)
{
if (m_iCurBufIndex==0)
{ // message start, find '$'
Содержание BETA903A
Страница 2: ...BETA903A USER MANUAL 2 History of Version Version Contents Date Note 01 New Version 2010 03 27 SPEC ...
Страница 18: ...BETA903A USER MANUAL 18 1 3 1 3 1 Mechanical specifications Mechanical specifications of module ...
Страница 19: ...BETA903A USER MANUAL 19 1 3 2 Mechanical specifications of Holder Mount ...
Страница 22: ...BETA903A USER MANUAL 22 2 2 Install a GSM antenna Please screw up the antenna into the position as highlighted ...
Страница 49: ...BETA903A USER MANUAL 49 STEP2 Select Windows folder STEP3 Run KeyPadTest program ...
Страница 55: ...BETA903A USER MANUAL 55 5 Select No and click Next button to cancel the synchronization ...
Страница 60: ...BETA903A USER MANUAL 60 STEP 5 Click Next button STEP 6 Click Next button ...
Страница 94: ...BETA903A USER MANUAL 94 STEP 3 Add process code into message processing function ...
Страница 95: ...BETA903A USER MANUAL 95 End of BETA903A User Manual ...