Patent ID: 6899277

Claim:
An electronic device having a contact-type interface and a non-contact-type interface as a communication interface for communication with an external device, said electronic device comprising: a deciding unit operable to decide on a communication interface that follows communication conditions concerning communication with the external device, said communication conditions including conditions concerning communication data communicated with the external device, said conditions concerning communication data designating the communication interface used for communication with the external device said contact-type interface in case said communication data is data to be classified and designating a communication interface to be used for communication with the external device for every command communicated with the external device, a judging unit operable to judge whether to switch the communication interface between the contact-type interface and the non-contact-type interface on the basis of the decision of said deciding unit, and a switching unit operable to switch the communication interface used for communication with the external device in case said judging unit judges that the communication interface used for communication with the external device should be switched, and wherein said conditions concerning communication data are stipulated for every command with regard to the case of receiving the command from the external device and the case of sending the response.