Originally Posted by ShwetaRuhela
I have serial port recognized in window as COM11.
I configured this as COM2 and i am able to communicate with this port via Hyperterminal/Realterm.
Same Port i want to access in Ubuntu.
I am using Ubuntu 10.04 LTS.
I testes both /dev/ttyS0 and /dev/ttyS1 with baudrate 9600 (or 115200) via minicom/gtkterm in loopback mode(keeping shorted RX and Tx lines in DB9 male connector). No one is responding.
I checked Serial ports using command...
>dmesg | grep ttyS
[ 1.870186] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.870461] 00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Serial port is enabled. i have checked in BIOS information.
Device driver list for serial port is this...
8250_accent.ko 8250_boca.ko 8250_exar_st16c554.ko 8250_fourport.ko 8250_hub6.ko 8250_mca.ko jsm max3100.ko serial_cs.ko
USB to serial converter (/dev/ttyUSB0) work best with minicom.
But i want to use serial ports not USB.
How i can use my serial port?
plz help me...
Run command as below in root term.
[root@MS-7005-archbang ~]# setserial -g /dev/ttyS[0,1,2,3]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
Notice ttyS1-ttyS3 are not setup in my case.
Use setserial to setup/configure the ports you need to use.
As an Example, In my case, I would run command below in root terminal to enable/setup ttyS1:
setserial /dev/ttyS1 port 0x02f8 UART 16550A irq 3 Baud_base 115200
Add the line to your rc.local or equivalent script if you want it enabled upon bootup.