Mass storage apparatus and data output method of output device attached to mass storage apparatus

When reading/writing data between a computer and a mass storage of a mass storage apparatus, the data transmitted from the computer are immediately confirmed by using an output device attached to the mass storage apparatus. There is provided a control device 101 for interpreting a command received from a control device 120 and for carrying out an output processing to an output device 103 if it is decided that the received command is a command for giving an instruction for outputting data stored in a mass storage 102 to the output device 103 in a state of a connection to the control device.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a mass storage apparatus comprising a mass storage capable of carrying out read/write from/to an external device and an output device capable of outputting image data and voice data which are stored in the mass storage, and a method of outputting data to the output device mounted on the mass storage apparatus.

2. Description of the Related Art

A mass storage apparatus having an output function such as image display or voice output, for example, a digital camera, a portable telephone, a PDA (Personal Digital Assistants) or an MP3 player is connected to a computer to exchange data, thereby obtaining various advantages to enlarge an application range in addition to the original function of the mass storage apparatus.

When the mass storage apparatus is connected to a computer to exchange data, conventionally, data are read/written from/to the computer for a mass storage mounted on the mass storage apparatus. This operation is carried out by transmitting a read/write command for the mass storage from the computer through a connecting interface with the mass storage apparatus.

Referring to a technique for connecting the mass storage apparatus to the computer to exchange data, Japanese Patent No. 2918036 has disclosed a media viewer technique with an eye to directly viewing data stored in the mass storage of the mass storage apparatus.

In the patent, a portable storage device mainly supposing a hard disk is used as data media capable of exchanging a notebook computer and a mobile apparatus, and furthermore, is connected to a display device and is thus used as a media viewer. For this purpose, there is a function of controlling a connection depending on a connecting partner.

In the conventional technique, however, there has not been proposed a method of positively utilizing an output device to be attached to the mass storage apparatus when reading and writing data between the mass storage and the computer. When reading and writing data between the mass storage and the computer, conventionally, a fixed alarm display is carried out for these output devices at most.

The reason is as follows. When the mass storage apparatus is connected to the computer, the computer acquires the use right of the mass storage of the mass storage apparatus, and the mass storage is used by transmitting only the read/write command of data stored in the mass storage from the computer to the mass storage apparatus and the output device attached to the mass storage apparatus is not used. The user of the mass storage apparatus needs to disconnect the mass storage apparatus from the computer after data are transmitted to the mass storage and to operate the mass storage apparatus to confirm the data, and cannot immediately confirm the data transmitted from the computer with a connection to the computer.

If image data to be displayed in the mass storage apparatus are edited by a personal computer, moreover, it is generally difficult to obtain an expected output because characteristics on the output apparatus side are different from each other. For example, the display screen of a portable telephone set controls a screen size, a resolution and the number of colors. Therefore, there is a problem in that a remarkable difference is particularly made if the edit is carried out by the personal computer. Since the speaker of the portable telephone set also has a small dynamic range, moreover, different sounds are heard actually.

SUMMARY OF THE INVENTION

The invention has been made in consideration of the circumstances and has an object to provide a method of practically using an output device attached to a mass storage apparatus when reading and writing data between a mass storage and a computer and to provide the mass storage apparatus capable of immediately confirming the data transmitted from the computer to the mass storage and a data output method of the output device attached to the mass storage apparatus.

A first aspect of the invention is directed to a mass storage apparatus including a mass storage (a mass storage102) capable of carrying out read/write from/to an external control device (a control device120), an output device (an output device103) capable of outputting data stored in the mass storage, and control means (a control device101) for interpreting a command received from the external control device in a state of a connection with the external control device and for carrying out an output processing to the output device if it is decided that the received command is an output command for giving an instruction for outputting the data stored in the mass storage to the output device.

A sixth aspect of the invention is directed to a data output method of an output device attached to a mass storage apparatus comprising a mass storage capable of carrying out read/write from/to an external control device and attaching the output device capable of outputting data stored in the mass storage, wherein the external control device connected to the mass storage apparatus through communicating means transmits, to the mass storage apparatus, an output command for giving an instruction for outputting the data stored in the mass storage to the output device (S305), and the mass storage apparatus outputs the data stored in the mass storage to the output device upon receipt of the output command (S204).

According to the first and sixth aspects of the invention, the output command for outputting the data stored in the mass storage to the output device attached to the mass storage apparatus is received and interpreted to carry out the output processing for the output device. Consequently, the data transmitted from the external control device such as a computer to the mass storage can be immediately confirmed on the mass storage apparatus side.

A second aspect of the invention is directed to the mass storage apparatus according to the first aspect of the invention, wherein data to be input to the output device upon receipt of the output command are included in the output command in place of the data stored in the mass storage.

According to the mass storage apparatus in accordance with the second aspect of the invention, the output command itself is caused to include the data to be output to the output device. Consequently, it is possible to carry out an output without a time delay through the mass storage. For example, it is possible to use the mass storage for outputting an alarm.

A third aspect of the invention is directed to the mass storage apparatus according to the first or second aspect of the invention, wherein the output device is a display for displaying an image, a graphic or a character. Moreover, a fourth aspect of the invention is directed to the mass storage apparatus, wherein the output device is a speaker for outputting a voice.

According to the mass storage apparatus in accordance with the third aspect of the invention, the image data edited on the outside are displayed on the display device of the mass storage apparatus. Consequently, the edited data can be confirmed immediately. According to the mass storage apparatus in accordance with the fourth aspect of the invention, moreover, the voice data edited on the outside are reproduced by the speaker of the mass storage apparatus. Consequently, the edited data can be confirmed immediately.

