A non-transitory computer-readable storage medium storing a program for causing a computer to function, in a control method of a communication apparatus that includes a display unit and communicates with an information processing apparatus, to transmit file information stored in a storage medium connected to the communication apparatus, to the information processing, as:
- an activation unit configured to activate the communication apparatus in a reproduction mode for reproducing a file stored in the storage medium on the display unit;
- a connection unit configured to connect to the information processing apparatus;
- a cache memory configured to cache entry information of the file stored in the storage medium, before the communication apparatus connects to the information processing apparatus through a physical layer by the connection unit;
- a generation unit configured to generate, based on the entry information cached in the cache memory, information necessary for transmitting the file information in accordance with a predetermined communication protocol, after the communication apparatus connects to the information apparatus through the physical layer by the connection unit;
- and
- a transmission control unit configured to control transmission of the information generated by the generation unit to the information processing apparatus via the connection unit, in response to a request from the information processing apparatus,
- wherein, in the reproduction mode, the file stored in the storage medium is reproduced using at least a portion of the entry information of the file stored in the storage medium, and
- wherein the cache memory caches the entry information in accordance with the communication apparatus being activated in the reproduction mode.