US20090251574A1 - Electronic device, electronic camera, and data transfer program - Google Patents
Electronic device, electronic camera, and data transfer program Download PDFInfo
- Publication number
- US20090251574A1 US20090251574A1 US12/081,480 US8148008A US2009251574A1 US 20090251574 A1 US20090251574 A1 US 20090251574A1 US 8148008 A US8148008 A US 8148008A US 2009251574 A1 US2009251574 A1 US 2009251574A1
- Authority
- US
- United States
- Prior art keywords
- data transfer
- communication protocol
- rate
- judgment
- unit
- 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.)
- Abandoned
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/21—Intermediate information storage
- H04N1/2104—Intermediate information storage for one or a few pictures
- H04N1/2112—Intermediate information storage for one or a few pictures using still video cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/21—Intermediate information storage
- H04N1/2104—Intermediate information storage for one or a few pictures
- H04N1/2112—Intermediate information storage for one or a few pictures using still video cameras
- H04N1/2137—Intermediate information storage for one or a few pictures using still video cameras with temporary storage before final recording, e.g. in a frame buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/21—Intermediate information storage
- H04N1/2104—Intermediate information storage for one or a few pictures
- H04N1/2158—Intermediate information storage for one or a few pictures using a detachable storage unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/333—Mode signalling or mode changing; Handshaking therefor
- H04N1/3333—Mode signalling or mode changing; Handshaking therefor during transmission, input or output of the picture signal; within a single document or page
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
- H04N5/772—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00347—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with another still picture apparatus, e.g. hybrid still picture apparatus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2101/00—Still video cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/0008—Connection or combination of a still picture apparatus with another apparatus
- H04N2201/0015—Control of image communication with the connected apparatus, e.g. signalling capability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/0077—Types of the still picture apparatus
- H04N2201/0084—Digital still camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/0077—Types of the still picture apparatus
- H04N2201/0087—Image storage device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N2201/333—Mode signalling or mode changing; Handshaking therefor
- H04N2201/33307—Mode signalling or mode changing; Handshaking therefor of a particular mode
- H04N2201/33342—Mode signalling or mode changing; Handshaking therefor of a particular mode of transmission mode
- H04N2201/3335—Speed or rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/907—Television signal recording using static stores, e.g. storage tubes or semiconductor memories
Definitions
- the present invention relates to an electronic device, an electronic camera, and a data transfer program.
- Japanese Laid-Open Patent Application No. 2003-323397 discloses a technology with which when a data transfer error in an Ultra DMA mode occurs, a communication protocol is changed to a PIO mode.
- Japanese Laid-Open Patent Application No. H11-45157 discloses a technology with which when a data transfer error occurs, data transfer is performed at a transfer rate than a set transfer rate.
- the electronic camera includes a data transfer unit that transfers data between a first recording medium and a second recording medium; an indication unit that indicates to the transfer unit a communication protocol and a data transfer rate to be used in data transfer; a judgment unit that judges whether or not the data transfer is successful; a control unit that controls the indication unit to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
- the communication protocol to be used in the data transfer includes a higher rate communication protocol and a lower rate communication protocol that performs the data transfer in a transfer rate lower than that of the higher rate communication protocol, and at least one of the higher rate communication protocol and the lower rate communication protocol is adapted to be changeable with respect to data transfer rate.
- control unit controls the indication unit to decrease the data transfer rate without changing the communication protocol when it is judged by the judgment unit that data transfer with the communication protocol of which the data transfer rate is made changeable is unsuccessful.
- control unit controls the indication unit to change the higher rate communication protocol to the lower rate communication protocol when the data transfer is performed at a minimum data transfer rate of the higher rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is unsuccessful.
- control unit controls the indication unit to increase the data transfer rate without changing the communication protocol when it is judged by the judgment unit that the data transfer with the communication protocol of which the data transfer rate is made changeable is successful.
- control unit controls the indication unit to change the lower rate communication to the higher rate communication when the data transfer is performed at a maximum data transfer rate of the lower rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is successful.
- control unit controls the indication unit to increase the data transfer rate when a judgment by the judgment unit that the data transfer is successful is continuously made a predetermined number of times.
- control unit controls the indication unit to redo the data transfer according to the same communication protocol and at the same transfer rate as the communication protocol and the transfer rate at the time when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check.
- control unit controls the indication unit to decrease the data transfer rate when it is judged by the judgment unit that a judgment that the data transfer is unsuccessful is continuously made a predetermined number of times.
- control unit controls the indication unit to change the communication protocol to the lower rate communication protocol when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check and if the communication protocol used upon the judgment that the data transfer is unsuccessful is the higher rate communication protocol.
- the electronic camera according to the second aspect of the present invention includes components of the electronic device according to the first aspect; and an image-capturing unit that captures an image of a subject to obtain image data and outputs the image data.
- the computer-readable program product containing a program for controlling data transfer, the program comprising: a data transfer instruction for performing data transfer between a first recording medium and a second recording medium; (an indication instruction for indicating a communication protocol and a data transfer rate to be used in the data transfer; a judgment instruction for judging whether or not the data transfer is successful; and a control instruction for controlling the indication instruction to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
- FIG. 1 is a block diagram illustrating a configuration of a main part of an electronic camera according to a first embodiment of the present invention
- FIG. 2 is a diagram illustrating a method of communication used in data transfer
- FIG. 3 is a flowchart illustrating communication control processing according to the first embodiment
- FIG. 4 is a flowchart illustrating communication control processing according to a second embodiment of the present invention.
- FIG. 5 is a flowchart illustrating communication control processing according to a third embodiment of the present invention.
- FIG. 6 is a diagram illustrating by an example of a manner in which a computer program product that causes a computer to perform the communication control processing according to any of the first to the third embodiments is provided.
- FIG. 1 is a block diagram presenting a configuration of a main part of an electronic camera according to a first embodiment of the present invention.
- a electronic camera 1 includes a photographic lens 201 , an image sensor 202 , a CCD driver 203 , a preprocessing circuit 204 , an A/D converter circuit 205 , an ASIC 206 , a card I/F 208 , a memory 209 , a color monitor 210 , a CPU 211 , an operation member 212 , and a power supply 213 .
- the card I/F 208 is adapted so as to detachably attach a memory card 250 thereto.
- the photographic lens 201 forms an image of a subject on an imaging plane of the image sensor 201 .
- the image sensor 202 includes, for example, a CCD image sensor.
- the image sensor 202 captures an image of a subject to obtain analog image signals and outputs the analog image signals to the preprocessing circuit 204 .
- the CCD driver 203 provides a predetermined drive signal or signals to the image sensor 202 .
- the preprocessing circuit 204 performs analog processing (gain control, etc.) on the analog image signals.
- the A/D converter circuit 205 converts the analog image signal after the analog processing into digital image signals.
- the digital image signals are output to the ASIC 206 .
- the ASIC 206 functions as an image processing circuit, which performs predetermined image processing on the input digital image signals to produce an image file.
- the image processing includes, for example, enhancement of contour and color temperature adjustment (white balance adjustment) processing, format conversion processing for image signals, and image compression processing.
- the ASIC 206 prepares display data for displaying the image file on the color monitor 210 .
- the color monitor 210 which includes a liquid crystal display panel, displays a reproduced image based on the display data input from the ASIC 206 .
- the power supply circuit 213 supplies power necessary for each unit in the electronic camera 1 .
- the operation member 212 which includes a user input device such as a release button or a reproduction button, outputs an operation signal from each user input device.
- the CPU 211 sends an instruction to each unit in the electronic camera 1 in response to the operation signal input therein and controls photographing action and reproducing action of the electronic camera 1 .
- the memory 209 temporarily records therein data before and after the image processing and data during the image processing.
- the memory 209 can be used as a buffer memory; the memory 209 records therein an image file before it is recorded into the memory card 250 or an image file read out from the memory card 250 .
- the image file produced by the ASIC 206 is temporarily recorded in the memory 209 and then transferred to the memory card 250 through the card I/F 208 and recorded in the memory card 250 .
- the card I/F 208 which includes a DMA (Direct Memory Access) controller 220 , controls access to the memory card 250 in response to the instruction from the CPU 211 .
- DMA Direct Memory Access
- the access to the memory card 250 is performed, for example, in a case where an image file is recorded in the memory card 250 and in a case where the image file recorded in the memory card 250 is read out therefrom.
- FIG. 2 is a diagram illustrating a method of communication used by the electronic camera 1 in data transfer between the memory card 250 and the electronic camera 1 .
- the electronic camera 1 uses any one communication method selected from, for example, six communication methods (inclusive of two types of communication protocols).
- One of the communication protocols is UDMA (Ultra DMA), which is standardized for data transmission and reception between memories or recording devices in a computer device.
- UDMA Ultra DMA
- the DMA controller 220 manages data transfer and performs the data transfer directly without involving the CPU 211 . Since CPU commands (machine language) are not used in the data transfer, a transfer rate higher than that of clock signals of the CPU 211 can be obtained.
- five ranks of communication method i.e., from Mode 2 to Mode 6 are used as UDMA.
- the transfer rates of the five ranks of communication method are faster in the order of Mode 6>Mode 5>Mode 4>Mode 3>Mode 2.
- the other of the communication protocols is a PIO (Programmed I/O) protocol, in which the CPU 211 manages data transfer between memories and recording devices.
- PIO Programmed I/O
- the data is transferred through intermediary of CPU commands (machine language) and hence the transfer rate by the PIO method is lower than the transfer rate by the UDMA method.
- the UDMA method is used as a high rate communication protocol and the PIO method is used as a low rate communication protocol.
- the transfer rate can be changed in the PIO method by changing intervals of CPU commands, only one transfer rate for the PIO method is used in the present embodiment.
- the electronic camera according to the present embodiment is adapted such that one communication method can be selected from six ranks of communication method obtained by summing up the above-mentioned five ranks of UDMA method and a single rank of PIO method. It is needless to say that the electronic camera may be adapted such that even in the PIO method, the transfer rate is changeable.
- the communication control processing that the CPU 211 performs is described with reference to the flowchart shown in FIG. 3 .
- processing of writing data to the memory card 250 is described.
- the CPU 211 performs the processing shown in FIG. 3 every time when a predetermined amount (for example, 128 K bytes) of data is transferred upon access to the memory card 250 .
- a step S 11 in FIG. 3 the CPU 211 sends an instruction to the card I/F 208 to perform data transfer (perform writing) to the memory card 250 and advances the process to a step S 12 .
- the electronic camera is adapted such that three modes of abnormality upon data transfer are discernible.
- Occurrence of abnormality of Mode 1 means that handshake according to the selected communication protocol is normal (that is, communication is established) and abnormality occurs only in the transfer data.
- CRC Cyclic Redundancy Check
- the CPU 211 judges that an abnormality of Mode 1 (herein after, referred to as “CRC error”) has occurred.
- the CRC is one of error detection methods upon data transfer and detects errors by transmitting and receiving transfer data with a cyclic redundancy code for use in the detection of errors in advance.
- the CPU 211 judges that an abnormality of Mode 2 has occurred.
- the CPU 211 judges that an abnormality of Mode 3 has occurred.
- the CPU 211 judges whether or not the writing is successful.
- the CPU makes an affirmative judgment on the step S 12 if it is judged that at least one abnormality of Modes 1 to 3 mentioned above is observed and advances the process to a step S 13 .
- the CPU 211 makes a negative judgment on the step S 12 if it is judged that no abnormality of Modes 1 to 3 mentioned above is observed and the processing shown in FIG. 3 is ended.
- the writing is normal, so that data transfer to the memory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever.
- a next predetermined amount in the present example, 128 Kbytes
- the CPU 211 judges whether or not the current communication protocol is according to the UDMA method.
- the CPU 211 makes an affirmative judgment on the step S 13 and advances the process to a step S 14 .
- the CPU 211 makes a negative judgment on the step S 12 if it is judged that the current communication protocol is not according to the UDMA method and the CPU 211 advances the process to a step S 16 .
- the CPU 211 judges whether or not the current transfer rate according to the UDMA method is faster than that of Mode 2.
- the current transfer rate is the same as the transfer rate of one of the Modes 3 to 6, the CPU 211 makes an affirmative judgment on the step S 14 and advances the process to a step S 15 .
- the CPU 211 makes a negative judgment on the step S 14 and advances the process to a step S 16 .
- the CPU 211 sends an instruction to the card I/F 208 to decrease the current transfer rate according to the UDMA method by one rank and turns the process back to the step S 11 .
- the writing action that is, writing action to write again the data of which previous writing action has been unsuccessful in the step S 11 ) is performed at a rate by one rank lower.
- the CPU 211 judges whether or not the current communication protocol is according to the PIO method.
- the CPU 211 makes an affirmative judgment on the step S 16 if the current communication protocol is according to the PIO method and causes the processing shown in FIG. 3 to be ended.
- the affirmative judgment is made on the step S 16 , some abnormality has occurred, so that the data transfer to the memory card 250 is stopped.
- the CPU 211 makes a negative judgment on the step S 16 if the current communication protocol is not according to the PIO method and advances the process to a step S 17 .
- the CPU 211 switches the communication protocol to one according to the PIO method and turns the process back to the step S 11 . As a result the writing is performed again according to the lower rate communication protocol.
- FIG. 4 is a flowchart illustrating processing to write data into the memory card 250 as an example of the communication control processing according to the second embodiment of the present invention.
- the processing shown in FIG. 4 is performed in place of the processing shown in FIG. 3 .
- the processing shown in FIG. 4 is different from the processing shown in FIG. 3 in steps S 18 to S 25 that are added to the processing shown in FIG. 4 . Accordingly, description is focused on the differences.
- the CPU 211 adds 1 to a counter that counts times in which a judgment is made that the writing is normal (successful) (herein after, referred to as “writing normality counter”) and advances the process to a step S 19 .
- the CPU 211 judges whether or not the count of the writing normality counter is larger than a predetermined value set in advance in the CPU 211 (herein after, referred to as “stable standard value”). The CPU 211 makes an affirmative judgment on the step S 19 and advances the process to a step S 20 when “(writing normality count)>(stable standard value)” is established.
- the CPU 211 makes a negative judgment on the step S 19 and causes the processing shown in FIG. 4 to be ended.
- the negative judgment is made on the step S 19 the writing is normal, so that the data transfer to the memory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever.
- the CPU 211 judges whether or not the current communication protocol is according to the UDMA method.
- the CPU 211 makes an affirmative judgment on the step S 20 and advances the process to a step S 21 .
- the CPU 211 makes a negative judgment on the step S 20 if it is judged that the current communication protocol is not according to the UDMA method and advances the process to a step S 23 .
- the CPU 211 judges whether or not the current transfer rate according to the UDMA method is slower than that of Mode 6.
- the CPU 211 makes an affirmative judgment on the step S 21 and advances the process to a step S 22 .
- the CPU 211 makes a negative judgment on the step S 21 when the current transfer rate is the same as the transfer rate of Mode 6 and causes the processing shown in FIG. 4 to be ended.
- the writing is normal when the negative judgment is made on the step S 21 , so that the data transfer to the memory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever.
- a next predetermined amount in the present example, 128 Kbytes
- the CPU 211 sends an instruction to the card I/F 208 to increase the current transfer rate in the UDMA method by one rank and causes the processing shown in FIG. 4 to be ended. Since the writing is normal when the processing in the step S 22 is performed, the data transfer to the memory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at a transfer rate by one rank higher than the current transfer rate.
- a next predetermined amount in the present example, 128 Kbytes
- the CPU 211 sends an instruction to the card I/F 208 to switch the communication protocol to one according to the UDMA method, which-is-a higher rate communication protocol, to select the transfer rate of Mode 2 and causes the processing shown in FIG. 4 to be ended.
- the writing is normal when the processing in the step S 23 is performed, so that the data transfer to the memory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to Mode 2 of the UDMA method.
- a next predetermined amount in the present example, 128 Kbytes
- the value of writing normality counter is initialized (that is, reset to 0). With this construction, no affirmative judgment is made on the step S 19 unless the writing of data is “continuously” successful a predetermined number of times or more so that the count of the writing normality counter is more than a predetermined value. As a result, the transfer rate will be increased only when the processing of writing data is stably successful.
- step S 23 the communication protocol is switched to the higher rate communication protocol if the lower rate communication protocol is currently used (step S 23 ), so that data transfer can be achieved in a shorter period of time in a situation where the data transfer is stably successful.
- the communication protocol may be switched as follows. If the lower rate communication protocol is used at the time when the judgment whether or not the writing is successful is made and the transfer rate thereof is maximum, then the higher rate communication protocol is used in next data transfer.
- step S 22 If the data transfer is continuously successful a predetermined number of times (stable standard value), the transfer rate is increased by one rank in next data transfer when the higher communication protocol is used (step S 22 ). With this construction, data transfer can be achieved in a much shorter period of time in a situation where the data transfer is stably successful.
- FIG. 5 is a flowchart illustrating the communication control processing according to a third embodiment of the present invention.
- the processing shown in FIG. 5 is performed in place of the processing shown in FIG. 3 or 4 .
- the processing shown in FIG. 5 is different from the processing shown in FIG. 3 in steps S 51 , S 52 to S 54 , and S 55 that are added to the processing shown in FIG. 3 . Accordingly, description is focused on the differences.
- the CPU 211 initializes the CRC error counter to a predetermined number of times of retry (for example, 3) preset in the CPU 211 and advances the process to the step S 11 .
- the CRC error counter is a counter of the type in which its count is decreased by one each time when it is judged that the abnormality of Mode 1 has occurred.
- the above-mentioned number of times of retry means a number of times of retry in which it is tried to write again the data of which the writing was unsuccessful by the same communication method (that is, according to the same communication protocol and at the same transfer rate).
- the CPU 211 judges whether or not a CRC error has occurred.
- the CPU 211 makes an affirmative judgment on the step S 52 and advances the process to a step S 53 when it is judged that abnormality of Mode 1 has occurred.
- the CPU 211 makes a negative judgment on the step S 52 and advances the process to the step S 16 . It is when it is judged that the abnormality of Mode 2 or Mode 3 has occurred that the CPU 211 makes a negative judgment on the step S 52 .
- the CPU 211 causes the CRC error counter to decrease 1 from its count and advances the process to the step S 54 .
- the CPU 211 judges whether the count of the CRC error counter is larger than 0.
- the CPU 211 makes an affirmative judgment on the step S 54 and turns the process back to the step S 11 when “(count value)>0” is established. That is, when the CPU 211 makes an affirmative judgment on the step S 54 , the CPU 211 performs again the writing of data, of which the writing has been unsuccessful in the step S 11 , according to the same communication protocol and at, the same transfer rate.
- the CPU 211 makes a negative judgment on the step S 54 and advances the process to the step S 14 .
- the CPU 211 advances the process to judgment processing to judge whether the writing should be performed again by decreasing the transfer rate or by switching the communication protocol to the lower rate communication protocol.
- step S 55 that follows the step S 15 , the CPU 211 initializes the CRC error counter and turns the process back to the step S 11 . In this case, the writing is performed again by using the same communication protocol with decreasing the transfer rate.
- the memory card 250 may be a memory card of, the type of, for example, a Compact Flash (trade mark) or a memory card of another type.
- the present invention may be applied not only to data transfer between the memory card 250 and the memory 209 but also to data transfer between a recording medium such as a hard disk device and another recording medium such as a memory.
- the electronic camera 1 has been presented as an example of the electronic device, the present invention is also applicable to video cameras, cellular phones, PDA, and so on.
- the computer program that causes a computer to execute the communication control processing shown in any of FIGS. 3 to 5 need not be implemented in the electronic camera 1 from the beginning but may be implemented by transferring the program from a personal computer 10 in which it is stored to the electronic camera 1 .
- a recording medium 104 such as a CD-ROM in which a computer program is stored is set in the personal computer 10 .
- the personal computer 10 reads the computer program from the recording medium 104 and transfers it to the electronic camera 1 through wired or wireless LAN or the like.
- the personal computer 10 downloads the computer program as data signals via the communication line 101 such as a network and transfers them to the electronic camera 1 .
- the program is stored in advance in a hard disk device 103 in a server (computer) 102 connected to the communication line 101 .
- the computer program that causes the computer to execute the communication control processing can be provided as a computer program product that is furnished in various forms such as provision of the recording medium 104 having stored therein the computer program and data signals through the communication line 101 .
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Communication Control (AREA)
Abstract
An electronic device includes: a data transfer unit that transfers data between a first recording medium and a second recording medium; an indication unit that indicates a communication protocol and a data transfer rate to be used in data transfer to the transfer unit; a judgment unit that judges whether or not the data transfer is successful; a control unit that controls the indication unit to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
Description
- The disclosure of the following priority application is herein incorporated by reference: Japanese Patent Application No. 2007-110069 filed Apr. 19, 2007.
- 1. Field of the Invention
- The present invention relates to an electronic device, an electronic camera, and a data transfer program.
- 2. Description of Related Art
- Japanese Laid-Open Patent Application No. 2003-323397 discloses a technology with which when a data transfer error in an Ultra DMA mode occurs, a communication protocol is changed to a PIO mode. Japanese Laid-Open Patent Application No. H11-45157 discloses a technology with which when a data transfer error occurs, data transfer is performed at a transfer rate than a set transfer rate.
- In constructing an electronic device or an electronic camera such that when a data transfer error has occurred, both transfer rate and communication protocol are changeable, there arises a problem how to combine their changes.
- The electronic camera according to a first aspect of the present invention includes a data transfer unit that transfers data between a first recording medium and a second recording medium; an indication unit that indicates to the transfer unit a communication protocol and a data transfer rate to be used in data transfer; a judgment unit that judges whether or not the data transfer is successful; a control unit that controls the indication unit to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
- It is preferred that the communication protocol to be used in the data transfer includes a higher rate communication protocol and a lower rate communication protocol that performs the data transfer in a transfer rate lower than that of the higher rate communication protocol, and at least one of the higher rate communication protocol and the lower rate communication protocol is adapted to be changeable with respect to data transfer rate.
- It is preferred that the control unit controls the indication unit to decrease the data transfer rate without changing the communication protocol when it is judged by the judgment unit that data transfer with the communication protocol of which the data transfer rate is made changeable is unsuccessful.
- It is preferred that the control unit controls the indication unit to change the higher rate communication protocol to the lower rate communication protocol when the data transfer is performed at a minimum data transfer rate of the higher rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is unsuccessful.
- It is preferred that the control unit controls the indication unit to increase the data transfer rate without changing the communication protocol when it is judged by the judgment unit that the data transfer with the communication protocol of which the data transfer rate is made changeable is successful.
- It is preferred that the control unit controls the indication unit to change the lower rate communication to the higher rate communication when the data transfer is performed at a maximum data transfer rate of the lower rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is successful.
- It is preferred that the control unit controls the indication unit to increase the data transfer rate when a judgment by the judgment unit that the data transfer is successful is continuously made a predetermined number of times.
- It is preferred that the control unit controls the indication unit to redo the data transfer according to the same communication protocol and at the same transfer rate as the communication protocol and the transfer rate at the time when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check.
- It is preferred that the control unit controls the indication unit to decrease the data transfer rate when it is judged by the judgment unit that a judgment that the data transfer is unsuccessful is continuously made a predetermined number of times.
- It is preferred that the control unit controls the indication unit to change the communication protocol to the lower rate communication protocol when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check and if the communication protocol used upon the judgment that the data transfer is unsuccessful is the higher rate communication protocol.
- The electronic camera according to the second aspect of the present invention includes components of the electronic device according to the first aspect; and an image-capturing unit that captures an image of a subject to obtain image data and outputs the image data.
- The computer-readable program product according to the third aspect of the present invention containing a program for controlling data transfer, the program comprising: a data transfer instruction for performing data transfer between a first recording medium and a second recording medium; (an indication instruction for indicating a communication protocol and a data transfer rate to be used in the data transfer; a judgment instruction for judging whether or not the data transfer is successful; and a control instruction for controlling the indication instruction to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
-
FIG. 1 is a block diagram illustrating a configuration of a main part of an electronic camera according to a first embodiment of the present invention; -
FIG. 2 is a diagram illustrating a method of communication used in data transfer; -
FIG. 3 is a flowchart illustrating communication control processing according to the first embodiment; -
FIG. 4 is a flowchart illustrating communication control processing according to a second embodiment of the present invention; -
FIG. 5 is a flowchart illustrating communication control processing according to a third embodiment of the present invention; and -
FIG. 6 is a diagram illustrating by an example of a manner in which a computer program product that causes a computer to perform the communication control processing according to any of the first to the third embodiments is provided. - Hereinafter, a best mode for carrying out the present invention is described with reference to the attached drawings.
-
FIG. 1 is a block diagram presenting a configuration of a main part of an electronic camera according to a first embodiment of the present invention. InFIG. 1 , aelectronic camera 1 includes aphotographic lens 201, animage sensor 202, aCCD driver 203, apreprocessing circuit 204, an A/D converter circuit 205, an ASIC 206, a card I/F 208, amemory 209, acolor monitor 210, aCPU 211, anoperation member 212, and apower supply 213. The card I/F 208 is adapted so as to detachably attach amemory card 250 thereto. - The
photographic lens 201 forms an image of a subject on an imaging plane of theimage sensor 201. Theimage sensor 202 includes, for example, a CCD image sensor. Theimage sensor 202 captures an image of a subject to obtain analog image signals and outputs the analog image signals to the preprocessingcircuit 204. TheCCD driver 203 provides a predetermined drive signal or signals to theimage sensor 202. - The
preprocessing circuit 204 performs analog processing (gain control, etc.) on the analog image signals. The A/D converter circuit 205 converts the analog image signal after the analog processing into digital image signals. The digital image signals are output to the ASIC 206. - The ASIC 206 functions as an image processing circuit, which performs predetermined image processing on the input digital image signals to produce an image file. The image processing includes, for example, enhancement of contour and color temperature adjustment (white balance adjustment) processing, format conversion processing for image signals, and image compression processing. In addition, the ASIC 206 prepares display data for displaying the image file on the
color monitor 210. - The
color monitor 210, which includes a liquid crystal display panel, displays a reproduced image based on the display data input from the ASIC 206. Thepower supply circuit 213 supplies power necessary for each unit in theelectronic camera 1. Theoperation member 212, which includes a user input device such as a release button or a reproduction button, outputs an operation signal from each user input device. - The
CPU 211 sends an instruction to each unit in theelectronic camera 1 in response to the operation signal input therein and controls photographing action and reproducing action of theelectronic camera 1. Thememory 209 temporarily records therein data before and after the image processing and data during the image processing. In addition, thememory 209 can be used as a buffer memory; thememory 209 records therein an image file before it is recorded into thememory card 250 or an image file read out from thememory card 250. The image file produced by the ASIC 206 is temporarily recorded in thememory 209 and then transferred to thememory card 250 through the card I/F 208 and recorded in thememory card 250. Since each image is temporarily recorded in thememory 209 for a certain period of time, even if there occurs a transfer error (an error that occurs upon transfer to and recording in the memory card 250) to be detailed below, transfer and recording of the image file can be redone again and again until success. - The card I/F 208, which includes a DMA (Direct Memory Access)
controller 220, controls access to thememory card 250 in response to the instruction from theCPU 211. - Since the present embodiment is featured by data transfer between the
memory card 250 and thememory 209, explanation is focused on the access to thememory card 250. The access to thememory card 250 is performed, for example, in a case where an image file is recorded in thememory card 250 and in a case where the image file recorded in thememory card 250 is read out therefrom. -
FIG. 2 is a diagram illustrating a method of communication used by theelectronic camera 1 in data transfer between thememory card 250 and theelectronic camera 1. Theelectronic camera 1 uses any one communication method selected from, for example, six communication methods (inclusive of two types of communication protocols). One of the communication protocols is UDMA (Ultra DMA), which is standardized for data transmission and reception between memories or recording devices in a computer device. In the case of the transfer method according to UDMA (herein after, referred to as “UDMA method”), theDMA controller 220 manages data transfer and performs the data transfer directly without involving theCPU 211. Since CPU commands (machine language) are not used in the data transfer, a transfer rate higher than that of clock signals of theCPU 211 can be obtained. In the present embodiment, five ranks of communication method, i.e., fromMode 2 toMode 6 are used as UDMA. The transfer rates of the five ranks of communication method are faster in the order ofMode 6>Mode 5>Mode 4>Mode 3>Mode 2. - The other of the communication protocols is a PIO (Programmed I/O) protocol, in which the
CPU 211 manages data transfer between memories and recording devices. In case of the data transfer method by PIO (herein after, referred to as “PIO method”), the data is transferred through intermediary of CPU commands (machine language) and hence the transfer rate by the PIO method is lower than the transfer rate by the UDMA method. Accordingly, in the present embodiment, the UDMA method is used as a high rate communication protocol and the PIO method is used as a low rate communication protocol. Although the transfer rate can be changed in the PIO method by changing intervals of CPU commands, only one transfer rate for the PIO method is used in the present embodiment. Therefore, the electronic camera according to the present embodiment is adapted such that one communication method can be selected from six ranks of communication method obtained by summing up the above-mentioned five ranks of UDMA method and a single rank of PIO method. It is needless to say that the electronic camera may be adapted such that even in the PIO method, the transfer rate is changeable. - The communication control processing that the
CPU 211 performs is described with reference to the flowchart shown inFIG. 3 . As an example of the communication control processing shown inFIG. 3 , processing of writing data to thememory card 250 is described. TheCPU 211 performs the processing shown inFIG. 3 every time when a predetermined amount (for example, 128 K bytes) of data is transferred upon access to thememory card 250. - In a step S11 in
FIG. 3 , theCPU 211 sends an instruction to the card I/F 208 to perform data transfer (perform writing) to thememory card 250 and advances the process to a step S12. In the present embodiment, the electronic camera is adapted such that three modes of abnormality upon data transfer are discernible. - (Mode 1)
- Occurrence of abnormality of
Mode 1 means that handshake according to the selected communication protocol is normal (that is, communication is established) and abnormality occurs only in the transfer data. In other words, when an error is detected by performing CRC (Cyclic Redundancy Check), theCPU 211 judges that an abnormality of Mode 1 (herein after, referred to as “CRC error”) has occurred. The CRC is one of error detection methods upon data transfer and detects errors by transmitting and receiving transfer data with a cyclic redundancy code for use in the detection of errors in advance. - (Mode 2)
- When the handshake according to the selected communication protocol is normal (that is, communication is established) and error information is detected when a status information produced by the
memory card 250 is obtained, theCPU 211 judges that an abnormality ofMode 2 has occurred. - (Mode 3)
- When the handshake according to the selected communication protocol is abnormal (that is, communication is not established), the
CPU 211 judges that an abnormality of Mode 3 has occurred. - In the step S12 in
FIG. 3 , theCPU 211 judges whether or not the writing is successful. The CPU makes an affirmative judgment on the step S12 if it is judged that at least one abnormality ofModes 1 to 3 mentioned above is observed and advances the process to a step S13. TheCPU 211 makes a negative judgment on the step S12 if it is judged that no abnormality ofModes 1 to 3 mentioned above is observed and the processing shown inFIG. 3 is ended. When a negative judgment is made on the step S12, the writing is normal, so that data transfer to thememory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever. - In the step S13, the
CPU 211 judges whether or not the current communication protocol is according to the UDMA method. When the current communication protocol is according to the UDMA method, theCPU 211 makes an affirmative judgment on the step S13 and advances the process to a step S14. TheCPU 211 makes a negative judgment on the step S12 if it is judged that the current communication protocol is not according to the UDMA method and theCPU 211 advances the process to a step S16. - In the step S14, the
CPU 211 judges whether or not the current transfer rate according to the UDMA method is faster than that ofMode 2. When the current transfer rate is the same as the transfer rate of one of the Modes 3 to 6, theCPU 211 makes an affirmative judgment on the step S14 and advances the process to a step S15. When the current transfer rate is the same as that of theMode 2, theCPU 211 makes a negative judgment on the step S14 and advances the process to a step S16. - In the step S15, the
CPU 211 sends an instruction to the card I/F 208 to decrease the current transfer rate according to the UDMA method by one rank and turns the process back to the step S11. As a result, the writing action (that is, writing action to write again the data of which previous writing action has been unsuccessful in the step S11) is performed at a rate by one rank lower. - In the step S16, the
CPU 211 judges whether or not the current communication protocol is according to the PIO method. TheCPU 211 makes an affirmative judgment on the step S16 if the current communication protocol is according to the PIO method and causes the processing shown inFIG. 3 to be ended. When the affirmative judgment is made on the step S16, some abnormality has occurred, so that the data transfer to thememory card 250 is stopped. - On the other hand, the
CPU 211 makes a negative judgment on the step S16 if the current communication protocol is not according to the PIO method and advances the process to a step S17. In the step S17, theCPU 211 switches the communication protocol to one according to the PIO method and turns the process back to the step S11. As a result the writing is performed again according to the lower rate communication protocol. - According to the first embodiment mentioned above, the following advantages are obtain able.
-
- (1) Upon the data transfer between the
memory card 250 and thememory 209, theelectronic camera 1 judges whether or not there occurs any abnormality in data transfer for every predetermined number of bytes. Based on the result of the judgment (whether the data transfer was successful or unsuccessful), the communication protocol and the transfer rate used upon the judgment, the communication protocol and transfer rate to be used in next data transfer are determined. Therefore, appropriate transfer conditions suitable for the actual data transfer state can be determined. - (2) Since the
electronic camera 1 is adapted such that one of the higher rate communication protocol and the lower rate communication protocol is selected, there can be selected data transfer conditions that are more appropriate than the case where the same communication protocol is used and only the transfer rate is changed depending on the actual data transfer state. In addition, since the electronic camera is adapted such that the transfer rate according to each communication protocol is changeable, appropriate transfer conditions depending on the actual data transfer state can be selected. - (3) Since the
electronic camera 1 is adapted such that when the data transfer is successful, the current transfer rate is maintained while when the data transfer is unsuccessful, the data transfer is tried again at a transfer rate by one rank lower than the current transfer rate (step S15), so that transfer conditions under which data transfer becomes more successful can be provided. - (4) In the case (3) above, the
electronic camera 1 is adapted such that when the data transfer is unsuccessful, the data transfer using the higher communication protocol (UDMA method) proceeds at a minimum transfer rate, the communication protocol is switched to the lower rate communication protocol (PIO method) and the data transfer is redone (step S17), so that transfer conditions under which data transfer becomes much more successful can be provided.
- (1) Upon the data transfer between the
-
FIG. 4 is a flowchart illustrating processing to write data into thememory card 250 as an example of the communication control processing according to the second embodiment of the present invention. The processing shown inFIG. 4 is performed in place of the processing shown inFIG. 3 . The processing shown inFIG. 4 is different from the processing shown inFIG. 3 in steps S18 to S25 that are added to the processing shown inFIG. 4 . Accordingly, description is focused on the differences. - In the step S18 to which the process proceeds when a negative judgment is made on the step S12 shown in
FIG. 4 , theCPU 211 adds 1 to a counter that counts times in which a judgment is made that the writing is normal (successful) (herein after, referred to as “writing normality counter”) and advances the process to a step S19. In the step S19, theCPU 211 judges whether or not the count of the writing normality counter is larger than a predetermined value set in advance in the CPU 211 (herein after, referred to as “stable standard value”). TheCPU 211 makes an affirmative judgment on the step S19 and advances the process to a step S20 when “(writing normality count)>(stable standard value)” is established. When “(writing normality count)>(stable standard value)” is not established, theCPU 211 makes a negative judgment on the step S19 and causes the processing shown inFIG. 4 to be ended. When the negative judgment is made on the step S19, the writing is normal, so that the data transfer to thememory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever. - In the step S20, the
CPU 211 judges whether or not the current communication protocol is according to the UDMA method. When the current communication protocol is according to the UDMA method, theCPU 211 makes an affirmative judgment on the step S20 and advances the process to a step S21. TheCPU 211 makes a negative judgment on the step S20 if it is judged that the current communication protocol is not according to the UDMA method and advances the process to a step S23. - In the step S21, the
CPU 211 judges whether or not the current transfer rate according to the UDMA method is slower than that ofMode 6. When the current transfer rate is the same as the transfer rate of one of theModes 2 to 5, theCPU 211 makes an affirmative judgment on the step S21 and advances the process to a step S22. TheCPU 211 makes a negative judgment on the step S21 when the current transfer rate is the same as the transfer rate ofMode 6 and causes the processing shown inFIG. 4 to be ended. The writing is normal when the negative judgment is made on the step S21, so that the data transfer to thememory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at the same transfer rate as ever. - In the step S22, the
CPU 211 sends an instruction to the card I/F 208 to increase the current transfer rate in the UDMA method by one rank and causes the processing shown inFIG. 4 to be ended. Since the writing is normal when the processing in the step S22 is performed, the data transfer to thememory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according to the same communication protocol and at a transfer rate by one rank higher than the current transfer rate. - In the step S23, the
CPU 211 sends an instruction to the card I/F 208 to switch the communication protocol to one according to the UDMA method, which-is-a higher rate communication protocol, to select the transfer rate ofMode 2 and causes the processing shown inFIG. 4 to be ended. The writing is normal when the processing in the step S23 is performed, so that the data transfer to thememory card 250 is continued and data transfer of a next predetermined amount (in the present example, 128 Kbytes) is performed according toMode 2 of the UDMA method. On the other hand, if it is judged that the writing is unsuccessful in the step S12, the process proceeds to a step S24 or a step S25 through each of the steps S12 to S17 thus far described. In each of the steps S24 and S25, the value of writing normality counter is initialized (that is, reset to 0). With this construction, no affirmative judgment is made on the step S19 unless the writing of data is “continuously” successful a predetermined number of times or more so that the count of the writing normality counter is more than a predetermined value. As a result, the transfer rate will be increased only when the processing of writing data is stably successful. - According to the second embodiment mentioned above, the following advantages besides the advantages of the first embodiment are obtainable.
- (1) When the data transfer is continuously successful a predetermined number of times (stable standard value), the communication protocol is switched to the higher rate communication protocol if the lower rate communication protocol is currently used (step S23), so that data transfer can be achieved in a shorter period of time in a situation where the data transfer is stably successful.
- When it is constructed such that the transfer rate is changeable in the lower rate communication protocol too, the communication protocol may be switched as follows. If the lower rate communication protocol is used at the time when the judgment whether or not the writing is successful is made and the transfer rate thereof is maximum, then the higher rate communication protocol is used in next data transfer.
- (2) If the data transfer is continuously successful a predetermined number of times (stable standard value), the transfer rate is increased by one rank in next data transfer when the higher communication protocol is used (step S22). With this construction, data transfer can be achieved in a much shorter period of time in a situation where the data transfer is stably successful.
-
FIG. 5 is a flowchart illustrating the communication control processing according to a third embodiment of the present invention. The processing shown inFIG. 5 is performed in place of the processing shown inFIG. 3 or 4. The processing shown inFIG. 5 is different from the processing shown inFIG. 3 in steps S51, S52 to S54, and S55 that are added to the processing shown inFIG. 3 . Accordingly, description is focused on the differences. - In the step S51 shown in
FIG. 5 , theCPU 211 initializes the CRC error counter to a predetermined number of times of retry (for example, 3) preset in theCPU 211 and advances the process to the step S11. The CRC error counter is a counter of the type in which its count is decreased by one each time when it is judged that the abnormality ofMode 1 has occurred. The above-mentioned number of times of retry means a number of times of retry in which it is tried to write again the data of which the writing was unsuccessful by the same communication method (that is, according to the same communication protocol and at the same transfer rate). - In the step S52 to which the process proceeds when an affirmative judgment is made on the step S13, the
CPU 211 judges whether or not a CRC error has occurred. TheCPU 211 makes an affirmative judgment on the step S52 and advances the process to a step S53 when it is judged that abnormality ofMode 1 has occurred. When it is not judged that the abnormality ofMode 1 has occurred, theCPU 211 makes a negative judgment on the step S52 and advances the process to the step S16. It is when it is judged that the abnormality ofMode 2 or Mode 3 has occurred that theCPU 211 makes a negative judgment on the step S52. - In the step S53, the
CPU 211 causes the CRC error counter to decrease 1 from its count and advances the process to the step S54. TheCPU 211 judges whether the count of the CRC error counter is larger than 0. TheCPU 211 makes an affirmative judgment on the step S54 and turns the process back to the step S11 when “(count value)>0” is established. That is, when theCPU 211 makes an affirmative judgment on the step S54, theCPU 211 performs again the writing of data, of which the writing has been unsuccessful in the step S11, according to the same communication protocol and at, the same transfer rate. The reason why the communication method is not changed immediately after the judgment that the writing has been unsuccessful as mentioned above is that there is a possibility that a CRC error is detected only temporarily due to some external factor (for example, a shock that the camera receives during the communication) and trying the writing again will lead to a success. - On the other hand, when “(count value)>0” is not established, that is, when the writing of the data according to the same communication method is continuously unsuccessful a predetermined number of times of retry, the
CPU 211 makes a negative judgment on the step S54 and advances the process to the step S14. When theCPU 211 makes a negative judgment on the step S54, theCPU 211 advances the process to judgment processing to judge whether the writing should be performed again by decreasing the transfer rate or by switching the communication protocol to the lower rate communication protocol. - In a step S55 that follows the step S15, the
CPU 211 initializes the CRC error counter and turns the process back to the step S11. In this case, the writing is performed again by using the same communication protocol with decreasing the transfer rate. - According to the third embodiment mentioned above, the following advantages besides the advantages of the first embodiment are obtain able.
-
- (1) It is constructed such that writing of data is performed again by the same communication method until the failure of data transfer that the handshake by the selected communication protocol is normal (communication is established) and only the transfer data is abnormal (abnormality of
Mode 1 mentioned above) is continuously repeated a predetermined number of times (default value of CRC error counter) in the higher rate communication protocol. Therefore, no extreme measure is taken against a temporary abnormality for which it is in the nature of things unnecessary to decrease the transfer rate, so that communication of good quality can be performed. Note that it is constructed such that when the CRC error is continuously repeated a predetermined number of times, the data transfer is performed again at a lowered transfer rate (affirmative judgment in the step S15), so that there is a possibility that in the state where the data transfer is repeatedly unsuccessful, the data transfer will be successful in response to the decrease in transfer rate. - (2) In (1) mentioned above, it is constructed such that if the transfer rate with the higher rate communication protocol is minimum, the data transfer is tried again with switching the communication protocol to the lower rate communication protocol (the step s17). There is a possibility that in the state where the data transfer is repeatedly unsuccessful, the data transfer will be successful in response to the further decrease in transfer rate.
- (3) It is constructed such that if an affirmative judgment is made on the failure of data transfer due to abnormality in
Mode 2 or 3 when the higher rate communication protocol is used, the communication protocol is switched to the lower rate communication protocol and the data transfer is tried again (the step S17), so that there is a possibility that data transfer will be successful in response to the further decrease in transfer rate.
- (1) It is constructed such that writing of data is performed again by the same communication method until the failure of data transfer that the handshake by the selected communication protocol is normal (communication is established) and only the transfer data is abnormal (abnormality of
- In the above description, explanation is made on, for example, data transfer between the
memory card 250 and thememory 209. However, thememory card 250 may be a memory card of, the type of, for example, a Compact Flash (trade mark) or a memory card of another type. - The present invention may be applied not only to data transfer between the
memory card 250 and thememory 209 but also to data transfer between a recording medium such as a hard disk device and another recording medium such as a memory. - While in the above-mentioned description, the
electronic camera 1 has been presented as an example of the electronic device, the present invention is also applicable to video cameras, cellular phones, PDA, and so on. - As shown in
FIG. 6 , the computer program that causes a computer to execute the communication control processing shown in any ofFIGS. 3 to 5 need not be implemented in theelectronic camera 1 from the beginning but may be implemented by transferring the program from apersonal computer 10 in which it is stored to theelectronic camera 1. For example, arecording medium 104 such as a CD-ROM in which a computer program is stored is set in thepersonal computer 10. Thepersonal computer 10 reads the computer program from therecording medium 104 and transfers it to theelectronic camera 1 through wired or wireless LAN or the like. - It would also be acceptable to construct such that the
personal computer 10 downloads the computer program as data signals via thecommunication line 101 such as a network and transfers them to theelectronic camera 1. In this case, the program is stored in advance in ahard disk device 103 in a server (computer) 102 connected to thecommunication line 101. As mentioned above, the computer program that causes the computer to execute the communication control processing can be provided as a computer program product that is furnished in various forms such as provision of therecording medium 104 having stored therein the computer program and data signals through thecommunication line 101. - The present invention is not limited to the constructions described in the above-mentioned embodiments so far as the function or functions by which the present invention is featured are not damaged. cm What is claimed is:
Claims (12)
1. An electronic device comprising:
a data transfer unit that transfers data between a first recording medium and a second recording medium;
an indication unit that indicates to the transfer unit a communication protocol and a data transfer rate to be used in data transfer;
a judgment unit that judges whether or not the data transfer is successful;
a control unit that controls the indication unit to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
2. An electronic device according to claim 1 , wherein
the communication protocol to be used in the data transfer includes a higher rate communication protocol and a lower rate communication protocol that performs the data transfer in a transfer rate lower than that of the higher rate communication protocol, and
at least one of the higher rate communication protocol and the lower rate communication protocol is adapted to be changeable with respect to data transfer rate.
3. An electronic device according to claim 2 , wherein
the control unit controls the indication unit to decrease the data transfer rate without changing the communication protocol when it is judged by the judgment unit that data transfer with the communication protocol of which the data transfer rate is made changeable is unsuccessful.
4. An electronic device according to claim 3 , wherein
the control unit controls the indication unit to change the higher rate communication protocol to the lower rate communication protocol when the data transfer is performed at a minimum data transfer rate of the higher rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is unsuccessful.
5. An electronic device according to claim 2 , wherein
the control unit controls the indication unit to increase the data transfer rate without changing the communication protocol when it is judged by the judgment unit that the data transfer with the communication protocol of which the data transfer rate is made changeable is successful.
6. An electronic device according to claim 5 , wherein
the control unit controls the indication unit to change the lower rate communication to the higher rate communication when the data transfer is performed at a maximum data transfer rate of the lower rate communication protocol of which the data transfer rate is made changeable and it is judged by the judgment unit that the data transfer is successful.
7. An electronic device according to claim 2 , wherein
the control unit controls the indication unit to increase the data transfer rate when a judgment by the judgment unit that the data transfer is successful is continuously made a predetermined number of times.
8. An electronic device according to claim 3 , wherein
the control unit controls the indication unit to redo the data transfer according to the same communication protocol and at the same transfer rate as the communication protocol and the transfer rate at the time when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check.
9. An electronic device according to claim 8 , wherein
the control unit controls the indication unit to decrease the data transfer rate when it is judged by the judgment unit that a judgment that the data transfer is unsuccessful is continuously made a predetermined number of times.
10. An electronic device according to claim 3 , wherein
the control unit controls the indication unit to change the communication protocol to the lower rate communication protocol when it is judged by the judgment unit that the data transfer is unsuccessful because the judgment unit has detected an error upon a cyclic redundancy check and if the communication protocol used upon the judgment that the data transfer is unsuccessful is the higher rate communication protocol.
11. An electronic camera comprising:
components of the electronic device according to claim 1 ; and
an image-capturing unit that captures an image of a subject to obtain image data and outputs the image data.
12. A computer-readable program product containing a program for controlling data transfer, the program comprising:
a data transfer instruction for performing data transfer between a first recording medium and a second recording medium;
an indication instruction for indicating a communication protocol and a data transfer rate to be used in the data transfer;
a judgment instruction for judging whether or not the data transfer is successful; and
a control instruction for controlling the indication instruction to indicate a communication protocol and a data transfer rate to be used in data transfer, after the judgment whether or not the data transfer is successful, based on the communication protocol used in the data transfer, the data transfer rate used in the data transfer, and the judgment whether or not the data transfer is successful.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/137,830 US8564692B2 (en) | 2007-04-19 | 2011-09-15 | Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007110069A JP5277562B2 (en) | 2007-04-19 | 2007-04-19 | Electronic device, electronic camera and data transfer program |
JP2007-110069 | 2007-04-19 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/137,830 Continuation US8564692B2 (en) | 2007-04-19 | 2011-09-15 | Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
US20090251574A1 true US20090251574A1 (en) | 2009-10-08 |
Family
ID=40050014
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/081,480 Abandoned US20090251574A1 (en) | 2007-04-19 | 2008-04-16 | Electronic device, electronic camera, and data transfer program |
US13/137,830 Expired - Fee Related US8564692B2 (en) | 2007-04-19 | 2011-09-15 | Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/137,830 Expired - Fee Related US8564692B2 (en) | 2007-04-19 | 2011-09-15 | Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol |
Country Status (2)
Country | Link |
---|---|
US (2) | US20090251574A1 (en) |
JP (1) | JP5277562B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110228106A1 (en) * | 2010-03-19 | 2011-09-22 | Fujifilm Corporation | Lens apparatus |
JP2017004439A (en) * | 2015-06-15 | 2017-01-05 | 株式会社リコー | Image forming apparatus, image forming method and program |
US10489889B2 (en) | 2014-04-01 | 2019-11-26 | Denso Corporation | Control apparatus and control system for performing process based on captured image |
CN113422620A (en) * | 2021-06-21 | 2021-09-21 | 维沃移动通信有限公司 | Communication rate control method, device, equipment and readable storage medium |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5372718B2 (en) * | 2009-12-03 | 2013-12-18 | Necトーキン株式会社 | IC card |
JP5736341B2 (en) * | 2012-04-24 | 2015-06-17 | 株式会社 日立産業制御ソリューションズ | Camera system, surveillance camera control terminal, protocol changing method and program |
JP2015084241A (en) * | 2014-12-09 | 2015-04-30 | 株式会社東芝 | Information processing device |
JP6953574B2 (en) * | 2016-07-25 | 2021-10-27 | キヤノン株式会社 | Imaging devices, accessory devices, imaging systems and their control methods |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050033917A1 (en) * | 2003-05-30 | 2005-02-10 | International Business Machines Corporation | Computer system including a card medium controller and control method |
US7379090B2 (en) * | 2002-06-25 | 2008-05-27 | Canon Kabushiki Kaisha | Image capture apparatus with variable image data transfer rate based on operating status |
US7725621B2 (en) * | 2006-06-30 | 2010-05-25 | Fujitsu Microelectronics Limited | Semiconductor device and data transfer method |
US7832639B2 (en) * | 2005-12-19 | 2010-11-16 | Seiko Epson Corporation | Information processing device |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02116233A (en) * | 1988-10-26 | 1990-04-27 | Mitsubishi Electric Corp | Error checking system for interface device |
JP3106863B2 (en) * | 1994-07-11 | 2000-11-06 | トヨタ自動車株式会社 | Road-to-vehicle communication device |
JP3425821B2 (en) * | 1995-04-24 | 2003-07-14 | 富士通株式会社 | Communication control device and communication device connection method |
JPH1145157A (en) * | 1997-07-24 | 1999-02-16 | Internatl Business Mach Corp <Ibm> | Data transfer device, disk drive, and data transfer method |
JPH11249821A (en) * | 1998-02-27 | 1999-09-17 | Toshiba Corp | Data storage device and interface condition setting method to be applied to the same |
JP2002215333A (en) * | 2001-01-15 | 2002-08-02 | Nec Microsystems Ltd | Data transfer system, and computer provided with the same |
JP2003216570A (en) * | 2002-01-22 | 2003-07-31 | Konica Corp | Copying-machine |
JP2003323397A (en) * | 2002-05-07 | 2003-11-14 | Matsushita Electric Ind Co Ltd | Interface bridge device |
JP2004334578A (en) * | 2003-05-08 | 2004-11-25 | Ricoh Co Ltd | Optical disk device and optical disk interface system |
JP3870189B2 (en) | 2003-12-15 | 2007-01-17 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Data transfer rate control device, information processing device, control method, program, and recording medium for setting related to memory access |
US7406548B2 (en) * | 2004-03-26 | 2008-07-29 | Hewlett-Packard Development Company, L.P. | Systems and methods for responding to a data transfer |
JP2006067446A (en) * | 2004-08-30 | 2006-03-09 | Fuji Photo Film Co Ltd | Camera system, camera main body, and camera head |
EP1811395A4 (en) * | 2004-09-28 | 2008-01-02 | Zentek Technology Japan Inc | Host controller |
JP2006211022A (en) * | 2005-01-25 | 2006-08-10 | Casio Comput Co Ltd | Electronic camera |
-
2007
- 2007-04-19 JP JP2007110069A patent/JP5277562B2/en not_active Expired - Fee Related
-
2008
- 2008-04-16 US US12/081,480 patent/US20090251574A1/en not_active Abandoned
-
2011
- 2011-09-15 US US13/137,830 patent/US8564692B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7379090B2 (en) * | 2002-06-25 | 2008-05-27 | Canon Kabushiki Kaisha | Image capture apparatus with variable image data transfer rate based on operating status |
US20050033917A1 (en) * | 2003-05-30 | 2005-02-10 | International Business Machines Corporation | Computer system including a card medium controller and control method |
US7832639B2 (en) * | 2005-12-19 | 2010-11-16 | Seiko Epson Corporation | Information processing device |
US7725621B2 (en) * | 2006-06-30 | 2010-05-25 | Fujitsu Microelectronics Limited | Semiconductor device and data transfer method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110228106A1 (en) * | 2010-03-19 | 2011-09-22 | Fujifilm Corporation | Lens apparatus |
EP2367053A3 (en) * | 2010-03-19 | 2012-02-22 | Fujifilm Corporation | Lens apparatus |
US10489889B2 (en) | 2014-04-01 | 2019-11-26 | Denso Corporation | Control apparatus and control system for performing process based on captured image |
JP2017004439A (en) * | 2015-06-15 | 2017-01-05 | 株式会社リコー | Image forming apparatus, image forming method and program |
CN113422620A (en) * | 2021-06-21 | 2021-09-21 | 维沃移动通信有限公司 | Communication rate control method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP5277562B2 (en) | 2013-08-28 |
US20120007994A1 (en) | 2012-01-12 |
US8564692B2 (en) | 2013-10-22 |
JP2008271075A (en) | 2008-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8564692B2 (en) | Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol | |
US9026175B2 (en) | Electronic device, method of controlling the same, and program | |
US9998702B2 (en) | Image processing device, development apparatus, image processing method, development method, image processing program, development program and raw moving image format | |
US9563245B2 (en) | Electronic device and computer readable medium | |
US8612653B2 (en) | Information processing apparatus and method, and computer program therefor | |
US6876393B1 (en) | Electronic camera with battery capability consideration | |
US20070031139A1 (en) | Imaging apparatus | |
US20100007772A1 (en) | Image capture device | |
US7518639B2 (en) | Electronic still camera that provides a storable continuous frame count and a continuous shooting rate of frames | |
CN102547086B (en) | Image capturing apparatus, image capturing control method, and storage medium storing program for image capturing | |
JPWO2008023742A1 (en) | Electronic camera and image transfer method of electronic camera | |
EP1903420A2 (en) | Electronic Device Mounted with Memory Card and Reset Method of the Memory Card | |
US20040263913A1 (en) | Image capturing apparatus, method for controlling the image capturing apparatus and a computer program for controlling the image capturing apparatus | |
US8687075B2 (en) | Imaging apparatus and information display method for imaging apparatus | |
JP2006238311A (en) | Photographing apparatus and program | |
JP2009049603A (en) | Imaging device | |
JP2001231001A (en) | Electronic camera system | |
JP2005011200A (en) | Digital apparatus | |
JP2001257969A (en) | Camera apparatus, medium and information aggregate | |
JP2017199392A (en) | Electronic apparatus and program | |
JP4188073B2 (en) | Card type camera and card type camera host device | |
JP4692256B2 (en) | Electronic camera | |
JP5546297B2 (en) | Imaging apparatus, imaging method, and program | |
JP2019009570A (en) | Imaging apparatus | |
JP2002191009A (en) | Digital camera and its operation control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: NIKON CORPORATION, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:YAMAGATA, NAOKI;HAYASHI, MASAKI;REEL/FRAME:020846/0228 Effective date: 20080414 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |