Re: Real-Time Serial Problems

New Message Reply Date view Thread view Subject view Author view

Wayne Erchak (wayne++at++setd-ctl.nawcad.navy.mil)
Sat, 7 Nov 1998 12:50:13 -0500


>I've been told by people in the business of building
>head-trackers that the Onyx systems only service
>the serial port at a 50Hz rate at best. This

The reason for this is because the OS buffers incoming data to save CPU time.
Include the following in your program to get very high sampling rates at the
expense of the CPU (fd is the file descriptor for whatever serial device you
are using):

#include <sys/z8530.h>

  //don't chunkifiy upstream data to save CPU time
  if(ioctl(fd, SIOC_ITIMER, 0) == -1) {
    perror("ioctl");
    exit(1);
  }

-- 
Wayne Erchak
Naval Air Warfare Center
wayne++at++setd-ctl.nawcad.navy.mil

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Sat Nov 07 1998 - 09:51:15 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.