while(main_run_stat)
{
FD_ZERO(&read_fds);
FD_SET(m_handle, &read_fds);
res = select(m_handle+1, &read_fds, NULL, NULL, NULL);
rxcnt = read(m_handle, rxbuff, sizeof(rxbuff));
int SerialThrProc::SerialOpen()
{
struct termios oldtio,newtio;
m_handle = open("/dev/ttySAC2",O_RDWR | O_NOCTTY);
tcgetattr(m_handle, &oldtio);
memset(&newtio,0,sizeof(newtio));