Patent ID: 8918548

Claim:
An accessory, adapted for being connected with an electronic device and enabling the electronic device to identify a type of the accessory, wherein the electronic device comprises a housing, a processor and an active sensing element, the processor and the active sensing element are disposed in the housing, and the active sensing element is electrically connected with the processor, the accessory comprising: a body, comprising a fixing portion and a movable portion, wherein the fixing portion is connected with the movable portion which is movable relative to the fixing portion, the electronic device is adapted for being installed in the fixing portion; and a passive sensing element, disposed on the body and comprising a fixed sensing portion and a movable sensing portion, wherein the fixed sensing portion is located on the fixing portion and comprising a sensing pattern, the movable sensing portion is located on the movable portion, when the accessory is connected with the electronic device, the processor identifies the type of the accessory according to the sensing pattern of the passive sensing element through the active sensing element detecting the sensing pattern of the passive sensing element and starts an operation mode corresponding to the accessory according to the type of the accessory, and the active sensing element generates a movable signal by detecting that the movable sensing portion moves relative to the active sensing element.