LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-26-2007, 05:27 AM   #1
kokotx1981
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Rep: Reputation: 15
Serial Connection Between Windows Desktop and Linux Laptop


Hi everybody, if anyone knows where this thread would suit best, please let me know.
I'm trying to communicate two computers via the serial ports.
I am running hyperterminal in the desktop with XP and minicom in the laptop with RED HAT.
After configuring both Hyperterminal and Minicom, I have been able to type characters in both computers and see them in the opposite one, so I guess the serial communication is working.
However, while I am connected to the hyperterminal, I don't see the promt user@user_name $ from the laptop. I use to see it a couple of weeks ago and that indicated that I was connected to the laptop (the laptop I am using now is a different one).

Why am I able to send characters from one computer to another but I don't get that promt?
Is the serial communication working proparly?
If you need any other information please let me know.

Thank you veru much!
Jon.
 
Old 11-26-2007, 08:14 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
To actually log into the Linux machine over a serial connection, you need to spawn a serial getty on the port, not run minicom. Close out minicom, which will free up the serial port for your getty to listen on it. Since you saw the prompt before, it sounds like one is already setup and listening.
 
Old 11-26-2007, 08:38 AM   #3
kokotx1981
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Problem solved, another one appeared

Quote:
Originally Posted by MS3FGX View Post
To actually log into the Linux machine over a serial connection, you need to spawn a serial getty on the port, not run minicom. Close out minicom, which will free up the serial port for your getty to listen on it. Since you saw the prompt before, it sounds like one is already setup and listening.
hi, thank you for the idea but I finally solved the problem this way. I had to add this line to /etc/inittab
co:2345:respawn:/sbin/agetty ttyS0 115200 vt100
and this other to /etc/securetty
ttyS0
Anyway, I rebooted the laptop and ttyS0 file has dissapeared from /dev folder. Now I only have ttys0, ttys1....
So I can't establish the telnet connection any more.
I have tried creating again with ./MAKEDEV ttyS0 and it creates it. But then I try:
setserial ttyS0 port 03F8 irq 4 autoconfig
to setup the serial port parameters and I get, "ttyS0,no such device or address".
Do you know what's happening?
Thank you very much again!

Last edited by kokotx1981; 11-26-2007 at 08:40 AM.
 
Old 11-26-2007, 10:33 AM   #4
kokotx1981
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Just in case it could help someone to help me:

-If I type the following commmand from /dev:
ls -l ttyS0 --> crwxrwxrwx 1 root root 4, 64 Nov 26 11:11 ttyS0

But if I type:
setserial -g ttyS0 --> ttyS0: No such device or addres

And if I type:
dmesg ¦ grep "tty" --> Nothing appears, I get again the user promt.

What can I do to get the ttyS0 back?

Thank you very much!
 
  


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
Windows -> Linux Serial Connection Client Ploes Linux - General 2 11-20-2006 10:47 AM
Windows to Linux connection via Serial Port andrewm659 Linux - Networking 11 02-23-2006 03:57 PM
remote desktop connection to windows through linux? poiuytrewq Linux - Software 12 09-15-2005 11:03 PM
Remote Desktop Connection: Windows-to-Linux easyE Linux - General 12 05-15-2005 03:25 AM
Serial Connection from FreeSCO to Linux laptop hotwire911 Linux - Newbie 2 03-29-2005 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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