Originally Posted by daniel520
i tryed it and tryed agetty and migetty
i'm getting error no /dev/ttys0 not found in minicom
and in : agetty -h -t 60 ttys0 9600 vt 102
get empty line
For starters, there is no such thing as /dev/ttys0, but you should find /dev/ttyS0. That's with a capital "S" As always, Linux is totally case sensitive.
You can use the setserial
command, as root, to view/set parameters on your serial ports. See "man setserial". By default, Fedora will usually show 4 default serial ports: ttyS0....ttyS3, even though you may only actually have one or two real
serial ports. If you don't have any actual serial ports but are using a USB>Serial adapter, then the working "serial" port is /dev/ttyUSB0[1,2,3...].
To query your serial port(s) with setserial:
BASH:~/-> sudo setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0xa000, IRQ: 16
...or to get the results returned in the format you would use to set the parameters, use the -G option:
BASH:~/-> sudo setserial -G /dev/ttyS1
/dev/ttyS1 uart unknown port 0x02f8 irq 3 baud_base 115200 spd_normal skip_test auto_irq
BASH:~/-> sudo setserial -G /dev/ttyUSB0
/dev/ttyUSB0 uart 16550A port 0x0000 irq 0 baud_base 9600 spd_normal skip_test auto_irq
On my system I have both a single real serial port (ttyS0) a one USB>Serial adapter serial port. Notice that on ttyS0 and ttyUSB0 the uarts are identified (as 16550A's). That means these are real
ports. For ttyS1, the uart is reported as "unknown", which means that that port is actually non-existent..... it's a "phantom" port.
I give you this information so that you can know for sure what ports you have and what their current parameters are set to. Minicom is not the easiest program to learn. I've used it in the past a lot, but have switched to using PuTTy (yum install putty), which can provide you with a VT for a serial port with much easier GUI configuration that the minicom configuration scheme.
Also, before you can get any data to flow between your VT, whether minicom, putty or anything else, and the device connected to the serial port, the ports baud rate must be set to match the working baud rate of the device connected to it. I know nothing about Cisco routers, and what command set is used on them. Hope this helps, even if only a little.