![]() |
| | #1 |
| Registered User Join Date: Apr 2007
Posts: 1
| Linux serial port interrupts 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 | |
| | #2 |
| and the hat of vanishing 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |