
BETA903A USER MANUAL
- 72 -
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:
Display response message
from GSM module.
Hang up current call.
The phone number will be
dialed.
The button will be activated while receive
“RING” message. Click this button to answer
the phone.
Dial by input phone
number.
Below are the major source codes of the test program:
File: pGSMTestDlg.cpp
const UINT WM_CMD_REVMSG = 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()
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 ...