CN100382000C - Electronic apparatus for managing changeable storage medium, method thereof and storage medium - Google Patents

Electronic apparatus for managing changeable storage medium, method thereof and storage medium Download PDF

Info

Publication number
CN100382000C
CN100382000C CNB2005101041175A CN200510104117A CN100382000C CN 100382000 C CN100382000 C CN 100382000C CN B2005101041175 A CNB2005101041175 A CN B2005101041175A CN 200510104117 A CN200510104117 A CN 200510104117A CN 100382000 C CN100382000 C CN 100382000C
Authority
CN
China
Prior art keywords
medium
file
management information
counting
media management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101041175A
Other languages
Chinese (zh)
Other versions
CN1770086A (en
Inventor
大西慎二
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Publication of CN1770086A publication Critical patent/CN1770086A/en
Application granted granted Critical
Publication of CN100382000C publication Critical patent/CN100382000C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A controlling device, after acquiring a file list, media management information (media generation control) and contents management information (contents generation count) of a removable storage medium connected to a controlled device, transmits a command (ERASE, WRITE etc.) containing the media management information and the contents management information to the controlled device. The controlled device compares the media management information held by the controlled device with the media management information contained in the control information, and executes a process according to the command if both media management information mutually coincide but rejects the command if both media management information do not coincide. Thus the controlled device is rendered capable of managing the removable storage medium in a simple manner and without error.

Description

The equipment and the method that are used for the managing changeable medium
The application is that application number is 00137333.1, the applying date is on Dec 1st, 2000, denomination of invention is divided an application for the application for a patent for invention of " electronic equipment and method and the storage medium that are used for managing changeable storage medium ".
Technical field
The present invention relates to a kind of equipment, be used for the managing changeable medium, also relate to the method that is used for it.
Background technology
Imaging device as digital camera or digital camera, their networking has obtained progress recently, and has developed a kind of environment, is suitable at home such equipment and personal computer or peripherals are coupled together.
A lot of such imaging devices provide interchangeable storage medium (being also referred to as interchangeable storage medium), and by various numerical informations (Still image data, moving image data, voice data, text data etc.) being converted to the file of predetermined format, with such information stores on such interchangeable storage medium.
In order to set up the visit from imaging device (first imaging device) to interchangeable storage medium, first imaging device is connected on the network, and interchangeable storage medium is connected on another imaging device (second imaging device), can consider to have next two kinds of methods.First method comprises, by the medium of user, manually moves on first imaging device from second imaging device with needs, and the direct visit of foundation from first imaging device to medium.Second method comprises, sets up from first imaging device to the visit that needs medium, and interchangeable storage medium need not be moved on first imaging device (promptly when medium is connected on second imaging device) from second imaging device.
But in order to adopt first method, each imaging device must provide such structure, is suitable for directly being connected with the medium that the user needs.Need under the situation of multiple medium the user especially, each imaging medium must be suitable for holding all such mediums.But such demand causes some shortcomings, has hindered the minimizing of compactedness, simplicity and the cost of imaging device.Also can run into the problem that to handle novel medium.
On the other hand, in order to adopt second method, first imaging device must provide program, is used to judge the replacement that is connected to the medium on second imaging device, or the change of the content of such medium.If there is not such program, can't avoid maloperation, there is not the file of appointment as the deletion user, adding file to user does not have on the medium of appointment, or does not have deleted file on the medium of appointment from the user.
Summary of the invention
An object of the present invention is to address the above problem.
Another object of the present invention provides a kind of equipment, is suitable for the managing changeable memory device, and it inerrably is connected on another equipment in simple mode, and is provided for the method and the medium of this purpose.
According to the present invention, a kind of equipment that is used to install interchangeable storage medium is provided, comprising:
The media management information updating device, be used for when described interchangeable storage medium is connected to described equipment, upgrade first media management information, whether described first media management information is preserved in described equipment and is used to detect described interchangeable storage medium and replaced by another interchangeable storage medium; The order receiving trap is used for receiving the order that comprises second media management information from external unit by universal serial bus; And control device, be used for determining whether described first media management information is consistent with described second media management information, wherein, if described first media management information is consistent with described second media management information, the described order of then described control device execution institute processing of request, if and described first media management information and described second media management information are inconsistent, then described control device is refused described order.
According to a preferred embodiment of the invention, realize above-mentioned purpose by a kind of equipment of managing changeable medium, this electronic equipment comprises:
A) first administrative unit is used for when described interchangeable storage medium is connected to described equipment, is updated in first media management information of having preserved in the described equipment; With
B) control module, be used for first media management information be included in second media management information from the control information of external unit when consistent, carry out control information.
According to the present invention, above-mentioned purpose also realizes by a kind of method of managing changeable medium.Described method comprises:
A) first management process when being used in described interchangeable storage medium and being connected to described equipment, is updated in first media management information of having preserved in the described equipment; With
B) controlled step, be used for first media management information be included in second media management information from the control information of external unit when consistent, carry out control information.
Description of drawings
In the specific descriptions of embodiment, other purpose of the present invention and advantage will become fully obviously from behind.
Fig. 1 has drawn and has implemented medium management of the present invention system;
Fig. 2 is a calcspar, and the structure of drawing has realized the function of controlled plant of the invention process and opertaing device;
Update condition and update content that Fig. 3 has drawn two counters, two counters are provided in the controlled plant;
Fig. 4 has drawn in an embodiment of the present invention, the data layout of inquiry file list commands and inquiry file list response;
Fig. 5 data layout of directory entry information that drawn;
The content of attribute information that Fig. 6 has drawn file;
Fig. 7 example of file system of medium that drawn, medium is connected on the controlled plant;
Fig. 8 has drawn and has been stored in the example of the data in the inquiry file list commands;
Fig. 9 example of the file system from controlled plant, transmitted that drawn;
Figure 10 has drawn in an embodiment of the present invention, the data layout of delete command and deletion response;
Figure 11 has drawn in an embodiment of the present invention, write command and write the data layout of response; And
Figure 12 is a process flow diagram, the order of the part of the media management in the controlled plant in the embodiments of the invention of having drawn.
Embodiment
After this with reference to the accompanying drawings, specifically describe the preferred embodiments of the present invention.
Fig. 1 example of medium management system embodiment of the present invention that drawn.
With reference to figure 1, digital camera 101 is installed interchangeable storage medium A and B replaceably.Digital camera (DVR) 102 is suitable for installing interchangeable storage medium C and D.The digital camera of integral photographic machine (camera-intergrated DVR) 103 is suitable for installing interchangeable storage medium E and F.Printer 104 is suitable for installing interchangeable storage medium G.Digital television (DTV) 105 is suitable for installing interchangeable storage medium H.Personal computer (PC) is suitable for installing interchangeable storage medium I and J.
In these mediums, those A, B, C, E, G and I can comprise floppy disk or semiconductor memory, meet various standards, as PC card standard (PC card standard), compact flash memory standard (compact flush standard), smart media standard (smart mediastandard), multimedia card standard (multi media card standard) etc.Same medium E, F, H and J comprise high capacity disc type medium, are suitable for reading and writing.Such high capacity disc type medium for example can be, CD such as CD-ROM or DVD-ROM, disk or magneto-optic disk.
Described electronic equipment 101 to 106 reciprocally connects by digital interface 110, and digital interface 110 meets IEEE 1394 standards and expansion thereof, for example forms IEEE 1394 standard revisions IEEEP1394.a (after this being called as 1394 interfaces) originally.1394 interfaces 110 allow to connect highly freely, and have two kinds of different transmission modes (synchronous transmission and asynchronous transmission).
Each of described electronic equipment 101 to 106 provides media management part 111, is used for managing changeable medium A one or more to J, medium be connected to oneself with other equipment on.Media management part 111 is reciprocally transmitted various command and response thereof by 1394 interfaces 110, thus with the information on the self-administered medium, is notified to other media management part 111, and the medium of other media management part 111 management of remote control.More particularly, media management part 111 is carried out and handled: (1) is notified to miscellaneous equipment with the state of the medium of own equipment, the state of the medium of (2) inquiry miscellaneous equipment, and (3) upgrade the content of the medium of miscellaneous equipment.
In the present embodiment, the medium that is connected on the miscellaneous equipment is set up visit, and the equipment of the such medium of remote control, be defined as " opertaing device ".Equally, make medium be controlled the equipment of the control of equipment, be positioned as " controlled plant ".Each of described electronic equipment 101 to 106 shown in Figure 1 can become controlled plant or opertaing device.
With reference now to Fig. 2,, according to present embodiment, explain the structure of two kinds of media management parts 111, media management part 111 is provided at respectively in opertaing device and the controlled plant.In each of described electronic equipment shown in Figure 1 101 to 106, media management part 111 provides the function of controlled plant and opertaing device.
At first, explain the structure of the media management part 111 in controlled plant.
First interchangeable storage medium 201 is corresponding to medium A, C, E, G, H or the I of Fig. 1.Media management unit 202 provides medium and produces counter register, medium produce counter register corresponding to medium 201, and media management unit 202 uses medium to produce counter register, management of media produces counting, and medium generation counting is the media management information for medium 201.Content management units 203 provides content and produces counter register, content produces counter register corresponding to medium 201, and Content Management list 203 uses content to produce counter register, and organize content produces counting, and it is the contents management information of medium 201 that content produces counting.
File system management unit 204 reads, keeps also bibliographic structure, the directory entry information of each catalogue and the directory entry information of each file of managed storage medium 201, and medium 201 connects on it.Media drive 205 is used to detect it and connects corresponding to medium 201, reads storage information wherein, and information is write wherein.
Second interchangeable storage medium 206 is corresponding to medium B, D, F or the J of Fig. 1.Media management unit 207 provides medium and produces counter register, medium produce counter register corresponding to medium 206, and media management unit 207 uses medium to produce counter register, management of media produces counting, and medium generation counting is the media management information for medium 206.Content management units 208 provides content and produces counter register, content produces counter register corresponding to medium 206, and content management units 208 uses content to produce counter register, and organize content produces counting, and it is the contents management information of medium 201 that content produces counting.
File system management unit 209 reads, keeps also bibliographic structure, the directory entry information of each catalogue and the directory entry information of each file of managed storage medium 206, and medium 206 connects on it.Media drive 210 is used to detect it and connects corresponding to medium 206, reads storage information wherein, and information is write wherein.Control module 211 is controlled the function of whole media management part 111 according to order and corresponding response, and order and corresponding response will be explained afterwards.
The back is provided at explanation the structure of the media management part 111 in the opertaing device.
Media management unit 221 provides medium generation counter register, and medium produce counter register corresponding to medium 201, and media management unit 221 produces in the counter register medium of maintenance and managed storage medium 201 generation counting at medium.Content management units 222 provides content generation counter register, and content produces counter register corresponding to medium 201, and content management units 222 produces in the counter register content of maintenance and managed storage medium 201 generation counting in content.File system management unit 223 keeps and the directory entry information of managed storage medium 201, and directory entry information is as the Query Result of controlled plant is obtained.
Media management unit 224 provides medium generation counter register, and medium produce counter register corresponding to medium 206, and media management unit 224 produces in the counter register medium of maintenance and diode-capacitor storage 206 generation counting at medium.Content management units 225 provides content generation counter register, and content produces counter register corresponding to medium 206, and content management units 225 produces in the counter register content of maintenance and managed storage medium 206 generation counting in content.File system management unit 226 keeps and the directory entry information of managed storage medium 206, and directory entry information is as the Query Result of controlled plant is obtained.
Control module 227 is controlled the function of whole media management part 111 according to order and corresponding response, and order and corresponding response will be explained afterwards.Display unit 228 is notified to the user with the result of media management part 111.
With reference now to Fig. 3,, to explain for medium to produce update condition of counting and the update condition of counting for Content Management, medium produce counting by media management unit 202 and 207 management, and the content generation is counted by content management units 203 and 208 management.
With reference to figure 3, " medium taking-up " 303 indication mediums 201 (or 206) break away from from controlled plant.Equally, " medium insertion " 304 indication mediums 201 (or 206) are connected in the controlled plant, or medium 201 (or 206) is replaced by another medium.Equally, the file that is recorded on the medium 201 (or 206) of " file delete/write " indication is deleted, or new file added or covers in the medium 201 (or 206).
As shown in Figure 3, when medium 201 (or 206) is connected on the controlled plant, or when being replaced by another medium, medium produce counting and are updated.On the other hand, medium 201 (or 206) is connected on the controlled plant, is replaced by another medium, breaks away from from controlled plant, and the file that is stored in the medium is deleted, or new file added or when covering wherein, generates content and produce counting.
Then, under the situation that medium 201 (or 206) breaks away from from controlled plant, media management unit 202 (or 207) not more new media produce counting, but content management units 203 (or 208) update content produces counting.
Equally, be connected on the controlled plant, or under the situation about being replaced by other medium, media management unit 202 (or 207) more new media produce counting, and content management units 203 (or 208) update content produces counting in medium 201 (or 206).
Equally, the file of record is deleted in medium 201 (or 206), or new file added or cover under the situation in the medium 201 (or 206), media management unit 202 (or 207) not more new media produce counting, but content management units 203 (or 208) update content produces counting.
Whether the medium according to media management unit 202 (or 207) management produce counting, and whether the control module 227 of opertaing device can be discerned medium 201 (or 206) and be connected on the controlled plant, and discern it and replaced by another medium.Content according to content management units 203 (or 208) management produces counting, and whether the recorded content that the control module 227 of opertaing device can also identify medium 201 (or 206) changes.
When the power supply opening of controlled plant, medium produce counting or content and produce counting and for example be initialized to " 0 ", and increase by 1 when each the renewal.When medium 201 (or 206) when controlled plant breaks away from, content produces counting and is initialized to " 0 ".When bus reset was activated, medium produce counting and content generation counting is not initialized to " 0 ", but keep bus reset prior to bus reset.Bus reset is the basic function of 1394 interfaces, and when the equipment that connects broke away from, when new equipment connected, maybe when the primary power of the equipment that connects opened or closed, bus reset started.In bus-reset procedure, carrying out bus initialization handles (being used for the processing of initialization topology information), sets to discern and handle (being used for the topological processing of identification automatically) and self-identifying processing (being used for to discerning each equipment the processing of node ID (sign) being set automatically).
The back will be with reference to figure 4,10 and 11, explains from opertaing device to be transferred to the order of controlled plant and to the response of such order.In the present embodiment, according to the IEC61883 standard, the functions of use control protocol is transmitted and is taken orders and respond.
At first with reference to figure 4, order of interprets queries listed files and inquiry file list response.
In Fig. 4, the data layout of " command format " 401 indications " inquiry file list commands ", the inquiry file list commands is one of order that is transferred to from opertaing device controlled plant, and the data layout of " response format " 402 indications " inquiry file list response ", the inquiry file list response is the response to aforementioned inquiry file list commands.The inquiry file list commands is used to inquire about the listed files of interchangeable storage medium, and interchangeable storage medium is connected on the controlled plant.Listed files is meant such tabulation, and it comprises the file that occurs between the directory entry information of catalogue and the predetermined directories.
In inquiry file list commands 401, operation code field comprises the operational code of indication inquiry file list commands, and in operand field, comprises various parameter informations, and parameter information is that the inquiry file list commands is required.
Equally, in inquiry file list commands 401, physics label territory (operand [1]) comprises the physics label, and it is in the different medium of two or more physics, the information of designated store medium.Can be connected at controlled plant under the situation of the different medium of two or more physics, opertaing device uses the physics label, specifies the specific memory medium.
Equally, in inquiry file list commands 401, logic label territory (operand [2]) comprise the logic label, and it is in the different medium of two or more logics, the information of designated store medium.In the medium by the appointment of physics label, under the situation of logically being separated, opertaing device uses the logic label, specifies the specific memory zone.
Equally, in inquiry file list commands 401, expansion type territory (operand [10] is to operand [12]) comprises extension name, and it is the information (for example under the situation of the listed files of inquiring about jpeg file, indicating the information of " JPG ") of specifying the extension name of file.By in the expansion type territory, expansion type being set, the extension name that expansion type is indicating predetermined, opertaing device can obtain to have the listed files of the file of particular extension.
Equally, in inquiry file list commands 401, Depth Domain (operand [13]) comprises the degree of depth, and it is the information of specifying the level of the listed files that will be inquired about.By predetermined value is set in Depth Domain, opertaing device can obtain the territory between any catalogue.
Equally, in inquiry file list commands 401, beginning territory, path (operand [14] reaches thereafter) comprises the beginning path, and it is the information of specifying the catalogue that will obtain listed files.
In inquiry file list response 402, the value that operation code field comprises is identical with the value of the operation code field of inquiry file list commands 401.Operand field comprises various parameter informations, and parameter information is corresponding to inquiry file list commands 401.In inquiry file list response 402, the value of symbol "<-" (left arrow) indication storage is identical with the value of inquiry file list commands.
Equally, in inquiry file list response 402, operand [0] territory comprises result code, to the inquiry file list commands 401 that receives, and the result that indication is carried out.
Equally, in inquiry file list response 402, current media produces counting territory (operand [1] is to operand [2]) and comprises that up-to-date medium produce counting, and medium produce media management unit 202 (or 207) management of counting by controlled plant.
Equally, in inquiry file list response 402, current content produces counting territory (operand [3] is to operand [4]) and comprises that up-to-date content produces counting, and content produces content management units 203 (or 208) management of counting by controlled plant.
Delete command and deletion response will be explained with reference to Figure 10 in the back.
With reference to Figure 10, the data layout of " command format " 1001 indications " delete command ", delete command is one of order that is transferred to from opertaing device controlled plant, and the data layout of " response format " 1002 indication deletion responses, and the deletion response is corresponding to aforementioned delete command.Delete command is used for the file of deletion record at an interchangeable storage medium, and interchangeable storage medium is connected on the controlled plant.
In delete command 1001, operation code field comprises the operational code of indicating delete command.Operation code field also comprises the various parameter informations that delete command is required.
Equally, in delete command 1001, physics label territory (operand [3]) comprise aforementioned physics label.Equally, logic label (operand [4]) territory comprises aforementioned logic label.Opertaing device is according to these two territories, in the different medium of a plurality of physics or logic, specifies the specific memory medium, as the purpose of visit.
Equally, in delete command 1001, medium produce counting territory (operand [5] is to operand [6]) and comprise that medium produce counting, and medium produce counting and managed by media management unit 221 (or 224).These medium produce counting, obtain in the current media generation counting territory of aforementioned inquiry file list response 402.
Equally, in delete command 1001, content produces counting territory (operand [7] is to operand [8]) and comprises that content produces counting, and content produces counting and managed by content management units 222 (or 225).This content produces counting, obtains in the current content generation counting territory of aforementioned inquiry file list response 402.
Equally, in delete command 1001, file ID (sign) territory (operand [9] reaches thereafter) comprises file ID, and it is the information that is used to specify deleted file (being with deleted file name and the path that is used to specify its position more particularly).
In deletion response 1002, the value that operation code field comprises is identical with the value of the operation code field of delete command 1001.Operand field comprises various parameter informations, and parameter information is corresponding to delete command 1001.In deletion response 402, symbol "<-" indicate the value of storage identical with the value of delete command 1001.
Equally, in deletion response 1002, operation code field [0] comprises result code, to the delete command 1001 that receives, and the result that indication is carried out.
Equally, in deletion response 1002, current media produces counting territory (operand [5] is to operand [6]), comprises that up-to-date medium produce counting, and medium produce media management unit 202 (or 207) management of counting by controlled plant.Produce in the counting territory in this current media, be provided with medium and produce counting, according to the execution result of delete command 1001, more new media produces counting.
Equally, in deletion response 1002, current content produces counting territory (operand [7] is to operand [8]), comprises that up-to-date content produces counting, and content produces content management units 203 (or 208) management of counting by controlled plant.Produce in the counting territory in this current content, be provided with content and produce counting, according to the execution result of delete command 1001, update content produces counting.
The back will be explained write command and write response with reference to Figure 11.
With reference to Figure 11, the data layout of " command format " 1101 indications " write command ", write command is to be transferred to one of order of controlled plant from opertaing device, and the data layout of " response format " 1102 indications " writing response ", writes response corresponding to aforementioned write command.Write command is used to write a new file, is recorded in the interchangeable storage medium, and interchangeable storage medium is connected on the controlled plant.
In write command 1101, operation code field comprises the operational code of indicating write command.Equally, operation code field also comprises various parameter informations, and parameter information is that write command is required.
Equally, in write command 1101, purpose territory (operand [3] is to operand [3]) comprises the purpose contact, and it is the information that is used to specify one of logic I/O contact, and logic I/O contact (being also referred to as joint) is arranged between controlled plant and the opertaing device.Controlled plant receives from opertaing device, by the file of logic I/O contact transmission, and it is stored in the medium of write command appointment.The I/O contact has 110 management of 1394 interfaces.
Equally, in write command 1101, file size territory (operand [5] is to operand [8]) comprise the size of file, and it is to be used to specify by the information of the size of data of the file of new record.Opertaing device is according to document size information, and whether the file that the difference write command needs can be stored.
Equally, in write command 1101, medium produce counting territory (operand [9] is to operand [10]) and comprise that aforementioned medium produce counting.Equally, content generation counting territory (operand [11] is to operand [12]) comprises that aforementioned content produces counting.Whether controlled plant produces counting relatively with the medium that medium produce counting and opertaing device management, and consistent each other according to them, carries out separately or the addition record of execute file not.
Equally, in write command 1101, physics label territory (operand [13]) comprise aforementioned physics label.Equally, logic label territory (operand [14]) comprise aforementioned logic label.Opertaing device is according to these two territories, in the different medium of a plurality of physics or logic, specifies the specific memory medium, as the purpose of visit.
Equally, in write command 1101, file ID territory (operand [15] reaches thereafter) comprises aforementioned document ID.According to file ID, the filename of the file that controlled plant identification will newly be added and file will be stored catalogue wherein.
In writing response 1102, the value that operation code field comprises is identical with the value of the operation code field of write command 1101.Equally, the operand field that writes response 1102 comprises various parameter informations, and parameter information is corresponding to write command 1101.In writing response 1102, symbol "<-" indicate the value of storage identical with the value of write command 1101.
Equally, in writing response 1102, operand [0] territory comprises result code, to the write command 1101 that receives, and the result that indication is carried out.
Equally, in writing response 1102, current media produces counting territory (operand [9] is to operand [10]) and comprises that up-to-date medium produce counting, and medium produce media management unit 202 (or 207) management of counting by controlled plant.Produce in the counting territory in this current media, be provided with medium and produce counting, according to the execution result of write command 1101, more new media produces counting.
Equally, in writing response 1102, current content produces counting territory (operand [11] is to operand [12]) and comprises that up-to-date content produces counting, and content produces content management units 203 (or 208) management of counting by controlled plant.Produce in the counting territory in this current content, be provided with content and produce counting, according to the execution result of write command 1101, update content produces counting.
Equally, in writing response 1102, new file ID territory (operand [15] reaches thereafter) comprises new file ID, it is according to write command 1101, specify the information of the file (more particularly, being the filename of the file that will newly be stored and the path that is used to specify document location) of new storage.New file ID can be different with the file ID of write command 1101, and write command 1101 will be explained in the back.
The data layout of the directory entry information of present embodiment will be explained with reference to figure 5 in the back.
The directory entry information of present embodiment comprises the data block of 32 bytes, and comprises about file system or about the information of catalogue.Directory entry information is by the media management part 204 or 209 management of controlled plant.
With reference to figure 5, the information (8 characters) of filename (substantially) territory 501 storage indication files or catalogue.The information (3 characters) of the extension name of filename (expansion) territory 502 storage indication files.The attribute information of attribute byte territory 503 storage files or catalogue (for example " file " or " catalogue ").Also provide and keep territory 504.Modification time territory 505 canned datas, the time of the preparation of the modification of indication file or catalogue.Revise date territory 506 canned datas, the date that the modification of indication file or catalogue is prepared.File or directory stores be where in medium for beginning allocation units territory 507 canned datas, indication.The information of the data volume of file size territory 508 storage indication files.
The content of attribute information will be explained with reference to figure 6 in the back, and attribute information is arranged in the attribute byte territory 503.
With reference to figure 6, if be provided with, the 0th byte (1sb) indication " read-only file ".The 1st byte indication " hidden file " of state is set, and the 2nd byte indication " system " of state is set.Equally, the 3rd byte indication " label " of state is set, the 4th byte indication " catalogue " of state is set, the 5th byte indication " file " of state is set, and the 6th and the 7th byte is used for keeping.
Then with reference to figure 7, explain medium A bibliographic structure example and be stored in the example of the data file in the medium, medium A is connected on the digital camera 101.
In example shown in Figure 7, sub-directory DCIM appears in the layer under the root directory ROOT (root directory), and, three sub-directory 100ABCDE, 101ABCDE and 102ABCDE appear at again sub-directory DCIM under layer in.
In sub-directory 100ABCDE and 102ABCDE, store image file (after this being called as jpeg file) according to jpeg format.More particularly, sub-directory 100ABCDE comprises three jpeg files (ABCD0001.JPG, ABCD0002.JPG and WXYZ0003.JPG), and sub-directory 102ABCDE comprises two jpeg files (ABCD0004.JPG and ABCD0005.JPG).Equally, sub-directory 101ABCDE comprises the image file (ABCD0005.MPG) according to the mpeg file form.
The back, with interpretive routine, program is used to obtain the listed files of the file of predetermined format, and file storage is in medium A.In the present embodiment, will be explained in the program under such situation, opertaing device DTV105 requires the directory entry information of all catalogues and the directory entry information of all jpeg files, all catalogues are meant among those 100ABCDE, the 101ABCDE and 102ABCDE catalogue that is included in catalogue DCIM and the appearance of following one deck.
The media management part 111 of DTV105 is as opertaing device, and it produces inquiry file list commands 401, and it is sent to 1394 interfaces 110.1394 interfaces 110 of DTV105 are transferred to digital camera 101 by asynchronous transmission with inquiry file list commands 401, and digital camera 101 is as controlled plant.
With reference to figure 8, will be explained in the example of the information that is provided with in the inquiry file list commands 401." 4A 5047 in the extension field storage of inquiry file list commands 401 16(JPG) " 801." 4A 5047 16" specify the extension name (JPG) of jpeg file.Depth Domain storage " 01 16", it specifies a catalogue from beginning territory, path designated directory in those catalogues of following one deck.Beginning territory, path storage: " SC 4443494D 16() " 803, its designated sub-directory DCIM, DCIM appears in following one deck of root directory.Equally, in inquiry file list commands 401, physics label territory and logic label territory, physics label and the logic label of storage designated store medium A.
After receiving inquiry file list commands 401, whether the control module 211 difference orders 401 of digital camera 101 can be accepted.If do not accept, control module 211 returns inquiry file list response 402, and inquiry file list response 402 comprises the result code that indication " is not accepted ".
On the other hand, if inquiry file list commands 401 can be accepted, control module 211 is provided with the result code of indication " acceptance " in resultant field, equally, (current media that is medium A produces counting in current media generation counting territory current media generation count value to be set, under present case " 0 "), current media produces count value and is kept by media management unit 202, (the current content that is medium A produces counting further in current content generation counting territory current content generation count value to be set, under present case " 0 "), current content produces count value and is kept by content management units 203, and returns such inquiry file list response 402.According to such response 402, DTV105 obtains media management information and contents management information, and these two kinds of information are that remote control medium A is required, and such information is remained in media management unit 221 and the content management units 222.
After returning response 402, digital camera 101 reads listed files from file system management unit 204, and listed files is that the inquiry file list commands is required, and then such listed files is carried out asynchronous transmission.
With reference now to Fig. 9,, the example of instrument of interpretation tabulation, listed files is transferred to DTV105 from digital camera 101.
At first, digital camera 101 is with the directory entry information 901 of catalogue (being sub-directory DCIM shown in Figure 7 in this case), and DTV105 is given in asynchronous transmission, and catalogue is arranged in the territory, beginning path of inquiry file list commands 401.In directory entry information, the information of filename (substantially) territory 501 storage indication DCIM, and the information of attribute byte territory 503 storage indications " catalogue ".
Then, digital camera 101 is with the directory entry information 902 of sub-directory (being sub-directory 100ABCDE shown in Figure 7 in this case), and DTV105 is given in asynchronous transmission, and sub-directory is at following one deck of sub-directory DCIM.In directory entry information 902, the information of filename (substantially) territory 501 storage indications " 100ABCDE ", and the information of attribute byte territory 503 storage indications " catalogue ".
Then, the directory entry information 903 to 905 that digital camera 101 is followed jpeg file (being JPEG file " ABCD0001.JPG ", " ABCD0002.JPG " and " WXYZ0003.JPG " shown in Figure 7 in this case), asynchronous transmission is to DTV105, and jpeg file is kept by sub-directory 100ABCDE.These filenames (substantially) territory 501 of directory entry information 903 to 905, the information of storage indication " ABCD0001 ", " ABCD0002 " and " WXYZ0003 ", and the information of filename (expansion) territory 502 storage indications " JPG ", and the information of attribute byte territory 503 storage indications " file ".
After the directory entry information 903 to 905 of all jpeg files of transmission, digital camera 101 will finish the directory entry information 906 of catalogue " .. ", and asynchronous transmission finishes catalogue " .. " corresponding to sub-directory " 100ABCDE " to DTV105.In directory entry information 906, the information of filename (substantially) territory 501 storage indications " .. ", and the information of attribute byte territory 503 storage indications " catalogue ".
Then, digital camera 101 is then with the directory entry information 907 of sub-directory " 100ABCDE " and the directory entry information 908 of end catalogue " .. ", and asynchronous transmission finishes catalogue " .. " corresponding to sub-directory " 100ABCDE " to DTV105.
Then, digital camera 101 is followed the directory entry information 911 of the jpeg file " ABCD0005.JPG " of the directory entry information 910 of the jpeg file " ABCD0004.JPG " of the directory entry information 907 of sub-directory " 102ABCDE ", sub-directory " 102ABCDE " maintenance, sub-directory " 102ABCDE " maintenance and the directory entry information 912 of end catalogue " .. ", asynchronous transmission finishes catalogue " .. " corresponding to sub-directory " 102ABCDE " to DTV105.
At last, digital camera 101 will finish the directory entry information 913 of catalogue " .. ", and asynchronous transmission finishes catalogue " .. " corresponding to sub-directory DCIM to DTV105, finishes the transmission of listed files thus.
The media management unit 110 of DTV105 is stored in the listed files that receives in the file system management unit 223.Control module 227 in office what is the need for when wanting, from file system management unit 223, read listed files, and on display unit 228, use icon or similar, show the bibliographic structure of medium A and be included in jpeg file in each catalogue with graphics mode.According to the listed files that is presented on the display unit 228, the user can visit each the JEPG file that is stored among the medium A, and can carry out the deletion of any file and file is added in any catalogue.
Pass through said procedure, DTV105 is as opertaing device, by a utility command, not only be suitable in medium A, identification from catalogue " DCIM " to sub-directory " 100ABCDE ", the bibliographic structure of " 101ABCDE " and " 102ABCDE ", and be suitable for confirming to remain on all jpeg files in each catalogue.
The back will be by various example interpretive routines, and in program, DTV105 (opertaing device) relies on delete command shown in Figure 10, among the medium A on being connected to digital camera 101 (controlled plant), and deletion jpeg file " ABCD0002.JPG ".
At first, will be explained in the program under such situation,, during the transmission delete command, do not carry out deleted file from medium A, or file is added wherein, or medium A is replaced by other medium from obtaining the listed files of medium A.
The control module 227 of DTV105 produces delete command 1001.In delete command 1001, medium produce the medium generation countings (being " 0 " in this case) that the counting territory is provided with medium A, and medium produce counting by 221 management of media management unit.Content produces the content generation counting (being " 0 " in this case) that the counting territory is provided with medium A, and content produces counting by content management units 222 management.The file ID territory is provided with file ID " ", and physics label territory and logic label territory, and physics label and the logic label of designated store medium A is set.1394 interfaces 110 of DTV105 are with such delete command 1001, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from delete command 1001, and it and the medium of media management unit 202 management are produced counting compares.When in this case, the medium of DTV105 produce counting and the medium of digital camera 101, and to produce counting consistent, control module 211 according to delete command 1001 execution control.
Then, the control module 211 of digital camera 101, detecting file ID from delete command 1001 (is “ $DCIM$100ABCDE in this case
$ABCD0002.JPG "), and the file of deleted file ID appointment (in this case, be in the sub-directory " 100ABCDE " jpeg file " ABCD0002.JPG ").Behind deleted file " ABCD0002.JPG ", file system management unit 204 is updated to new listed files with the listed files of medium A.Equally, content management units 203 update content produce the content (being to " 1 " in this case from " 0 ") of counting, and content produces counting corresponding to medium A.
Then, the control module 211 of digital camera 101 produces deletion response 1002, and deletion response 1002 is corresponding to delete command 1001.In this deletion response 1002, resultant field is provided with result code, indication " deletion of specified file is normally finished ".Equally, current media produces the counting territory medium generation counting (being " 0 " in this case) is set, medium produce counting by 202 management of media management unit, and current content produces the counting territory content generation counting (being " 1 " in this case) is set, and content produces counting and managed by content management units 203.1394 interfaces 110 of digital camera 101 will be deleted response 1002 asynchronous transmission and give DTV105.
The control module 227 of DTV105 is checked the resultant field of deletion response 1002, and whether the deletion that detects file " ABCD0002.JPG " thus completes successfully.When in this case, the deletion of file " ABCD0002.JPG " is normally finished, and display unit 228 is display message or animation visually, and the deletion of indication file " ABCD0002.JPG " is normally finished.
Equally, the control module 227 of DTV105, the scope of examination produces counting from deletion response 1002, and it and the content of content management units 222 management are produced counting compares.Control module 227 detects content generation counting has increased by 1 (content that the content of digital camera 101 produces counting-DTV produces counting=1), identification thus " do not have visit to go to change the content of medium A, ABCD0002.JPG is deleted except file ".
The file system management unit 223 of DTV105, the listed files of updated stored medium A.Equally, content management units 222 produces memory contents generation counting in the counter register in content, and content generation counting responds 1002 from deletion and detects, and upgrades the content generation counting of DTV105 management thus.The content of upgrading produces counting and is arranged in the next order for medium A.
Pass through said procedure, the digital camera 101 of forming controlled plant, can use the delete command 1001 that comprises media management information and contents management information, only in the medium of appointment from delete command 1001, with the file delete of appointment in the delete command 1001.Equally, form the DTV105 of opertaing device, can use the deletion response 1002 that comprises media management information and contents management information, recognize easily, deleted file is the file of delete command 1001 appointments.
The back, will be explained in the program under such situation, at listed files, during the transmission delete command from acquisition medium A, a file except jpeg file " ABCD0002.JPG ", from recording medium A the deletion or add among the recording medium A.
In this case, the content of medium A by the operation of digital camera 101 or miscellaneous equipment (in this case, deleted or the interpolation of a file except jpeg file " ABCD0002.JPG ") changes, file system management unit 204 is with the listed files of medium A, be updated to new listed files, and content management units 203 update content produce the content (being to " 1 " in this case from " 0 ") of counting.
The media management part 111 of DTV105 produces aforementioned delete command 1001, and 1394 connect 110 with this delete command 1001, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from delete command 1001, and it and the medium of media management unit 202 management are produced counting compares.In this case, because the medium of DTV105 produce counting, consistent with the medium generation counting of digital camera 101, control module 211 is carried out control according to delete command 1001.
Then, the control module 211 of digital camera 101 detects file ID from delete command 1001, and the file of deleted file ID appointment (in this case, be in the sub-directory " 100ABCDE " jpeg file " ABCD0002.JPG ").Behind the file of deletion appointment, file system management unit 204 is with the listed files of medium A, be updated to new listed files, and, content management units 203 update content produce the content (being to " 0 " in this case from " 1 ") of counting, and content produces counting corresponding to medium A.
Then, the control module 211 of digital camera 101 produces deletion response 1002, and deletion response 1002 is corresponding to delete command 1001.In this deletion response 1002, resultant field is provided with result code, indication " deletion of specified file is normally finished ".Equally, current media produces the counting territory medium generation counting (being " 0 " in this case) is set, medium produce counting by 202 management of media management unit, and current content produces the counting territory content generation counting (being " 2 " in this case) is set, and content produces counting and managed by content management units 203.1394 interfaces 110 of digital camera 101 will be deleted response 1002 asynchronous transmission and give DTV105.
The control module 227 of DTV105 is checked the resultant field of deletion response 1002, and whether the deletion that detects file " ABCD0002.JPG " thus completes successfully.When in this case, file " ABCD0002.JPG " is normally deleted, and display unit 228 is display message or animation visually, and the deletion of indication file " ABCD0002.JPG " is normally finished.
Equally, the control module 227 of DTV105 detects content and produces counting from deletion response 1002, and it and the content of content management units 222 management are produced counting compares.In this case, control module 227 detects content generation counting has increased by 2 (content that the content of digital camera 101 produces counting-DTV produces counting=2), recognize thus, " one " visit has changed the content of medium A, and ABCD0002.JPG is deleted except file.Like this, automatically recognize, be necessary to be updated to new listed files.Then, display unit is display message or animation visually, and indication " is necessary the listed files of updated stored medium A, upgrade now? "
In instruction according to the user, under the situation of the content of updating file tabulation, the media management part 111 of DTV105 is transmitted aforementioned inquiry file list commands 401 once more, obtains the new listed files of medium A thus, new medium produce counting and new content produces counting.The new medium generation counting that obtains, the medium that are stored in media management unit 211 produce in the counter register, and the content that the new content generation counting that obtains is stored in content management units 222 produces in the counter register.
Pass through said procedure, the digital camera 101 of forming controlled plant, use comprises the delete command 1001 of media management information and contents management information, can be from the medium of delete command 1001 appointments, and safely only with the file delete of delete command 1001 appointments.Equally, form the DTV105 of opertaing device, use the deletion response 1002 that comprises media management information and contents management information, can recognize easily, the content of medium A is changed by another equipment.
The back will be explained in the program under such situation, and at the listed files that obtains medium A from DTV105, during the transmission delete command, jpeg file " ABCD0002.JPG " is deleted from recording medium A.
Under these circumstances, the content of medium A by the operation of digital camera 101 or miscellaneous equipment (in this case, " ABCD0002.JPG " is deleted for jpeg file) change, file system management unit 204 is with the listed files of medium A, be updated to new listed files, and content management units 203 update content produce the content (being to " 1 " in this case from " 0 ") of counting.
The media management part 111 of DTV105 produces aforementioned delete command 1001, and 1394 interfaces 110 are this delete command 1001, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from delete command 1001, and it and the medium of media management unit 202 management are produced counting compares.In this case, because the medium of DTV105 produce counting, consistent with the medium generation counting of digital camera 101, control module 211 is carried out control according to delete command 1001.
Then, the control module 211 of digital camera 101 detects file ID from delete command 1001, and the file of deleted file ID appointment (in this case, be in the sub-directory " 100ABCDE " jpeg file " ABCD0002.JPG ").But because jpeg file " ABCD0002.JPG " is deleted, content management units 203 does not change the content (keeping " 1 " in this case) that content produces counting.
Then, the control module 211 of digital camera 101 produces deletion response 1002, and deletion response 1002 is corresponding to delete command 1001.In this deletion response 1002, resultant field is provided with result code, indication " specified file does not exist ".Equally, current media produces the counting territory medium generation counting (being " 0 " in this case) is set, medium produce counting by 202 management of media management unit, and current content produces the counting territory content generation counting (being " 1 " in this case) is set, and content produces counting and managed by content management units 203.1394 interfaces 110 of digital camera 101 will be deleted response 1002, and DTV105 is given in asynchronous transmission.
The control module 227 of DTV105 is checked the resultant field of deletion response 1002, and whether the deletion that detects file " ABCD0002.JPG " thus completes successfully.When in this case, file " ABCD0002.JPG " does not exist, and display unit 228 is display message or animation visually, and indication file " ABCD0002.JPG " does not exist.
Equally, the control module 227 of DTV105 detects content and produces counting from deletion response 1002, and it and the content of content management units 222 management are produced counting compares.In this case, control module 227 detects content generation counting has increased by 1 (content that the content of digital camera 101 produces counting-DTV produces counting=1), recognizes thus, and " one " visits the content that has changed medium A.Like this, automatically recognize and be necessary to be updated to new listed files.Then, display unit is display message or animation visually, and indication " is necessary the listed files of updated stored medium A, upgrade now? "
Under these circumstances, content according to the tabulation of user's instruction updating file, the media management part 111 of DTV105 is transmitted aforementioned inquiry file list commands 401 once more, obtains the new listed files of medium A thus, new medium produce counting and new content produces counting.The new medium generation counting that obtains, the medium that are stored in media management unit 221 produce in the counter register, and the new content generation counting that obtains, and the content that is stored in content management units 222 produces in the counter register.
Pass through said procedure, the digital camera 101 of forming controlled plant, use comprises the delete command 1001 of media management information and contents management information, can be from the medium of delete command 1001 appointments, and safely only with the file delete of delete command 1001 appointments.Equally, form the DTV105 of opertaing device, use the deletion response 1002 that comprises media management information and contents management information, can recognize easily, the file of delete command 1001 appointments is deleted.
The back will be explained in the program under such situation, and the listed files obtain medium A from DTV105 during the transmission delete command, takes out medium A from the main body of digital camera 101.
Under these circumstances, medium A takes out from the main body of digital camera 101, the listed files of file system management unit 204 deletion medium A, and content management units 203 update content produce the content (being to " 1 " in this case from " 0 ") of counting.
The media management part 111 of DTV105 produces aforementioned delete command 1001, and 1394 interfaces 110 are this delete command 1001, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from delete command 1001, and it and the medium of media management unit 202 management are produced counting compares.In this case, because the medium of DTV105 produce counting, consistent with the medium generation counting of digital camera 101, control module 211 is carried out control according to delete command 1001.
Then, the control module 211 of digital camera 101 detects file ID from delete command 1001, and the file of deleted file ID appointment (in this case, be in the sub-directory " 100ABCDE " jpeg file " ABCD0002.JPG ").But in this case, because medium A does not exist, content management units 203 does not change the content (keeping " 1 " in this case) that content produces counting.
Then, the control module 211 of digital camera 101 produces deletion response 1002, and deletion response 1002 is corresponding to delete command 1001.In this deletion response 1002, resultant field is provided with result code, indication " medium does not exist ".Equally, current media generation counting territory is provided with medium generation counting (being " 0 " in this case), and current content generation counting territory is provided with content generation counting (being " 1 " in this case).1394 interfaces 110 of digital camera 101 will be deleted response 1002, and DTV105 is given in asynchronous transmission.
The control module 227 of DTV105 is checked the resultant field of deletion response 1002, and whether the deletion that detects file " ABCD0002.JPG " thus completes successfully.When in this case, medium A does not exist, and display unit 228 is display message or animation visually, and indication medium A does not exist.
Equally, the control module 227 of DTV105, the medium of removing medium A produce counting and content generation counting, and medium produce counting by 221 management of media management unit, and content generation counting is by content management units 222 management.Also remove the content of file system management unit 223, the tabulation of file system management unit 223 management documents.
Pass through said procedure, the digital camera 101 of forming controlled plant uses the delete command 1001 that comprises media management information and contents management information, can recognize easily, the medium of delete command 1001 appointments is not connected, and prevents maloperation thus.Equally, form the DTV105 of opertaing device, use the deletion response 1002 that comprises media management information and contents management information, can recognize easily, the medium of delete command 1001 appointments does not connect.
The back will be explained in the program under such situation, and at the listed files that obtains medium A from DTV105, during the transmission delete command, medium A is replaced by another medium.
Under these circumstances, medium A takes out from digital camera 101, and replaced by another medium, file system management unit 204, the listed files that keeps such another medium, and media management unit 202 more new media produces the content of counting (being to " 1 " in this case from " 0 "), and content management units 203 update content produce the content (being to " 2 " in this case from " 0 ") of counting.
The media management part 111 of DTV105 produces aforementioned delete command 1001, and 1394 interfaces 110 are this delete command 1001, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from delete command 1001, and it and the medium of media management unit 202 management are produced counting compares.In this case, owing to the medium generation counting of DTV105, inconsistent with the medium generation counting of digital camera 101, control module 211 is refused delete commands 1001, and does not carry out the deletion of the file of delete command 1001 appointments.Such structure makes the digital camera 101 of forming controlled plant, other medium of disable access, and except the medium of delete command 1001 appointments, the same file that prevents safely thus in other medium is deleted mistakenly.
Then, the control module 211 of digital camera 101 produces deletion response 1002, and deletion response 1002 is corresponding to delete command 1001.In this deletion response 1002, resultant field is provided with result code, indication " another medium is connected ".Equally, current media generation counting territory is provided with medium generation counting (being " 1 " in this case), and current content generation counting territory is provided with content generation counting (being " 2 " in this case).1394 interfaces 110 of digital camera 101 will be deleted response 1002 asynchronous transmission and give DTV105.
The control module 227 of DTV105 is checked the resultant field of deletion response 1002, and whether the deletion that detects file " ABCD0002.JPG " thus completes successfully.When in this case, medium A is replaced by another medium, and display unit 228 is display message or animation visually, indicates another medium to be connected.
Equally, the control module 227 of DTV105, the medium of removing medium A produce counting and content generation counting, and medium produce counting by 221 management of media management unit, and content generation counting is by content management units 222 management.Also remove the content of file system management unit 223, the tabulation of file system management unit 223 management documents.
By said procedure, form the digital camera 101 of controlled plant, use the delete command 1001 that comprises media management information and contents management information, can recognize easily, the medium of delete command 1001 appointments is replaced, and prevents maloperation thus.Equally, form the DTV105 of opertaing device, use the deletion response 1002 that comprises media management information and contents management information, can recognize easily, the medium of delete command 1001 appointments is replaced by another medium.
Explained such structure in the present embodiment, wherein DTV105 composition opertaing device, and delete command 1001 and deletion response 1002 are used for deleted file, and file storage still, the invention is not restricted to such structure in medium A.The DVR103 of any digital camera 101, DVR102, integral photographic machine, printer 104 and PC106 can become opertaing device, as DTV105 explained before.
Equally, explained such structure in the present embodiment, wherein digital camera 101 composition controlled plants, and delete command 1001 and deletion response 1002 are used for deleted file, and file storage still, the invention is not restricted to such structure in medium A.The DVR103 of any DVR102, integral photographic machine, printer 104, DTV105 and PC106 can become controlled plant, as digital camera 101 explained before.
Equally, explained such structure in the present embodiment, wherein delete command 1001 and deletion response 1002 are used for deleted file, and file storage still, the invention is not restricted to such structure in medium A.Any file of other medium B in the J that be stored in can rely on delete command 1001 and deletion response 1002 deleted, as the situation of medium A.
The back, such program will be explained, DTV105 (opertaing device) relies on write command shown in Figure 11, jpeg file " ABCE0006.JPG " is added in the catalogue " 101ABCDE " of medium A, and medium A is connected on the digital camera 101 (controlled plant).
In the present embodiment, with the program of explaining under such situation, at the listed files that obtains medium A from DTV105, during the transmission write command, neither carry out from medium A and go up deleted file, do not carry out yet file is added wherein, do not carry out yet with another medium replacement medium A.
The control module 227 of DTV105 produces write command 1101.In write command 1101, medium produce the medium generation countings (being " 0 " in this case) that the counting territory is provided with medium A, and medium produce counting and read from media management unit 221.Content produces the content generation counting (being " 0 " in this case) that the counting territory is provided with medium A, and content produces counting and reads from content management units 222.The file ID territory is provided with file ID “ $DCIM$101ABCDE$ABCD0006.JPG ", file ID is specified by control module 211, the file size territory is provided with the size of file " ABCD0006.JPG ", purpose contact territory is provided with the purpose contact, and physics label territory and logic label territory are provided with physics label and logic label, designated store medium A.1394 interfaces 110 of DTV105 are with write command 1101, and digital camera 101 is given in asynchronous transmission.
The control module 211 of digital camera 101 detects medium and produces counting from write command 1101, and it and the medium of media management unit 202 management are produced counting compares.If the medium of DTV105 produce counting, inconsistent with the medium generation counting of digital camera 101, control module 211 judges that mediums do not exist, and refusal write command 1101, and wherein medium is formed the purpose of write command 1101.But when the medium generation counting of DTV105, when consistent with the medium generation counting of digital camera 101, control module 211 is carried out according to write command 1101 and is controlled in this case.
Then, the control module 211 of digital camera 101, from write command 1101, detect file ID (be “ $DCIM$101ABCDE$ABCD0006.JPG in this case "), and, additionally be stored in the file ID designated directory " 101ABCDE " file " ABCD0006.JPG ".Behind storage file " ABCD0006.JPG " additionally, file system management unit 204 is updated to new listed files with the listed files of medium A.Equally, content management units 203 update content produce counting (being to " 1 " in this case from " 0 "), and content produces counting corresponding to medium A.The media control unit 111 of digital camera 101 produces the content of counting by such update content, and management is to the visit of the content of change medium A.
After adding file " ABCD0006.JPG " to medium A, the control module 211 of digital camera 101 produces and writes response 1102, writes response 1102 corresponding to write command 1101.In this case, in writing response 1102, resultant field is provided with result code, indication " interpolation of specified file is normally finished ".Equally, current media produces the counting territory medium generation countings (being " 0 " in this case) is set, medium produce counting by 202 management of media management unit, and current content produces the counting territory content generation counting (being " 1 " in this case) is set, and content produces counting by content management units 203 management.
Equally, write response 1102 new file ID territory file ID is set.Such file ID, identical with detection file ID from write command 1101 usually, but in some cases can be different.For example, under these circumstances, the file ID that detects from write command 1101 is assigned catalogue not, and appended document is stored in the digital camera 101 cut-and-dried catalogues, and comprises the file ID of such catalogue, is arranged in the new file ID territory.1394 interfaces 110 of digital camera 101 will write response 1102 asynchronous transmission and give DTV105.
Whether the control module 227 of DTV105 detects the resultant field that writes response 1102, detect the interpolation of file " ABCD0006.JPG " thus and normally finish.When in such cases, when file " ABCD0006.JPG " was normally added, display unit 228 is display message or animation visually, and the interpolation of indication file " ABCD0006.JPG " is normally finished.
The control module 227 of DTV105 also detects content and produces counting from write response 1102, and it and the content of content management units 222 management are produced counting compares.Control module 227 detects content generation counting has increased by 1 (content that the content of digital camera 101 produces counting-DTV produces counting=1), discerns " visit changes the content of medium A, and ABCD0002.JPG is added except file " thus.
The listed files of the file system management unit 223 updated stored medium A of DTV105.Equally, content management units 222 memory contents in content generation counter register produces counting, and content produces counting and detects from writing to respond 1102, and the content of upgrading the DTV105 management thus produces counting.The content of upgrading produces counting, is arranged in the Next Command for medium A.
By said procedure, form the digital camera 101 of controlled plant, can use the write command 1101 that comprises media management information and contents management information, with the file of write command 1101 appointments, add in the medium of write command 1101 appointments.Equally, form the DTV105 of opertaing device, can use to comprise that writing of media management information and contents management information responds 1102, recognize easily, the file of write command 1101 appointments is added.
In the present embodiment, explained such structure, wherein digital camera 101 is formed controlled plants, and write command 1101 and write response 1102 and be used to add file, stores among the medium A, still, the invention is not restricted to such structure.The DVR103 of any DVR102, integral photographic machine, printer 104, DTV105 and PC106 can become controlled plant, as digital camera 101 explained before.
Equally in the present embodiment, explained such structure, wherein write command 1101 responds 1102 with writing, and is used for adding file to medium A, still, the invention is not restricted to such structure.Can rely on write command 1101 and write response 1102, add file to any other medium B in J, as the situation of medium A.
The processing sequence of media management part 111 will be explained with reference to process flow diagram shown in Figure 12 in the back, and media management part 111 is provided in the controlled plant of present embodiment.
In step S1201, controlled plant (any one of described electronic equipment 101 to 106 shown in Figure 1) receives from the order (any one of described electronic equipment 101 to 106) of opertaing device (previously described inquiry file list commands, delete command and write command) transmission.
In step S1202, whether the order that the controlled plant difference receives is the inquiry file list commands, if then order proceeds to step S1203, but if not, then order proceeds to step S1204.
In step S1203, controlled plant is transferred to opertaing device with the inquiry file list response, the inquiry file list response comprises that medium produce counting and content produces counting etc., medium produce counting and content and produce and count corresponding to medium (medium A shown in Figure 1 to J any one), medium is specified by the inquiry file list commands, and the listed files and the catalogue under it of catalogue are transferred to opertaing device, and catalogue is specified by the inquiry file list commands.By receiving such inquiry file list response, opertaing device obtains the listed files of medium, and medium is specified by the inquiry file list commands.The new medium that also obtain medium produce counting and new content generation counting, and medium is specified by the inquiry file list commands.
On the other hand, in step 1204, medium in the order that controlled plant will receive produce counting (being the media management information of opertaing device management), relatively, medium is specified by the order that receives to produce counting (being the media management information of controlled plant management) with medium corresponding to medium (medium A shown in Figure 11 to J any one).
In step S1205, the controlled plant difference, whether two medium that compare in step S1204 produce counting consistent each other.Under the situation of unanimity, order proceeds to step S1206, but under inconsistent situation, order proceeds to step S1209.
In step S1206, controlled plant recognizes, and the medium of the order appointment of reception still is connected, and carries out the processing of the order appointment that receives.In the order of accepting is under the situation of delete command explained before, with the file delete of delete command appointment, and is under the situation of write command explained before in the order of accepting, and adds the file of write command appointment.
In step S1207, the controlled plant update content produces counting, and content produces the medium of counting corresponding to the order appointment that receives.
In step S1208, controlled plant will comprise the response transmission of result code to opertaing device, the result code indication, and the processing of the order appointment of reception is carried out, and response comprises that also medium produce counting and content produces counting, and they are corresponding to the medium of the order appointment that receives.By receiving such response, opertaing device recognizes, and the processing of order appointment is carried out.Same according to the content generation counting that is included in the response, whether the renewal that opertaing device can automatically be discerned listed files is necessary.
In step S1209, controlled plant recognizes, and the medium of the order appointment of reception is replaced, and the processing of the order appointment of rejection.
In step S1210, controlled plant will comprise the response transmission of result code to opertaing device, the result code indication, and the processing of the order appointment of reception is rejected, and response comprises that also medium produce counting and content produces counting, and they are corresponding to the medium of the order appointment that receives.By receiving such response, opertaing device recognizes, and the processing of order appointment is rejected.
[other embodiments of the invention]
The adaptable system of the present invention can comprise a plurality of equipment (for example principal computer, interfacing equipment, fetch equipment, printer etc.), perhaps is used to comprise the device of single equipment.
Equally, the present invention includes such situation, the procedure code of software is realized the function of previous embodiment, procedure code offers the computing machine or the device of various systems, the computing machine of system or device are connected on the various device, come the function of operating equipment with the realization previous embodiment, and pass through the computing machine (CPU or MPU) of said system or device, according to the procedure code operating equipment, realize the function of previous embodiment.
In such situation, the procedure code of software itself is realized the function of previous embodiment, and procedure code itself and be used for such procedure code is offered the device of computing machine, the medium of store program codes for example, formation the present invention.The medium of storing such procedure code can be, for example floppy disk, hard disk, CD, magneto-optic disk, CD-ROM, tape, non-according to electrical storage card or ROM.
The present invention also comprises such procedure code, not only procedure code under these circumstances, the function of previous embodiment, realize by object computer fetch program sign indicating number, and procedure code under these circumstances, and operation system of computer or identity function are under the control of such procedure code, carry out all or part actual treatment, realize the function of previous embodiment thus.
The present invention further comprises such situation, the procedure code that wherein reads from medium once is stored in the storer, storer is provided on the expansion board of inserting in the computing machine, or be provided in the functional expansion unit that is connected on the computing machine, and be provided at the CPU in expansion board or the functional expansion unit, according to the instruction of such procedure code, carry out its all or part and handle, realize the function of previous embodiment thus.
According to previous embodiment explained before, the media management information of predetermined interchangeable storage medium, by opertaing device and controlled plant management, opertaing device can be discerned the change that medium connects easily thus, and controlled plant can prevent the maloperation to other medium safely except to said storing medium.
Equally according to previous embodiment explained before, the contents management information of predetermined interchangeable storage medium, by opertaing device and controlled plant management, opertaing device can be discerned the change of medium memory contents easily thus, and controlled plant can prevent the maloperation to other medium safely except to said storing medium.
The present invention can implement with other specific forms, and does not separate from its basic characteristics.
Like this, the foregoing description is the example of all aspects, and need not be confined to formation of the present invention.
Scope of the present invention is by the scope definition of appended claims, and is not limited to the specific description of this instructions fully.And, belong to all modifications and variations that claims are equal to, be considered to fall within the scope of the present invention.

Claims (9)

1. equipment that is used to install interchangeable storage medium comprises:
The media management information updating device, be used for when described interchangeable storage medium is connected to described equipment, upgrade first media management information, whether described first media management information is preserved in described equipment and is used to detect described interchangeable storage medium and replaced by another interchangeable storage medium;
The order receiving trap is used for receiving the order that comprises second media management information from external unit by universal serial bus; With
Control device is used for determining whether described first media management information is consistent with described second media management information,
Wherein, if described first media management information is consistent with described second media management information, the described order of then described control device execution institute processing of request, and
If described first media management information and described second media management information are inconsistent, then described control device is refused described order.
2. according to the equipment of claim 1, wherein said equipment is according to described order, and transmission is stored in the fileinfo of the file in the described interchangeable storage medium.
3. according to the equipment of claim 1, wherein said equipment is according to described order, and deletion is stored in the file in the described interchangeable storage medium.
4. according to the equipment of claim 1, wherein said equipment adds new file in the described interchangeable storage medium to according to described order.
5. according to the equipment of claim 1, further comprise:
The contents management information updating device is used for being updated in the contents management information that described equipment is preserved,
Wherein, if if if replaced file interchangeable storage medium deleted or add in interchangeable storage medium or cover new file if described interchangeable storage medium disconnects described interchangeable storage medium from described equipment by another interchangeable storage medium, then described contents management information updating device upgrades described contents management information.
6. according to any one equipment among the claim 1-5, wherein said interchangeable storage medium is semiconductor memory or disc type medium.
7. according to any one equipment among the claim 1-5, wherein said equipment is digital camera, digital camera, digital television or the printer of digital camera, integral photographic machine.
8. according to any one equipment among the claim 1-5, wherein said universal serial bus meets IEEE 1394 standards.
9. according to any one equipment among the claim 1-5, wherein,
If described first media management information is consistent with described second media management information, then described control device offers external unit with first response by described universal serial bus, described first response comprise described first media management information and expression carry out described order information and
If described first media management information and described second media management information are inconsistent, then described control device offers external unit with second response by described universal serial bus, and described second response comprises the information of described first media management information and the described order of expression refusal.
CNB2005101041175A 1999-12-03 2000-12-01 Electronic apparatus for managing changeable storage medium, method thereof and storage medium Expired - Fee Related CN100382000C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP345496/1999 1999-12-03
JP34549699 1999-12-03
JP352883/2000 2000-11-20

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CNB001373331A Division CN1260665C (en) 1999-12-03 2000-12-01 Electronic apparatus for managing changeable storage medium, method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN1770086A CN1770086A (en) 2006-05-10
CN100382000C true CN100382000C (en) 2008-04-16

Family

ID=36751414

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101041175A Expired - Fee Related CN100382000C (en) 1999-12-03 2000-12-01 Electronic apparatus for managing changeable storage medium, method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN100382000C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112009004621B4 (en) * 2009-05-04 2018-08-23 Hewlett-Packard Development Company, L.P. Memory device clear command with a control field controllable by a requester device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5590376A (en) * 1992-11-13 1996-12-31 Toshiba America Information Systems, Inc. Apparatus and method for detecting and updating status of removable storage system using shared interrupt and software flag
CN1199204A (en) * 1996-10-16 1998-11-18 佳能株式会社 File management system of image data
JPH1125024A (en) * 1997-07-04 1999-01-29 Casio Comput Co Ltd Information processor
EP0951018A1 (en) * 1998-04-16 1999-10-20 Fujitsu Limited Storing apparatus, storage control method, and storing medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5590376A (en) * 1992-11-13 1996-12-31 Toshiba America Information Systems, Inc. Apparatus and method for detecting and updating status of removable storage system using shared interrupt and software flag
CN1199204A (en) * 1996-10-16 1998-11-18 佳能株式会社 File management system of image data
JPH1125024A (en) * 1997-07-04 1999-01-29 Casio Comput Co Ltd Information processor
EP0951018A1 (en) * 1998-04-16 1999-10-20 Fujitsu Limited Storing apparatus, storage control method, and storing medium

Also Published As

Publication number Publication date
CN1770086A (en) 2006-05-10

Similar Documents

Publication Publication Date Title
US7269691B2 (en) Electronic device for managing removable storage medium, method and storage medium therefor
US7072983B1 (en) Scheme for systemically registering meta-data with respect to various types of data
KR100466143B1 (en) File management method, contents recording apparatus, contents reproducing apparatus and contents recording medium
US5530235A (en) Interactive contents revealing storage device
CN101165689B (en) File management apparatus and method for controlling file management apparatus,
US6185574B1 (en) Multiple display file directory and file navigation system for a personal computer
US5931935A (en) File system primitive allowing reprocessing of I/O requests by multiple drivers in a layered driver I/O system
CN100588236C (en) Data reproducing device and content management method
CN100399310C (en) Information processing apparatus, information processing method, program and recording medium used therewith
JP2002055995A (en) Method and device for information processing
JP2002540530A (en) Automatic file pruning
JP5746230B2 (en) Endless memory
US5457794A (en) Information retrieval apparatus for searching target literature data from an information recording medium, including reuse of past retrieving results
JP2007310481A (en) Document management method, its program, recording medium, document sharing server, and document sharing system
US20040267796A1 (en) Data exchanger apparatus, data exchange method and program therefore
CN100382000C (en) Electronic apparatus for managing changeable storage medium, method thereof and storage medium
CN101006439A (en) Information storage medium for storing metadata supporting multiple languages and systems and methods of processing metadata
JP2960535B2 (en) How to manage memo information
CN115795502A (en) Authority management method and system of distributed file system and related components
KR100772516B1 (en) Apparatus for automatic creation and managing of contents information for Universal Plug and Play AV Server and method thereof
JP4060890B2 (en) File system primitives that allow reprocessing of I / O requests by multiple drivers in a hierarchical driver I / O system
EP1085433A2 (en) Information processing apparatus and method
KR20050006975A (en) Method for Controlling Content Files Using Identification
JP4011662B2 (en) Electronic filing method and apparatus
JP2007141089A (en) Content storage management system, content storage management method and content storage management program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080416

Termination date: 20151201

EXPY Termination of patent right or utility model