Patent ID: 7538327

Claim:
An electronic apparatus having a cable connector unit that makes it possible to attach and detach a connector for connecting a cable for the purpose of performing data communication with an external apparatus, comprising: a lock mechanism adapted to maintain a connection with the connector in a lock state; a detection unit adapted to detect a first operation on the connector; a pre-processing unit adapted to execute pre-processing, which is to be executed before the connector is detached, in a case where the first operation has been detected; a release unit adapted to release said lock mechanism in response to completion of pre-processing, a connection control unit adapted to execute connection processing, which includes communication start processing for starting communication with the external apparatus, when connection of the cable to said cable connector unit has been detected, wherein the connection control unit restarts communication with the external apparatus via the cable in a case where detaching of the cable has not been performed in a predetermined period following execution of pre-processing, and wherein the pre-processing includes communication termination processing for terminating the supply of power to the cable where, if the cable is subsequently reinserted, then the cable's reinsertion is detected and the power supply resumes.