Newbie Q: Serial port communication with 'cu'

Newbie Q: Serial port communication with 'cu'

Post by Rickard Westerber » Sat, 15 May 1999 04:00:00



Please help a Linux newbie:

I'm trying to communcate with my COM1 serial port by using the 'cu'
command.
I need to set some parameters for my Cisco 765 router, which only can be
done by establishing a serial line connection and typing commands from
the prompt.

This is what happens:


cu: open (dev/ttys0): Input/output error
cu: /dev/ttys0: Line in use

What am I doing wrong? Why can't I establish a serial line connection
this way?
Please help me out, friends!

- Rickard Westerberg

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rickard Westerberg

Electronic Commerce &
Application Integration Technology

Frontec Norr AB

+46-920-75200
http://www.frontec.se
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  riwe.vcf
< 1K Download
 
 
 

Newbie Q: Serial port communication with 'cu'

Post by Curt » Sat, 15 May 1999 04:00:00


I've modified parameters on a 765 via minicom under linux or hyperterminal
under windows.
You might want to give them a try.


> Please help a Linux newbie:

> I'm trying to communcate with my COM1 serial port by using the 'cu'
> command.
> I need to set some parameters for my Cisco 765 router, which only can be
> done by establishing a serial line connection and typing commands from
> the prompt.

> This is what happens:


> cu: open (dev/ttys0): Input/output error
> cu: /dev/ttys0: Line in use

> What am I doing wrong? Why can't I establish a serial line connection
> this way?
> Please help me out, friends!

> - Rickard Westerberg

> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rickard Westerberg

> Electronic Commerce &
> Application Integration Technology

> Frontec Norr AB

> +46-920-75200
> http://www.frontec.se
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


 
 
 

Newbie Q: Serial port communication with 'cu'

Post by Rickard Westerber » Mon, 17 May 1999 04:00:00


Thanks for the advice! Minicom seems like a more reliable piece of
software than cu.
However, minicom also prints out an error message when trying to connect
to the serial port.

When starting minicom, I supplied the -s option and configured the
following in the menus:

serial port setup->serial device: /dev/ttys0 (instead of /dev/modem,
which was default)
Bps/Bits: 9600 8N1

And after I pressed 'exit' from the configuration menus, I got kicked
out to the OS prompt:

minicom: cannot open /dev/ttys0: Input/Output error

What's wrong? I did a 'ps' to see if there were any processes locking up
the serial device, but everything seems in order.

Please help me out

TIA
Rickard Westerberg


> I've modified parameters on a 765 via minicom under linux or hyperterminal
> under windows.
> You might want to give them a try.



> > Please help a Linux newbie:

> > I'm trying to communcate with my COM1 serial port by using the 'cu'
> > command.
> > I need to set some parameters for my Cisco 765 router, which only can be
> > done by establishing a serial line connection and typing commands from
> > the prompt.

> > This is what happens:


> > cu: open (dev/ttys0): Input/output error
> > cu: /dev/ttys0: Line in use

> > What am I doing wrong? Why can't I establish a serial line connection
> > this way?
> > Please help me out, friends!

> > - Rickard Westerberg

> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > Rickard Westerberg

> > Electronic Commerce &
> > Application Integration Technology

> > Frontec Norr AB

> > +46-920-75200
> > http://www.frontec.se
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rickard Westerberg

Electronic Commerce &
Application Integration Technology

Frontec Norr AB

+46-920-75200
http://www.frontec.se
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  riwe.vcf
< 1K Download
 
 
 

Newbie Q: Serial port communication with 'cu'

Post by Key » Tue, 18 May 1999 04:00:00


Maybe you mean /dev/ttyS0 instead of /dev/ttys0 ?
--
Keys   s/spam/news/ for my email address
Please post replies to this newsgroup as I'm too
lazy to check my email.
Spam bait: http://magic.hurrah.com/~ryan/funlink.cgi