Patent ID: 7813362

Claim:
A communication apparatus, comprising: a scanner configured to scan a document; a plotter configured to form an image of the scanned document; a transmission circuit configured to transmit transmission data to a communication counterpart coupled to a port; a reception circuit configured to receive, via the port, reception data from the communication counterpart; a storage device configured as at least two buffers including a transmission buffer that stores the transmission data transmitted to the communication counterpart via the port, and a reception buffer that stores the reception data received from the same communication counterpart via the same port; an address mapping unit configured to perform address mapping of the at least two buffers including the transmission buffer and the reception buffer in the storage device, adjust a storage capacity of the transmission buffer and a storage capacity of the reception buffer, and divide each of the transmission buffer and the reception buffer into buffer areas; and a division determining unit configured to determine a first division arrangement for dividing the storage device into the at least two buffers including the transmission buffer and the reception buffer, and a second division arrangement for dividing each of the transmission buffer and the reception buffer into the buffer areas, wherein the division determining unit determines the first and second division arrangements to set sizes of the buffer areas according to at least one of a line speed of the scanner in a sub scanning direction, a line speed of the plotter in the sub scanning direction, an image data amount or resolution of the plotter in a main scanning direction, a size of packet data for transmitting image data, and a frequency of an error occurrence in transferring image data.