BE220C USER MANUAL
- 60 -
3.3.3 Example Code
Bolymin provide a test application and its source code for example. Below picture is the screen
shot of the serial port test program:
Below are the major source codes of the test program:
/////////////////////////////////////////////////////////////////////////////
// CSerialPortDlg dialog
/////////////////////////////////////////////////////////////////////////////
const UINT WM_CMD_OK = 1;
BEGIN_MESSAGE_MAP(CSerialPortDlg, CDialog)
//{{AFX_MSG_MAP(CSerialPortDlg)
ON_BN_CLICKED(IDC_OPEN_COM,
OnOpenCom)
ON_BN_CLICKED(IDC_CLOSE_COM,
OnCloseCom)
ON_BN_CLICKED(IDC_SEND,
OnSend)
ON_BN_CLICKED(IDC_CLEAR_SEND,
OnClearSend)
ON_BN_CLICKED(IDC_CLEAR_REC,
OnClearRec)
ON_WM_DESTROY()
//}}AFX_MSG_MAP
ON_MESSAGE(WM_CMD_OK,
OnCommRecv)
END_MESSAGE_MAP()
Select serial port and setup its
parameter values.
Open/Close selected serial port.
Data will be sent by
selected serial port
Received data
Send data
Clear sent data.
Clear received data
Define a receive message
Map the receive message processing
function to user defined message.
File: SerialPortDlg.cpp
Summary of Contents for BE220C
Page 9: ...BE220C USER MANUAL 9 1 2 Specifications 1 2 1 System Functional Blocks...
Page 11: ...BE220C USER MANUAL 11 1 3 Mechanical Specifications 1 3 1 Module Specifications...
Page 18: ...BE220C USER MANUAL 18 STEP7 Enter URL at the Address box...
Page 44: ...BE220C USER MANUAL 44 STEP4 After assembly finished as illustrated Front view Bottom view...
Page 45: ...BE220C USER MANUAL 45 Side view...
Page 50: ...BE220C USER MANUAL 50 5 Select No and click Next button to cancel the synchronization...
Page 72: ...BE220C USER MANUAL 72 End of BE220C User Manual...