LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-01-2004, 09:56 AM   #1
cardias
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
serial: ttyS0 - how to use the IRQ ?hi!


hi!
i've written a program to send and read raw data through serial port (/dev/ttyS0). it works fine, but during the read() i have to poll until a get the expected amount of bytes in the buffer. i would like to use the IRQ to wake up my read() process when the buffer is ready to be read.
i would appreciate any suggestions.

thanks,
cardias.
 
Old 09-01-2004, 11:10 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,524

Rep: Reputation: 93
Can't use IRQ's in UNIX/Linux (unless you're doing kernel programming).
Check these pages for alternatives:
http://www.easysw.com/~mike/serial/
http://www.stokely.com/unix.serial.port.resources/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
writing to serial port, /dev/ttyS0 togunter Programming 2 06-08-2008 09:27 AM
ttyS0 - I only have one serial interface, believe me. calutateo Linux - Hardware 3 06-25-2005 12:55 AM
Unable to communicate using serial port (COM1) /dev/ttys0 vinaybms Linux - Networking 1 03-11-2005 08:08 AM
speed/specs for ttyS0 or some other standard serial port? BigDawg Programming 3 01-23-2004 11:47 AM
Serial comms - script to poll /dev/ttyS0 chr15t0 Linux - Networking 1 07-08-2003 10:18 PM


All times are GMT -5. The time now is 03:54 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration