LinuxQuestions.org
Register a domain and help support LQ
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
 
Search this Thread
Old 04-25-2006, 02:41 PM   #1
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
[REQUEST] C prog || SERIAL PORT reading


hi,

i want a simple SERIAL PORT PROGRAM written in C that continuosly polls /dev/ttyS0 (or even send a interrupt and calls a particular C program say XYZ.c when some new data arrives and i should be able to know the data that is received )

can anyone help me in writing this program.

thanking in advance,

SPECS :

AMD64
2.6.11-1.1369_FC4 x86_64 GNU/Linux
 
Old 04-25-2006, 03:01 PM   #2
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
"Requests" are generally not handled here. If you state your problem and politely ask for help, maybe someone will help you.
 
Old 04-25-2006, 04:14 PM   #3
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
i am sorry if i sounded rude. i didnt mean to. i have actually gone throught the terminos.h and was kinda of confused with all the structures and stuff. i thought if any body has already written a program i could get the code.

sry again
 
Old 04-26-2006, 12:05 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
google results for serial port programming howto
http://tldp.org/HOWTO/Serial-Programming-HOWTO
 
Old 05-03-2006, 09:53 AM   #5
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
found the solution

thanks for the help. i was able to find the solutin from the above links
 
  


Reply

Tags
programming, serial port, tty


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
IBM AIX 5.2/5.3 serial port/tty0 port vinod_balani AIX 2 02-19-2006 03:38 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
reading data from a serial port mchitrakar Linux - Networking 3 12-04-2004 01:24 PM
Reading Baud Rate of Serial Port zaheer031 Programming 1 09-27-2004 12:47 PM


All times are GMT -5. The time now is 03:30 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 Google+: linuxquestions
Open Source Consulting | Domain Registration