LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2008, 01:15 AM   #1
aathisankar148
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Rep: Reputation: 0
how to read the signals from rs 232 port


Hi friends i am new this forum.I found this forum helping in clearing the doubts of many.I need a help from you friends.I am working on one project.As a part of the project i have to catch the sigals that are sent from the rs232 port like the (signals from UPS,etc)via c- program.so i need your help in doing that.Please help me out in this.Thank you.
 
Old 09-13-2008, 09:56 AM   #2
ciphyre
Member
 
Registered: Aug 2008
Distribution: FEDORA, RHEL, SLES
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by aathisankar148 View Post
Hi friends i am new this forum.I found this forum helping in clearing the doubts of many.I need a help from you friends.I am working on one project.As a part of the project i have to catch the sigals that are sent from the rs232 port like the (signals from UPS,etc)via c- program.so i need your help in doing that.Please help me out in this.Thank you.

A good starting point should be looking up the RS232 standard:

http://www.camiresearch.com/Data_Com..._standard.html
http://en.wikipedia.org/wiki/RS-232

Hope that helps.
 
Old 09-16-2008, 09:27 AM   #3
aathisankar148
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks

Hi ciphyre..
i thank you very much for the links the links that you gave.I also searched the wikipedia about this and got idea about the rs232 port and connection.could you sugget any sample c porgram (or in any other language) to read the siganls from the rs232 serial port.
 
Old 09-16-2008, 11:19 AM   #4
apnicservices
LQ Newbie
 
Registered: Jul 2008
Location: London, UK
Distribution: Debian
Posts: 23

Rep: Reputation: 16
Quote:
Originally Posted by aathisankar148 View Post
Hi ciphyre..
i thank you very much for the links the links that you gave.I also searched the wikipedia about this and got idea about the rs232 port and connection.could you sugget any sample c porgram (or in any other language) to read the siganls from the rs232 serial port.
Have you used 'minicom'? Use minicom to communicate with your serial port (/dev/ttySx). Once this works for you, you can GOOGLE for a sample C program of which there are many, to work with your serial port :-)

http://www.beyondlogic.org/serial/serial1.htm
http://electrosofts.com/serial/
 
Old 09-16-2008, 11:29 AM   #5
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Take a look there:
http://tldp.org/HOWTO/Serial-Programming-HOWTO/
 
Old 09-19-2008, 12:44 AM   #6
aathisankar148
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Hi friends ,
i thank you very much for the links. i am new to minicom and i didnt used that . Could you tell me what is that ...
thank you ..
 
Old 09-19-2008, 02:40 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
minicom is a terminal program, one that you use to communicate with your modem (to dial into BBSes in the old days, for example), if you have one.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ RS232/serial port - problem with signals or interrupts muzic Programming 14 08-12-2008 01:56 AM
Serial Port (RS-232) programming on a Linux Machine tmclint Linux - Software 2 03-26-2008 08:36 PM
any x/y/zmodem supporting terminal to transfer files via RS-232 port? baosheng Linux - Hardware 7 08-15-2007 03:17 AM
I want to sent string out to serial port com1 (RS-232) lek171 Programming 1 12-25-2005 03:44 PM
cannot read port 22 for ssh pauly99 Linux - Newbie 2 07-04-2004 12:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration