Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

input overrun(s)

I have a serial communications problem.

I'm using NIOSserial device at the speed of 115200, and when I transfer a burst of 30 char, sometimes kernel send me a error message:

ttyS0: input overrun(s)

What about this?

thanx in advance

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by teo_icks@Jun 21 2005, 06:02 PM

    what about this?

    --- Quote End ---

    Use the source Luke!

    $ find . -type f |xargs grep input\ overrun
    ./drivers/char/n_tty.c:         printk(KERN_WARNING "%s: %d input overrun(s)\n", tty_name(tty, buf),
    $ vim ./drivers/char/n_tty.c

    and in the source file

    /**
     *      n_tty_receive_overrun   -       handle overrun reporting
     *      @tty: terminal
     *
     *      Data arrived faster than we could process it. While the tty
     *      driver has flagged this the bits that were missed are gone
     *      forever.
     *
     *      Called from the receive_buf path so single threaded. Does not
     *      need locking as num_overrun and overrun_time are function
     *      private.
     */
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi teo_icKs,

    did you find a way to solve your problem ? That would help me...

    Thanks

    cetic