ELECTRONIC DEVICE CAPABLE OF TESTING USB CABLE AND METHOD FOR TESTING USB CABLE
First Claim
1. An electronic device comprising:
- a battery being charged by a charger via a USB cable; and
a processor to execute a plurality of modules;
wherein the plurality of modules comprises;
a setting module configured to determine at least two different values of charging currents;
a signal generating module configured to generate a first control signal according to the determined values of charging currents, and send the first control signal to the charger via the USB cable, thus informing the charger to respectively charge the battery by charging currents with the determined values;
a detecting module configured to detect values of at least two voltages output to the battery after the signal generating module sends the first control signal to the charger;
an analyzing module configured to calculate a variation degree between the detected values of voltages, and compare the calculated variation degree with a preset variation degree; and
a prompting module configured to generate a first type of message according to a compared result between the calculated variation degree and the preset variation degree, to prompt a user whether or not the USB cable is suitable for connecting the charger to the battery to deliver electrical power.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure provides a method for testing a USB cable applied in an electronic device. The electronic device includes a battery charged by a charger via the USB cable. The method can include determining at least two different values of charging currents. The method can further include generating a first control signal according to the determined values of charging currents. Sending the first control signal to the charger via the USB cable, to inform the charger to respectively charge the battery by charging currents with the determined values. Detecting values of at least two voltages output to the battery. Comparing a calculated variation degree between the detected values of voltages with a preset variation degree. Generating a first type of message according to a compared result between the calculated variation degree and the preset variation degree.
15 Citations
10 Claims
-
1. An electronic device comprising:
-
a battery being charged by a charger via a USB cable; and a processor to execute a plurality of modules; wherein the plurality of modules comprises; a setting module configured to determine at least two different values of charging currents; a signal generating module configured to generate a first control signal according to the determined values of charging currents, and send the first control signal to the charger via the USB cable, thus informing the charger to respectively charge the battery by charging currents with the determined values; a detecting module configured to detect values of at least two voltages output to the battery after the signal generating module sends the first control signal to the charger; an analyzing module configured to calculate a variation degree between the detected values of voltages, and compare the calculated variation degree with a preset variation degree; and a prompting module configured to generate a first type of message according to a compared result between the calculated variation degree and the preset variation degree, to prompt a user whether or not the USB cable is suitable for connecting the charger to the battery to deliver electrical power. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for testing a USB cable applied in an electronic device, the electronic device comprising a battery charged by a charger via the USB cable, the method comprising:
-
determining at least two different values of charging currents; generating a first control signal according to the determined values of charging currents; sending the first control signal to the charger via the USB cable, thus informing the charger to respectively charge the battery by charging currents with the determined values; detecting values of at least two voltages output to the battery; calculating a variation degree between the detected values of voltages; comparing the calculated variation degree with a preset variation degree; and generating a first type of message according to a compared result between the calculated variation degree and the preset variation degree, to prompt a user whether or not the USB cable is suitable for connecting the charger to the battery to deliver electrical power. - View Dependent Claims (8, 9, 10)
-
Specification