CN112701758B - Charging current setting method, system and mobile terminal - Google Patents

Charging current setting method, system and mobile terminal Download PDF

Info

Publication number
CN112701758B
CN112701758B CN202110044869.6A CN202110044869A CN112701758B CN 112701758 B CN112701758 B CN 112701758B CN 202110044869 A CN202110044869 A CN 202110044869A CN 112701758 B CN112701758 B CN 112701758B
Authority
CN
China
Prior art keywords
charging current
mobile terminal
current setting
charger
effective
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
Application number
CN202110044869.6A
Other languages
Chinese (zh)
Other versions
CN112701758A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangye Power Supply Co Of State Grid Gansu Electric Power Co
Original Assignee
Zhangye Power Supply Co Of State Grid Gansu Electric Power Co
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhangye Power Supply Co Of State Grid Gansu Electric Power Co filed Critical Zhangye Power Supply Co Of State Grid Gansu Electric Power Co
Priority to CN202110044869.6A priority Critical patent/CN112701758B/en
Publication of CN112701758A publication Critical patent/CN112701758A/en
Application granted granted Critical
Publication of CN112701758B publication Critical patent/CN112701758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging current setting method, a charging current setting system and a mobile terminal, wherein the method comprises the following steps: the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal; when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger; and the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging. When the mobile terminal charges the battery, the final charging current is directly obtained without identifying success and then performing charging setting, and the charging is directly applied based on the logic operation result of the circuit, so that the charging efficiency is improved, the reliability of a charging wire and a charger is ensured, and the charging current is quickly set.

Description

