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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-12-2008, 01:15 AM
|
#1
|
LQ Newbie
Registered: Sep 2008
Posts: 8
Rep:
|
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.
|
|
|
09-13-2008, 09:56 AM
|
#2
|
Member
Registered: Aug 2008
Distribution: FEDORA, RHEL, SLES
Posts: 51
Rep:
|
Quote:
Originally Posted by aathisankar148
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.
|
|
|
09-16-2008, 09:27 AM
|
#3
|
LQ Newbie
Registered: Sep 2008
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
09-16-2008, 11:19 AM
|
#4
|
LQ Newbie
Registered: Jul 2008
Location: London, UK
Distribution: Debian
Posts: 23
Rep:
|
Quote:
Originally Posted by aathisankar148
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/
|
|
|
09-16-2008, 11:29 AM
|
#5
|
Member
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493
Rep:
|
|
|
|
09-19-2008, 12:44 AM
|
#6
|
LQ Newbie
Registered: Sep 2008
Posts: 8
Original Poster
Rep:
|
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 ..
|
|
|
09-19-2008, 02:40 AM
|
#7
|
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|