Claims
- 1. A printing apparatus comprising:
a data receiver to receive command data from a host device; a memory to store the command data received by the data receiver; a printer controller to read out the command data stored in the memory in a first-in-first-out order and control the printing apparatus in accordance with the command data; a command detector to directly detect predetermined command data within the command data received by the data receiver; a status data selector to select one of a plurality of status data in accordance with the predetermined command data detected by the command detector; and a status data transmitter to send to the host device the status data selected by said status data selector in accordance with the predetermined command data detected by the command detector.
- 2. A printing apparatus according to claim 1, wherein each of the plurality of status data includes common code data embedded therein.
- 3. A printing apparatus according to claim 1, wherein the status data transmitter sends to the host device the status data substantially simultaneously to the printer controller controlling the printing apparatus.
- 4. A printing apparatus according to claim 1, wherein the status data transmitter sends to the host device the status data with a higher priority than a priority of the printer controller controlling the printing apparatus.
- 5. A printing apparatus according to claim 1,
wherein the predetermined command data comprise plural data units of a predetermined size, wherein the command detector comprises:
a data counter for counting a number of data units, and a comparator to compare the data unit received by the data receiver with a command pattern representing the predetermined command data in accordance with the data counter.
- 6. A printing apparatus according to claim 1, wherein one of the data receiver and the command detector, while the printing apparatus control process controlled by the printer controller is interrupted, one of
(1) receives data from the host device, and (2) detects predetermined command data from the data received by the data receiver.
- 7. A printing apparatus according to claim 1, wherein said status data transmitter combines the status data selected by said status data selector with predetermined code data.
- 8. A method for controlling a printing apparatus comprising the steps of:
(a) receiving command data from a host device; (b) storing the command data received in step (a); (c) reading out the command data stored in step (b) in a first-in-first-out order and controlling a printing apparatus in accordance with the command data; (d) directly detecting predetermined command data within the command data received in step (a); (e) selecting one of a plurality of status data in accordance with the predetermined command data detected in step (d); and (f) transmitting the status data selected in step (e) in accordance with the predetermined command data detected in step (d).
- 9. A control method according to claim 8, wherein each of the plurality of status data includes common code data embedded therein.
- 10. A control method according to claim 8, wherein step (f) is executed substantially simultaneously to step (c).
- 11. A control method according to claim 8, wherein step (f) has priority over step (c).
- 12. A control method according to claim 8,
wherein in step (d) the predetermined command data from the host device comprises plural data units of a predetermined size, and wherein step (d) comprises the steps of: counting a number of data units; and comparing the data unit received in step (a) with a command pattern representing the predetermined command data in accordance with the data count value.
- 13. A control method according to claim 8, wherein at least one of step (a) and step (d) executes while step (c) is interrupted.
- 14. A control method according to claim 8, wherein said transmitting step further comprises the step of combining the status data selected in step (e) with predetermined code data.
- 15. A printing apparatus comprising:
a data receiver to receive command data from a host device; a memory to store the command data received by the data receiver; a printer controller to read out the command data stored in the memory in a first-in-first-out order and control the printing apparatus in accordance with the command data; a command detector to detect predetermined command data within the command data upon reception of the command data by the data receiver; a status data selector to select one of a plurality of status data in accordance with the predetermined command data detected by the command detector; and a status data transmitter to send to the host device the status data selected by said status data selector in accordance with the predetermined command data detected by the command detector.
- 16. A printing apparatus according to claim 15, wherein each of the plurality of status data includes common code data embedded therein.
- 17. A printing apparatus according to claim 15, wherein the status data transmitter sends to the host device the status data in accordance with the predetermined command data while the printer controller controls the printing apparatus.
- 18. A method for controlling a printing apparatus comprising the steps of:
(a) receiving command data from a host device; (b) storing the command data received in step (a); (c) reading the command data stored in step (b) in a first-in-first-out order and controlling the printing apparatus according to the command data; (d) detecting predetermined command data within the command data received in step (a) upon reception of the command data in step (a); and (e) selecting one of a plurality of status data in accordance with the predetermined command data detected in step (d); and (f) transmitting the status data selected in step (e) in accordance with the predetermined command data detected in step (d).
- 19. A control method according to claim 18, wherein each of the plurality of status data includes common code data embedded therein.
- 20. A printing apparatus comprising:
(a) a data receiver to receive command data from a host device; (b) a memory to store the command data received by the data receiver; (c) a command interpreter to interpret predetermined command data within the command data received by the data receiver before storing the command data in the memory; (d) a status data selector to select one of a plurality of status data in accordance with the predetermined command data interpreted by the command interpreter; (e) a status data transmitter to send to the host device the status data selected by said status data selector in accordance with the predetermined command data interpreted by the command interpreter; and (f) a printer controller to read the command data stored in the memory in a first-in-first-out order and control the printing apparatus in accordance with the command data.
- 21. A printing apparatus according to claim 20, wherein each of the plurality of status data includes common code data embedded therein.
- 22. A method of controlling a printing apparatus comprising the steps of:
(a) receiving command data from a host device; (b) storing the command data received in step (a); (c) interpreting predetermined command data within the command data received in step (a) before storing the command data in step (b); (d) selecting one of a plurality of status data in accordance with the predetermined command data interpreted in step (c); (e) transmitting the status data selected in step (d) in accordance with the predetermined command data interpreted in step (c); and (f) reading the command data stored in step (b) to control the printing apparatus.
- 23. A control method according to claim 22, wherein each of the plurality of status data includes common code data embedded therein.
- 24. A printing apparatus comprising:
a data receiver to receive command data from a host device; a memory to store the command data received by the data receiver; a printer controller to read out the command data stored in the memory in a first-in-first-out order and control the printing apparatus in accordance with the command data; a command detector to directly detect predetermined command data within the command data received by the data receiver; a status data selector to select one of a plurality of status data in accordance with the predetermined command data detected by the command detector; and a status data transmitter to send to the host device a combination of the status data selected by said status data selector and the status data with predetermined code data in accordance with the predetermined command data detected by the command detector.
- 25. A method for controlling a printing apparatus comprising the steps of:
(a) receiving command data from a host device; (b) storing the command data received in step (a); (c) reading out the command data stored in step (b) in a first-in-first-out order and controlling a printing apparatus in accordance with the command data; (d) directly detecting predetermined command data within the command data received in step (a); (e) selecting one of a plurality of status data in accordance with the predetermined command data detected in step (d); (f) combining the status data selected in step (e) with predetermined code data; and (g) transmitting, in accordance with the predetermined command data detected in step (d), the status data combined with the predetermined code data in step (f).
Priority Claims (4)
Number |
Date |
Country |
Kind |
P7-265881 |
Oct 1995 |
JP |
|
P5-278637 |
Nov 1993 |
JP |
|
P5-278638 |
Nov 1993 |
JP |
|
P5-278639 |
Nov 1993 |
JP |
|
CONTINUING APPLICATION DATA
1. This application is a continuation of Ser. No. 09/361,915, filed Jul. 27, 1999, which is a divisional of Ser. No. 08/730,694, filed on Oct. 11, 1996, now abandoned, which is a continuation-in-part application of application Ser. No. 08/335,604, filed on Nov. 8, 1994, now U.S. Pat. No. 5,594,653, the contents of each of which are incorporated herein by reference.
Divisions (1)
|
Number |
Date |
Country |
Parent |
08730694 |
Oct 1996 |
US |
Child |
09361915 |
Jul 1999 |
US |
Continuations (1)
|
Number |
Date |
Country |
Parent |
09361915 |
Jul 1999 |
US |
Child |
09758137 |
Jan 2001 |
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
08335604 |
Nov 1994 |
US |
Child |
08730694 |
Oct 1996 |
US |