Transmission of status information by a selected one of...

Electrical computers and digital data processing systems: input/ – Input/output data processing – Input/output process timing

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C710S025000, C710S033000, C710S060000, C713S600000

Reexamination Certificate

active

06434643

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a peripheral device such as a printer or scanner capable of communicating with a host device, and to a control method for the peripheral device.
2. Description of the Related Art
The Universal Serial Bus (simply referred to as “USB” below) is an interface for connecting and enabling the exchange of user and control data between peripheral devices, such as printers and scanners, and a host such as a personal computer. It is rapidly becoming the standard interface for connecting such peripheral devices (sometimes called “device(s)” below) to a personal computer (simply called “PC” below).
More specifically, USB is a bus standard for a serial cable connection enabling a PC to simultaneously access numerous devices with high data reliability while also enabling “hot swapping”, the ability to insert and remove devices on the USB chain while the host and/or other devices are operating without losing access to the devices that remain on the bus. Because of this combination of high data reliability and hot swapability, USB is expected to become the industry-standard interface for PC peripheral connections.
Data transmission between USB interface devices begins when the host sends a token packet to a device. To enable simultaneous access to a plurality of devices, the token packet contains a unique device address and device endpoint. The address identifies which device on the USB is being addressed, and the endpoint identifies the source of the data or data transfer, or the data recipient or consumer (sink). Following the token packet comes a data packet containing the data being communicated, and a handshake packet indicating the transfer status.
USB uses the following four data transfer types, and transfers data by establishing a corresponding logical “pipe” between the host and device.
Bulk transfers, and the bulk transfer pipe, are used for sending relatively large amounts of data, such as print and display data.
Interrupt transfers, and the interrupt transfer pipe, are used for small amounts of data with a short service period.
Control transfers, and the control transfer pipe, are used when a device is first connected to the bus to construct a logical device presence.
Isochronous transfers, and the isochronous transfer pipe, are used for audio and other types of data requiring data to be delivered within certain time constraints.
Sending a data stream in any of these transfer modes is called a “transaction,” and comprises the above-described packet sequence.
Frames sent at 1 ms intervals contain a plurality of transactions. Simultaneous communication between a host and multiple devices is achieved by sending these frames in succession.
The handshake packet provides a retry function in case an error occurs during transmission, thereby enabling large amounts of data to be reliably transferred at high speed.
When the USB device communicating with the host is a printer, for example, data communicated between the host and the printer includes status information indicating the operating status of the printer, in addition to process data such as bitmap data or other print data and control commands for controlling the printing mechanism. Typical status information includes the on-line or off-line status of the printer, whether there is paper, whether the cover is open, if the buffer is full, whether there is ink, and any error status. The status information is normally sent from the printer to the host in response to a status request command, and is therefore sent to the host using the same bulk transfer type that is used to send print and command data from the host to the printer.
A USB bulk transfer pipe is only opened, however, when the bus capacity (bandwidth) needed to transfer the data within a specific unit time is available; therefore there is no way to assure when the data will be sent. This means that information may not be transferred immediately when status information is transferred using a bulk transfer pipe, and various problems can result. For example, the host may continue sending process data even though the buffer is full, and data may therefore be lost. The host may also continue sending data even though the printer cover is open, and printing delays may thus occur.
The interrupt transfer pipe, on the other hand, is opened at regular short intervals, enabling a device to send data to the host immediately if there is data to send when the device is polled. The interrupt transfer pipe is thus assured the highest level of service, providing good real-time performance. Data reliability is also extremely high because the transfer is retried at the next period if a bus error occurs and a transaction is lost. It is therefore possible to send status information using the interrupt transfer type, and thereby assure both immediacy and data reliability.
However, the size of the data packets that can be sent by interrupt transfer is limited in order to assure bandwidth availability. It is also preferable to release bandwidth for bulk transfers in order to maintain an acceptable transfer speed for process data. As a result, it is also desirable to limit data transfers using the interrupt transfer pipe.
SUMMARY OF THE INVENTION
An object of the present invention is therefore to provide a peripheral device and a control method therefor whereby the immediacy of status information transfers can be assured, bandwidth sufficient for efficient transfer of process data and commands can be assured, and a high data transfer rate can be assured.
To achieve the above object, a peripheral device according to the present invention assures immediate, real-time response while maximizing bandwidth available for bulk transfers by selectively transferring status information using a bulk transfer pipe or an interrupt transfer pipe according to the type of status information rather than simply sending all status information by either bulk transfer or interrupt transfer pipe.
More specifically, a peripheral device according to the present invention comprises a transmission unit for exchanging data with a host and for sending to the host status information indicative of an operating condition of the peripheral device. The transmission unit has an interface for sending data to and receiving data from the host. The interface can send and receive data by at least two transfer modes. A first transfer mode corresponds to the bulk transfer type of the USB interface, that is, a transfer mode in which data sending and receiving are enabled based on an input/output command sent from the host when transfer time has been reserved. A second transfer mode corresponds to the interrupt transfer type of the USB interface, that is, a transfer mode in which data sending and receiving are enabled based on an input/output command sent at a regular interval from the host. The status transmission unit has a first transfer function for sending status information by the first transfer mode, a second transfer function for sending status information by the second transfer mode, and a selecting function for selecting the first or second transfer function according to the cause for sending the status information.
A peripheral device control method according to the present invention is also provided. Status information indicative of an operating condition of the peripheral device is detected in a detecting step. In a selecting step, a first or second transfer mode is selected according to the cause for sending status information to a host. In the first transfer mode, data sending and receiving are enabled in response to an input/output command sent from the host when transfer time has been reserved. In the second transfer mode, data sending and receiving are enabled in response to an input/output command sent at a regular interval from the host. A first transfer step sends status information to the host by means of the first transfer mode if that mode is selected in the selecting step, and a second transfer step sends status information to the ho

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Transmission of status information by a selected one of... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Transmission of status information by a selected one of..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Transmission of status information by a selected one of... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2898353

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.