BE220C USER MANUAL
- 63 -
/*******************************************************************************************
Function for “CLOSE” button used to close current serial port.
********************************************************************************************/
void CSerialPortDlg::OnCloseCom()
{
m_pSerialPort->Close();
m_ButOpen.EnableWindow(TRUE);
/*
Enable
"Open"
button
*/
m_ButClose.EnableWindow(FALSE);
/* Disable "close" button */
}
/*******************************************************************************************
Function for “SEND” button used to send data by serial port.
********************************************************************************************/
void CSerialPortDlg::OnSend()
{
UpdateData(TRUE);
int
len
=
m_strSendEdit.GetLength();
for(int i = 0; i < len;i++)
m_cSendBuffer[i]
=
(char)m_strSendEdit.GetAt(i);;
BOOL status = m_pSerialPort->Send(m_cSendBuffer, len);
if
(!status)
MessageBox(_T("Can't
write
string to COM"),_T("Error"),MB_OK);
}
/*******************************************************************************************
Destory function of serial port test dialog
********************************************************************************************/
void CSerialPortDlg::OnDestroy()
{
CDialog::OnDestroy();
m_pSerialPort->Close();
delete
m_pSerialPort;
delete
m_cSendBuffer;
}
Close current serial port.
Send data by current serial port.
Close current serial port and delete
CSerialPort object.
Содержание BE220C
Страница 3: ...BE220C USER MANUAL 3 History of Version Version Contents Date Note 01 Original version 2013 12 18 Spec...
Страница 9: ...BE220C USER MANUAL 9 1 2 Specifications 1 2 1 System Functional Blocks...
Страница 11: ...BE220C USER MANUAL 11 1 3 Mechanical Specifications 1 3 1 Module Specifications...
Страница 18: ...BE220C USER MANUAL 18 STEP7 Enter URL at the Address box...
Страница 44: ...BE220C USER MANUAL 44 STEP4 After assembly finished as illustrated Front view Bottom view...
Страница 45: ...BE220C USER MANUAL 45 Side view...
Страница 49: ...BE220C USER MANUAL 49 3 Click Continue button 4 Click Finish button Now BE220C may connect to PC by ActiveSync...
Страница 50: ...BE220C USER MANUAL 50 5 Select No and click Next button to cancel the synchronization...
Страница 72: ...BE220C USER MANUAL 72 End of BE220C User Manual...