Patent ID: 8538494
Filing Date: 2013-09-17
Classification: H04M

Abstract:
1. A mobile phone, comprising: a universal serial bus (USB) interface; a discharge circuit and a charge circuit; a switch circuit comprising a switch chip and an exclusive-OR (XOR) chip, wherein the switch chip switches a channel to connect to the discharge circuit when the voltage of an input terminal of the switch chip is at a high level, and switches the channel to connect to the charge circuit when the voltage of an input terminal of the switch chip is at a low level; a storage system and at least one processor; and one or more programs stored in the storage system and executed by the at least one processor, the one or more programs comprising: a detection module that detects whether a mobile device is connected to the USB interface using a USB cable; an acquisition module that acquires a selection of the mobile phone as a master device or a slave device; a control module that sets voltages of an input terminal of the XOR chip, input terminal of the switch chip, and a control pin of the USB interface as the high level when the mobile phone is set as the master device, and charges the mobile device by discharging a battery of the mobile phone to the mobile device using the discharge circuit; or the control module sets the voltages of the input terminal of the XOR chip, the input terminal of the switch chip, and the control pin of the USB interface as the low level when the mobile phone is set as the slave device, and charges the battery of the mobile phone using the charge circuit by discharging the mobile device to the mobile phone.