LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Serial Connection Between Windows Desktop and Linux Laptop (https://www.linuxquestions.org/questions/red-hat-31/serial-connection-between-windows-desktop-and-linux-laptop-602440/)

kokotx1981 11-26-2007 05:27 AM

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.

MS3FGX 11-26-2007 08:14 AM

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.

kokotx1981 11-26-2007 08:38 AM

Problem solved, another one appeared
 
Quote:

Originally Posted by MS3FGX (Post 2971123)
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!

kokotx1981 11-26-2007 10:33 AM

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!


All times are GMT -5. The time now is 07:54 AM.