LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-16-2006, 01:05 AM   #1
deathazre
LQ Newbie
 
Registered: Jul 2006
Location: Ohio
Distribution: Mandrake, Core4
Posts: 4

Rep: Reputation: 0
Using Serial Port to connect to server


Hey guys. The problem is myself, of course. I'm trying to communicate bi-directionally through ttyS0. I have tried agetty, but I get messages like 'pam: Invalid user"<server output>"'

By using:
stty 115200
cat ttyS0

I can see all the server output, up until it waits for input from me. This is where the rut lies, using this method is one-way communication. By using agetty or mgetty, it seems like the programs are creating a login prompt with the serial port. Upon receiving data from the server, these programs quit.

The goal here is to have two-way communication without any login, somewhat a simple direct terminal to the serial port.

Thanks in advance.
 
Old 07-16-2006, 01:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you should add the agetty commands to /etc/inittab to make it respawn, i set this up recently and didn't get anything actually functional till i had it in there: "s0:2345:respawn:/sbin/agetty -L 115200 ttyS0 vt100"
 
Old 07-16-2006, 02:39 AM   #3
deathazre
LQ Newbie
 
Registered: Jul 2006
Location: Ohio
Distribution: Mandrake, Core4
Posts: 4

Original Poster
Rep: Reputation: 0
0k. Upon adding the above lines to /etc/inittab, the terminal is no longer shut down when calling agetty as such:

/sbin/agetty -L 115200 ttyS0 vt100

I may be missing some mechanics here perhaps.

-----tail /var/log/messages:

Jul 16 03:26:56 localhost login(pam_unix)[3147]: bad username [ Sun Cobalt - Smaller, Bluer, Better, and Free]
Jul 16 03:26:56 localhost su(pam_unix)[3113]: session closed for user root
Jul 16 03:26:56 localhost login[3147]: FAILED LOGIN 1 FROM (null) FOR Sun Cobalt - Smaller, Bluer, Better, and Free, Authentication failure
Jul 16 03:26:57 localhost login(pam_unix)[3147]: check pass; user unknown
Jul 16 03:26:57 localhost login(pam_unix)[3147]: authentication failure; logname= uid=0 euid=0 tty=ttyS0 ruser= rhost=
Jul 16 03:27:00 localhost login[3147]: FAILED LOGIN 2 FROM (null) FOR done, Authentication failure
 
Old 07-16-2006, 02:44 AM   #4
deathazre
LQ Newbie
 
Registered: Jul 2006
Location: Ohio
Distribution: Mandrake, Core4
Posts: 4

Original Poster
Rep: Reputation: 0
More specifically, I don't see any IO.
 
Old 07-16-2006, 10:15 PM   #5
deathazre
LQ Newbie
 
Registered: Jul 2006
Location: Ohio
Distribution: Mandrake, Core4
Posts: 4

Original Poster
Rep: Reputation: 0
Minicom was my answer. Thanks.
 
  


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
Could not connect to Bluetooth device through the serial port dubrick_vit Linux - Hardware 0 01-16-2006 07:57 AM
Newbie Q - How do I connect to a IBM 7318 P10 serial server? nethbar AIX 4 10-04-2005 07:48 PM
Connect to a serial port??? clausa Linux - Hardware 2 08-30-2005 07:11 AM
PPP dial in server using Specilix Multiple Serial port In Linux 9.0 pawan Linux - Networking 0 09-17-2003 01:18 PM
how to create ppp server in RH 7.2 as small ISP thro serial port pentium5 Linux - General 5 07-06-2002 06:35 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration