Patent ID: 8016600

Claim:
An electronic device capable of electrically connecting with a power supply via a power adaptor, the power adaptor comprising a power source connector and a first magnetic body, the first magnetic body being arranged at the power source connector, the electronic device comprising: a housing; a device charging connector arranged at the housing, the device charging connector capable of being mated with the power source connector to establish an electrical connection therebetween; a second magnetic body arranged at the housing; an electricity storing unit connected to the device charging connector, the electricity storing unit being configured to store electricity provided by the power supply; a detecting unit configured to detect whether the electricity storing unit is fully charged and generating a setting signal when the electricity storing unit is fully charged; and a setting unit configured to set a direction of magnetic field of the second magnetic body in response to the setting signal such that a repelling force is generated between the first magnetic body and the second magnetic body, thus the electrical connection between the power source connector and the device charging connector is disconnected; wherein the housing comprises a bottom board and a sidewall perpendicular to the bottom board, the sidewall defines a rectangular first opening, the device charging connector is received in the first opening and is fastened on the sidewall, the electronic device further comprises a fixing board parallel to the sidewall, the second magnetic body is arranged on the fixing board at the side facing the sidewall; wherein the sidewall defines a rectangular second opening communicating with the first opening, and a width of the first opening is larger than that of the second opening, the power source connector comprises a handle member, a plug member connected to the handle member, and a transmitting member; the transmitting member includes a base sheet, two rails parallel to the base sheet, and two connecting portions connect between the base sheet and the two rails correspondingly; when the power source connector is electrically connected with the device charging connector, the base sheet is received in the second opening, the two rails are received in the first opening; the device charging connector is disposed between the two rails; the first magnetic body is fastened on one end of the transmitting member, another end of the transmitting member away from the first magnetic body is in contact with the handle member.