C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-28-2007, 10:47 AM   #1
Registered User
 
Join Date: Apr 2007
Posts: 1
Linux serial port interrupts

Hello,

I've been searching all over for c++ serial port interfacing, I've found plenty of basic reading/writing using termios and various other libraries, but I can't seem to find much on the control signals.

What I want to do is to use something like interrupts (blocking, waiting, etc.) to catch when a control signal is changes (dsr, carrier detect, etc. ) and execute a function.

I've been able to find this in windows, but it needs the download of the huge windows platform sdk and vidual c++ express to use, and my main pc runs debian, so, a way in linux is what I'm hunting for.

The polling method seems quite cpu heavy and may not catch all the signals (since it can only poll at regular intervals).

Thank you for reading.

Cheers
danga1993 is offline   Reply With Quote
Old 04-28-2007, 11:15 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Probably a good place to start - http://www.lvr.com/serport.htm
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
serial port to poll on request infineonintern C++ Programming 2 06-11-2009 06:52 AM
Can't Read From Serial Port HalNineThousand Linux Programming 14 03-20-2008 05:56 PM
Serial port programming in Linux g4j31a5 C++ Programming 1 09-28-2006 08:24 PM
need guidance to connect to serial port gnychis Linux Programming 1 06-02-2005 10:10 AM
DOS, Serial, and Touch Screen jon_nc17 A Brief History of Cprogramming.com 0 01-08-2003 04:59 PM


All times are GMT -6. The time now is 07:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22