Charging current setting method, system and mobile terminal
Technical Field
The present invention relates to the field of mobile terminal charging technologies, and in particular, to a charging current setting method, a charging current setting system, and a mobile terminal.
Background
The mobile terminal or mobile communication terminal refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even includes a vehicle-mounted computer. But in most cases refers to cell phones or smart phones with multiple application functions and tablet computers. With the development of networks and technologies toward increasingly broadband, the mobile communications industry will move toward the true mobile information age. On the other hand, with the rapid development of integrated circuit technology, the processing power of mobile terminals has been in possession of a great deal of processing power, and mobile terminals are changing from simple telephony tools to an integrated information processing platform. This also adds more room for development to the mobile terminal.
Mobile terminals have been developed as simple communication devices along with mobile communication for decades. Since 2007, intelligent induction of gene mutation of mobile terminals radically changes the traditional localization of terminals as mobile network terminals. The mobile intelligent terminal is almost changed into a key entrance and a main innovation platform of internet business between one moment, a novel media, electronic commerce and information service platform, and the most important hub of internet resources, mobile network resources and environment interaction resources, and an operating system and a processor chip of the mobile intelligent terminal even become strategic high points of the whole ICT industry nowadays. The subversion revolution induced by the mobile intelligent terminal opens the prologue of the development of the mobile internet industry and opens a new technical industry period. With the continuous development of the mobile intelligent terminal, the influence of the mobile intelligent terminal is more than that of a shoulder radio, a television and the Internet (PC), and the mobile intelligent terminal becomes a terminal product which is widely penetrated by the 4 th historical part of human beings, is rapidly popularized, has great influence and goes deep into the aspects of human society life.
At present, a mobile terminal (such as a smart phone) is arranged in a machine body by adopting a non-detachable battery, the functions of the mobile terminal are complex, the use frequency of a user is high, the operation of charging the battery is basically carried out every day, and in charging, a charging wire and a charger which are compliant are needed for pursuing a large charging current and a short charging time, otherwise, the charging process is easy to generate excessive heat, meanwhile, the problems of short circuit and the like are easy to generate, and finally, the mobile terminal is damaged or the service life of the battery is greatly reduced.
In the prior art, the mobile terminal is generally identified first, and then corresponding charging is configured after the identification is successful, which overcomes the problems by adding an identification step before charging, but at the same time, an identification step is added, so that the charging efficiency cannot be improved.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
The invention mainly aims to provide a charging current setting method, a charging current setting system and a mobile terminal, and aims to solve the problem that charging efficiency is reduced because a charger needs to be identified before charging and then charging configuration is carried out in the prior art.
In order to achieve the above object, the present invention provides a charging current setting method including the steps of:
the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal;
when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger;
and the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging.
Optionally, in the charging current setting method, the effective charging current token is a charging current sequence.
Optionally, the charging current setting method, wherein the effective charging current token includes a one-dimensional form and a multidimensional form.
Optionally, in the charging current setting method, when the effective charging current token is in a one-dimensional form, the effective charging current token is a first sequence composed of 0 and 1, the first sequence is composed of a plurality of first base sequences, and each first base sequence is composed of a plurality of 0 and 1;
when the effective charging current token is in a two-dimensional form, the effective charging current token is a second sequence formed by a series of X_S2, the second sequence is formed by a plurality of second basic sequences, and each second basic sequence is formed by a plurality of X_S2; wherein x_s2 is any one of 01, 11, 10 and 00;
when the effective charging current token is in a three-dimensional form, the effective charging current token is a third sequence formed by a series of X_S3, the third sequence is formed by a plurality of third basic sequences, and each third basic sequence is formed by a plurality of X_S3; wherein x_s3 is any one of 010, 110, 100, 000, 111, 011, 101, and 001;
when the effective charging current token is in a K-dimensional form, the effective charging current token is a Kth sequence formed by a series of X_SK, the Kth sequence is formed by a plurality of Kth basic sequences, and each Kth basic sequence is formed by a plurality of X_SK; where K is a positive integer greater than 3, and x_sk is any one of K0 to K1 to the power of 2K.
Optionally, the charging current setting method, wherein the charging current is set to a sequence of 0 and 1.
Optionally, in the charging current setting method, when the mobile terminal detects that a charger is connected, the mobile terminal obtains a charging current setting of the charger, and specifically includes:
a plurality of thresholds are predefined, wherein the thresholds are divided at preset intervals on the basis of voltage;
and when the mobile terminal detects that the voltage on a certain line of the charger fluctuates between the thresholds, obtaining the charging current setting of the charger based on the range divided by the thresholds and the specific value corresponding to each range.
Optionally, in the charging current setting method, after the mobile terminal performs a logic operation on the charging current setting and the effective charging current token, the mobile terminal generates a charging current to perform charging, and specifically includes:
the mobile terminal performs logic operation on the charging current setting and the effective charging current token, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and after the charging current setting and the effective charging current token are subjected to logic operation, a logic operation result is obtained, the logic operation result is generated into a final charging current, and the charger charges the mobile terminal by the charging current.
In addition, to achieve the above object, the present invention also provides a charging current setting system, wherein the charging current setting system includes:
the preset module is used for receiving a user operation instruction and storing an effective charging current token in the mobile terminal in advance;
the current acquisition module is used for acquiring charging current setting of the charger when the mobile terminal detects that the charger is connected;
and the charging operation module is used for generating charging current for charging after the charging current setting and the effective charging current token are subjected to logic operation.
In addition, to achieve the above object, the present invention also provides a mobile terminal, wherein the mobile terminal includes: the charging current setting device comprises a memory, a processor and a charging current setting program which is stored in the memory and can run on the processor, wherein the charging current setting program realizes the steps of the charging current setting method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium storing a charging current setting program which, when executed by a processor, implements the steps of the charging current setting method as described above.
The method comprises the steps that a mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal; when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger; and the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging. When the mobile terminal charges the battery, the final charging current is directly obtained without identifying success and then performing charging setting, and the charging is directly applied based on the logic operation result of the circuit, so that the charging efficiency is improved, the reliability of a charging wire and a charger is ensured, and the charging current is quickly set.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the charging current setting method of the present invention;
FIG. 2 is a flowchart of step S20 in a preferred embodiment of the charging current setting method of the present invention;
FIG. 3 is a flowchart of step S30 in a preferred embodiment of the charging current setting method of the present invention;
FIG. 4 is a schematic diagram of the charging current setting system according to the present invention;
FIG. 5 is a schematic diagram of an operating environment of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
At present, a mobile terminal (such as a smart phone) is arranged in a machine body by adopting a non-detachable battery, the functions of the mobile terminal are complex, the use frequency of a user is high, the operation of charging the battery is basically carried out every day, and in charging, a charging wire and a charger which are compliant are needed for pursuing a large charging current and a short charging time, otherwise, the charging process is easy to generate excessive heat, meanwhile, the problems of short circuit and the like are easy to generate, and finally, the mobile terminal is damaged or the service life of the battery is greatly reduced.
In the prior art, the mobile terminal is generally identified first, and then corresponding charging is configured after the identification is successful, which overcomes the problems by adding an identification step before charging, but at the same time, an identification step is added, so that the charging efficiency cannot be improved.
In order to overcome the drawbacks of the prior art, the charging current setting method according to the preferred embodiment of the present invention, as shown in fig. 1, includes the following steps:
step S10, the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal.
The charging current setting method is applied to the mobile terminal and is used for rapidly charging the battery according to the charging current setting. The effective charging current token is a charging current sequence, and comprises a one-dimensional form and a multi-dimensional form.
Specifically, when the effective charging current token is in a one-dimensional form, the effective charging current token is a first sequence consisting of 0 and 1, the first sequence consists of a plurality of first base sequences, and each first base sequence consists of a plurality of 0 and 1 in a string; when the effective charging current token is in a two-dimensional form, the effective charging current token is a second sequence formed by a series of X_S2, the second sequence is formed by a plurality of second basic sequences, and each second basic sequence is formed by a plurality of X_S2; wherein x_s2 is any one of 01, 11, 10 and 00; when the effective charging current token is in a three-dimensional form, the effective charging current token is a third sequence formed by a series of X_S3, the third sequence is formed by a plurality of third basic sequences, and each third basic sequence is formed by a plurality of X_S3; wherein x_s3 is any one of 010, 110, 100, 000, 111, 011, 101, and 001; when the effective charging current token is in a K-dimensional form, the effective charging current token is a Kth sequence formed by a series of X_SK, the Kth sequence is formed by a plurality of Kth basic sequences, and each Kth basic sequence is formed by a plurality of X_SK; where K is a positive integer greater than 3, and x_sk is any one of K0 to K1 to the power of 2K.
Further, the mobile terminal is charged through a charger with a USB interface, USB (Universal Serial BUS ) is a widely used interface, and mainly comprises four wires VBUS, D+, D-and GND, wherein VBUS is a power line, D+, D-is used for data communication, GND is a ground wire, the mobile terminal obtains the test charging current of the charger through the VBUS pin of the USB interface of the charger, and the mobile terminal obtains the output voltage of the charger through the VBUS pin of the USB interface of the charger; the charging current setting used and an effective charging current token are written into a charger or a charging terminal after being operated in advance (the charger is written when the charger is manufactured by a matched manufacturer), when the mobile terminal detects charging, the charging current setting sent by the mobile terminal and the charger or the charging terminal is operated by the effective charging current token of the mobile terminal again, and charging is directly applied based on an operation result (the operation comprises mathematical operation and the like, and the operation can be directly applied, and the purpose of the operation is not to acquire the charging current token for other people).
And step S20, when the mobile terminal detects that the charger is connected, the mobile terminal acquires the charging current setting of the charger.
Fig. 2 is a flowchart of step S20 in the charging current setting method according to the present invention.
As shown in fig. 2, the step S20 includes:
s21, predefining a plurality of thresholds, wherein the thresholds are divided at preset intervals on the basis of voltage;
and S22, when the mobile terminal detects that the voltage on a certain line of the charger fluctuates between the thresholds, obtaining the charging current setting of the charger based on the range divided by the thresholds and the specific value corresponding to each range.
In particular, the charging current is set to be constituted by a series of 0 and 1, which is embodied as a ripple on a certain line of the charger in a small range, for example, the voltage of one line whose logic is 1.8v and 0 is 0 volt, then several ranges are divided, for example, in the vicinity of 1.8. The preset interval is 0.05V (volt), then a number of thresholds are predefined, which are divided every 0.05V above the base voltage, and if the base voltage is 1.8V, then 1.85, 1.8, 1.75, 1.7, 1.9 etc. are each threshold, but it is also possible that the base voltage is other value, then every 0.05V above the base voltage is divided, when the above-mentioned fluctuation (what fluctuation is the above-mentioned fluctuation is the fluctuation between the voltages of 1.85, 1.8, 1.75, 1.7, 1.9) of the voltage on a certain line is detected, the ranges are divided based on the above-mentioned thresholds, and each range corresponds to a specific value (for example, preset 1.8-1.9 is 1,1.7-1.8 is 0, for example, 1.8-1.85 is 01,1.85-1.9 is 11,1.75-1.8 is 00,1.7-1.75 is 10), and the charging current setting of the charger can be obtained.
And step S30, the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging.
Fig. 3 is a flowchart of step S30 in the charging current setting method according to the present invention.
As shown in fig. 3, the step S30 includes:
s31, the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and S32, carrying out logic operation on the charging current setting and the effective charging current token to obtain a logic operation result, wherein the logic operation result is used for generating a final charging current, and the charger is used for charging the mobile terminal by the charging current.
Specifically, the mobile terminal performs logic operations on the charging current setting and the effective charging current token, for example, logic AND, logic OR and logic XOR, when the elements of the logic AND, namely & -participation operation are all true, the whole expression result is true, only one of the elements of the logic OR, namely I-participation operation is true, the whole expression result is true, the two elements of the logic XOR, namely ≡participation operation are both true or are both false, the result is false, and the result is true when the two elements of the logic OR, namely one true and one false; namely, logical AND: one of the expressions on both sides is false and the result is false. The expressions on both sides are all true, and the result is true. Logical OR, where one term is true for both expressions, the result is true. The expressions on both sides are all false, and the result is false. Logical exclusive-or: true and false are true and false, and false are false. For example, A0 gets B, B or 0 gets A, or an exclusive OR operation, for example, A exclusive OR B gets C, C exclusive OR B gets A; and after the charging current setting and the effective charging current token are subjected to logic operation, a logic operation result is obtained, the logic operation result is generated into a final charging current, and the charger charges the mobile terminal by the charging current.
Since the charging current obtained by the mobile terminal is set to be that the original charging current setting and the effective charging current token are logically operated, the mobile terminal can be restored by performing the logic operation with the effective charging current token again, and if the effective charging current token used by the mobile terminal is inconsistent with the previous effective charging current token or the charging current setting generated by the effective charging current token used by the charging wire or the charger terminal is inconsistent with the effective charging current token at the mobile terminal, the charging current of the mobile terminal is far smaller, for example, the charging current of the mobile terminal is stabilized under 200 milliamperes frequently.
Therefore, when the mobile terminal charges the battery, the battery does not need to be successfully identified and then charged as in the prior art, but the two steps are combined into one, so that the charging efficiency is improved, the reliability of a charging wire and a charger can be ensured, and the charging current can be quickly set.
The method comprises the steps of writing the used charging current setting and an effective charging current token into a charger or a charging terminal after operation, and when the mobile terminal detects charging, operating the charging current setting sent by the mobile terminal and the charger or the charging terminal by using the effective charging current token of the mobile terminal again, and directly applying charging based on an operation result; when the mobile terminal charges the battery, the battery is not required to be successfully identified and then charged as in the prior art, but the two steps are combined into one, so that the charging efficiency is improved, the reliability of a charging wire and a charger can be ensured, and the charging current can be rapidly set.
By the charging current setting method provided by the invention, after the mobile terminal is inserted into the charger with the USB interface, the optimal charging current of the mobile terminal can be automatically set, so that the optimal charging current is fixed, the mobile terminal can be safely and efficiently adapted to various chargers with USB interfaces, and potential safety hazards are avoided.
Further, as shown in fig. 4, based on the above charging current setting method, the present invention further provides a charging current setting system, where the charging current setting system includes:
a preset module 100, configured to receive a user operation instruction, and store an effective charging current token in the mobile terminal in advance;
a current obtaining module 200, configured to obtain a charging current setting of a charger when the mobile terminal detects that the charger is connected;
and the charging operation module 300 is configured to perform logic operation on the charging current setting and the effective charging current token, and then generate a charging current for charging.
The current acquisition module 200 specifically includes:
the segmentation setting unit is used for predefining a plurality of thresholds, wherein the thresholds are divided at preset intervals above the basic voltage;
and the current setting unit is used for obtaining the charging current setting of the charger based on the range divided by the threshold and the specific value corresponding to each range when the mobile terminal detects that the voltage on a certain line of the charger fluctuates between the thresholds.
The charging operation module 300 specifically includes:
the logic operation unit is used for carrying out logic operation on the charging current setting and the effective charging current token by the mobile terminal, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and the charging generation unit is used for obtaining a logic operation result after the charging current setting and the effective charging current token are subjected to logic operation, the logic operation result is used for generating a final charging current, and the charger charges the mobile terminal by the charging current.
Further, as shown in fig. 5, based on the above charging current setting method and system, the present invention further provides a mobile terminal correspondingly, which includes a processor 10, a memory 20 and a display 30. Fig. 5 shows only some of the components of the mobile terminal, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may alternatively be implemented.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a hard disk or a memory of the mobile terminal. The memory 20 may in other embodiments also be an external storage device of the mobile terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes for installing the mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a charging current setting program 40, and the charging current setting program 40 is executable by the processor 10, so as to implement the charging current setting method in the present application.
The processor 10 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 20, for example for performing the charging current setting method or the like.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 30 is used for displaying information on the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the charge current setting program 40 in the memory 20:
the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal;
when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger;
and the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging.
Wherein the effective charging current token is a charging current sequence.
Wherein the effective charge current token includes a one-dimensional form and a multi-dimensional form.
When the effective charging current token is in a one-dimensional form, the effective charging current token is a first sequence consisting of 0 and 1, the first sequence consists of a plurality of first basic sequences, and each first basic sequence consists of a plurality of 0 and 1;
when the effective charging current token is in a two-dimensional form, the effective charging current token is a second sequence formed by a series of X_S2, the second sequence is formed by a plurality of second basic sequences, and each second basic sequence is formed by a plurality of X_S2; wherein x_s2 is any one of 01, 11, 10 and 00;
when the effective charging current token is in a three-dimensional form, the effective charging current token is a third sequence formed by a series of X_S3, the third sequence is formed by a plurality of third basic sequences, and each third basic sequence is formed by a plurality of X_S3; wherein x_s3 is any one of 010, 110, 100, 000, 111, 011, 101, and 001;
when the effective charging current token is in a K-dimensional form, the effective charging current token is a Kth sequence formed by a series of X_SK, the Kth sequence is formed by a plurality of Kth basic sequences, and each Kth basic sequence is formed by a plurality of X_SK; where K is a positive integer greater than 3, and x_sk is any one of K0 to K1 to the power of 2K.
Wherein the charging current is set to a sequence of 0 and 1.
When the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger, and specifically comprises:
a plurality of thresholds are predefined, wherein the thresholds are divided at preset intervals on the basis of voltage;
and when the mobile terminal detects that the voltage on a certain line of the charger fluctuates between the thresholds, obtaining the charging current setting of the charger based on the range divided by the thresholds and the specific value corresponding to each range.
The mobile terminal generates a charging current for charging after performing logic operation on the charging current setting and the effective charging current token, and specifically includes:
the mobile terminal performs logic operation on the charging current setting and the effective charging current token, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and after the charging current setting and the effective charging current token are subjected to logic operation, a logic operation result is obtained, the logic operation result is generated into a final charging current, and the charger charges the mobile terminal by the charging current.
The present invention also provides a computer-readable storage medium storing a charging current setting program which, when executed by a processor, implements the steps of the charging current setting method as described above.
In summary, the present invention provides a charging current setting method, a system and a mobile terminal, where the method includes: the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal; when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger; and the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging. When the mobile terminal charges the battery, the final charging current is directly obtained without identifying success and then performing charging setting, and the charging is directly applied based on the logic operation result of the circuit, so that the charging efficiency is improved, the reliability of a charging wire and a charger is ensured, and the charging current is quickly set.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by a computer program for instructing relevant hardware (e.g., processor, controller, etc.), the program may be stored on a computer readable storage medium, and the program may include the above described methods when executed. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (9)

