안녕하세요...
시리얼 포트 감시에 대해서 질문이 있습니다...
현재 저의 프로그램에서는 while문에 의해서 계속 시리얼 포트를 감시하고
있거든요...
코드는 다음과 같습니다...
[code:1]
void laser::serial()
{
int nread,result;
struct termios oldtio, newtio;
struct timeval timeout;
int max_fd;
fd_set readfs;
fd0 = open(SERIALDEVICE,O_RDWR|O_NOCTTY);
if(fd0<0)
{
QMessageBox::information(this,"port", "file open error");