Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, an object of the present invention is to provide a mobile terminal, a self-charging method and a storage device, which are capable of solving the problems that the prior art cannot solve the problems of limited battery capacity and insufficient cruising ability, and at the same time, the use of the mobile terminal by a user cannot be guaranteed not to be affected.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a mobile terminal, comprising: the mobile terminal comprises a mobile terminal body, a first battery and a second battery, wherein the mobile terminal body is provided with a battery jar and accommodates the first battery through the battery jar; wherein the mobile terminal further comprises: an integral charging device, the integral charging device comprising: the mobile terminal comprises a device body, wherein the device body is a rear cover covering the rear end face of the mobile terminal body, the rear cover is provided with a second battery, the second battery is used for storing electricity after the mobile terminal is connected to an external power supply, and the second battery discharges to the first battery when the first battery is insufficient in electric quantity and is not connected with the external power supply.
Preferably, the mobile terminal, wherein the mobile terminal body is provided with a plurality of first metal contacts, the rear cover is adapted to the plurality of first metal contacts and is provided with a plurality of second metal contacts, the first metal contacts are electrically connected with the first battery, and the second metal contacts are electrically connected with the second battery.
Preferably, the mobile terminal is provided with a control switch, and the control switch is used for controlling the integrated charging device to be turned on and off; the rear cover is provided with a switch through hole for adapting to the control switch.
Preferably, the mobile terminal is provided with a micro-program controller, the micro-program controller is provided with a charging management system, and the charging management system is used for detecting and controlling the level of the switch port at regular time and eliminating jitter in a counting mode.
Preferably, the mobile terminal, wherein the micro-program controller is provided with an analog-to-digital converter, and the analog-to-digital converter is used for detecting the second battery capacity; the charging management system is also used for displaying the electric quantity detected by the analog-to-digital converter on a display screen of the mobile terminal.
Preferably, the mobile terminal, wherein the analog-to-digital converter is further configured to detect a second battery temperature and current; the charging management system is further used for controlling the integrated charging device to shut down when the current detected by the analog-to-digital converter exceeds a first threshold value, or the detected temperature is greater than a second threshold value or less than a third threshold value.
Preferably, the mobile terminal, wherein the charging management system is further configured to detect whether an external power source is connected to the mobile terminal.
Preferably, the mobile terminal, wherein the charge management system is provided with a charge thread and a discharge thread, the charge thread is used for storing electricity for the second battery, and the discharge thread is used for controlling the second battery to supply electricity to the first battery.
A self-charging method of the mobile terminal as described above, wherein the self-charging method comprises:
step A: the charging management system runs in the microprogram controller;
and B: the charging management system detects the level of the port of the control switch at regular time, judges whether the level of the port of the control switch changes or not, and executes the step C if the level of the port of the control switch changes;
and C: the charging management system controls the integrated charging device to be shut down or started up and executes the step D, and jitter is eliminated in a counting mode;
step D: the second battery stores electricity after the mobile terminal is connected to the external power supply, and discharges electricity to the first battery when the first battery is insufficient in electricity and is not connected with the external power supply.
A storage device, wherein the storage device stores a computer program executable to implement the self-charging method as claimed in claim 9.
Compared with the prior art, the mobile terminal provided by the invention has the advantages that the rear cover is taken as the device body of the integrated charging device, the second battery is arranged on the rear cover and used for storing electricity after the mobile terminal is connected to an external power supply, and the electricity is discharged to the first battery when the first battery is insufficient in electricity and is not connected to the external power supply. The mobile terminal integrates the functions of the traditional charger and the mobile terminal, thereby not only improving the endurance of the mobile terminal, but also ensuring the portability of the mobile terminal in the power supply state of the second battery, and effectively solving the problems that the prior art cannot solve the problems of limited battery capacity and insufficient endurance, and simultaneously ensuring that the use of a user is not influenced.
Detailed Description
The invention provides a mobile terminal, a self-charging method and a storage device, and in order to make the objects, technical schemes and advantages of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic structural diagram of a mobile terminal according to a preferred embodiment of the invention.
As shown in fig. 1, the mobile terminal provided by the present invention includes amobile terminal body 100, which is a body of a conventional mobile terminal, and afirst battery 101, which is a battery, and further includes an integratedcharging device 200 that replaces a rear cover function of the conventional mobile terminal, where the integratedcharging device 200 uses the rear cover as a device body thereof, and adds a second battery and other components to make the integrated charging device have a conventional power storage and discharge function of a charger on the basis of ensuring that the appearance and structure of the conventional mobile terminal are not changed.
It is understood that the specific location of the second battery does not cause the integrated charging device to be unable to be implemented, and therefore, the specific location of the second battery is not limited in the present invention.
The integrated charging device is equivalent to a traditional charger, and the principle of electricity storage and discharge of the integrated charging device is the same as that of the charger. Such as: boosting and discharging: because the voltage of the lithium battery (namely the first battery) used by the mobile terminal and the voltage of the second battery are in the same range, and the lithium battery and the second battery can not be charged at the same potential, a boosting system is needed when the integrated charging device outputs electric energy outwards, and the voltage of the lithium battery of 3.4V-4.4V is boosted to 5V, so that the mobile phone can be charged. Software controls a charger IC (integrated charging device circuit), enables an OTG (On-The-GO) function and realizes 5V output.
Charging: the principle is the same as charging the mobile terminal, and the mobile terminal preferably directly gets electricity from a charging port of the mobile phone, and the detailed structure is detailed later. The mobile terminal is connected to a 5V USB computer interface or a USB charger, and the integrated charging device can be charged. When detecting that the usb mouth has 5V voltage, enable the inside charge management system of integral type charging device, charge management system can be according to the voltage of lithium electricity, charging processes such as automatically regulated preliminary filling, constant current, constant voltage.
The second battery can be charged in various ways, and the invention preferably uses metal contacts to contact and electrically connect, and the principle is similar to that of a metal sheet on the first battery and a metal elastic sheet attached to the battery groove. In specific implementation, the mobile terminal body is provided with a plurality offirst metal contacts 300, the rear cover is provided with a plurality ofsecond metal contacts 400 adapted to the plurality of first metal contacts, thefirst metal contacts 300 are electrically connected to thefirst battery 101, and thesecond metal contacts 400 are electrically connected to the second battery (not shown in the figure).
Specifically, with the POGO pin design, thefirst metal contact 300 and thesecond metal contact 400 after a plurality of contacts enable DET 1: interrupt detection and ID1 jointly identify PowerCover access and pull-out; v _ OUT: boosting the voltage for 5V and outputting; GND _ IN: a ground wire; ID 1: interrupt detection and DET1 collectively recognize the access and pull-out of PowerCover; v _ IN: and (4) charging input.
Certainly, the detachable body can be connected by using an internal connecting wire, the scheme is suitable for the all-in-one machine, the detachable body can be connected by using a socket instead, and the like, but compared with the mode of metal contact electric connection, the two connection modes have the solid line exposed between the mobile terminal body and the rear cover, so that the attractiveness and the connection reliability are reduced.
In a further preferred embodiment of the present invention, the mobile terminal body is provided with a control switch, and the control switch is used for controlling the integrated charging device to be turned on and off; the back cover is provided with a switch through hole.
The control switch can adopt a long-press on-off mode, and can reduce the misoperation rate compared with a short press; on the basis, in order to further reduce the misoperation rate, the control switch can be arranged to not protrude out of the rear cover, namely the end face of the top end of the control switch does not exceed the outer side face of the rear cover.
Alternatively, the control switch is arranged not to protrude out of the rear cover, so that the use mode of short-press switching on and off can be selected for the control switch under the condition that the misoperation rate is reduced, and the use convenience is improved.
In a further preferred embodiment of the present invention, the mobile terminal is provided with a micro-program controller, i.e. MCU, and the micro-program controller is installed with a charging management system for timing detection of the control switch port level and jitter elimination in a counting manner.
The switch used by the common key is a mechanical elastic switch, when a mechanical contact is opened and closed, one key switch cannot be immediately and stably switched on when the mechanical contact is closed, and cannot be switched off at a stroke when the mechanical contact is opened. Therefore, a series of shakes are generated at the closing and opening moments, and the key shake elimination is taken as a measure for avoiding the shake.
As described above, the control switch is used to control the integrated charging device to be turned on or turned off, and it can be understood that the charging management system detects the level of the port of the control switch at regular time in order to determine whether the control switch is pressed, a scanning key detection method is adopted, and detection is preferably performed once in 1ms, so that the MCU reads the level of the port of the key (i.e., the control switch) once every 1ms, so as to ensure that the control switch can be detected by the charging management system in time after being pressed, and jitter is eliminated.
In specific implementation, the charging management system includes: a task main thread and a plurality of sub-threads with different functions.
One of the plurality of branch threads is an electric quantity display thread and is used for displaying the electric quantity of at least one battery on the display screen, in order to match with the electric quantity display thread, the mobile terminal is provided with an analog-to-digital converter (ADC), the ADC preferably has the function of detecting the electric quantity of a second battery, namely, the electric quantity display thread is provided with at least one electric quantity display thread and is used for displaying the electric quantity of the second battery on the display screen of the mobile terminal.
In a preferred extended embodiment, the number of the electric quantity display threads is two, and the two electric quantity display threads are respectively used for displaying the electric quantity of the first battery and the electric quantity of the second battery on a display screen of the mobile terminal; in order to match with the two electric quantity display threads, the number of the analog-to-digital converters is two, or one analog-to-digital converter is arranged, and the analog-to-digital converters can detect the electric quantities of the first battery and the second battery. It should be noted that the detection of the battery level by the adc is preferably performed by a charge management system.
In another extended embodiment, the analog-to-digital converter can also detect the temperature of the battery and is controlled by the charging management system. The adc preferably detects at least the second battery temperature, in a manner similar to the battery power display. And detecting the temperature of the battery, namely ensuring that the second battery is not over-temperature, and in order to realize the purpose, setting a branch thread for controlling the integrated charging device to shut down when the temperature of the second battery is greater than a second threshold value or less than a third threshold value. The second threshold value and the third threshold value are set in the charge management system in advance, the second threshold value is preferably 60 °, and the second threshold value is preferably-10 °.
In another embodiment, the adc may further detect a current released by or flowing to the second battery, and the current is used to ensure that the second battery does not overflow, and the purpose is achieved directly by using a branch thread, where the branch thread is used to control the integrated charging device to shut down when the current detected by the adc exceeds a first threshold, and the first threshold is preferably 1A. It should be noted that the branch thread and the branch thread for over-temperature protection may be selected as the same, that is, an over-current over-temperature protection thread.
In a further preferred embodiment of the present invention, the charge management system is provided with a charge thread and a discharge thread, and charges the second battery through the charge thread, and controls the second battery to supply power to the first battery through the discharge thread.
To sum up, the several branch processes include: at least one of a battery power detection thread, a key detection thread and an overcurrent detection thread, and a charging thread and a discharging thread.
Besides the threads, the branch thread can also comprise an external power supply detection thread for detecting whether an external power supply is accessed.
The threads are asynchronous, as opposed to synchronous, in that asynchronous processing does not block the current thread waiting for processing to complete, but allows subsequent operations until other threads are ready to complete, and call back to notify the thread.
It will be understood that, between a plurality of asynchronous threads, there should be a jump processing thread which adapts the plurality of threads to have different functions: 1. detecting whether an external power supply is connected, and charging the second battery under the condition that the judgment result is yes; and discharging the second battery if the judgment result is negative. 2. And detecting whether the control switch is pressed down, and under the condition that the judgment result is yes, either executing shutdown of the integrated charging device or executing startup discharge of the integrated charging device, and displaying the electric quantity of the integrated charging device after the startup discharge. 3. And after the second battery is detected to be overcurrent, controlling the integrated charging device to shut down. A plurality of functions of the asynchronous thread can coexist and do not interfere with each other, and can be regarded as a plurality of asynchronous sub-threads; it is also possible to adapt the allocation thread to set only 1 or two of them.
As shown in fig. 2, a self-charging method of a mobile terminal according to a preferred embodiment of the present invention is characterized in that the self-charging method includes:
s100: the charging management system runs in the microprogram controller;
s200: the charging management system detects the level of the port of the control switch at regular time, judges whether the level of the port of the control switch changes or not, and executes the step S300 if the level of the port of the control switch changes;
s300: the charging management system controls the integrated charging device to be shut down or started up and executes S400, and jitter is eliminated in a counting mode;
s400: the second battery stores electricity after the mobile terminal is connected to the external power supply, and discharges electricity to the first battery when the first battery is insufficient in electricity and is not connected with the external power supply.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.