1. A charging current setting method, characterized in that the charging current setting method comprises:
the mobile terminal receives a user operation instruction, and an effective charging current token is prestored in the mobile terminal;
when the mobile terminal detects that a charger is connected, the mobile terminal acquires charging current setting of the charger;
the mobile terminal obtains the test charging current and the output voltage of the charger through a charger interface, and writes the used charging current into the charger or a charging terminal after the operation of the used charging current setting and an effective charging current token in advance;
the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, and then generates charging current for charging;
after the mobile terminal carries out logic operation on the charging current setting and the effective charging current token, generating a charging current for charging specifically comprises the following steps:
the mobile terminal performs logic operation on the charging current setting and the effective charging current token, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and after the charging current setting and the effective charging current token are subjected to logic operation, a logic operation result is obtained, the logic operation result is generated into a final charging current, and the charger charges the mobile terminal by the charging current.
2. The charging current setting method according to claim 1, wherein the effective charging current token is a charging current sequence.
3. The charging current setting method according to claim 2, wherein the effective charging current token includes a one-dimensional form and a multi-dimensional form.
4. A charging current setting method according to claim 3, wherein when the effective charging current token is in one-dimensional form, the effective charging current token is a first sequence consisting of 0 and 1, the first sequence consisting of a plurality of first base sequences, each of the first base sequences consisting of a plurality of 0 and 1;
when the effective charging current token is in a two-dimensional form, the effective charging current token is a second sequence formed by a series of X_S2, the second sequence is formed by a plurality of second basic sequences, and each second basic sequence is formed by a plurality of X_S2; wherein x_s2 is any one of 01, 11, 10 and 00;
when the effective charging current token is in a three-dimensional form, the effective charging current token is a third sequence formed by a series of X_S3, the third sequence is formed by a plurality of third basic sequences, and each third basic sequence is formed by a plurality of X_S3; wherein x_s3 is any one of 010, 110, 100, 000, 111, 011, 101, and 001;
when the effective charging current token is in a K-dimensional form, the effective charging current token is a Kth sequence formed by a series of X_SK, the Kth sequence is formed by a plurality of Kth basic sequences, and each Kth basic sequence is formed by a plurality of X_SK; where K is a positive integer greater than 3, and x_sk is any one of K0 to K1 to the power of 2K.
5. The charging current setting method according to claim 1, wherein the charging current is set as a series of 0 and 1.
6. The charging current setting method according to claim 5, wherein the mobile terminal obtains the charging current setting of the charger when the mobile terminal detects that the charger is connected, specifically comprising:
a plurality of thresholds are predefined, wherein the thresholds are divided at preset intervals on the basis of voltage;
and when the mobile terminal detects that the voltage on a certain line of the charger fluctuates between the thresholds, obtaining the charging current setting of the charger based on the range divided by the thresholds and the specific value corresponding to each range.
7. A charging current setting system, characterized in that the charging current setting system comprises:
the preset module is used for receiving a user operation instruction and storing an effective charging current token in the mobile terminal in advance;
the current acquisition module is used for acquiring charging current setting of the charger when the mobile terminal detects that the charger is connected;
the mobile terminal obtains the test charging current and the output voltage of the charger through a charger interface, and writes the used charging current into the charger or a charging terminal after the operation of the used charging current setting and an effective charging current token in advance;
the charging operation module is used for generating charging current for charging after the charging current setting and the effective charging current token are subjected to logic operation;
the charging operation module specifically comprises:
the logic operation unit is used for carrying out logic operation on the charging current setting and the effective charging current token by the mobile terminal, wherein the logic operation comprises logic AND, logic OR and logic XOR;
and the charging generation unit is used for obtaining a logic operation result after the charging current setting and the effective charging current token are subjected to logic operation, the logic operation result is used for generating a final charging current, and the charger charges the mobile terminal by the charging current.
8. A mobile terminal, the mobile terminal comprising: memory, a processor and a charging current setting program stored on the memory and executable on the processor, which charging current setting program, when executed by the processor, implements the steps of the charging current setting method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a charging current setting program which, when executed by a processor, implements the steps of the charging current setting method according to any one of claims 1 to 6.
CN202110044869.6A 2021-01-13 2021-01-13 Charging current setting method, system and mobile terminal Active CN112701758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110044869.6A CN112701758B (en) 2021-01-13 2021-01-13 Charging current setting method, system and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110044869.6A CN112701758B (en) 2021-01-13 2021-01-13 Charging current setting method, system and mobile terminal

