LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-08-2004, 08:53 AM   #1
yashika
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
configuring serial ports


In linux,what are the settings that have to be done in order to make the serial ports communicate with each other.
 
Old 09-08-2004, 09:10 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You enter all the settings (like speed) in the communication program you use.
 
Old 09-08-2004, 05:52 PM   #3
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Or you can specify things at the command line using the stty command for terminal apps.
 
Old 09-08-2004, 09:23 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,870

Rep: Reputation: 87
Quote:
..in order to make the serial ports communicate with each other...
Mentioning what you are intending to do may be useful...
 
Old 09-09-2004, 03:29 AM   #5
yashika
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
making serialports communicate

Thanx a lot for the reply but i've already tried this through stty but failed to make the comports communicate,the data written on one comport is not being read by another comport. Either the program would hang on read or even if it reads something then the garbage values r displayed instead of the actual data which has been sent to it.

Quote:
Originally posted by Mara
You enter all the settings (like speed) in the communication program you use.
 
Old 09-09-2004, 04:03 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You can configure the post, but communication programs override the settings. So if your have the same program on both machines with different settings (for example speed) it may not work even if you use stty. Which program do you use to communicate? Is it standard?
 
Old 10-28-2004, 07:44 AM   #7
judge_neo
Member
 
Registered: Sep 2004
Location: dumfries, scotland
Distribution: Mandrake10.1 ce
Posts: 65

Rep: Reputation: 15
I've just started using minicom for serial communication, maybe you should check it out. It's easy to configure and use.

 
  


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
Can only use one of my serial ports steaktc Linux - Hardware 1 11-23-2005 07:07 AM
Serial ports KenHorse Programming 2 12-27-2004 09:49 AM
Heartbeat through serial ports linuxboy69 Linux - Networking 1 02-09-2004 07:50 PM
accessing serial ports w/ c++ iggy_mon Programming 3 08-31-2003 08:05 PM
Serial Ports (tty´s) aqoliveira Linux - Hardware 4 06-21-2002 11:06 AM


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