A fifth aspect of the invention is directed to a control device comprising means (a device driver121) for transmitting, to a mass storage apparatus (a mass storage apparatus100) comprising a mass storage (a mass storage102) capable of carrying out read/write from/to an outside and an output device capable of outputting data stored in the mass storage, a read/write command (a read/write command122) for giving an instruction of a read/write processing to the mass storage and an output command (an output command123) for giving an instruction of an output processing to the output device in a state of a connection to the mass storage apparatus.

According to the control device in accordance with the fifth aspect of the invention, the read/write command and the output command are transmitted from a computer connected to the mass storage apparatus to the mass storage apparatus. Consequently, it is possible to control both the mass storage and the output device in the mass storage apparatus.

In the figures, the reference numeral100refers to a mass storage apparatus;101to a control device;102to a mass storage;103to an output device;104to a communicating device;110to communicating means;120to a control device;121to a device driver;122to a read/write command; and123to an output command.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

An embodiment of the invention will be described below with reference to the drawings.FIG. 1is a block diagram showing the structure of a mass storage apparatus according to an embodiment of the invention.

InFIG. 1,100denotes a mass storage apparatus such as a digital camera, a portable telephone, a PDA or an MP3 player,120denotes a control device such as a computer, and110denotes communicating means for connecting the control device to the mass storage apparatus.

The mass storage apparatus100is constituted by a control device101for controlling the whole apparatus, a mass storage102for storing data, an output device103capable of outputting the data stored in the mass storage102, and a communicating device104for carrying out a communication with an external apparatus. For example, the output device103is a liquid crystal display if the mass storage apparatus is a digital camera, a portable telephone or a PDA, and is a voice output device on the MP3 standards if the mass storage apparatus is an MP3 player. Moreover, the mass storage is a memory card or a hard disk.

The communicating means110may be an optional method capable of connecting the control device to the mass storage apparatus to accurately carry out a communication whether it is wired or wireless. If the communicating means110is wired, it is possible to use various standard interfaces such as USB, SCSI, IEEE 802.1, IEEE 1394, ATA and ATPI. If the communicating means110is wireless, it is also possible to use a simple interface using infrared rays, for example, in addition to a standard interface of a radio communication such as a blue tooth. Furthermore, a network may be used.FIG. 1shows an example in which the USB is used.

In the case in which the control device120is connected to the mass storage apparatus, a processing program for reading/writing data from/to the mass storage102through the communicating means110is executed. A command for giving an instruction to the mass storage apparatus by the processing program includes an output command123for outputting data stored in the mass storage102from the output device103in addition to a command122for causing a device driver121to read/write data from/to the mass storage102.

For example, in the case in which the communicating means is the USB, an output command can be newly defined into an area having a value which is not coincident with the command code of a mass storage class (for example, between 0×CO and 0×FF in hexadecimal numbers).

For a transmission timing and contents to be displayed, an alarm of “Do not pull out an apparatus” is displayed when the mass storage starts to access a data file, the data are displayed on a liquid crystal monitor when the data file is written, and a message of “The apparatus can be pulled out” is displayed when all the data files are completely accessed. The contents to be displayed may be defined to an output command itself.

The control device may be a computer, and furthermore, may be a peripheral electronic apparatus having a control function which is connected to the mass storage apparatus.

FIG. 2is a flow chart showing the operation of the mass storage apparatus according to the invention, andFIG. 3is a flow chart showing the operation of the control device (computer) according to the embodiment. The operation according to the embodiment having the structure shown inFIG. 1will be described below with reference to the flow charts ofFIGS. 2 and 3.

InFIG. 2, first of all, a connection with a computer is checked (S201). The check of the connection is varied depending on communicating means to be employed. If an interface is USB, for example, a change in a voltage of a power line is detected to check the connection with the computer.

If the connection with the computer is detected, a processing required for the connection is carried out (S202). When a command is received from the computer, whether the received command is an output command is checked (S203). If the received command is the output command, the data of a mass storage are output to an output device (S204).

If the received command is not the output command, whether the command is a read/write command is checked (S205). If the received command is the read/write command, data are read/written from/to the mass storage (S206).

On the other hand, an output command for displaying an alarm for giving a notice of “Do not pull out a cable” on the output device such as a liquid crystal monitor is first transmitted to the mass storage apparatus on the computer side shown inFIG. 3.

Next, an image file to be a display object is opened (S302), for example, the image file is edited (S303), and the updated image file is written to the storage of the mass storage apparatus by using a read/write command (S304). Subsequently, an output command for outputting the image file written to the storage is transmitted (S305). Consequently, the image file thus written is displayed on the liquid crystal monitor.

After the above processings are completed, the image file is closed on the computer side (S306) and an output command for displaying a notice of “The cable can be pulled out” on the output device such as a liquid crystal monitor is transmitted to the mass storage apparatus (S307).

As described above, according to the embodiment, in the case in which image data to be displayed on the mass storage apparatus are edited, for example, the image data can be actually displayed and can be successively monitored and edited. Thus, the result of the display can easily be reflected on the edit.

These effects are not restricted to the image display but are valid for various outputs. For example, it is possible to edit and confirm a “receiving melody” output in a voice to a portable telephone set. Also in the case in which a character is to be displayed, moreover, a displayed Chinese character can be confirmed and edited when the mass storage apparatus side does not have any proper kanji font, for example. Also in the case in which the output device to be attached is a printer, furthermore, the invention can be applied.

As described above, according to the invention, the output command for outputting the data stored in the mass storage to the output device attached to the mass storage apparatus is received and interpreted, and the output processing to the output device is carried out. Consequently, it is possible to immediately confirm the data transmitted from the external control device such as a computer to the mass storage on the mass storage side.