LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   [REQUEST] C prog || SERIAL PORT reading (https://www.linuxquestions.org/questions/programming-9/%5Brequest%5D-c-prog-%7C%7C-serial-port-reading-438746/)

nawin_g 04-25-2006 02:41 PM

[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

addy86 04-25-2006 03:01 PM

"Requests" are generally not handled here. If you state your problem and politely ask for help, maybe someone will help you.

nawin_g 04-25-2006 04:14 PM

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

Wim Sturkenboom 04-26-2006 12:05 AM

google results for serial port programming howto
http://tldp.org/HOWTO/Serial-Programming-HOWTO

nawin_g 05-03-2006 09:53 AM

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


All times are GMT -5. The time now is 11:14 AM.