Patent ID: 7869063

Claim:
A printing apparatus, comprising: a receive buffer configured to store data sent from a host device; a print buffer configured to store image data; a normal processing mode control unit configured to print based on the data sent from the host device; a deletion processing mode control unit configured to discard data, except for specific commands sent from the host device; an error detection unit configured to detect errors; a cause of error determination unit configured to identify the cause of each detected error; a processing mode storage unit configured to store a plurality of processing modes, including a normal processing mode, a first deletion processing mode, a second deletion processing mode and a non-deletion processing mode, and information pertaining to which processing mode is to be executed depending on whether an error occurred, and if so, the cause of the error; and a processing mode determination unit configured to: (1) select the normal processing mode control unit to execute the normal processing mode when the error detection unit detects no error, (2) select the deletion processing mode control unit to execute one of the first deletion processing mode or the second deletion processing mode according to the cause of error identified by the cause of error determination unit when the error detection unit detects an error, wherein the first deletion processing mode discards data in the receive buffer and image data in the print buffer and the second deletion processing mode saves data in the receive buffer and discards image data in the print buffer, (3) select the normal processing mode control unit to change from one of the deletion processing modes to a normal processing mode based on a resume command from the host device; and (4) select the non-deletion processing mode to save data in the receive buffer and save image data in the print buffer when the cause of error determination unit determines that the detected error is of a specified type, so that after the specified type error is corrected data to be printed is printed continuously with immediately preceding data that was printed before the specified type error occurred, without the need for the host to resend data.