Hi all, I use the following code in order to read from a serial port based on the command I write there first. Code: write(*dev_fd,pwise_command,PWISE_COMMAND_SIZE); int p_devbytes = 1; while(p_devbytes) { FD_SET(*dev_fd,&fdsread); fdsreaduse = fdsread; q.tv_sec = 5; q.tv_usec = 0; sel_res = select((*dev_fd+1),&fdsreaduse,NULL,NULL,&q); if (sel_res == -1 || sel_res == 0) { break; } else if(FD_ISSET(*dev_fd,&fdsreaduse)) { memset(&p_devdata[0], 0, sizeof(p_devdata)); ...