Search:

Type: Posts; User: rpinsky

Search: Search took 0.00 seconds.

  1. Replies
    17
    Views
    11,494

    #define RTX_115K_BAUD 0x85

    #define RTX_115K_BAUD 0x85
  2. Replies
    17
    Views
    11,494

    Here is the code: rtxSpaFd = open...

    Here is the code:



    rtxSpaFd = open (RTX_SPA_DEVICE, O_RDWR | O_NOCTTY | O_NDELAY );
    if (rtxSpaFd == -1)
    {
    cout << "Can't open device " << RTX_SPA_DEVICE << ", error = " <<...
  3. Replies
    17
    Views
    11,494

    The code is a couple of hundred lines long. But...

    The code is a couple of hundred lines long. But let me tell you what I am doing. I use an open command. Then I write six bytes to the serial port (the command is two bytes long and I send three...
  4. Replies
    17
    Views
    11,494

    Since read blocks, I can't read unless there is a...

    Since read blocks, I can't read unless there is a way to look ahead to see if there are characters in the input buffer. I want to clear the buffer, then go into a blocking read.

    There is some...
  5. Replies
    17
    Views
    11,494

    One other question. After doing a write, does...

    One other question. After doing a write, does the data go out immediately or is it buffered in linux? Normally I would use a fflush when I want to make sure data is sent immediately. Is there an...
  6. Replies
    17
    Views
    11,494

    Is there a routine that would clear the input...

    Is there a routine that would clear the input buffer (i.e. read everything off and throw it away)? I want to clear the buffer, than I want my next call to read to block indefinitely until data is...
  7. Replies
    17
    Views
    11,494

    I read the man page on fcntl and I am not sure...

    I read the man page on fcntl and I am not sure what "fcntl(fd, F_SETFL,0);" does.

    Secondly, the device I am connected to does use hardware flow control in case my software gets behind in reading...
  8. Replies
    17
    Views
    11,494

    I have selected just the I/O statements that I...

    I have selected just the I/O statements that I think are relavent. I open the file, set the configuration, write a few bytes, then I read data and then write again. It is after I write again when...
  9. Replies
    17
    Views
    11,494

    Problem with Serial I/O to RS-232 Port

    I am opening a /dev/ttyUSB0 device using fopen using mode "w+". I need to both read and write from the device. I have set the port to raw mode (using tcgetattr, cfmakeraw, and tcsetattr). I use...
Results 1 to 9 of 9