
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 '$'
Summary of Contents for BETA903A
Page 19: ...BETA903A USER MANUAL 19 1 3 2 Mechanical specifications of Holder Mount ...
Page 49: ...BETA903A USER MANUAL 49 STEP2 Select Windows folder STEP3 Run KeyPadTest program ...
Page 55: ...BETA903A USER MANUAL 55 5 Select No and click Next button to cancel the synchronization ...
Page 60: ...BETA903A USER MANUAL 60 STEP 5 Click Next button STEP 6 Click Next button ...
Page 94: ...BETA903A USER MANUAL 94 STEP 3 Add process code into message processing function ...
Page 95: ...BETA903A USER MANUAL 95 End of BETA903A User Manual ...