Example Code - Bolymin BETA903A User Manual

Mobile data terminal
Table of Contents

Advertisement

4.4.2.

Example code

Bolymin provide a simple application and its source code for example. The simple application
demonstrates the operations of dial and answer a phone by GSM module. Below picture is the
screen shot of the GSM application:
Dial by input phone
number.
Below are the major source codes of the test program:
File: pGSMTestDlg.cpp
const UINT WM_CMD_REVMSG = WM_USER+1;
BEGIN_MESSAGE_MAP(CPGSMTestDlg, CDialog)
//{{AFX_MSG_MAP(CPGSMTestDlg)
ON_WM_CLOSE()
ON_BN_CLICKED(IDC_BTN_CONNECT, OnBtnConnect)
ON_BN_CLICKED(IDC_BTN_DISCONNECT, OnBtnDisconnect)
ON_BN_CLICKED(IDC_BTN_DIAL, OnBtnDial)
ON_WM_TIMER()
//}}AFX_MSG_MAP
ON_MESSAGE(WM_CMD_OK, OnCommRecv)
END_MESSAGE_MAP()
BETA903A USER MANUAL
The button will be activated while receive
"RING" message. Click this button to answer
the phone.
- 72 -
Display response message
from GSM module.
The phone number will be
dialed.
Hang up current call.

Advertisement

Table of Contents
loading

Table of Contents