Communication apparatus, control method, and program
By establishing multiple FTP sessions between the digital camera and the FTP server, selecting the appropriate data transmission path, and delaying the transmission of voice memos, the problem of voice memos earlier than the image file reaches the external device, ensuring the editing order of image files.
Patent Information
- Application Number
- CN202380081985.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-02
- Filing Date
- 2023-08-30
- Publication Date
- 2025-07-08
AI Technical Summary
When transferring the image files attached to the voice memo to an external device, the voice memo in the prior art may arrive at the external device earlier than the image files, resulting in an inappropriate order of editing processing.
By establishing multiple FTP sessions between the digital camera and the FTP server, selecting the appropriate data transfer path, and delaying the delivery of voice memos when transferring the image file, ensuring that the voice memos arrive at the FTP server later than the image file.
The control of voice memos arrives at external devices later than image files, ensuring that the editing and processing order of image files is carried out correctly.
Smart Images

Figure CN120283408A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a technique for transferring a file from a communication device to an external device. Background Art
[0002] Patent Document 1 describes a digital camera that selects a server, a personal computer (PC), or a printer and transfers an image file. Some digital cameras include a function of recording an image shooting condition, an image description, etc. as audio and attaching the audio file as a voice memo to the image file. The voice memo can be transferred to an external device together with the image file, and the voice memo can be reproduced and the image file can be edited, etc. in the external device.
[0003] Prior Art Documents
[0004] Patent Documents
[0005] Patent Document 1: Japanese Unexamined Patent Application Publication No. 2011-120279 Summary of the Invention
[0006] Problems to be Solved by the Invention
[0007] When an external device receives a voice memo as a trigger to edit an image file with an attached voice memo, etc., it is necessary to perform a transfer so that the voice memo arrives at the external device after the image file arrives. In addition, when the external device is an FTP server, the throughput can be increased by transferring multiple image files in multiple FTP sessions, but the voice memo may eventually arrive at the FTP server before the image file arrives.
[0008] The present invention has been made in view of the above problems, and has realized a technique for performing control so that a voice memo arrives later than an image file when transferring an image file with an attached voice memo to an external device.
[0009] Solutions to the Problems
[0010] To solve the above problems, the present invention provides a communication device including: a connection part for connecting to an external device in a communicable manner; and a control part for establishing a plurality of data transfer paths with the external device that has established a connection through the connection part, selecting a data transfer path for transferring each image file from the plurality of data transfer paths, and transferring the image file, wherein the control part: selects a data transfer path capable of transferring a file from the plurality of data transfer paths, and in the case of transferring an audio file attached to the image file, selects a data transfer path for which an image file with the attached audio file has been transferred.
[0011] Effects of the Invention
[0012] According to the present invention, control can be performed such that when an image file with an attached voice memo is transmitted to an external device, the voice memo arrives later than the image file.
[0013] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings. Note that throughout the drawings, like reference numerals denote the same or similar components. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings, which are included in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0015] Figure 1 is a block diagram illustrating the configuration of a digital camera according to Embodiment 1.
[0016] Figure 2A is a diagram illustrating the connection form between a digital camera and an FTP server according to Embodiment 1.
[0017] Figure 2B is a diagram illustrating the connection form between a digital camera and an FTP server according to Embodiment 1.
[0018] Figure 3 is a diagram illustrating a method of transmitting an image file from a digital camera to an FTP server according to Embodiment 1.
[0019] Figure 4 is a diagram illustrating a conventional problem that occurs when an image file and a voice memo are transmitted from a digital camera to an FTP server.
[0020] Figure 5A is a diagram illustrating a UI screen for selecting an image file to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0021] Figure 5B is a diagram illustrating a UI screen for selecting an image file to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0022] Figure 5C is a diagram illustrating a UI screen for selecting an image file to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0023] Figure 5D is a diagram illustrating a UI screen for selecting an image file to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0024] Figure 5EThis is a diagram illustrating a UI screen for selecting image files to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0025] Figure 5F This is a diagram illustrating a UI screen for selecting image files to be transmitted from a digital camera to an FTP server according to Embodiment 1.
[0026] Figure 6 This is a diagram illustrating a method for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 1.
[0027] Figure 7A This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 1.
[0028] Figure 7B This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 1.
[0029] Figure 7C This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 1.
[0030] Figure 8 This is a diagram illustrating a method for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 2.
[0031] Figure 9A This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 2.
[0032] Figure 9B This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 2.
[0033] Figure 10 This is a diagram illustrating a method for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 3.
[0034] Figure 11A This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 3.
[0035] Figure 11B This is a flowchart showing the control process for transmitting an image file and a voice memo from a digital camera to an FTP server according to Embodiment 3. Detailed Description
[0036] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments are not intended to limit the scope of the claimed invention. In the embodiments, a plurality of features are described, but the invention is not limited to an invention that requires all such features, and a plurality of such features can be appropriately combined. In addition, in the drawings, the same reference numerals are given to the same or similar configurations, and redundant descriptions thereof are omitted.
[0037] An example in which a communication device according to the present invention is applied to a digital camera capable of capturing still images and moving images will be described below. In the present embodiment, an example in which a communication device according to the present invention is applied to a digital camera will be described, but the present invention is not limited to this example and can be applied to any device including a camera function and a communication function. That is, the present invention is applicable to mobile devices including a camera function (for example, personal computers (desktop PCs and notebook PCs), tablet PCs, smartphones, smart watches, and smart glasses) and specific-purpose devices (for example, music players, game consoles, and e-book readers).
[0038] The digital camera according to the present embodiment includes a voice memo function for generating an audio file recording an image shooting condition, an image description, etc., and attaching the audio file to an image file. The audio file generated by the voice memo function can be transmitted to an external device together with the image file, and the audio file can be reproduced and the image file can be edited, etc. in the external device. The external device according to the present embodiment is an FTP server that sends files to an FTP client and receives files from the FTP client according to the File Transfer Protocol (FTP). The digital camera according to the present embodiment is connected to the FTP server in a communicable manner as an FTP client. The communication protocol according to the present embodiment is not limited to FTP, and can be a File Transfer Protocol over SSL / TLS (FTPS) and an SSH File Transfer Protocol (SFTP), etc.
[0039] In the present embodiment, a process will be described in which a plurality of FTP sessions (control connection and data connection) are established between the digital camera and the FTP server as a plurality of data transfer paths, and control is performed such that when an image file and an audio file generated using the voice memo function are transmitted from the digital camera to the FTP server in the plurality of FTP sessions, the audio file arrives at the FTP server later than the image file.
[0040] <Configuration of Digital Camera 100>
[0041] First, with reference to Figure 1 the configuration and functions of the digital camera 100 according to the present embodiment will be described.
[0042] The control unit 101 is a central processing unit (CPU) that comprehensively controls the entire digital camera 100 and implements the communication processing and control processing described below by executing the programs stored in the non-volatile memory 103 described below. Instead of being controlled by the control unit 101, the entire device can be controlled by multiple hardware sharing processes.
[0043] The imaging unit 102 includes a lens group including a zoom lens and a focusing lens, and a shutter including an aperture function. In addition, the imaging unit 102 includes an imaging element composed of a CCD or CMOS device, etc., for converting a subject image into an electrical signal, and an A / D converter for converting the analog image signal output from the imaging element into a digital signal. Under the control of the control unit 101, the imaging unit 102 converts the subject image light imaged by the lens included in the imaging unit 102 into an electrical signal by using the imaging element, performs noise reduction processing, etc., and outputs image data composed of digital signals.
[0044] The control unit 101 performs resizing processing such as pixel interpolation and reduction, and color conversion processing on the image data captured by the imaging unit 102. In addition, the control unit 101 compresses and encodes the still image data that has undergone image processing by using JPEG, etc., or encodes the moving image data by using a moving image compression method such as MPEG2 or H.264, and thereby generates an image file and stores the image file in the recording medium 108. In the digital camera 100 according to the present embodiment, the image data is stored in the recording medium 108 according to the Digital Camera File System Design Rule (DCF) standard. In addition, the control unit 101 performs predetermined calculation processing by using the captured image data, and performs autofocus (AF) processing and automatic exposure (AE) processing by controlling the focusing lens, diaphragm, and shutter of the imaging unit 102 based on the obtained calculation results. The non-volatile memory 103 is an electrically erasable / recordable memory, and for example, uses an EEPROM, etc. In the non-volatile memory 103, constants and programs used for the operation of the control unit 101 are stored. Here, the program is a program for executing the control processing described later in the present embodiment.
[0045] The working memory 104 serves as a working area for loading constants, variables, and programs read from the non-volatile memory 103 used for the operation of the control unit 101. The working memory 104 serves as a buffer memory for temporarily holding the image data captured by the imaging unit 102 and an image display memory for the display unit 106.
[0046] The operation unit 105 is composed of operation members such as various switches, buttons, and dials that receive various operations from the user. The operation unit 105 includes, for example, a power button for turning on or off the power, a shutter button for instructing image shooting, a reproduction button for instructing image reproduction, and a mode switching button for changing the operation mode of the camera. In addition, the operation unit 105 includes a dedicated connection button for starting communication with an external device such as an FTP server 200 described later. In addition, the operation unit 105 includes a touch panel integrally formed in the display unit 106 described later.
[0047] The shutter button turns on when it is operated halfway (so-called half-press) (shooting preparation instruction), and generates a first shutter switch signal SW1. When the first shutter switch signal SW1 is received, the control unit 101 controls the imaging unit 102, and thereby starts operations such as autofocus (AF) processing, automatic exposure (AE) processing, automatic white balance (AWB) processing, and flash pre-flash (EF) processing. In addition, the shutter button turns on when it is fully operated (so-called full-press) (shooting instruction), and generates a second shutter switch signal SW2. When the second shutter switch signal SW2 is received, the control unit 101 starts a series of shooting processing operations from reading image data from the imaging unit 102 until writing the image file into the recording medium 108.
[0048] The display unit 106 performs display of a live view image, a captured image, and characters for interactive operations. The display unit 106 is, for example, a display device such as a liquid crystal display or an organic EL display. The display unit 106 may be configured to be integrated with the digital camera 100, or may be an external device connected to the digital camera 100. The digital camera 100 can be connected to the display unit 106, and only needs to be able to control the display of the display unit 106.
[0049] The audio input unit 107 is one or more microphones built into the digital camera 100 or connected via an audio terminal, and converts the analog audio signal generated by collecting the audio around the digital camera 100 into a digital signal and outputs the digital signal to the control unit 101. The control unit 101 performs various audio processes on the digital signal generated by the audio input unit 107 and generates audio data. When shooting a moving image, the control unit 101 generates a moving image file with audio based on the audio data generated by the audio input unit 107 and the image data generated by the imaging unit 102. In addition, when shooting a still image, the control unit 101 associates the audio data generated by the audio input unit 107 with the image data generated by the imaging unit 102 by using the voice memo function, attaches the audio file to the image file, and stores the image file. The process of generating audio data from sound waves by the audio input unit 107 can be executed by sharing a part of the process with other hardware (for example, the control unit 101).
[0050] The recording medium 108 stores the image file and the audio file generated by the control unit 101. In addition, in the reproduction mode, the control unit 101 reads out the audio file and the image file stored in the recording medium 108. The recording medium 108 can be a memory card or a hard disk drive etc. mounted on the digital camera 100, or can be a flash memory or a hard disk drive built into the digital camera 100. The digital camera 100 only needs to be able to access the recording medium 108 at least.
[0051] The wireless connection unit 109 includes a communication interface for wireless communication with an external device. The digital camera 100 according to the present embodiment can exchange data with an external device via the wireless connection unit 109, and can transmit, for example, an image file and an audio file to the external device via the wireless connection unit 109. In the present embodiment, the wireless connection unit 109 includes an antenna and a communication circuit for communicating with an external device via a wireless LAN according to the IEEE 802.11 standard. The control unit 101 realizes wireless communication with an external device by controlling the wireless connection unit 109. The communication method is not limited to wireless LAN, and can include, for example, a wireless communication interface such as an infrared communication interface or a wireless USB. The wireless connection unit 109 does not necessarily need to be built into the digital camera 100, and the digital camera 100 can be connected to the built-in or externally attached wireless connection unit 109, and only needs to include at least the function of controlling the wireless connection unit 109.
[0052] The short-range communication unit 110 is constituted by, for example, an antenna for wireless communication, a modulation / demodulation circuit for processing wireless signals, and a communication controller. The short-range communication unit 110 realizes short-range wireless communication according to the IEEE 802.15 standard (Bluetooth (registered trademark)) by outputting a modulated wireless signal from the antenna and demodulating the wireless signal received by the antenna. In the present embodiment, the communication performed using Bluetooth adopts version 4.0 of Bluetooth (registered trademark) Low Energy (BLE) which consumes low power. The communication range that can be achieved using Bluetooth (registered trademark) is narrower (i.e., shorter) compared to the communication range that can be achieved using wireless LAN. In addition, the communication speed using Bluetooth (registered trademark) is slower compared to the communication speed using wireless LAN. On the other hand, the communication using Bluetooth (registered trademark) consumes less power compared to the communication using wireless LAN. The digital camera 100 according to the present embodiment can exchange data with an external device via the short-range communication unit 110. For example, when the digital camera 100 receives a shooting instruction from an external device via the short-range communication unit 110, it controls the imaging unit 102 and performs an imaging operation.
[0053] The wired connection unit 111 includes a communication interface for communicating with an external device via a wire. The digital camera 100 according to the present embodiment can exchange data with an external device via the wired connection unit 111. In the present embodiment, the wired connection unit 111 includes a communication circuit for communicating with an external device via a wired LAN according to the Ethernet standard. The control unit 101 realizes wired communication with an external device by controlling the wired connection unit 111. The communication method is not limited to Ethernet and may include USB, HDMI (registered trademark), and IEEE 1394.
[0054] The wireless connection unit 109 of the digital camera 100 according to the present embodiment includes an AP mode and a CL mode. In the AP mode, the wireless connection unit 109 operates as an access point in the infrastructure mode. In the CL mode, the wireless connection unit 109 operates as a client in the infrastructure mode. Thus, by operating the wireless connection unit 109 in the CL mode, the digital camera 100 according to the present embodiment can operate as a CL device in the infrastructure mode. When operating as a CL device, the digital camera 100 can join a network formed by a nearby access point device by connecting to the access point device. In addition, by operating the wireless connection unit 109 in the AP mode, the digital camera 100 according to the present embodiment can operate as an access point, although it is a simple access point with limited functions (hereinafter referred to as a simple AP). When the digital camera 100 operates as a simple AP, the digital camera 100 itself forms a network. Devices near the digital camera 100 can recognize the digital camera 100 as an access point device and join the network formed by the digital camera 100. It is assumed that a program for operating the digital camera 100 as described above is stored in the non-volatile memory 103.
[0055] The digital camera 100 according to the present embodiment is an access point, although it is a simple access point that does not have a gateway function for transmitting data received from a CL device to an Internet provider or the like. Therefore, even if data is received from other devices that have joined the network formed by the digital camera 100, the data cannot be transmitted to a network such as the Internet.
[0056] <Connection form>
[0057] Next, with reference to Figure 2A and Figure 2B the connection form between the digital camera 100 and the FTP server 200 in the present embodiment will be described.
[0058] The digital camera 100 according to the present embodiment sends files to and receives files from the FTP server according to the File Transfer Protocol (FTP).
[0059] Figure 2A and Figure 2B are diagrams illustrating the connection form between the digital camera 100 and the FTP server 200 according to the present embodiment. Figure 2A Illustrates a connection form in which the digital camera 100 and the FTP server 200 are connected via an AP 300.
[0060] In Figure 2AIn the example, the digital camera 100 and the FTP server 200 are joined to a wireless LAN network formed by the AP 300 which is an example of an external relay device. The digital camera 100 designates and connects to the FTP server 200, and the digital camera 100 and the FTP server 200 can thereby communicate via FTP. Figure 2B Illustrate the connection form in which the digital camera 100 and the FTP server 200 are connected via the hub 400.
[0061] In Figure 2B the example, the digital camera 100 and the hub 400 of the wired LAN which is an example of an external relay device are connected by a wired LAN cable. The digital camera 100 designates and connects to the FTP server 200, and the digital camera 100 and the FTP server 200 can thereby communicate via FTP.
[0062] In the present embodiment, an example in which the digital camera 100 is connected to the FTP server 200 will be described, but the present invention is not limited thereto. Further, in the present embodiment, an example in which the digital camera 100 and the FTP server 200 are connected to the hub of the wired LAN by a wired LAN cable will be described, but the present invention is not limited thereto. For example, a connection can be established with the AP via a wired LAN cable, or a connection can be directly established with the FTP server 200 via a wired LAN cable.
[0063] <Method for transferring a file from a digital camera to an FTP server>
[0064] Reference will be made to Figure 3 to describe the method for transferring a file from the digital camera 100 to the FTP server 200 according to the present embodiment.
[0065] When the digital camera 100 is connected to the FTP server 200, a plurality of FTP sessions can be established between the digital camera 100 and the FTP server. The digital camera 100 and the FTP server 200 transfer image files in the plurality of FTP sessions. Figure 3Illustrates the state where two FTP sessions 301 and 302 have been established between the digital camera 100 and the FTP server 200. When transferring image files from the digital camera 100 to the FTP server 200, the next image file is transferred when one FTP session becomes available (when the file transfer is completed), and the next image file is transferred when the other FTP session becomes available. Thus, image files are transferred in order whenever an FTP session becomes available. For example, there is a method of transferring data in the order in which the FTP sessions have become available, such as transferring the first image file in FTP session 301, transferring the next image file in FTP session 302, and transferring the next image file in FTP session 301 where the data transfer has been completed, etc. By establishing multiple FTP sessions in this way, multiple image files can be transferred simultaneously in parallel, so the transfer throughput can be increased.
[0066] In the following description, it is assumed that the audio file is an audio file generated by the voice memo function.
[0067] <Problems that occur when transferring image files and audio files attached to the image files from a digital camera to an FTP server in multiple FTP sessions>
[0068] Next, reference will be made to Figure 4 to describe the conventional problems that occur when transferring image files and audio files attached to the image files from a digital camera to an FTP server.
[0069] Figure 4 is a diagram illustrating the conventional problems of transferring image files and audio files attached to the image files from a digital camera to an FTP server.
[0070] When transferring image files and audio files attached to the image files from the digital camera 100 to the FTP server in multiple FTP sessions, the audio file may eventually reach the FTP server before the image file arrives.
[0071] The user who takes a picture using the digital camera 100 attaches the audio file to the image file and transfers the image file and the audio file to the FTP server. In addition, the user who edits the image file uses the arrival of the audio file at the FTP server as a trigger to perform processing such as editing on the image file attached with the audio file. When assuming such a workflow, control is required so that the audio file reaches the FTP server later than the image file.
[0072] In Figure 4In the example, two FTP sessions are established between the digital camera 100 and the FTP server, and files named XXX1.JPG, XXX1.WAV, XXX2.JPG, XXX3.JPG, XXX3.CR3, XXX3.WAV, XXX4.JPG, and XXX4.WAV are transmitted in sequence in Sessions 1 and 2. XXX1.WAV is an audio file attached to XXX1.JPG. XXX3.WAV is an audio file attached to XXX3.JPG and XXX3.CR3. XXX3.CR3 is a RAW file.
[0073] First, XXX1.JPG is transmitted in Session 1 and XXX1.WAV is transmitted in Session 2. However, since the audio file has a smaller data size than the image file, it is very likely that XXX1.WAV, which is an audio file, will reach the FTP server before XXX1.JPG, which is an image file. In addition, regarding the image file and audio file with the file name XXX3, since Session 1 becomes available, XXX3.JPG is transmitted in Session 1. Then, since Session 2 becomes available, XXX3.CR3 is transmitted in Session 2. Then, since Session 1 becomes available, XXX3.WAV is transmitted in Session 1. However, it is very likely that XXX3.WAV, which is an audio file, will reach the FTP server before XXX3.CR3, which is a RAW image and has a large size.
[0074] Therefore, although the audio file needs to reach the FTP server after the image file arrives, when transmitting image files and audio files in multiple FTP sessions, there is a problem that the audio file reaches the FTP server before the image file arrives.
[0075] Therefore, in this embodiment, when transmitting an image file and an audio file attached to the image file in multiple FTP sessions, the image file with the same file name is transmitted in the same FTP session, and the audio file is transmitted last. This enables control so that the audio file reaches the external device later than the image file.
[0076] <Method for Transmitting an Image File and an Audio File Attached to the Image File from a Digital Camera to an FTP Server>
[0077] Next, reference will be made to Figures 5A to 7C to describe the method for transmitting an image file and an audio file attached to the image file from a digital camera to an FTP server according to Embodiment 1.
[0078] Figures 5A to 5F Illustrate the UI screen for selecting an image file to be transmitted from a digital camera to an FTP server according to Embodiment 1. Figure 6Illustrate a method for transferring an image file and an audio file attached to the image file from a digital camera to an FTP server according to Embodiment 1. Figures 7A to 7C Illustrate a control process for transferring an image file and an audio file attached to the image file from a digital camera to an FTP server according to Embodiment 1.
[0079] Figures 7A to 7C The process is implemented by the control unit 101 loading the program stored in the non-volatile memory 103 into the working memory 104 and executing the program, and controlling each component of the digital camera 100. This also applies to those described later Figure 9A and Figure 9B and Figure 11A and Figure 11B .
[0080] In step S701, the control unit 101 determines whether an image file to be transferred to the FTP server has been selected by the user operating the operation unit 105. The control unit 101 repeats this process until it determines that an image file has been selected, and when it determines that an image file has been selected, the process proceeds to step S702.
[0081] Here, the UI screen of the digital camera 100 used by the user to select an image file to be transferred to the FTP server will be described with reference to Figures 5A to 5F .
[0082] Figure 5A Illustrate the network settings screen 501 of the digital camera 100. The network settings screen 501 enables selection of one option item among "Network Settings", "On / Off of Airplane Mode", and "Image Transfer". When the user selects the "Image Transfer" option 501a in the Figure 5A screen 501, it transitions to the Figure 5B illustrated image selection / transfer screen 502.
[0083] Figure 5B Illustrate the screen 502 for image selection / transfer. In the Figure 5B image selection / transfer screen 502, "Select Image" button, "Specify Range" button, "Select Folder" button, "All Images" button, and "Transfer" button are displayed. When the user operates the "Select Image" button in the Figure 5B screen 502, they can select one image file to be transferred at a time; when they operate the "Specify Range" button, they can specify the range of image files to be transferred; when they operate the "Select Folder" button, they can select the folder to be transferred; when they operate the "All Images" button, they can select all images; and when they operate the "Transfer" button, they can start the transfer. When the user is inFigure 5B When the "Select Image" button 502a is operated on the screen 502 of Figure 5C the illustrated screen 503 is transitioned to. In the present embodiment, the case where the "Select Image" button 502a is operated on the screen 502 of Figure 5B will be described, but the method of selecting an image file is not limited to this.
[0084] Figure 5C The screen 503 for selecting one image file to be transmitted at a time is illustrated. On the screen 503, the image file to be transmitted can be selected by checking (enabling) the checkbox 503a corresponding to the image file to be transmitted. When an image file attached with an audio file is selected, the audio file is selected as a transmission target together with the image file. After the selection of the image file is completed, when the user operates the "Menu" button 503b on the screen 503 of Figure 5C , it returns to the image selection / transmission screen 502 of Figure 5B illustrated, and when the "Settings" button 503c is operated, it is transitioned to the image selection / transmission screen 504 of Figure 5D illustrated. Figure 5D The illustrated image selection / transmission screen 504 is the same as the image selection / transmission screen 502 of Figure 5B illustrated, but is in a state where the image file to be transmitted has been selected.
[0085] Figure 5D The image selection / transmission screen 504 after the image file to be transmitted has been selected is illustrated. In the screen 504 of Figure 5D , the number 504a of the image files to be transmitted is increased compared to the number of the image files to be transmitted in the screen 502 of Figure 5B before the image file to be transmitted has been selected. In the screen 504 of Figure 5D , when the user operates the "Transmit" button 504b, it is transitioned to the transmission start screen 505 of Figure 5E illustrated.
[0086] Figure 5E The screen 505 where the user can select whether to start transmitting the image file is illustrated. By the user operating the "OK" button 505a on the transmission start screen 505 of Figure 5E , the transmission of the image file is started, and by the user operating the "Cancel" button 505b, it returns to the screen 504 of Figure 5D illustrated without starting the transmission of the image file.
[0087] In step S701, the control unit 101 determines whether an image file has been selected on the screen 503 of Figure 5C and has been in Figure 5EThe "OK" button 505a was operated on the screen 505. In this embodiment, as Figure 6 illustrated, it is assumed that there are multiple image files including different file formats, and these different file formats at least include JPEG or HEIF and RAW, and the image files with file numbers XXX1, XXX2, XXX3, and XXX4 have been selected. When the user Figure 5E operates the "OK" button 505a on the screen 505, it transitions to Figure 5F the screen 506 illustrated. Figure 5F The screen 506 illustrated shows that the selected image files are being transmitted via FTP, and displays the link rate, remaining transmission time, remaining number of images, etc. When the user Figure 5F operates the "Cancel Transmission" button 506a on the screen 506, the FTP transmission is cancelled.
[0088] In step S702, the control unit 101 rearranges the files with the same file name among the images selected in step S701 in the order of JPEG / HEIF, RAW, and audio files. In Figure 6 the example, the file with the file name XXX3 is rearranged in the order of XXX3.JPG, XXX3.CR3, and XXX3.WAV.
[0089] In step S703, the control unit 101 stores the image files selected and rearranged in step S701 in the working memory 104 and registers them in the transmission list. In this embodiment, as Figure 6 illustrated, it is assumed that XXX1.JPG, XXX1.WAV, XXX2.JPG, XXX3.JPG, XXX3.CR3, XXX3.WAV, XXX4.JPG, and XXX5.JPG are registered in the transmission list in this order.
[0090] In step S704, the control unit 101 refers to the first file in the transmission list registered in step S703. In this embodiment, as Figure 6 illustrated, since XXX1.JPG is the first file in the transmission list, the process for transmitting XXX1.JPG will be described.
[0091] In step S705, the control unit 101 determines whether the first file in the transmission list referred to in step S704 is an image file. If it is determined to be an image file, the control unit 101 causes the process to proceed to step S706, and if it is determined not to be an image file, that is, if it is determined to be an audio file, the control unit 101 causes the process to proceed to step S721. Since XXX1.JPG is an image file, the control unit 101 causes the process to proceed to step S706.
[0092] In step S706, the control unit 101 determines whether an audio file is attached to an image file. When it is determined that an audio file is attached, the control unit 101 advances the process to step S707, and when it is determined that no audio file is attached, the control unit 101 advances the process to step S716. As Figure 6 illustrated, since the audio file XXX1.WAV is attached to XXX1.JPG, the control unit 101 advances the process to step S707.
[0093] In step S707, the control unit 101 determines whether the image file is JPEG or HEIF. When it is determined that the image file is JPEG or HEIF, the control unit 101 advances the process to step S708, and when it is determined that the image file is not JPEG or HEIF (that is, the image file is RAW), the control unit 101 advances the process to step S714. Since XXX1.JPG is JPEG, the control unit 101 advances the process to step S708.
[0094] In step S708, the control unit 101 determines whether there is an available FTP session. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 advances the process to step S709. When referring to XXX1.JPG in step S704, both FTP session 1 and FTP session 2 are in a state where no image file is being transferred, so the control unit 101 determines that Figure 6 the illustrated FTP session 1 is available and advances the process to step S709.
[0095] In step S709, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S708. When it is determined that a file is registered in the transfer list, the control unit 101 advances the process to step S710, and when it is determined that no file is registered in the transfer list, the control unit 101 advances the process to step S712. When the FTP session is unavailable and an image file is being transferred, the file to be transferred next in the same FTP session is registered in the transfer list. When the FTP session becomes available, the files registered in the transfer list are transferred in order. In the present embodiment, it is assumed that the transfer list for each FTP session is stored in the working memory 104. When referring to XXX1.JPG, no file is registered in the transfer list of FTP session 1, so the control unit 101 advances the process to step S712.
[0096] In step S712, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S708, and advances the process to step S713. As Figure 6 illustrated, the control unit 101 starts the transfer of XXX1.JPG in FTP session 1.
[0097] In step S713, the control unit 101 stores the number of the FTP session in which the transfer of the image file has been started in step S712 in the working memory 104, and advances the process to step S722. Since the control unit 101 has started the transfer of XXX1.JPG in FTP session 1, it stores FTP session 1.
[0098] In step S722, the control unit 101 deletes the file whose transfer has been started in step S712 from the transfer list in which the transfer of the file was registered in step S703, and advances the process to step S723. The control unit 101 deletes XXX1.JPG from the transfer list.
[0099] In step S723, the control unit 101 determines whether there are any remaining files in the transfer list. When it determines that there are remaining files, it returns the process to step S704. When it determines that there are no remaining files, it advances the process to step S724. The control unit 101 deletes XXX1.JPG from the transfer list, but since there are remaining files XXX1.WAV to XXX5.JPG, it returns the process to step S704.
[0100] This concludes the process for transferring XXX1.JPG.
[0101] Next, in step S704, the control unit 101 refers to the first file in the transfer list again. In this case, the first file in the transfer list is XXX1.WAV.
[0102] In step S705, the control unit 101 determines that the first file XXX1.WAV in the transfer list referred to in step S704 is an audio file, and thus advances the process to step S721.
[0103] In step S721, the control unit 101 registers the audio file in the list of files to be transferred in the FTP session stored in step S713, and advances the process to step S722. Since the FTP session number stored when transferring XXX1.JPG is FTP session 1, the control unit 101 registers XXX1.WAV in the list of files to be transferred in FTP session 1.
[0104] In steps S722 and S723, the control unit 101 deletes XXX1.WAV from the transfer list, and since the remaining files in the transfer list are XXX2.JPG to XXX5.JPG, it is determined that there are remaining files in the transfer list, and the process returns to step S704.
[0105] This concludes the process for transferring XXX1.WAV.
[0106] In steps S704 and S705, the control unit 101 again determines that the first file in the transfer list is XXX2.JPG and it is an image file, so the process proceeds to step S706.
[0107] In step S706, the control unit 101, as Figure 6 illustrated, determines that no audio file is attached to the image file XXX2.JPG, so the process proceeds to step S716.
[0108] In step S716, the control unit 101 determines whether there is an available FTP session. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 makes the process proceed to step S717. When referring to XXX2.JPG in step S704, as Figure 6 illustrated, FTP session 2 is in a state where no image file is being transferred, so the control unit 101 determines that FTP session 2 is available and makes the process proceed to step S717.
[0109] In step S717, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S716. When it is determined that a file is registered in the transfer list, the control unit 101 makes the process proceed to step S718, and when it is determined that no file is registered in the transfer list, the control unit 101 makes the process proceed to step S720. When referring to XXX2.JPG, no file is registered in the transfer list of FTP session 2, so the control unit 101 makes the process proceed to step S720.
[0110] In step S720, the control unit 101 starts transferring the image file in the FTP session determined to be available in step S716. As Figure 6 illustrated, the control unit 101 transfers XXX2.JPG in FTP session 2.
[0111] In steps S722 and S723, the control unit 101 deletes XXX2.JPG from the transfer list, and since the remaining files XXX3.JPG to XXX5.JPG are in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S704.
[0112] This concludes the process for transferring XXX2.JPG.
[0113] In step S704, the control unit 101 refers to the first file in the transfer list again. In this case, the first file in the transfer list is XXX3.JPG. Since XXX3.JPG is an image file and an audio file is attached, the control unit 101 performs the processes of steps S705, S706, S707, and S708.
[0114] In step S708, the control unit 101 determines whether the FTP session is available. When referring to XXX3.JPG in step S704, XXX1.JPG is being transferred in FTP session 1 and XXX2.JPG is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX1.JPG in FTP session 1 has been completed and FTP session 1 has become available, and the process proceeds to step S709.
[0115] In step S709, the control unit 101 determines whether a file is registered in the transfer list of the available FTP session. When referring to XXX3.JPG in step S704, XXX1.WAV is registered in the transfer list of FTP session 1, which is determined to be available in step S708, so the control unit 101 makes the process proceed to step S710.
[0116] In step S710, the control unit 101 starts the transfer of the file in the transfer list in the FTP session determined to be available in step S708, and makes the process proceed to step S711. In this case, since XXX1.WAV is registered in the transfer list of FTP session 1, the control unit 101 starts the transfer of XXX1.WAV in FTP session 1.
[0117] In step S711, the control unit 101 deletes the file whose transfer has been started in step S710 from the transfer list, and makes the process return to step S708. The control unit 101 deletes XXX1.WAV, whose transfer has been started in step S710, from the transfer list of FTP session 1. In this case, it enters a state where no file is registered in the transfer list of FTP session 1.
[0118] In step S708, the control unit 101 determines again whether the FTP session is available. At this time, XXX1.WAV is being transmitted in FTP session 1 and XXX2.JPG is being transmitted in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transmission of XXX2.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S709.
[0119] In step S709, the control unit 101 determines whether a file is registered in the transmission list of the FTP session determined to be available in step S708. In this case, since no file is registered in the transmission list of FTP session 2 determined to be available in step S708, the control unit 101 advances the process to step S712.
[0120] In steps S712 and S713, the control unit 101 starts the transmission of XXX3.JPG in FTP session 2 determined to be available in step S708, stores FTP session 2 as the FTP session for which transmission has been performed, and advances the process to step S722.
[0121] In steps S722 and S723, the control unit 101 deletes XXX3.JPG from the transmission list, and since files XXX3.CR3 to XXX5.JPG remain in the transmission list, it is determined that files remain in the transmission list, and the process returns to step S704.
[0122] This concludes the process for transmitting XXX3.JPG.
[0123] In step S704, the control unit 101 refers to the first file in the transmission list again. In this case, the first file in the transmission list is XXX3.CR3. Since XXX3.CR3 is an image file and an audio file is attached, the control unit 101 performs the processes of steps S705, S706, and S707.
[0124] In step S707, the control unit 101 determines that XXX3.CR3 is a RAW file and advances the process to step S714.
[0125] In step S714, the control unit 101 determines whether there is a JPEG / HEIF with the same file name as the image file. When it is determined that there is a JPEG / HEIF with the same file name, the control unit 101 causes the process to proceed to step S715, and when it is determined that there is no JPEG / HEIF with the same file name, the control unit 101 causes the process to proceed to step S715. Since XXX3.CR3 has the same file name as XXX3.JPG, the control unit 101 causes the process to proceed to step S715.
[0126] In step S715, the control unit 101 registers the image file in the transfer list of the FTP session stored in step S713, and causes the process to proceed to step S722. Since the FTP session number stored when transmitting XXX3.JPG is FTP session 2, the control unit 101 registers XXX3.CR3 in the transfer list of FTP session 2.
[0127] In steps S722 and S723, the control unit 101 deletes XXX3.CR3 from the transfer list, and since files XXX3.WAV to XXX5.JPG remain in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S704.
[0128] This concludes the process for transmitting XXX3.CR3.
[0129] In steps S704 and S705, the control unit 101 determines that the first file in the transfer list is XXX3.WAV and is an audio file, and thus causes the process to proceed to step S721.
[0130] In step S721, the control unit 101 registers the audio file in the transfer list of the FTP session stored in step S713, and causes the process to proceed to step S722. Since the FTP session number stored when transmitting XXX3.JPG is FTP session 2, the control unit 101 registers XXX3.WAV in the transfer list of FTP session 2. In this case, the state is such that XXX3.CR3 and XXX3.WAV are registered in the transfer list of FTP session 2.
[0131] In steps S722 and S723, the control unit 101 deletes XXX3.WAV from the transfer list, and since files XXX4.JPG and XXX5.JPG remain in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S704.
[0132] This concludes the process for transmitting XXX3.WAV.
[0133] In step S704, the control unit 101 refers to the first file in the transfer list again. In this case, the first file in the transfer list is XXX4.JPG. Since XXX4.JPG is an image file and no audio file is attached, the control unit 101 performs the processes of steps S705 and S716.
[0134] In step S716, the control unit 101 determines whether the FTP session is available. When referring to XXX4.JPG in step S704, XXX1.WAV is being transferred in FTP session 1 and XXX3.JPG is being transferred in FTP session 2. Therefore, the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX1.WAV in FTP session 1 has been completed and FTP session 1 has become available, and advances the process to step S717.
[0135] In step S717, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S716. When referring to XXX4.JPG in step S704, no file is registered in the transfer list of FTP session 1 determined to be available in step S716. Therefore, the control unit 101 advances the process to step S720.
[0136] In step S720, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S716, and advances the process to step S722. As Figure 6 illustrated, the control unit 101 starts the transfer of XXX4.JPG in FTP session 1.
[0137] In steps S722 and S723, the control unit 101 deletes XXX4.JPG from the transfer list. Since XXX5.JPG remains in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S704.
[0138] This concludes the process for transferring XXX4.JPG.
[0139] In step S704, the control unit 101 refers to the first file in the transfer list again. In this case, the first file in the transfer list is XXX5.JPG. Since XXX5.JPG is an image file and no audio file is attached, the control unit 101 performs the processes of steps S705 and S716.
[0140] In step S716, the control unit 101 determines whether there is an available FTP session. When referring to XXX5.JPG in step S704, XXX4.JPG is being transferred in FTP session 1 and XXX3.JPG is being transferred in FTP session 2, so the control unit 101 waits until it is determined that there is an available FTP session. Then, the control unit 101 determines that the transfer of XXX3.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S717.
[0141] In step S717, the control unit 101 determines whether there is a file registered in the transfer list of the FTP session determined to be available in step S716. When referring to XXX5.JPG in step S704, XXX3.CR3 and XXX3.WAV are registered in the transfer list of FTP session 2 determined to be available in step S716, so the process advances to step S718.
[0142] In step S718, the control unit 101 starts the transfer of the files in the transfer list in the FTP session determined to be available in step S716, and advances the process to step S719. In this case, since XXX3.CR3 and XXX3.WAV are registered in the transfer list of FTP session 2, the control unit 101 starts the transfer of XXX3.CR3 in FTP session 2.
[0143] In step S719, the control unit 101 deletes the file whose transfer has been started in step S718 from the transfer list, and returns the process to step S716. The control unit 101 deletes XXX3.CR3 whose transfer has been started in step S718 from the transfer list of FTP session 2. In this case, the state is such that XXX3.WAV remains in the transfer list.
[0144] In step S716, the control unit 101 determines whether the FTP session is available. At this time, XXX4.JPG is being transferred in FTP session 1 and XXX3.CR3 is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX4.JPG in FTP session 1 has been completed and FTP session 1 has become available, and advances the process to step S717.
[0145] In step S717, the control unit 101 determines whether there is a file registered in the transfer list of the FTP session determined to be available in step S716. At this time, no file is registered in the transfer list of FTP session 1 determined to be available in step S716, so the process advances to step S720.
[0146] In step S720, the control unit 101 starts the transfer of the file in the FTP session determined to be available in step S716, and advances the process to step S722. As Figure 6 illustrated, the control unit 101 starts the transfer of XXX5.JPG in FTP session 1.
[0147] In steps S722 and S723, the control unit 101 deletes XXX5.JPG from the transfer list, and since there are no remaining files in the transfer list, determines that there are no remaining files in the transfer list, and advances the process to step S724.
[0148] This concludes the process for transferring XXX5.JPG.
[0149] In step S724, the control unit 101 determines whether there are any remaining files in the transfer list for FTP session 1 or 2. When it is determined that there are remaining files in the transfer list, the control unit 101 advances the process to step S725, and when it is determined that there are no remaining files in the transfer list, the control unit 101 ends the process. In this case, since XXX3.WAV remains in the transfer list for FTP session 2, the control unit 101 advances the process to step S725.
[0150] In step S725, the control unit 101 determines whether there is an available FTP session for the files determined to be remaining in the transfer list in step S724. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 advances the process to step S726. In this case, since FTP session 2 is the FTP session in which there are remaining files in the transfer list and XXX3.CR3 is being transferred in FTP session 2, the control unit 101 waits until it is determined that FTP session 2 is available. Then, the control unit 101 determines that the transfer of XXX3.CR3 in FTP session 2 has been completed and that FTP session 2 has become available, and advances the process to step S726.
[0151] In step S726, the control unit 101 starts the transfer of the files registered in the transfer list, and advances the process to step S727. The control unit 101 starts the transfer of XXX3.WAV registered in the transfer list for FTP session 2 in FTP session 2.
[0152] In step S727, the control unit 101 deletes the file that has started being transferred in step S726 from the transfer list and returns the process to step S724. The control unit 101 deletes XXX3.WAV registered in the transfer list of FTP session 2 and enters a state where no file is registered in the transfer list.
[0153] In step S724, the control unit 101 determines whether there are any remaining files in the transfer list of FTP session 1 or 2. Since there are no remaining files in the transfer list, the process ends.
[0154] As described above, according to Embodiment 1, when transferring image files and audio files in multiple FTP sessions, by transferring image files with the same file name in the same FTP session and finally transferring the audio file, it is possible to control so that the audio file arrives at the FTP server after the image file arrives.
[0155] [Embodiment 2]
[0156] Next, reference will be made to Figure 8 and Figure 9A and Figure 9B to describe Embodiment 2.
[0157] In Embodiment 2, the following process will be described: When the digital camera 100 establishes multiple FTP sessions with the FTP server 200 and transfers image files and audio files attached to the image files, when there are two files with the same file name including the audio file, the audio file is transferred last in the same FTP session, and when there are three files with the same file name including the audio file, JPEG / HEIF and RAW are transferred in the available FTP sessions in this order, and the audio file is transferred in the same FTP session as RAW.
[0158] Figure 8 Illustrate a method for transferring image files and audio files attached to the image files from the digital camera to the FTP server according to Embodiment 2. Figure 9A and Figure 9B Illustrate a control process for transferring image files and audio files attached to the image files from the digital camera to the FTP server according to Embodiment 2.
[0159] Figure 9A Steps S901 to S903 of Figure 7A are the same as steps S701 to S703 of
[0160] In this embodiment, as Figure 8As illustrated, assume that XXX1.JPG, XXX1.WAV, XXX2.JPG, XXX3.JPG, XXX3.CR3, XXX3.WAV, XXX4.JPG, and XXX5.JPG are registered in the transfer list in this order.
[0161] In step S904, the control unit 101 refers to the first file in the transfer list registered in step S903, and advances the process to step S905. As Figure 8 illustrated, since XXX1.JPG is the first file in the transfer list, the processing for XXX1.JPG will be described.
[0162] In step S905, the control unit 101 determines whether the first file in the transfer list referred to in step S904 is an image file. If it is determined that the file is an image file, the control unit 101 advances the process to step S906, and if it is determined that the file is not an image file, that is, if it is determined that the file is an audio file, the control unit 101 advances the process to step S915. Since XXX1.JPG is an image file, the control unit 101 advances the process to step S906.
[0163] In step S906, the control unit 101 determines whether there is an available FTP session. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 advances the process to step S907. When referring to XXX1.JPG in step S904, both FTP session 1 and FTP session 2 are in a state where no image file is being transferred, so the control unit 101 determines that Figure 8 the illustrated FTP session 1 is available and advances the process to step S907.
[0164] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. If it is determined that a file is registered in the transfer list, the control unit 101 advances the process to step S908, and if it is determined that no file is registered in the transfer list, the control unit 101 advances the process to step S910. The transfer list is similar to the transfer list of the first embodiment. When referring to XXX1.JPG in step S904, no file is registered in the transfer list of FTP session 1, so the control unit 101 advances the process to step S910.
[0165] In step S910, the control unit 101 starts transferring the file in the FTP session determined to be available in step S906, and advances the process to step S911. As Figure 8As illustrated, the control unit 101 starts the transfer of XXX1.JPG in the FTP session 1.
[0166] In step S911, the control unit 101 determines whether an audio file is attached to the image file that has started to be transferred in step S910. When it is determined that an audio file is attached to the image file, the control unit 101 advances the process to step S912, and when it is determined that no audio file is attached to the image file, the control unit 101 advances the process to step S916. As Figure 8 illustrated, since the audio file XXX1.WAV is attached to XXX1.JPG, the control unit 101 advances the process to step S912.
[0167] In step S912, the control unit 101 determines whether the image file that has started to be transferred in step S910 is JPEG or HEIF. When it is determined that the image file is JPEG or HEIF, the control unit 101 advances the process to step S913, and when it is determined that the image file is not JPEG or HEIF (that is, the image file is RAW), the control unit 101 advances the process to step S914. Since XXX1.JPG is JPEG, the control unit 101 advances the process to step S913.
[0168] In step S913, the control unit 101 determines whether there is a RAW with the same file name as the image file that has started to be transferred in step S910. When it is determined that there is a RAW with the same file name, the control unit 101 advances the process to step S916, and when it is determined that there is no RAW with the same file name, the control unit 101 advances the process to step S914. In this case, since XXX1.JPG does not have a RAW with the same file name, the control unit 101 advances the process to step S914.
[0169] In step S914, the control unit 101 stores the number of the FTP session in which the transfer of the image file started in step S910 in the working memory 104, and advances the process to step S916. The control unit 101 has started the transfer of XXX1.JPG in the FTP session 1, so the FTP session 1 is stored.
[0170] In step S916, the control unit 101 deletes the image file from the transfer list, and advances the process to step S917. The control unit 101 deletes XXX1.JPG from the transfer list.
[0171] In step S917, the control unit 101 determines whether there are remaining files in the transfer list. When it determines that there are remaining files, the process returns to step S904. When it determines that there are no remaining files, the process proceeds to step S918. In this case, the control unit 101 deletes XXX1.JPG from the transfer list. However, since there are remaining files XXX1.WAV to XXX5.JPG, the process returns to step S904.
[0172] This leads to the process for transferring XXX1.JPG.
[0173] In steps S904 and S905, the control unit 101 determines again that the first file in the transfer list is XXX1.WAV and it is an audio file, so the process proceeds to step S915.
[0174] In step S915, the control unit 101 registers the audio file in the transfer list of the FTP session stored in step S914 and the process proceeds to step S916. Since the FTP session number stored when transferring XXX1.JPG is FTP session 1, the control unit 101 registers XXX1.WAV in the transfer list of FTP session 1.
[0175] In steps S916 and S917, the control unit 101 deletes XXX1.WAV from the transfer list. Since there are remaining files XXX2.JPG to XXX5.JPG in the transfer list, it is determined that there are remaining files in the transfer list and the process returns to step S904.
[0176] This leads to the process for transferring XXX1.WAV.
[0177] In steps S904 and S905, the control unit 101 determines again that the first file in the transfer list is XXX2.JPG and it is an image file, so the process proceeds to step S906.
[0178] In step S906, the control unit 101 determines whether the FTP session is available. When referring to XXX2.JPG in step S904, as Figure 8 illustrated, FTP session 2 is in a state where no image file is being transferred. Thus, the control unit 101 determines that FTP session 2 is available and the process proceeds to step S907.
[0179] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. When referring to XXX2.JPG in step S904, no file is registered in the transfer list of FTP session 2. Therefore, the control unit 101 advances the process to step S910.
[0180] In step S910, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S906, and advances the process to step S911. As Figure 8 illustrated, the control unit 101 transfers XXX2.JPG in FTP session 2.
[0181] In step S911, the control unit 101 determines that no audio file is attached to the image file XXX2.JPG whose transfer has been started in step S910, and thus advances the process to step S916.
[0182] In steps S916 and S917, the control unit 101 deletes XXX2.JPG from the transfer list, and since files XXX3.JPG to XXX5.JPG remain in the transfer list, it determines that files remain in the transfer list and returns the process to step S904.
[0183] This concludes the process for transferring XXX2.JPG.
[0184] In steps S904 and S905, the control unit 101 again determines that the first file in the transfer list is XXX3.JPG and it is an image file, and thus advances the process to step S906.
[0185] In step S906, the control unit 101 determines whether the FTP session is available. When referring to XXX3.JPG in step S904, XXX1.JPG is being transferred in FTP session 1 and XXX2.JPG is being transferred in FTP session 2. Therefore, the control unit 101 waits until it determines that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX1.JPG in FTP session 1 has been completed and FTP session 1 has become available, and advances the process to step S907.
[0186] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. Since XXX1.WAV is registered in the transfer list of FTP session 1, the control unit 101 advances the process to step S908.
[0187] In step S908, the control unit 101 starts the transfer of the files in the transfer waiting list in the FTP session determined to be available in step S906, and advances the process to step S909. Since XXX1.WAV is registered in the transfer waiting list of FTP session 1, the control unit 101 starts the transfer of XXX1.WAV in FTP session 1.
[0188] In step S909, the control unit 101 deletes the file whose transfer has been started in step S908 from the transfer waiting list, and returns the process to step S906. The control unit 101 deletes XXX1.WAV whose transfer has been started in step S908 from the transfer waiting list of FTP session 1. In this case, it enters a state where no file is registered in the transfer waiting list of FTP session 1.
[0189] In step S906, the control unit 101 determines whether the FTP session is available. At this time, XXX1.WAV is being transferred in FTP session 1 and XXX2.JPG is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX2.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S907.
[0190] In step S907, the control unit 101 determines whether a file is registered in the transfer waiting list of the FTP session determined to be available in step S906. Here, since no file is registered in the transfer waiting list of FTP session 2, the process advances to step S910.
[0191] In step S910, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S906, and advances the process to step S911. As Figure 8 illustrated, the control unit 101 transfers XXX3.JPG in FTP session 2.
[0192] In step S911, the control unit 101 determines whether an audio file is attached to the image file whose transfer has been started in step S910. As Figure 8 illustrated, since the audio file XXX3.WAV is attached to XXX3.JPG, the control unit 101 advances the process to step S912.
[0193] In step S912, the control unit 101 determines whether the image file whose transfer has been started in step S910 is JPEG or HEIF. Since XXX3.JPG is JPEG, the control unit 101 advances the process to step S913.
[0194] In step S913, the control unit 101 determines whether there is a RAW with the same file name as the image file that has started being transferred in step S910. Since there is a RAW with the same file name as XXX3.JPG (which is XXX3.CR3), the control unit 101 advances the process to step S916.
[0195] In steps S916 and S917, the control unit 101 deletes XXX3.JPG from the transfer list, and since the remaining files XXX3.CR3 to XXX5.JPG are in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S904.
[0196] This concludes the process for transferring XXX3.JPG.
[0197] In steps S904 and S905, the control unit 101 again determines that the first file in the transfer list is XXX3.CR3 and is an image file, so the process advances to step S906.
[0198] In step S906, the control unit 101 determines whether the FTP session is available. When referring to XXX3.CR3 in step S904, XXX1.WAV is being transferred in FTP session 1 and XXX3.JPG is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX1.WAV in FTP session 1 has been completed and FTP session 1 has become available, and the process advances to step S907.
[0199] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. Since no file is registered in the transfer list of FTP session 1, the control unit 101 advances the process to step S910.
[0200] In step S910, the control unit 101 starts transferring the image file in the session determined to be available in step S906, and the process advances to step S911. As Figure 8 illustrated, the control unit 101 transfers XXX3.CR3 in FTP session 1.
[0201] In step S911, the control unit 101 determines whether an audio file is attached to the image file that has started being transferred in step S910. As Figure 8 illustrated, since the audio file XXX3.WAV is attached to XXX3.CR3, the control unit 101 advances the process to step S912.
[0202] In step S912, the control unit 101 determines whether the image file that has started to be transmitted in step S910 is JPEG or HEIF. Since XXX3.CR3 is RAW, the control unit 101 causes the process to proceed to step S914.
[0203] In step S914, the control unit 101 stores the number of the FTP session in which the transmission of the image file started in step S910 in the working memory 104, and causes the process to proceed to step S916. The control unit 101 has started the transmission of XXX3.CR3 in FTP session 1, so it stores FTP session 1.
[0204] In steps S916 and S917, the control unit 101 deletes XXX3.CR3 from the transmission list, and since files XXX3.WAV to XXX5.JPG remain in the transmission list, it determines that there are remaining files in the transmission list and causes the process to return to step S904.
[0205] This concludes the process for transmitting XXX3.CR3.
[0206] In steps S904 and S905, the control unit 101 again determines that the first file in the transmission list is XXX3.WAV and is an audio file, so it causes the process to proceed to step S915.
[0207] In step S915, the control unit 101 registers the audio file in the list of files to be transmitted for the FTP session stored in step S914, and causes the process to proceed to step S916. Since the number of the FTP session in which the transmission of XXX3.CR3 has started is FTP session 1, the control unit 101 registers XXX3.WAV in the list of files to be transmitted for FTP session 1.
[0208] In steps S916 and S917, the control unit 101 deletes XXX3.WAV from the transmission list, and since files XXX4.JPG and XXX5.JPG remain in the transmission list, it determines that there are remaining files in the transmission list and causes the process to return to step S904.
[0209] This concludes the process for transmitting XXX3.WAV.
[0210] In steps S904 and S905, the control unit 101 again determines that the first file in the transmission list is XXX4.JPG and is an image file, so it causes the process to proceed to step S906.
[0211] In step S906, the control unit 101 determines whether the FTP session is available. When referring to XXX4.JPG in step S904, XXX3.CR3 is being transferred in FTP session 1 and XXX3.JPG is being transferred in FTP session 2. Therefore, the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX3.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S907.
[0212] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. Since no file is registered in the transfer list of FTP session 2, the control unit 101 advances the process to step S910.
[0213] In step S910, the control unit 101 starts transferring the image file in the session determined to be available in step S906, and advances the process to step S911. As Figure 8 illustrated, the control unit 101 transfers XXX4.JPG in FTP session 2.
[0214] In step S911, the control unit 101 determines whether an audio file is attached to the image file that has started being transferred in step S910. As Figure 8 illustrated, since no audio file is attached to XXX4.JPG, the control unit 101 advances the process to step S916.
[0215] In steps S916 and S917, the control unit 101 deletes XXX4.JPG from the transfer list, and since XXX5.JPG remains in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S904.
[0216] This concludes the process for transferring XXX4.JPG.
[0217] In steps S904 and S905, the control unit 101 again determines that the first file in the transfer list is XXX5.JPG and it is an image file, so the process advances to step S906.
[0218] In step S906, the control unit 101 determines whether the FTP session is available. When referring to XXX5.JPG in step S904, XXX3.CR3 is being transferred in FTP session 1 and XXX4.JPG is being transferred in FTP session 2. Therefore, the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX4.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S907.
[0219] In step S907, the control unit 101 determines whether a file is registered in the transfer list of the FTP session determined to be available in step S906. Since no file is registered in the transfer list of FTP session 2, the control unit 101 advances the process to step S910.
[0220] In step S910, the control unit 101 starts the transfer of the image file in the session determined to be available in step S906, and advances the process to step S911. As Figure 8 illustrated, the control unit 101 transfers XXX5.JPG in FTP session 2.
[0221] In step S911, the control unit 101 determines whether an audio file is attached to the image file that has started being transferred in step S910. As Figure 8 illustrated, since no audio file is attached to XXX5.JPG, the control unit 101 advances the process to step S916.
[0222] In steps S916 and S917, the control unit 101 deletes XXX5.JPG from the transfer list, determines that there are no remaining files in the transfer list, and advances the process to step S918.
[0223] This concludes the process for transferring XXX5.JPG.
[0224] In step S918, the control unit 101 determines whether there are any remaining files in the transfer list of FTP session 1 or 2. When it is determined that there are remaining files in the transfer list of FTP session 1 or 2, the control unit 101 advances the process to step S919, and when it is determined that there are no remaining files in the transfer list, the control unit 101 ends the process. At this time, XXX3.WAV remains in the transfer list of FTP session 1, so the control unit 101 advances the process to step S919.
[0225] Steps S919 to S921 are the same as Figure 7CSteps S725 to S727 are similar. Since XXX3.WAV remains in the transfer list of FTP session 1, when FTP session 1 becomes available, XXX3.WAV is transferred in FTP session 1. Then, XXX3.WAV is deleted from the transfer list of FTP session 1, and the process returns to step S918.
[0226] In step S918, the control unit 101 determines whether there are any files remaining in the transfer list of FTP session 1 or 2. Since there are no files remaining in the transfer list, the process ends.
[0227] As described above, according to Embodiment 2, when transferring image files and audio files attached to the image files in multiple FTP sessions, when there are two files with the same file name including the audio file, the audio file is transferred last in the same FTP session. When there are three files with the same file name including the audio file, JPEG / HEIF and RAW are transferred in this order in the available FTP sessions, and the audio file is transferred in the same FTP session as RAW. This enables control so that when transferring image files and audio files in multiple FTP sessions, the audio file arrives at the FTP server later than the image file.
[0228] Since RAW is larger in image size than JPEG / HEIF, when transferring starts with JPEG / HEIF and then RAW, by the time the transfer of RAW is completed, the transfer of JPEG / HEIF is also completed, and the audio file is transferred in the same FTP session as RAW. This enables control so that the audio file arrives at the FTP server later than the image file.
[0229] In this embodiment, JPEG / HEIF and RAW are transferred in this order in the available FTP sessions, and the audio file is transferred in the same FTP session as RAW. However, a configuration can be adopted to transfer multiple image files in order starting from the file with the smallest size in the available FTP sessions, and transfer the audio file in the same FTP session as the image file with the largest size. Thus, for example, even when the files with the same file name are a combination of multiple types of files (such as JPEG, HEIF, and audio files, etc.), by transferring in order starting from the image file with a smaller size in the available FTP sessions and transferring the audio file in the same FTP session as the image file with the largest size, control can be performed so that when transferring image files and audio files attached to the image files in multiple FTP sessions, the audio file arrives at the FTP server later than the image file.
[0230] [Embodiment 3]
[0231] Next, referring to Figure 10 and Figure 11A and Figure 11B an example will be given to illustrate Embodiment 3.
[0232] In Embodiment 3, the following processing will be described: When the digital camera 100 establishes multiple FTP sessions with the FTP server 200 and transmits an image file and an audio file attached to the image file, when there are two files with the same file name including the audio file, the audio file is transmitted last in the same FTP session, and when there are three files with the same file name including the audio file, RAW and JPEG / HEIF are transmitted in this order in the available FTP sessions, and the audio file is transmitted in the same FTP session as the file that was last completed being transmitted among RAW and JPEG / HEIF.
[0233] Figure 10 An example is given of a method for transmitting an image file and an audio file attached to the image file from a digital camera to an FTP server according to Embodiment 3. Figure 11A and Figure 11B An example is given of a control process for transmitting an image file and an audio file attached to the image file from a digital camera to an FTP server according to Embodiment 3.
[0234] Figure 11A Steps S1101 to S1103 of Figure 7A are the same as steps S701 to S703 of
[0235] In this embodiment, as Figure 10 is exemplified, it is assumed that XXX1.JPG, XXX1.WAV, XXX2.JPG, XXX3.CR3, XXX3.JPG, XXX3.WAV, XXX4.JPG, XXX4.WAV are registered in the transmission list in this order.
[0236] In step S1104, the control unit 101 refers to the first file in the transmission list registered in step S1103 and proceeds to step S1105. As Figure 10 is exemplified, since XXX1.JPG is the first file in the transmission list, the processing for transmitting XXX1.JPG will be described.
[0237] In step S1105, the control unit 101 determines whether the first file in the transfer list referred to in step S1104 is an image file. When it is determined that the file is an image file, the control unit 101 advances the process to step S1106, and when it is determined that the file is not an image file, that is, when it is determined that the file is an audio file, the control unit 101 advances the process to step S1112. Since XXX1.JPG is an image file, the control unit 101 advances the process to step S1106.
[0238] In step S1106, the control unit 101 determines whether there is an available FTP session. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 advances the process to step S1107. When referring to XXX1.JPG in step S1104, both FTP session 1 and FTP session 2 are in a state where no image file is being transferred, so the control unit 101 determines that Figure 10 the exemplified FTP session 1 is available and advances the process to step S1107.
[0239] In step S1107, the control unit 101 determines whether a file is registered in the transfer completion waiting list. When it is determined that a file is registered in the transfer completion waiting list, the control unit 101 advances the process to step S1108, and when it is determined that no file is registered in the transfer completion waiting list, the control unit 101 advances the process to step S1111. An audio file is registered in the transfer completion waiting list, and when all files with the same file name as the audio file have been transferred, the audio file in the transfer completion waiting list is transferred. When XXX1.JPG is selected, since no audio file is registered in the transfer completion waiting list, the control unit 101 advances the process to step S1111.
[0240] In step S1111, the control unit 101 starts transferring the image file in the FTP session determined to be available in step S1106 and advances the process to step S1113. As Figure 10 exemplified, the control unit 101 transfers XXX1.JPG in FTP session 1.
[0241] In step S1113, the control unit 101 deletes the image file from the transfer list and advances the process to step S1114. The control unit 101 deletes XXX1.JPG from the transfer list.
[0242] In step S1114, the control unit 101 determines whether there are any remaining files in the transfer list. When it is determined that there are remaining files in the transfer list, the control unit 101 returns the process to step S1104, and when it is determined that there are no remaining files in the transfer list, the control unit 101 advances the process to step S1115. The control unit 101 deletes XXX1.JPG from the transfer list, but since there are remaining files XXX1.WAV to XXX4.WAV, the process is returned to step S1104.
[0243] This results in the process for transferring XXX1.JPG.
[0244] In steps S1104 and S1105, the control unit 101 determines that the first file in the transfer list is XXX1.WAV and is an audio file, and thus advances the process to step S1112.
[0245] In step S1112, the control unit 101 registers the audio file in the transfer completion waiting list and advances the process to step S1113. The control unit 101 registers XXX1.WAV in the transfer completion waiting list.
[0246] In steps S1113 and S1114, the control unit 101 deletes XXX1.WAV from the transfer list, and since there are remaining files XXX2.JPG to XXX4.WAV in the transfer list, it is determined that there are remaining files in the transfer list, and the process is returned to step S1104.
[0247] This results in the process for transferring XXX1.WAV.
[0248] In steps S1104 and S1105, the control unit 101 determines that the first file in the transfer list is XXX2.JPG and is an image file, and thus advances the process to step S1106.
[0249] In step S1106, the control unit 101 determines whether the FTP session is available. In the case of referring to XXX2.JPG, Figure 10 the illustrated FTP session 2 is in a state where no image file is being transferred, and thus the control unit 101 determines that FTP session 2 is available and advances the process to step S1107.
[0250] In step S1107, the control unit 101 determines whether an audio file is registered in the transfer completion waiting list. When referring to XXX2.JPG in step S1104, XXX1.WAV is registered in the transfer completion waiting list, and thus the control unit 101 advances the process to step S1108.
[0251] In step S1108, the control unit 101 determines whether the transmission of all image files having the same file number as the audio file in the transmission completion waiting list has been completed. When it is determined that the transmission of all image files having the same file number has been completed, the control unit 101 advances the process to step S1109, and when it is determined that the transmission of all image files having the same file number has not been completed, the control unit 101 advances the process to step S1111. In this case, since XXX1.WAV is registered in the transmission completion waiting list and the transmission of XXX1.JPG having the same file name has not been completed, the control unit 101 advances the process to step S1111.
[0252] In step S1111, the control unit 101 starts the transmission of the image file in the FTP session determined to be available in step S1106 and advances the process to step S1113. As Figure 10 illustrated, the control unit 101 starts the transmission of XXX2.JPG in FTP session 2.
[0253] In steps S1113 and S1114, the control unit 101 deletes XXX2.JPG from the transmission list, and since files XXX3.JPG to XXX4.WAV remain in the transmission list, it is determined that there are remaining files in the transmission list, and the process returns to step S1104.
[0254] This concludes the process for transmitting XXX2.JPG.
[0255] In steps S1104 and S1105, the control unit 101 determines that the first file in the transmission list is XXX3.CR3 and is an image file, and thus advances the process to step S1106.
[0256] In step S1106, the control unit 101 determines whether the FTP session is available. When referring to XXX3.CR3 in step S1104, XXX1.JPG is being transmitted in FTP session 1 and XXX2.JPG is being transmitted in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transmission of XXX1.JPG in FTP session 1 has been completed and FTP session 1 has become available, and advances the process to step S1107.
[0257] In step S1107, the control unit 101 determines whether an audio file is registered in the transmission completion waiting list. When referring to XXX3.CR3 in step S1104, XXX1.WAV is registered in the transmission completion waiting list, so the control unit 101 advances the process to step S1108.
[0258] In step S1108, the control unit 101 determines whether the transfer of all image files having the same file number as the audio file in the transfer completion waiting list has been completed. Since XXX1.WAV is registered in the transfer completion waiting list and the transfer of XXX1.JPG with the same file name has been completed, the control unit 101 advances the process to step S1109.
[0259] In step S1109, the control unit 101 starts the transfer of the files in the transfer completion waiting list in the FTP session determined to be available in step S1106, and advances the process to step S1110. Since XXX1.WAV is registered in the transfer completion waiting list, the control unit 101 starts the transfer of XXX1.WAV in FTP session 1.
[0260] In step S1110, the control unit 101 deletes the file whose transfer has been started in step S1109 from the transfer completion waiting list, and returns the process to step S1106. The control unit 101 deletes XXX1.WAV whose transfer has been started in step S1109 from the transfer completion waiting list. In this case, it enters a state where no audio file is registered in the transfer completion waiting list.
[0261] In step S1106, the control unit 101 determines whether the FTP session is available. At this time, XXX1.WAV is being transferred in FTP session 1 and XXX2.JPG is being transferred in FTP session 2, so the control unit 101 waits until it determines that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX2.JPG in FTP session 2 has been completed and FTP session 2 has become available, and advances the process to step S1107.
[0262] In step S1107, the control unit 101 determines that no audio file is registered in the transfer completion waiting list, and advances the process to step S1111.
[0263] In step S1111, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S1106, and advances the process to step S1113. As Figure 10 illustrated, the control unit 101 starts the transfer of XXX3.CR3 in FTP session 2.
[0264] In steps S1113 and S1114, the control unit 101 deletes XXX3.CR3 from the transfer list, and since files XXX3.JPG to XXX4.WAV remain in the transfer list, it determines that there are remaining files in the transfer list, and returns the process to step S1104.
[0265] This results in the process for transmitting XXX3.CR3.
[0266] In steps S1104 and S1105, the control unit 101 determines that the first file in the transmission list is XXX3.JPG and XXX3.JPG is an image file, thus causing the process to proceed to step S1106.
[0267] In step S1106, the control unit 101 determines whether the FTP session is available. When referring to XXX3.JPG in step S1104, XXX1.WAV is being transmitted in FTP session 1 and XXX3.CR3 is being transmitted in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transmission of XXX1.WAV in FTP session 1 has been completed and FTP session 1 has become available, and causes the process to proceed to step S1107.
[0268] In step S1107, the control unit 101 determines whether an audio file is registered in the transmission completion waiting list. In this case, since no audio file is registered in the transmission completion waiting list, the control unit 101 causes the process to proceed to step S1111.
[0269] In step S1111, the control unit 101 starts the transmission of the image file in the FTP session determined to be available in step S1106, and causes the process to proceed to step S1113. As Figure 10 illustrated, the control unit 101 starts the transmission of XXX3.JPG in FTP session 1.
[0270] In steps S1113 and S1114, the control unit 101 deletes XXX3.JPG from the transmission list, and since files XXX3.WAV to XXX4.WAV remain in the transmission list, it is determined that there are remaining files in the transmission list, and the process returns to step S1104.
[0271] This results in the process for transmitting XXX3.JPG.
[0272] In steps S1104 and S1105, the control unit 101 determines that the first file in the transmission list is XXX3.WAV and XXX3.WAV is an image file, thus causing the process to proceed to step S1112.
[0273] In step S1112, the control unit 101 registers the audio file in the transmission completion waiting list, and causes the process to proceed to step S1113. The control unit 101 registers XXX3.WAV in the transmission completion waiting list.
[0274] In steps S1113 and S1114, the control unit 101 deletes XXX3.WAV from the transfer list, and since the remaining files in the transfer list are XXX4.JPG and XXX4.WAV, it is determined that there are remaining files in the transfer list, and the process returns to step S1104.
[0275] This concludes the process for transferring XXX3.WAV.
[0276] In steps S1104 and S1105, the control unit 101 determines that the first file in the transfer list is XXX4.JPG and XXX4.JPG is an image file, so the process proceeds to step S1106.
[0277] In step S1106, the control unit 101 determines whether the FTP session is available. When referring to XXX4.JPG in step S1104, XXX3.JPG is being transferred in FTP session 1 and XXX3.CR3 is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX3.CR3 in FTP session 2 has been completed and FTP session 2 has become available, and the process proceeds to step S1107.
[0278] In step S1107, the control unit 101 determines whether an audio file is registered in the transfer completion waiting list. In this case, since the audio file XXX3.WAV is registered in the transfer completion waiting list, the control unit 101 makes the process proceed to step S1108.
[0279] In step S1108, the control unit 101 determines whether the transfer of all image files with the same file number as the audio file in the transfer completion waiting list has been completed. Since XXX3.WAV is registered in the transfer completion waiting list, and the transfer of XXX3.CR3 with the same file name has been completed but the transfer of XXX3.JPG has not been completed, the control unit 101 makes the process proceed to step S1111.
[0280] In step S1111, the control unit 101 starts the transfer of the image file in the FTP session determined to be available in step S1106, and makes the process proceed to step S1113. As Figure 10 illustrated, the control unit 101 starts the transfer of XXX4.JPG in FTP session 2.
[0281] In steps S1113 and S1114, the control unit 101 deletes XXX4.JPG from the transfer list, and since XXX4.WAV remains in the transfer list, it is determined that there are remaining files in the transfer list, and the process returns to step S1104.
[0282] This concludes the process for transferring XXX4.JPG.
[0283] In steps S1104 and S1105, the control unit 101 determines that the first file in the transfer list is XXX4.WAV and XXX4.WAV is an audio file, so the process proceeds to step S1112.
[0284] In step S1112, the control unit 101 registers the audio file in the transfer completion waiting list and the process proceeds to step S1113. In this case, the control unit 101 registers XXX4.WAV in the transfer completion waiting list, and enters a state where XXX3.WAV and XXX4.WAV are registered in the transfer completion waiting list.
[0285] In steps S1113 and S1114, the control unit 101 deletes XXX4.WAV from the transfer list, and since there are no remaining files in the transfer list, the process proceeds to step S1115.
[0286] This concludes the process for transferring XXX4.WAV.
[0287] In step S1115, the control unit 101 determines whether there are remaining files in the transfer completion waiting list. When it is determined that there are remaining files in the transfer completion waiting list, the control unit 101 makes the process proceed to step S1116, and when it is determined that there are no remaining files in the transfer completion waiting list, the control unit 101 ends the process. In this case, since XXX3.WAV and XXX4.WAV remain in the transfer completion waiting list, the control unit 101 makes the process proceed to step S1116.
[0288] In step S1116, the control unit 101 determines whether there is an available FTP session. The control unit 101 waits until it is determined that there is an available FTP session, and when it is determined that there is an available FTP session, the control unit 101 makes the process proceed to step S1117. At this time, XXX3.JPG is being transferred in FTP session 1 and XXX4.JPG is being transferred in FTP session 2, so the control unit 101 waits until it is determined that the FTP session is available. Then, the control unit 101 determines that the transfer of XXX3.JPG in FTP session 1 has been completed and FTP session 1 has become available, and makes the process proceed to step S1117.
[0289] In step S1117, the control unit 101 determines whether the transmission of all image files having the same file name as the audio file in the transmission completion waiting list has been completed. When it is determined that the transmission of all image files having the same file name as the audio file in the transmission completion waiting list has been completed, the control unit 101 advances the processing to step S1118, and when it is determined that the transmission of all image files having the same file name as the audio file in the transmission completion waiting list has not been completed, the control unit 101 returns the processing to step S1116. In this case, regarding XXX3.WAV and XXX4.WAV in the transmission completion waiting list, since the transmission of XXX3.JPG having the same file name as XXX3.WAV has been completed and the transmission of all files having the same file name has been completed, the control unit 101 advances the processing to step S1118.
[0290] In step S1118, the control unit 101 starts the transmission of the audio file in the transmission completion waiting list in the FTP session determined to be available in step S1116, and advances the processing to step S1119. The control unit 101 starts the transmission of XXX3.WAV in FTP session 1.
[0291] In step S1119, the control unit 101 deletes the audio file whose transmission has been started in step S1118 from the transmission completion waiting list, and returns the processing to step S1115. In this case, the state is such that XXX4.WAV remains in the transmission completion waiting list.
[0292] In step S1115, since XXX4.WAV remains in the transmission completion waiting list, the control unit 101 performs the processing from step S1116 to step S1119. When the transmission of XXX4.JPG having the same file name as XXX4.WAV is completed, the control unit 101 starts the transmission of XXX4.WAV in FTP session 2 in which XXX4.JPG has been transmitted, deletes XXX4.WAV from the transmission completion waiting list, and returns the processing to step S1115. At this time, the state where there are no files in the transmission completion waiting list is entered.
[0293] In step S1115, the control unit 101 determines that there are no audio files in the transmission completion waiting list, and ends the processing.
[0294] As described above, according to Embodiment 3, when transmitting an image file and an audio file attached to the image file in multiple FTP sessions, when there are two files with the same file name including the audio file, the audio file is transmitted last in the same FTP session, and when there are three files with the same file name including the audio file, RAW and JPEG / HEIF are transmitted in this order in available FTP sessions, and the audio file is transmitted in the same FTP session as the file that is the last to complete transmission among RAW and JPEG / HEIF. This enables control such that when transmitting an image file and an audio file attached to the image file in multiple FTP sessions, the audio file arrives at the FTP server later than the image file.
[0295] In this embodiment, the following processing has been described: RAW and JPEG / HEIF are transmitted in this order in available FTP sessions, and the audio file is transmitted in the same FTP session as the file that is the last to complete transmission among RAW and JPEG / HEIF. However, a configuration can be adopted to transmit multiple image files in order starting from the file with the largest size in available FTP sessions, and to transmit the audio file in the same FTP session as the image file that is the last to complete transmission among the image files with the same file name. Thus, for example, even in the case where the files with the same file name are a combination of multiple types of files (such as JPEG, HEIF, and audio files), by transmitting in order starting from the image file with the largest size in available FTP sessions and transmitting the audio file in the same FTP session as the file that is the last to complete transmission among the files with the same file name, control can be performed such that the audio file arrives at the FTP server later than the image file.
[0296] In addition, a configuration can be adopted to transmit the audio file in the same FTP session as the image file that is the last to complete transmission among the image files with the same file name without considering the order of transmitting the image files. This eliminates the need to rearrange the image files before starting transmission.
[0297] [Other Embodiments]
[0298] The present invention can be implemented by providing a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and by a process in which one or more processors in a computer of the system or device read and execute the program. In addition, the present invention can be implemented by a circuit (e.g., ASIC) that implements one or more functions.
[0299] The present invention is not limited to the above embodiments, and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, the appended claims are made to inform the public of the scope of the present invention.
[0300] This application claims the benefit of Japanese Patent Application No. 2022-193607 filed on December 2, 2022, which is hereby incorporated herein by reference in its entirety.
[0301] Explanation of reference numerals
[0302] 100... Digital camera, 101... Control unit, 103... Non-volatile memory, 111... Wireless connection unit, 112... Short-range wireless communication unit, 113... Wired connection unit.
Claims
1. A communication device, characterized in that, Comprising: A connection component for connecting to an external device in a communicable manner; And A control component for establishing a plurality of data transfer paths with the external device that has been connected through the connection component, selecting a data transfer path for transfer for each image file from the plurality of data transfer paths, and transferring the image file, Characterized in that the control component: Selects a data transfer path capable of transferring a file from the plurality of data transfer paths, and When transferring an audio file attached to the image file, selects a data transfer path on which the image file with the attached audio file has been transferred.
2. The communication device according to claim 1, wherein The control component: Judges whether an audio file is attached to the image file to be transferred to the external device, and When transferring an image file with the attached audio file, selects a data transfer path capable of transferring a file from the plurality of data transfer paths and transfers the image file.
3. The communication device according to claim 1 or 2, characterized in that, Further comprising: A selection component for selecting an image file to be transferred to the external device from a plurality of image files.
4. The communication device according to claim 3, characterized in that, The control component: Rearranges the image file selected by the selection component and the audio file attached to the image file in the order of transfer to the external device, and registers the image file and the audio file in a transfer list, and When the transfer of the files registered in the transfer list is completed, deletes the transferred completed files from the transfer list.
5. The communication device according to claim 4, characterized in that The control component performs rearrangement so that the audio file attached to the image file is transferred later than the image file with the attached audio file.
6. The communication device according to any one of claims 1 to 5, characterized in that, The control component: After transferring an image file with the attached audio file, when there is no data transfer path capable of transferring a file among the plurality of data transfer paths, registers the file to be transferred to the external device on the same data transfer path next in a pending transfer list, and When the transfer of the files registered in the pending transfer list is completed, deletes the transferred completed files from the pending transfer list.
7. The communication device according to claim 6, characterized in that, The control component: Registers the audio file to be transferred to the external device on the same data transfer path next in the pending transfer list, When the transfer of the file has become possible on the same data transfer path, transfers the audio file registered in the pending transfer list.
8. The communication device according to claim 4, characterized in that The plurality of image files include image files in different file formats, and The control component transfers image files in different file formats with the attached audio file on the same data transfer path.
9. The communication device according to claim 8, characterized in that After transferring the image files in different file formats, the control component transfers the audio file.
10. The communication device according to claim 9, characterized in that The different file formats at least include JPEG and RAW, and After the JPEG and RAW are sent to the external device in this order, the control component sends the audio file.
11. The communication device according to claim 8, wherein: The control component sends the audio file on the same data transfer path as the image file that is the last to complete transfer among the multiple image files with different file formats to which the audio file is attached.
12. The communication device according to claim 11, wherein: The different file formats include at least JPEG and RAW, and The control component sends the audio file on the same data transfer path as the image file that is the last to complete transfer among JPEG and RAW.
13. The communication device according to any one of claims 1 to 3, wherein: The control component sends the multiple image files with different sizes to which the audio file is attached in the order of size, and sends the audio file on the same data transfer path as the image file that is the last to complete transfer.
14. A control method for a communication device, the communication device having a connection component for connecting to an external device in a communicable manner, the control method being characterized by including: A control step for controlling to establish multiple data transfer paths with the external device that has established a connection through the connection component, select a data transfer path for transfer for each image file from the multiple data transfer paths, and transfer the image file, wherein, in the control step, Select a data transfer path capable of transferring a file from the multiple data transfer paths, and When transferring the audio file attached to the image file, select the data transfer path on which the image file to which the audio file is attached has been transferred.
15. A program for causing a computer to function as the communication device according to any one of claims 1 to 13.
Citation Information
Patent Citations
Electronic camera
JP2011120279A