Search Results

Search: Posts Made By: yimab
Forum: Programming 10-11-2005
7,257
Posted By yimab
The code: ...
The code:
/////////////////////////////////////////////////////////////////////////////
tv.tv_sec = 3; /*3 second*/
tv.tv_usec = 0;
FD_ZERO(&rfds);
FD_SET(fd,...
Forum: Programming 10-11-2005
7,257
Posted By yimab
Perderabo, thanks a lot. After select() and...
Perderabo, thanks a lot.

After select() and if(FD_ISSET(fd, &rfds)), then I read the buffer. As you mentioned, I only can read 8 bytes one time (my full reply message is 13 bytes) by...
Forum: Programming 10-11-2005
7,257
Posted By yimab
how to prevent deadlock on this...
I am using linux termios structure to configure serial port and read the port by read function. For some reason, if I read the whole buffer, almost every time the buffer does not contain the correct...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy