LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-26-2006, 01:57 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
Serial Communication in Debian Linux


i m using Debian Linux -- how do i configure different serial port settings such as baud rate etc...and then once configured, how do i communicate with the device connected to the serial port?

Thanks for your help,

Ashlesha.

Last edited by ashlesha; 06-26-2006 at 02:01 PM.
 
Old 06-26-2006, 05:26 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You should find everything you need here.

http://www.tldp.org/HOWTO/Serial-HOWTO.html

Good luck.
 
Old 06-26-2006, 05:43 PM   #3
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
thanks,
ashlesha.
 
Old 06-26-2006, 06:04 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Your welcome.
 
Old 06-26-2006, 06:43 PM   #5
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
hey,
so i downloaded the setserial program..but there are no instructions as to how to install it..it contains an install sh file, but thats not running ok..

-a
 
Old 06-26-2006, 07:09 PM   #6
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
Well if it were me, I would try the following:

Open a terminal window, and switch to Super User by typing: su
And then enter the su or root password.

then type sh <name of install file>


If you have sudo working on your system, you could probably do this:

sudo sh <name of install file>
 
Old 06-26-2006, 07:36 PM   #7
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
i tried that already and got an error saying cannot run binary file..
 
Old 06-26-2006, 08:05 PM   #8
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
OK, what about using ./?:

Open a terminal window, and switch to Super User by typing: su
And then enter the su or root password.

then type ./ <name of install file>


If you have sudo working on your system, you could probably do this:

sudo ./ <name of install file>
 
Old 06-26-2006, 08:11 PM   #9
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
nope does not work!

this is what i need the serial port for:

i want to write a linux kernel and the rootfs to the flash memo of an MIPS board that i ve connected to the serial port of my computer..so i m trying to establish an interface where i can give commands and read responses from the processor.
 
Old 06-26-2006, 08:59 PM   #10
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
hey,

i found it..minicom is installed on the machine so i can use that!

thanks for your help!!
-a
 
  


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
Serial port communication.. brianbek Linux - Software 2 01-23-2006 01:43 PM
Serial port communication in 'C' on Linux kirti Linux - Hardware 1 06-25-2004 02:58 PM
communication with serial port vidyaraj Linux - Hardware 0 03-09-2004 09:32 PM
serial port communication vidyaraj Linux - Software 6 03-02-2004 07:46 PM
Serial communication - minicom sg3 Linux - Networking 0 07-17-2003 01:00 AM


All times are GMT -5. The time now is 10:41 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