Setting serial line receive buffer size?

From: Homan, Charles (NE) (Charles.Homan_at_GDC4S.Com)
Date: 05/09/03

  • Next message: Walter Heukels: "SUMMARY: Syslog messages sent to loghost more than once"
    Date: Fri, 09 May 2003 09:20:22 -0400
    To: "'sunmanagers@sunmanagers.org'" <sunmanagers@sunmanagers.org>
    
    

    Greetings, colleagues,

    I have a user who wants to tweak his serial port receive buffer "trigger
    point" on a SunBlade 100 running Solaris 8. I'm sort of assuming this is
    possible - even *I* know how to do it on Windows, and that is saying
    something... ;-) Unfortunately, I can't find any info on how to go about it,
    so now I'm starting to wonder if it is indeed possible. I guess I'm also
    assuming that Sun serial ports work the same as PC serial ports - that is,
    that they collect a certain amount of data in a small buffer and then signal
    the processor with an interrupt to come and get the data. I have no idea if
    that is a correct assumption or not.

    Some background: The user is developing an application using PPP over the
    serial port between two SunBlades. The line is connected by two long-haul
    modems which could theoretically be miles apart, but in the lab are about 10
    feet apart. They are trying to FTP over the line, and are seeing 2 minute
    breaks in the connection. That is, FTP transfers some data, stops for two
    minutes, transfers a little more, stops for two more minutes, etc. I have
    to admit that I am not really involved in the diagnosis of this problem, but
    they believe that tweaking the receive buffer will help them out, and I
    would like to be able to tell them how to do that.

    Any help would be appreciated. In the immortal words of Jean Claude van
    Damme, "Teach me." :-)

    Thanks,
    /charles

    ObDisclaimer: These comments are mine and don't necessarily reflect the
    views of my employers.
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Walter Heukels: "SUMMARY: Syslog messages sent to loghost more than once"

    Relevant Pages

    • Re: [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]
      ... Can you try two tests (with my patch applied): ... Install also pyserial(in debian ... with the previous comma we open /dev/ttyS1 with the same serial port ... The .flushInputmethod flushes the input buffer: ...
      (Linux-Kernel)
    • RE: Serial console issues.
      ... Since Linux is seeing this port as a 16750, ... this to only have a 16-byte buffer. ... 16750 with its mammoth buffer size is killing this serial port. ... setserial with the kernel image (also I'd rather not do as I only have ...
      (Linux-Kernel)
    • SUMMARY: (NO SUMMARY) Setting serial line receive buffer size?
      ... Setting serial line receive buffer size? ... I have a user who wants to tweak his serial port receive buffer "trigger ... They are trying to FTP over the line, ... minutes, transfers a little more, stops for two more minutes, etc. ...
      (SunManagers)
    • Re: Some questions on writing data to a serial port?
      ... communication with a device attached to a serial port. ... int serial_write ... while (nbytes < count) { ... buffer cache, which is flushed to the server asynchronously. ...
      (comp.unix.programmer)
    • Re: Contolling Serial Port
      ... big as the receive buffer itself, it would stop giving me OnComm ... will the OnComm events come uniil I do ... >> I have now a situation where I am dropping DTR to the sender, ... >> Is there a way to tell my serial port to keep buffering the input, ...
      (microsoft.public.vb.general.discussion)