
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()
Содержание 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 ...