Example Code - Bolymin BETA903A User Manual

Mobile data terminal
Table of Contents

Advertisement

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:
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 = WM_USER+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 USER MANUAL
Data got from
GPS module.
Open/Close
communication
with GPS
module
- 82 -
SNR(Signal-Noise Ratio) of
Satellite Vechicles. SV used
to fix position will be marked
as blue.

Advertisement

Table of Contents
loading

Table of Contents