2,640
社区成员
发帖
与我相关
我的任务
分享
m_ctrlComm.SetCommPort(1);
m_ctrlComm.SetInputMode(1);
//ctrlComm.SetInBufferSize(2048);
//ctrlComm.SetOutBufferSize(1024);
m_ctrlComm.SetSettings("19200,n,8,1");
if (!m_ctrlComm.GetPortOpen())
m_ctrlComm.SetPortOpen(TRUE);
m_ctrlComm.SetRThreshold(1);
m_ctrlComm.SetInputLen(0);
m_ctrlComm.GetInput();