Publications (2)

Publication Number Publication Date
CN112701758A CN112701758A (en) 2021-04-23
CN112701758B true CN112701758B (en) 2023-12-26

Family

ID=75514520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110044869.6A Active CN112701758B (en) 2021-01-13 2021-01-13 Charging current setting method, system and mobile terminal

Country Status (1)

Country Link
CN (1) CN112701758B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333090A (en) * 2014-11-19 2015-02-04 惠州Tcl移动通信有限公司 MT (Mobile Terminal) for realizing large current charging and charging method thereof
CN106772092A (en) * 2017-01-03 2017-05-31 惠州Tcl移动通信有限公司 Charging current based on acquisition for mobile terminal cell voltage sets system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103633709B (en) * 2013-12-11 2015-10-28 Tcl通讯(宁波)有限公司 A kind of charging recognition system and recognition methods thereof
CN105406538B (en) * 2015-12-08 2018-12-07 惠州Tcl移动通信有限公司 A kind of mobile terminal prevents the method and system of charging over-voltage
CN105553003A (en) * 2015-12-25 2016-05-04 惠州Tcl移动通信有限公司 Charge control method, mobile terminal and charge control system
CN109417304B (en) * 2016-11-29 2021-08-27 华为技术有限公司 Method for determining charger, related equipment and system
DE102019103302A1 (en) * 2019-02-11 2020-08-13 Innogy Se Method for operating a charging system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333090A (en) * 2014-11-19 2015-02-04 惠州Tcl移动通信有限公司 MT (Mobile Terminal) for realizing large current charging and charging method thereof
CN106772092A (en) * 2017-01-03 2017-05-31 惠州Tcl移动通信有限公司 Charging current based on acquisition for mobile terminal cell voltage sets system and method

