A packet data communication device has a lower-layer communication tool
including at least a first lower-layer portion without an error-detection
and retransmission function, and an upper-layer communication tool having
both an IrTran-P function and an error-detection and retransmission
function. When the first lower-layer portion is used, the upper-layer
communication tool performs error-detection and retransmission of
arbitrary-length packet data.