发明名称 System for dynamically determining the size and number of communication buffers based on communication parameters at the beginning of the reception of message
摘要 An improved communications buffer system is provided which dynamically allocates the size and number of buffers to optimally receive packets of communications data over a communications link, while efficiently using the amount of available memory so as to provide optimal throughput capability with respect to the allocated amount of memory. This buffer system is readily adaptable for infrared communications ports used on printers. Once a communications session has begun, the printer will obtain sufficient information to most effectively allocate the size and number of buffers. At the beginning of this procedure, the printer must first determine how much "free" memory is available in its "pool area" and then determine how best to divide up that pool area into both transmit and receive buffers. The size and number of transmit buffers is first determined, and this determination is made after considering how much pool area is available in the printer's memory system at that moment. Once the size and number of transmit buffers has been determined, then the receive buffers are next configured. The first step is to perform a preliminary calculation to ensure that the receive buffer size is not set greater than the amount of data that can be received during the maximum turnaround time for this particular configuration between a host computer and the printer. After this has been determined, the receive buffer size is provisionally set to a power of 2, and the number of buffers is set equal to the remaining pool size divided by this receiver buffer size. After ensuring that there are at least a certain minimum number of receive buffers, then a "window size" is set to a certain maximum size, at least for infrared communications ports. Once the entire pool area has been allocated for these transmit and receive buffers, the communication session can begin between the host computer and the printer for communicating the actual print job data.
申请公布号 US5916309(A) 申请公布日期 1999.06.29
申请号 US19970854510 申请日期 1997.05.12
申请人 LEXMARK INTERNATIONAL INC. 发明人 BROWN, RICKEY CARTER;MAYBERRY, MARK LANE
分类号 G06F3/12;B41J29/38;G06F5/06;(IPC1-7):G06F13/00;G06F13/14 主分类号 G06F3/12
代理机构 代理人
主权项
地址
您可能感兴趣的专利