![]() |
| | #16 |
| Registered User Join Date: Jun 2009
Posts: 34
| |
| synthetix is offline | |
| | #17 | |
| Registered User Join Date: Oct 2008 Location: TX
Posts: 1,262
| Quote:
Code: fcntl(fd_serialport, F_SETFL, 0); The power of select() is in its ability to poll each file descriptor in turn, waiting for an event or else timing out. | |
| itCbitC is offline | |
| | #18 | |
| Registered User Join Date: Jun 2009
Posts: 34
| Quote:
I did make a variant of this program that does absolutely nothing but send and receive serial port commands. Now, with this one I had to assign a timeout value to select() because the flow of data was not constant. It was a program I wrote to check for proper operation of the first program (this time server side instead of client side). Once commands are sent, the client only responds once, hence complete lockup (blocking) unless you timeout select(). | |
| synthetix is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sending data over UDP from serial port | forumguy | Linux Programming | 0 | 04-25-2009 02:10 PM |
| can someone help me with these errors please code included | geekrockergal | C Programming | 7 | 02-10-2009 02:20 PM |
| Problem with string and serial port | collinm | C Programming | 2 | 03-23-2005 10:19 AM |
| Serial Communications in C | ExDigit | Windows Programming | 7 | 01-09-2002 10:52 AM |
| Need help or info about serial port communication | Unregistered | Linux Programming | 1 | 01-08-2002 01:48 PM |