
BETA903A USER MANUAL
- 68 -
BOOL CSerialPortDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
CenterWindow(GetDesktopWindow()); // center to the hpc screen
m_ComboBaud.SetCurSel(5); /* Define BaudRate: 115200 */
m_ComboData.SetCurSel(1); /* Define data bit: 8 bit */
m_ComboParity.SetCurSel(0); /* Define parity: none */
m_ComboPort.SetCurSel(0); /* Define searial port: COM1 */
m_ComboStop.SetCurSel(0); /* Define stop bit: 1bit */
m_ButClose.EnableWindow(FALSE); /* "Close"Button is disable*/
m_strRecDisp = _T("");
m_cSendBuffer = new char[60];
UpdateData(FALSE);
m_pSerialPort = new CSerialPort();
m_pSerialPort->SetCommMsg(m_hWnd, WM_CMD_OK);
return TRUE;
Create a CSerialPort object and
set current window as the
window which will process
received data.
}
/*******************************************************************************************
Implement function used to process receive data from serial port
********************************************************************************************/
LRESULT CSerialPortDlg::OnCommRecv(WPARAM wParam, LPARAM lParam)
{
CString tmp;
char *buf;
DWORD buflen;
buf = (char *)wParam; // memory pointer of received data
buflen = (DWORD)lParam; // received data length
CEdit *pRecvStrEdit = (CEdit*)GetDlgItem(IDC_REC_DISP);
for (int i = 0; i < buflen; i++, buf++)
Содержание 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 ...