The invention discloses a method and
system for setting the charging current in
USB data transmission of a mobile terminal. The method includes the following steps that first, the mobile terminal is connected with the charging current through a
USB interface, and the number of changes of difference between the
voltage of a D+ pin and the
voltage of a D- pin of the
USB interface in a preset period of time is acquired; second, a charging current value corresponding to the acquired number of changes of difference between the
voltage of the D+ pin and the voltage of the D- pin of the USB interface is searched for in a preset current corresponding table; third, the charging current is reset according to the found charging current value. According to the method and
system, by acquiring the number of changes of difference between the voltages of the USB pins in the
data transmission process, the charging current in the
data transmission process is adjusted according to the preset current corresponding table, so that the problem that when the mobile terminal performs USB data transmission, data transmission fails because of unstable voltage is avoided, and stable data transmission is guaranteed while the mobile terminal is charged through the USB.