CN107589820B - Mobile terminal, current setting method thereof, and computer-readable storage medium - Google Patents
Mobile terminal, current setting method thereof, and computer-readable storage medium Download PDFInfo
- Publication number
- CN107589820B CN107589820B CN201710816817.XA CN201710816817A CN107589820B CN 107589820 B CN107589820 B CN 107589820B CN 201710816817 A CN201710816817 A CN 201710816817A CN 107589820 B CN107589820 B CN 107589820B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- current value
- upper computer
- setting
- battery
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Telephone Function (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a current setting method of a mobile terminal, which comprises the following steps: before the mobile terminal downloads the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value; after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy; wherein the first current value is greater than the second current value. The invention also discloses a mobile terminal and a computer readable storage medium. By the method, the mobile terminal can be guaranteed to burn the firmware smoothly in the development and test stage.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a mobile terminal, a current setting method thereof, and a computer-readable storage medium.
Background
Mobile terminals such as smart phones are becoming necessities in life of people, functions of the mobile terminals are becoming diversified, and the mobile terminals generally need to be developed and tested before leaving factories.
At present, in a development test stage, the power supply current from an upper computer is often insufficient to complete firmware downloading, and in order to avoid the inconvenience caused by the mode, the situation that a simulated battery is in place is downloaded in a production line downloading mode. In the development process, a program-controlled power supply must be added for power supply, and the analog battery can be successfully downloaded in place, so that great inconvenience is brought to development and debugging.
Disclosure of Invention
The embodiment of the invention provides a mobile terminal, a current setting method thereof and a computer readable storage medium, which can ensure that firmware burning of the mobile terminal is smoothly carried out in a development and test stage.
The embodiment of the invention adopts a technical scheme that: provided is a current setting method of a mobile terminal, the method including: before the mobile terminal downloads the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value; after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy; wherein the first current value is greater than the second current value.
The embodiment of the invention adopts another technical scheme that: there is provided a mobile terminal including: the mobile terminal comprises a first setting module, a second setting module and a control module, wherein the first setting module is used for setting the power supply current provided for the mobile terminal by the upper computer as a first current value before the mobile terminal downloads the firmware from the upper computer; the second setting module is used for setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy after the mobile terminal finishes downloading the firmware from the upper computer; wherein the first current value is greater than the second current value.
The embodiment of the invention adopts another technical scheme that: there is provided a mobile terminal comprising a processor and a memory coupled to the processor for storing a computer program, the processor being adapted to invoke the computer program to perform the above method.
The embodiment of the invention adopts another technical scheme that: there is provided a computer-readable storage medium storing a computer program executable to implement the above method.
The invention has the beneficial effects that: the embodiment of the invention sets the power supply current provided by the upper computer to the mobile terminal as a first current value before the mobile terminal downloads the firmware from the upper computer; after the firmware is downloaded, setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy; the first current value is larger than the second current value, so that the mobile terminal can be ensured to burn firmware smoothly in a development and test stage.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a current setting method of a mobile terminal according to the present invention;
fig. 2 is a flowchart illustrating a current setting method of a mobile terminal according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a current setting method of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a fourth embodiment of a current setting method of a mobile terminal according to the present invention;
FIG. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic hardware configuration diagram of a second embodiment of the mobile terminal of the present invention;
fig. 7 is a schematic hardware configuration diagram of a mobile terminal according to a second embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first", "second", and the like in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The power management chip of the mobile terminal such as the smart phone can integrate a battery in-place detection function, after the mobile terminal is connected with the charging device, when the mobile terminal detects that the battery is in place, the power management chip controls the charging device to supply power to the mobile terminal to a first current value, and when the mobile terminal detects that the battery is not in place, the power management chip controls the charging device to supply power to the mobile terminal to a second current value, wherein the first current value is larger than the second current value.
The mobile terminal comprises a terminal main body and a battery, wherein the battery is in place, namely the battery is connected with the terminal main body, and the battery is not in place, namely the battery is not connected with the terminal main body.
Through the mode, the charging equipment can supply power to the mobile terminal by using smaller current when the battery is not in place, and the mobile terminal is supplied by using larger current when the battery is in place, so that the safety of a user when the user uses the mobile terminal can be ensured.
In a development and test stage of the mobile terminal, for example, when a main board of the mobile terminal is tested, a battery of the mobile terminal cannot be connected with a terminal main body, that is, the battery is usually in a state of not being in place, however, a power management chip on the main board still can detect whether the battery is in place, so that the power management chip can detect that the battery is not in place in the development and test stage, when a firmware is downloaded by a main board connected with an upper computer, the current for supplying power to the main board by the upper computer is set to be a second current value, and the relatively small second current value is not enough for the main board to complete the firmware downloading from the upper computer, which generally causes downloading failure, and brings great inconvenience to development and test work.
According to the embodiment of the invention, the power supply current provided by the upper computer to the mobile terminal is set as the first current value before the mobile terminal downloads the firmware from the upper computer, so that the smooth burning of the firmware in the development and test stage of the mobile terminal can be ensured.
According to the embodiment of the invention, after the mobile terminal finishes downloading the firmware from the upper computer, the power supply current provided by the upper computer to the mobile terminal is set to be the first current value or the second current value according to the second judgment strategy, so that the use safety of the mobile terminal can be ensured.
See in particular the detailed description in the examples below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a current setting method of a mobile terminal according to a first embodiment of the present invention. In this embodiment, the current setting method of the mobile terminal may include the steps of:
step 11: before the mobile terminal downloads the firmware from the upper computer, the power supply current provided by the upper computer to the mobile terminal is set to be a first current value.
In step 11, for example, in a development and test phase of the mobile terminal, a main board of the mobile terminal establishes a power supply connection and a communication connection with the upper computer. After the power supply connection and the communication connection are established, in a time period before the downloading of the firmware is started, the current for supplying power to the mobile terminal by the upper computer is set to be a first current value.
The upper computer may be a PC (personal computer). The main board of the mobile terminal and the upper computer may be connected through a USB (Universal Serial Bus) interface for establishing power supply connection and communication connection. After the main board establishes the USB connection with the upper computer, the first boot program may be triggered to run, and then the first boot program calls the second boot program, and then the second boot program is executed to execute the downloading of the firmware from the upper computer.
The step of setting the power supply current provided by the upper computer to the mobile terminal to the first current value may be completed during the execution of the first boot program.
Alternatively, a step of setting the supply current provided by the upper computer to the mobile terminal to the first current value may be added to the first boot program by modifying the first boot program.
The first Boot program may be a PBL (Primary Boot Loader) and the second Boot program may be a firmware download Boot program.
Optionally, the setting of the power supply current provided by the upper computer to the mobile terminal as the first current value may specifically be: and judging whether the battery of the mobile terminal is in place or not, and setting the power supply current as a first current value when the battery is judged to be in place or not.
Optionally, determining whether the battery is in place may include: judging the state value of a battery state bit pin of a power management chip of the mobile terminal; if the state value is the first state value, the battery is in place; and if the state value is the second state value, the battery is not in place.
For example, a pull-down resistor is connected to a status bit detection pin of the power management chip, i.e., the status bit detection pin is grounded through the pull-down resistor.
When the battery is in place, the state bit pin of the battery is connected with the state bit detection pin, and the state value of the state bit detection pin is pulled down to a low level at the moment, namely, if the detected state value is the low level, the battery is in place.
When the battery is not in place, the state bit pin of the battery is suspended, and the state value of the state bit detection pin is at a high level at the moment, namely if the state value is detected to be at the high level, the battery is not in place.
The above is merely an example, and in other embodiments, the design of the hardware circuit may be changed to indicate that the battery is not in place when a low level is detected and to indicate that the battery is in place when a high level is detected.
In the beginning, namely after the power supply connection and the communication connection are established between the mobile terminal and the upper computer and in a time period before the firmware starts to be downloaded, no matter whether the battery is in place or not is detected by the status bit detection pin of the power management chip, the power management chip sets the power supply current of the upper computer serving as the mobile terminal to be the first current value.
Step 12: after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided for the mobile terminal by the upper computer to be a first current value or a second current value according to a preset judgment strategy, wherein the first current value is larger than the second current value.
In step 12, as mentioned earlier, for example, after the execution of the second boot program is finished, the power supply current provided by the upper computer to the mobile terminal is set to the first current value or the second current value according to the preset judgment policy.
Setting the supply current provided by the upper computer to the mobile terminal as the first current value or the second current value according to the preset judgment strategy may specifically be: judging whether a battery of the mobile terminal is in place; when the battery is judged to be in place, setting the power supply current as a first current value; and when the battery is judged not to be in place, setting the power supply current to be a second current value. For how to judge whether the battery is in place, see the above description, and it is not repeated here.
Referring to fig. 2, fig. 2 is a flowchart illustrating a current setting method of a mobile terminal according to a second embodiment of the present invention. In this embodiment, the current setting method of the mobile terminal may include the steps of:
step 21: and establishing communication and power supply connection with the upper computer.
In step 21, the upper computer may be a PC terminal, and may be a motherboard of the mobile terminal that establishes a USB connection with the PC terminal through a USB interface.
During connection, on one hand, the PC end can supply power for a mainboard of the mobile terminal through a VBUS pin of the USB interface, and on the other hand, the PC end can communicate with the mainboard through a data line positive electrode pin D + and a data line negative electrode pin D-of the USB interface in the subsequent downloading process.
Step 22: and setting the power supply current provided by the upper computer to the mobile terminal as a first current value while running the first bootstrap program.
In step 22, when the USB plug is plugged into the motherboard, a first boot program of the motherboard is triggered to run, where the first boot program may be a master boot program, as described above.
The power management chip is powered on and initialized through the operation of the first bootstrap program, and then hardware related to the downloaded firmware is initialized and powered on, so that the subsequent firmware downloading process is ensured to be carried out smoothly.
For example, the USB communication function is initialized, the memory is initialized and powered on, and a DDR (Double Data Rate) synchronous dynamic random access memory (DDR) is initialized and powered on by running the first boot program, so that the initialization of the USB communication function, the storage function of the memory, and the like required in the downloading process is completed, and the firmware can be downloaded to the memory through USB communication in the subsequent firmware downloading process.
And setting the power supply current provided by the upper computer to the mobile terminal as a first current value while the first boot program performs initialization and power-on of hardware related to downloading of firmware.
Optionally, setting the power supply current provided by the upper computer to the mobile terminal to the first current value may specifically be: and judging whether the battery of the mobile terminal is in place or not, and setting the power supply current as a first current value when the battery is judged to be in place or not.
Optionally, determining whether the battery is in place may include: judging the state value of a battery state bit pin of a power management chip of the mobile terminal; if the state value is the first state value, the battery is in place; and if the state value is the second state value, the battery is not in place.
For example, a pull-down resistor is connected to a status bit detection pin of the power management chip, i.e., the status bit detection pin is grounded through the pull-down resistor.
When the battery is in place, the state bit pin of the battery is connected with the state bit detection pin, and the state value of the state bit detection pin is pulled down to a low level at the moment, namely, if the detected state value is the low level, the battery is in place.
When the battery is not in place, the state bit pin of the battery is suspended, and the state value of the state bit detection pin is at a high level at the moment, namely if the state value is detected to be at the high level, the battery is not in place.
The above is merely an example, and in other embodiments, the design of the hardware circuit may be changed to indicate that the battery is not in place when a low level is detected and to indicate that the battery is in place when a high level is detected.
Step 23: and calling the second bootstrap program through the first bootstrap program to execute the downloading of the firmware from the upper computer.
In step 23, as mentioned above, after the first boot program completes initialization and power-on of the hardware related to downloading the firmware, the first boot program calls a second boot program, which may be a firmware downloading boot program, and the downloading of the firmware from the PC is completed by executing the firmware downloading boot program.
Step 24: after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided for the mobile terminal by the upper computer to be a first current value or a second current value according to a preset judgment strategy, wherein the first current value is larger than the second current value.
In step 24, as mentioned earlier, for example, after the execution of the second boot program is finished, the power supply current provided by the upper computer to the mobile terminal is set to the first current value or the second current value according to the preset judgment policy.
Setting the supply current provided by the upper computer to the mobile terminal as the first current value or the second current value according to the preset judgment strategy may specifically be: judging whether a battery of the mobile terminal is in place; when the battery is judged to be in place, setting the power supply current as a first current value; and when the battery is judged not to be in place, setting the power supply current to be a second current value.
After the second boot program is executed, a third boot program or other boot programs may be further executed, so as to complete power-on and initialization of each hardware (e.g., a baseband processing chip, an application processing chip, a radio frequency module, etc.) on the motherboard, start running the downloaded firmware after each boot program is executed, and perform each test of the motherboard.
Alternatively, the first current value may be 500mA and the second current value may be 100 mA.
In other embodiments, the current for supplying power to the mobile terminal by the upper computer may be set to the first current value in any time period within a time period before the start of downloading the firmware after the mobile terminal establishes the power supply connection and the communication connection with the upper computer, and is not limited to setting the current for supplying power to the mobile terminal by the upper computer to the first current value in the process of executing the first boot program, as long as the power supply current is set to the first current value before downloading the firmware, which is specifically referred to the description below.
Referring to fig. 3, fig. 3 is a flowchart illustrating a current setting method of a mobile terminal according to a third embodiment of the present invention. In this embodiment, the current setting method of the mobile terminal may include the steps of:
step 31: and establishing communication and power supply connection with the upper computer.
In step 31, the upper computer may be a PC terminal, and may be a motherboard of the mobile terminal that establishes a USB connection with the PC terminal through a USB interface.
During connection, on one hand, the PC end can supply power for a mainboard of the mobile terminal through a VBUS pin of the USB interface, and on the other hand, the PC end can communicate with the mainboard through a data line positive electrode pin D + and a data line negative electrode pin D-of the USB interface in the subsequent downloading process.
Step 32: when a first control instruction of the upper computer is received, the power supply current provided for the mobile terminal by the upper computer is set to be a first current value.
In step 32, as mentioned above, the tester may input the first control instruction to the upper computer before the motherboard downloads the firmware, the upper computer sends the first control instruction to the power management chip, and when the power management chip receives the first control instruction, the power management chip sets the supply current of the power management chip, which is the mobile terminal, to the first current value regardless of whether the power management chip determines that the potential on the battery state detection pin of the power management chip is a high level or a low level.
Step 33: and downloading the firmware from the upper computer.
Step 34: and when a second control instruction of the upper computer is received, setting the power supply current provided for the mobile terminal by the upper computer to be a first current value or a second current value according to a preset judgment strategy.
In step 34, as mentioned above, the tester may input a second control instruction to the upper computer after the motherboard finishes downloading the firmware, the upper computer sends the second control instruction to the power management chip, and the power management chip adopts a preset judgment policy when receiving the second control instruction, that is, when the power management chip judges that the potential on the battery state detection pin is a low level (the battery is in place), the power management chip sets the supply current of the upper computer as the power management chip to a first current value, and when the power management chip judges that the potential on the battery state detection pin is a high level (the battery is not in place), the power management chip sets the supply current of the upper computer as the power management chip to a second current value. Wherein the first current value is greater than the second current value.
Referring to fig. 4, fig. 4 is a flowchart illustrating a current setting method of a mobile terminal according to a fourth embodiment of the present invention. In this embodiment, the current setting method of the mobile terminal may include the steps of:
step 41: and establishing communication and power supply connection with the upper computer.
In step 41, the upper computer may be a PC terminal, and may be a motherboard of the mobile terminal that establishes a USB connection with the PC terminal through a USB interface.
During connection, on one hand, the PC end can supply power for a mainboard of the mobile terminal through a VBUS pin of the USB interface, and on the other hand, the PC end can communicate with the mainboard through a data line positive electrode pin D + and a data line negative electrode pin D-of the USB interface in the subsequent downloading process.
Step 42: and powering on and initializing the power management chip.
In step 42, the power management chip is powered up in hardware and initialized in software.
Step 43: and setting the power supply current provided by the upper computer to the mobile terminal as a first current value.
In step 43, after the power-on and initialization of the power management chip are completed, before the power-on and initialization of the hardware related to the firmware download are performed, the power supply current of the power management chip, which is the upper computer, is set to the first current value no matter whether the power management chip determines that the potential on the battery state detection pin of the power management chip is the high level or the low level.
Step 44: and powering on and initializing hardware related to firmware downloading.
In step 44, the hardware associated with the firmware download is powered on and initialized. For example, the USB communication function is initialized, the memory is initialized and powered on, and a DDR (Double Data Rate) synchronous dynamic random access memory (DDR) is initialized and powered on by running the first boot program, so that the initialization of the USB communication function, the storage function of the memory, and the like required in the downloading process is completed, and the firmware can be downloaded to the memory through USB communication in the subsequent firmware downloading process.
Step 45: and downloading the firmware from the upper computer.
Step 46: and setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy.
In step 46, a preset judgment strategy is adopted, that is, when the power management chip judges that the potential on the battery state detection pin is low level, the power supply current of the upper computer serving as the power management chip is set to be a first current value, and when the power management chip judges that the potential on the battery state detection pin is high level, the power supply current of the upper computer serving as the power management chip is set to be a second current value. Wherein the first current value is greater than the second current value.
Referring to fig. 5, fig. 5 is a block diagram of a mobile terminal according to the present invention. In this embodiment, the mobile terminal 50 may include the following modules:
the first setting module 51 is configured to set a power supply current provided by the upper computer to the mobile terminal to a first current value before the mobile terminal downloads the firmware from the upper computer.
The second setting module 52 is configured to set the power supply current provided by the upper computer to the mobile terminal as the first current value or the second current value according to a preset judgment policy after the mobile terminal finishes downloading the firmware from the upper computer; wherein the first current value is greater than the second current value.
For specific descriptions of the steps executed by the modules, reference may be made to the related descriptions in any of the foregoing embodiments, and details are not described here again.
Referring to fig. 6, fig. 6 is a schematic hardware structure diagram of a mobile terminal according to a first embodiment of the present invention. In this embodiment, the mobile terminal 60 may include a processor 61 and a memory 62 connected to the processor 61.
The memory 62 may be used to store a computer program that the processor 61 may use to invoke to perform the method of any of the embodiments described above.
The processor 61 may specifically be a power management chip as described above. In other embodiments, the processor may also be another processor, which is not limited in this embodiment of the present invention.
Referring to fig. 7, fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to a second embodiment of the present invention. In this embodiment, the mobile terminal 900 includes an RF circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wifi module 970, a processor 980, a power supply 990, and the like. Wherein the RF circuit 910, the memory 920, the input unit 930, the display unit 940, the sensor 950, the audio circuit 960, and the wifi module 970 are respectively connected with the processor 980; the power supply 990 is used to supply power to the entire mobile terminal 900.
Specifically, the RF circuit 910 is used for transmitting and receiving signals; the memory 920 is used for storing data instruction information; the input unit 930 is used for inputting information, and may specifically include a touch panel 931 and other input devices 932 such as operation keys; the display unit 940 may include a display panel 941; the sensor 950 includes an optical sensor, a distance sensor, a temperature sensor, an infrared sensor, a laser sensor, etc. for detecting a user approach signal, a distance signal, a temperature of the mobile terminal 900, etc.; a speaker 961 and a microphone 962 are connected to the processor 980 through the audio circuit 960 for emitting and receiving sound signals; the wifi module 970 is then used for receiving and transmitting wifi signals.
The processor 980 is configured to set the supply current provided by the upper computer to the mobile terminal to a first current value before the mobile terminal downloads the firmware from the upper computer.
The processor 980 is further configured to set the power supply current provided by the upper computer to the mobile terminal to a first current value or a second current value according to a preset judgment strategy after the mobile terminal finishes downloading the firmware from the upper computer; wherein the first current value is greater than the second current value.
The specific content executed by each device may refer to the description in any one of the above embodiments, and is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Embodiments of the present invention also provide a computer-readable storage medium for storing a computer program, which can be executed by a processor to implement the method provided in the above embodiments. It is understood that the method executed by the computer program stored in the readable storage medium in this embodiment is similar to the method provided in the foregoing embodiments, and the principle and steps thereof are the same, and are not described herein again.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, which can store program codes.
The mobile terminal in any of the above embodiments of the present invention may be a smart phone, a wearable smart device, a tablet computer, a palm computer, a digital PDA, or other mobile terminals.
The embodiment of the invention sets the power supply current provided by the upper computer to the mobile terminal as a first current value before the mobile terminal downloads the firmware from the upper computer; after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy; the first current value is larger than the second current value, so that the mobile terminal can be ensured to burn firmware smoothly in a development and test stage.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A current setting method of a mobile terminal, the method comprising:
before the mobile terminal downloads firmware from an upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value;
after the mobile terminal finishes downloading the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy;
wherein the first current value is greater than the second current value;
the step of setting the charging current provided by the upper computer to the mobile terminal to be a first current value includes: judging whether a battery of the mobile terminal is in place or not, and setting the charging current as the first current value when the battery is judged to be in place or not;
the step of setting the charging current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy comprises the following steps: judging whether a battery of the mobile terminal is in place; when the battery is judged to be in position, setting the charging current to be the first current value; and when the battery is judged not to be positioned, setting the charging current to be the second current value.
2. The method of claim 1,
the judging whether the battery is in place comprises:
judging the state value of a battery state bit pin of a power management chip of the mobile terminal;
if the state value is a first state value, the battery is in place;
and if the state value is the second state value, the battery is not in place.
3. The method of claim 1,
before the mobile terminal downloads the firmware from the upper computer, setting the power supply current provided by the upper computer to the mobile terminal to be a first current value comprises:
establishing communication and power supply connection with the upper computer;
setting the power supply current provided by the upper computer to the mobile terminal as a first current value while running a first bootstrap program;
the method further comprises:
and calling a second boot program through the first boot program to execute the downloading of the firmware from the upper computer.
4. The method of claim 3,
after the downloading of the firmware is completed, setting the power supply current provided to the mobile terminal by the upper computer to be a first current value or a second current value according to a preset judgment strategy comprises:
and after the execution of the second bootstrap program is finished, setting the power supply current provided for the mobile terminal by the upper computer as a first current value or a second current value according to a preset judgment strategy.
5. The method of claim 4,
the first boot program is a main boot program, and the second boot program is a firmware downloading boot program.
6. The method of claim 1, wherein the first current value is 500mA and the second current value is 100 mA.
7. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a first setting module, a second setting module and a control module, wherein the first setting module is used for setting the power supply current provided for the mobile terminal by an upper computer to be a first current value before the mobile terminal downloads firmware from the upper computer;
the second setting module is used for setting the power supply current provided by the upper computer to the mobile terminal as a first current value or a second current value according to a preset judgment strategy after the mobile terminal finishes downloading the firmware from the upper computer;
wherein the first current value is greater than the second current value; the setting of the charging current provided by the upper computer to the mobile terminal to the first current value includes: judging whether a battery of the mobile terminal is in place or not, and setting the charging current as the first current value when the battery is judged to be in place or not;
the setting of the charging current provided by the upper computer to the mobile terminal as the first current value or the second current value according to the preset judgment strategy comprises: judging whether a battery of the mobile terminal is in place; when the battery is judged to be in position, setting the charging current to be the first current value; and when the battery is judged not to be positioned, setting the charging current to be the second current value.
8. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory connected to the processor, the memory being adapted to store a computer program, the processor being adapted to invoke the computer program to perform the method of any of claims 1-6.
9. A computer-readable storage medium for storing a computer program executable to implement the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816817.XA CN107589820B (en) | 2017-09-11 | 2017-09-11 | Mobile terminal, current setting method thereof, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816817.XA CN107589820B (en) | 2017-09-11 | 2017-09-11 | Mobile terminal, current setting method thereof, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107589820A CN107589820A (en) | 2018-01-16 |
CN107589820B true CN107589820B (en) | 2020-03-10 |
Family
ID=61052025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710816817.XA Active CN107589820B (en) | 2017-09-11 | 2017-09-11 | Mobile terminal, current setting method thereof, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107589820B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102507992A (en) * | 2011-10-18 | 2012-06-20 | 惠州Tcl移动通信有限公司 | Test line for testing charging current and downloaded data |
CN103545882A (en) * | 2013-10-11 | 2014-01-29 | 华为技术有限公司 | Battery in-situ test method and device and battery charge system |
CN104167789A (en) * | 2014-08-12 | 2014-11-26 | Tcl通讯(宁波)有限公司 | Method and system for setting charging current in USB data transmission of mobile terminal |
CN105811035A (en) * | 2016-04-27 | 2016-07-27 | Tcl移动通信科技(宁波)有限公司 | Method and system for adjusting current charged into battery of mobile terminal |
CN106991064A (en) * | 2017-03-22 | 2017-07-28 | 惠州Tcl移动通信有限公司 | A kind of automatic start brush machine method and system based on mobile terminal |
-
2017
- 2017-09-11 CN CN201710816817.XA patent/CN107589820B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102507992A (en) * | 2011-10-18 | 2012-06-20 | 惠州Tcl移动通信有限公司 | Test line for testing charging current and downloaded data |
CN103545882A (en) * | 2013-10-11 | 2014-01-29 | 华为技术有限公司 | Battery in-situ test method and device and battery charge system |
CN104167789A (en) * | 2014-08-12 | 2014-11-26 | Tcl通讯(宁波)有限公司 | Method and system for setting charging current in USB data transmission of mobile terminal |
CN105811035A (en) * | 2016-04-27 | 2016-07-27 | Tcl移动通信科技(宁波)有限公司 | Method and system for adjusting current charged into battery of mobile terminal |
CN106991064A (en) * | 2017-03-22 | 2017-07-28 | 惠州Tcl移动通信有限公司 | A kind of automatic start brush machine method and system based on mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107589820A (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI590041B (en) | Methods and apparatuses to wake computer systems from sleep states | |
CN111239617B (en) | Control method and device for charge and discharge test, storage medium and system | |
CN103327159A (en) | Low-battery prompting method and electronic equipment | |
CN108388451B (en) | Mobile terminal starting method and device and mobile terminal | |
CN108681514B (en) | Device detection method and device, storage medium and electronic device | |
CN111142711A (en) | Firmware configuration method and device, storage medium and mobile terminal | |
CN112672794A (en) | Game page display method and related product | |
CN106532876B (en) | Power supply control method and device and computer equipment | |
CN109413256B (en) | Contact person information processing method and device, storage medium and electronic equipment | |
CN106292989A (en) | A kind of information processing method and electronic equipment | |
CN111443803A (en) | Mode switching method, device, storage medium and mobile terminal | |
CN111399874A (en) | System upgrading method and device, storage medium and intelligent wearable device | |
CN105550005B (en) | Method for debugging and upgrading through USB port | |
CN111026456A (en) | Application management method and device, storage medium and electronic equipment | |
CN107608923B (en) | Test processing method and related product | |
CN103002436B (en) | Upgrade method and device of terminal device with android platform | |
CN107589820B (en) | Mobile terminal, current setting method thereof, and computer-readable storage medium | |
CN110109529B (en) | SD card power supply control method and device, storage medium and electronic equipment | |
CN107451067B (en) | Processing method for downloading test and related product | |
CN110620602B (en) | Reverse charging and data transmission sharing system, multiplexing data line and electronic device | |
CN107589819B (en) | Mobile terminal, current setting method thereof, and computer-readable storage medium | |
CN112486350B (en) | Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal | |
CN111083288B (en) | Screen control method and device, terminal equipment and storage medium | |
CN114594965A (en) | Application software installation method and device, terminal equipment and storage medium | |
CN113420283A (en) | Starting-up method and device of mobile terminal, storage medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |