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