Serial port not working in 10.10
Goran Hasse
gorhas at gmail.com
Sat Dec 18 10:51:53 UTC 2010
2010/12/18 Nils Kassube <kassube at gmx.net>
> Goran Hasse wrote:
> > I have tried all kinds of serial-modules (witch should it bee?) and
> > both minicom and cu (connect unix) without success. So I think it is
> > a device driver problem...
>
> Unless you have compiled your own kernel, the driver for the serial
> ports should be in the kernel, you don't need extra modules. You could
> check if the serial ports are detected with the command
>
> dmesg|grep 8250
>
> in a terminal. The output should look like this:
>
> [ 0.382331] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [ 0.382481] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
>
> The second line tells you which port is detected, if there are several
> ports, there should be individual lines for each port. If you only see
> the first line, there is no port detected. However if you have some
> serial card with non-standard hardware ports, you may need the setserial
> program to initialize the port(s) on that card.
>
dmesg | grep 8250
[ 0.452185] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.452346] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
I have tried setserial without success.
I have also made lengthy elaboratoions with programming the
serial port.
Like
memset(&t, 0, sizeof(t));
cfmakeraw(&t);
printf("Port open\n");
//t.c_iflag |= ISTRIP;
//t.c_cflag &= ~CSIZE;
//t.c_cflag |= PARENB | CLOCAL;
t.c_cflag = CS8;
// t.c_cflag |= ISTRIP;
t.c_cflag |= CREAD ;
t.c_cflag |= CLOCAL ;
t.c_lflag &= ~(ECHO | ICANON );
cfsetispeed(&t, B9600);
cfsetospeed(&t, B9600);
if (tcsetattr(fd, TCSANOW, &t) < 0) {
perror("tcsetattr");
return EXIT_FAILURE;
}
etc
(endless variations)
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
gorhas at gmail.com
Göran Hasse
Boo 229
715 91 ODENSBACKEN
Mob: 070-5530148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101218/d1708849/attachment.html>
More information about the ubuntu-users
mailing list