
BETA903A USER MANUAL
- 82 -
4.5.3.
Example code
Bolymin provide a simple program and its source code for example. The program could receive
GPS data and display. Below picture is the screen shot of the GPS test program:
Open/Close
communication
with GPS
module
SNR(Signal-Noise Ratio) of
Satellite Vechicles. SV used
to fix position will be marked
as blue.
Data got from
GPS module.
Status and received GPS message will be displayed here.
Click “Show GPS message” check box to ON/OFF the GPS
message display.
Click “Clear message” button to clear all message here.
Below are the major source codes of the test program:
File: pGPSTestDlg.cpp
const UINT WM_CMD_REVMSG = 1;
/////////////////////////////////////////////////////////////////////////////
// CPGPSTestDlg dialog
BEGIN_MESSAGE_MAP(CPGPSTestDlg, CDialog)
//{{AFX_MSG_MAP(CPGPSTestDlg)
ON_WM_CLOSE()
ON_WM_TIMER()
ON_WM_PAINT()
ON_BN_CLICKED(IDC_CHECK_SHOWMSG, OnCheckShowmsg)
ON_BN_CLICKED(IDC_BTN_CLEARMSG, OnBtnClearmsg)
ON_BN_CLICKED(IDC_BTN_OPENGPS, OnBtnOpengps)
//}}AFX_MSG_MAP
ON_MESSAGE(WM_CMD_REVMSG, OnCommRecv)
END_MESSAGE_MAP()
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 ...