Fast timing and serial port ?
From: Charles Sullivan (cwsulliv_at_triad.rr.com)
Date: 11/13/05
- Next message: Alvin: "Re: Abolute path of argv[0]"
- Previous message: Måns Rullgård: "Re: Abolute path of argv[0]"
- Next in thread: Grant Edwards: "Re: Fast timing and serial port ?"
- Reply: Grant Edwards: "Re: Fast timing and serial port ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Nov 2005 16:30:18 GMT
I have an app which controls an external device via an RS232
serial port and standard port driver.
To actuate one feature in the app I need a timer in the 500-1000
microsecond range, however the basic timing resolution available
with nanosleep() under Linux is 10 milliseconds for a user
program. (I understand that setting a real-time scheduling
policy can provide finer resolution, but that it would require
running the app with root privileges.)
A serial port has it's own internal clock and I was wondering
if there is any way of accessing this through the standard
driver ioctl() to provide a timer with the required resolution?
Any thoughts will be appreciated.
Regards,
Charles Sullivan
- Next message: Alvin: "Re: Abolute path of argv[0]"
- Previous message: Måns Rullgård: "Re: Abolute path of argv[0]"
- Next in thread: Grant Edwards: "Re: Fast timing and serial port ?"
- Reply: Grant Edwards: "Re: Fast timing and serial port ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|