Also Published As

Publication number Publication date
CN112701758A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
US10374450B2 (en) Battery charging method and electronic device
CN106712179B (en) Method and device for realizing reverse charging
KR101400695B1 (en) Clock signal generator capable of generating stable clock signal, semiconductor memory device having the same, and method thereof
US9577452B2 (en) Portable electronic device and charging method therefor
CN105630726A (en) Two-channel mobile terminal for reusing USB (Universal Serial Bus) port
CN106250916B (en) Method and device for screening pictures and terminal equipment
CN104021018A (en) Terminal, upgrade patch generation method and upgrade patch recognition method
CN105898678A (en) Pairing method and electronic device
CN104573771A (en) Mobile terminal and theme switching method applied to same
CN116975010B (en) Electronic material library sharing method and system
CN102983609A (en) Method and device for charging and software update of intelligent hand-held terminal
CN111490578A (en) Charging control method and device
CN104469717A (en) Short message sending method and device
CN103888597A (en) Communication method, device and electronic equipment
CN107577502A (en) The compatibility method of terminal and its fingerprint module, storage device
CN112701758B (en) Charging current setting method, system and mobile terminal
US20090121676A1 (en) Charging System for Enhancing Convenience
CN104484211A (en) Method and device for sharing mirror image document
CN105357579A (en) Online upgrading method for set top box, related device and set top box
JP2012208910A (en) Portable electronic device and processing system for portable electronic device
CN105739694A (en) Wearable equipment, interaction method thereof and terminal
CN105224898A (en) The method of radio communication, device and equipment
CN106292977B (en) A kind of adapter recognition methods and terminal
CN104935752A (en) Method and device for starting mobile terminal, and mobile terminal
CN100555938C (en) A kind of intelligent cipher key equipment and with the mutual method of host information

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
TA01 Transfer of patent application right

Effective date of registration: 20231127

Address after: No.246, West Street, Ganzhou District, Zhangye City, Gansu Province

Applicant after: ZHANGYE POWER SUPPLY COMPANY OF STATE GRID GANSU ELECTRIC POWER CO.

Address before: 516003 No.86, hechangqi Road West, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant