CN106655380B - Charging processing method and terminal - Google Patents

Charging processing method and terminal Download PDF

Info

Publication number
CN106655380B
CN106655380B CN201611217581.XA CN201611217581A CN106655380B CN 106655380 B CN106655380 B CN 106655380B CN 201611217581 A CN201611217581 A CN 201611217581A CN 106655380 B CN106655380 B CN 106655380B
Authority
CN
China
Prior art keywords
magnetic field
charging
field strength
terminal
strength values
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
CN201611217581.XA
Other languages
Chinese (zh)
Other versions
CN106655380A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611217581.XA priority Critical patent/CN106655380B/en
Publication of CN106655380A publication Critical patent/CN106655380A/en
Application granted granted Critical
Publication of CN106655380B publication Critical patent/CN106655380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/025

Landscapes

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

Abstract

The embodiment of the invention discloses a charging processing method and a terminal, wherein in the charging processing method, the terminal can acquire N magnetic field strength values of the position where the terminal for wireless charging is located in a preset period, and N is an integer greater than or equal to 2; performing linear fitting on the N magnetic field strength values to obtain a fitting line segment, wherein the fitting line segment represents a linear change relation among the N magnetic field strength values in a preset period; and determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the obtained slope of the fitting line segment. By adopting the invention, the current charging strength value can be determined through the magnetic field strength value, and the wireless charging efficiency or the charging safety can be improved by utilizing the charging strength value.

Description

Charging processing method and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a charging processing method and a terminal.
Background
Along with the development of the charging technology, the terminal can be charged in a wireless charging mode, energy is transmitted through a magnetic field in the wireless charging process, the charging process does not need wire connection, and convenience is brought to terminal charging. However, in practice, it is found that, in the process of wireless charging of the terminal, if the charging intensity value is unknown, the charging device is charged too slowly when the charging intensity is too low; when the charging intensity is too large, faults such as circuit burnout and the like easily occur to the charging equipment.
Disclosure of Invention
The embodiment of the invention provides a charging processing method and a terminal, which can determine the current charging intensity value.
The embodiment of the invention provides a charging processing method, which comprises the following steps:
acquiring N magnetic field strength values of a position where a terminal for wireless charging is located at a preset period, wherein N is an integer greater than 2, and the magnetic field strength of the position where the terminal is located changes in the wireless charging process of the terminal;
performing linear fitting on the N magnetic field intensity values to obtain a fitting line segment, and determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment;
the fitted line segment represents a linear variation relationship between the N magnetic field intensity values in the preset period.
Correspondingly, an embodiment of the present invention further provides a terminal, including:
the terminal comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring N magnetic field strength values of a position where a terminal for wireless charging is located in a preset period, N is an integer greater than 2, and the magnetic field strength of the position where the terminal is located changes in the wireless charging process of the terminal;
the processing module is used for performing linear fitting on the N magnetic field strength values acquired by the acquisition module to acquire a fitting line segment, and the fitting line segment represents a linear change relation among the N magnetic field strength values in the preset period;
and the determining module is used for determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the obtained slope of the fitting line segment.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position of the terminal for wireless charging in a preset period, perform linear fitting on the N magnetic field strength values to obtain a fitting line segment, and determine the charging strength value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a charging processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a fitting line segment according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another charging processing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another charging processing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 technical scheme of the embodiment of the invention can be particularly applied to mobile terminals (terminals), adapters or charging devices and the like which need to be charged, such as mobile phones (e.g. Android phones, iOS mobile phones and the like), tablet computers, mobile internet devices (MID for short) and the like. The Mobile terminal may also be referred to as a User Equipment (UE), a terminal, a wireless terminal, or a Mobile Station (MS), and the charging device may also be referred to as an adapter, a charging terminal, and the like, which is not limited in the embodiments of the present invention.
Embodiments of the present invention provide a charging processing method and a terminal, which can determine a current charging strength in time, and are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a charging processing method according to an embodiment of the present invention. As shown in fig. 1, the charging processing method can be applied to various terminals, for example: smart phones, tablet computers, smart wearable devices, and the like. As shown in fig. 1, the charging processing method according to an embodiment of the present invention may include the following steps:
s101, the terminal acquires N magnetic field strength values of the position of the terminal for wireless charging according to a preset period;
in the embodiment of the invention, N is an integer greater than 2, and the magnetic field intensity of the position where the terminal is located changes in the wireless charging process of the terminal. For example, in the process of wirelessly charging the terminal, energy is mainly transmitted through a magnetic field, that is, the terminal receives a changing magnetic field and further generates an induced current through a coil, so that the terminal can obtain a magnetic field strength value of a position where the terminal is located to determine a charging strength value of the wireless charging device for wirelessly charging the terminal.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position in the charging process, wherein N is an integer greater than 2; alternatively, the terminal may acquire the N magnetic field strength values at a preset period, for example, 10 magnetic field strength values at the positions per second. In addition, the time interval between two times of obtaining the magnetic field strength values may be random obtaining, or equal time interval obtaining, and the embodiment of the present invention is not limited.
In the embodiment of the invention, the terminal can be provided with the Hall device which is a solid-state electronic device utilizing Hall effect and can be used for measuring the magnetic field intensity, so that the terminal can acquire N magnetic field intensity values of the position where the terminal is located through the Hall device.
S102, the terminal performs linear fitting on the N magnetic field intensity values to obtain a fitting line segment;
in an embodiment of the present invention, the fitted line segment represents a linear variation relationship between the N magnetic field strength values in the preset period.
S103, the terminal determines a charging intensity value of the wireless charging device for wirelessly charging the terminal according to the obtained slope of the fitting line segment.
As an alternative implementation manner, the slope of the fitted line segment represents the change rate of the N magnetic field strength values, and further represents the current charging current of the terminal, and the slope and the current charging current are in a direct proportional relationship, so that the terminal can use the slope as the charging strength value for the wireless charging device to wirelessly charge the terminal.
As another optional implementation manner, the terminal performs linear fitting on the N magnetic field strength values to obtain a fitted line segment, and determines the charging strength values of the N magnetic field strength values according to the slope of the obtained fitted line segment, including: the terminal can sequentially perform linear fitting on the N magnetic field strength values according to the time sequence of the acquisition time of each magnetic field strength value in the N magnetic field strength values to obtain at least two fitting line segments; and respectively calculating the slope of each fitting line segment. Correspondingly, the terminal determines the charging strength value of the wireless charging device for wirelessly charging the terminal according to each calculated slope, for example, if the N magnetic field strength values are not on the same straight line, but the slope is increased, the N magnetic field strength values are linearly fitted into a plurality of fitting line segments. By averaging the slopes of the plurality of fitted line segments, the terminal may use the average as the current charging intensity value of the terminal.
For example, when the terminal is charged, the magnetic field strength values A, B, C, D, E of 5 positions are randomly acquired within ten minutes by the mounted hall device, and the corresponding acquisition times are respectively T1、T2、T3、T4、T5(ii) a The terminal linearly fits the 5 magnetic field strength values to obtain a fitted line segment of the magnetic field strength values with respect to time, as shown in fig. 2, because the five magnetic field strength values shown in fig. 2 are not on a straight line, two fitted line segments L are obtained1And L2(ii) a Terminal determination fitting line segment L1And L2Respectively has a slope of K1And K2(ii) a Calculating K1And K2So that the terminal can use the average value K as the current charging strength value of the terminal.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position of the terminal for wireless charging in a preset period, perform linear fitting on the N magnetic field strength values to obtain a fitting line segment, and determine the charging strength value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another charging processing method according to an embodiment of the present invention. Compared with the charging processing method shown in fig. 1, the charging processing method shown in fig. 3 may determine whether N magnetic field strength values satisfy a preset linear fitting condition after N magnetic field strength values are obtained, so as to perform linear fitting on the N magnetic field strength values; in addition, the charging processing method shown in fig. 3 may prompt the determined charging intensity value to the user in time, so that the user can know the current charging status. Specifically, as shown in fig. 3, the charging processing method may include the following steps:
s201, the terminal acquires N magnetic field strength values of the position where the terminal for wireless charging is located in a preset period, wherein N is an integer larger than 2.
In the process of wireless charging of the terminal, the magnetic field strength of the position where the terminal is located changes, so that the strength values of the N magnetic fields are different in size.
S202, the terminal judges whether the N magnetic field strength values meet a preset linear fitting condition; if the preset linear fitting condition is satisfied, executing step S203; if the preset linear fitting condition is not satisfied, step S201 is executed.
In the implementation of the invention, the terminal judges whether the acquired N magnetic field strength values meet a preset linear fitting condition, specifically judges whether the change of the N magnetic field strength values is a linear change, if so, the preset linear fitting condition is met, and if not, the preset linear fitting condition is not met; optionally, the terminal determines whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition, specifically, determines whether a change in the N magnetic field strength values is a change from small to large or a change from large to small, if so, the preset linear fitting condition is satisfied, and if not, the preset linear fitting condition is not satisfied.
As another alternative, the preset linear fitting condition means that the N magnetic field strength values cannot be fitted to a straight line, and the variation trend does not conform to the fittable trend. The fittable trend refers to that the N magnetic field strength values continuously increase or continuously decrease, namely the N magnetic field strength values change from small to large or from large to small; the non-fitting trend refers to a variation trend of the N magnetic field strength values, except for the fitting trend, such as increasing first and then decreasing, or decreasing first and then increasing.
For example, assuming that 5 magnetic field strength values obtained by the terminal are H, I, J, K, M in sequence, if the variation trend of the 5 magnetic field strength values is a relationship of H > I > J > K > M or H < I < J < K < M, it is determined that the obtained magnetic field strength values satisfy a preset linear fitting relationship; if the relationship of H < I and I > J > K > M > I is satisfied in the 5 magnetic field intensity values; or when the 5 magnetic field strength values have the relationship of H > I and I < J < K < M, determining that the obtained magnetic field strength values do not meet the preset linear fitting relationship.
In the embodiment of the present invention, if the N magnetic field strength values do not satisfy the preset linear fitting condition, step S201 is executed to obtain the N magnetic field strength values of the location where the terminal is located again.
S203, the terminal performs linear fitting on the N magnetic field intensity values to obtain a fitting line segment.
And S204, the terminal determines the current charging intensity value according to the slope of the obtained fitting line segment.
And S205, the terminal outputs prompt information according to the charging intensity value.
In the embodiment of the present invention, the prompt information is used to prompt the current charging intensity, and the prompt information may prompt the current charging intensity through at least one of voice, vibration frequency, indicator light color, and indicator light flashing frequency.
Optionally, before the terminal outputs the prompt message according to the charging intensity value, a correspondence table among the charging intensity value, the charging intensity level, and the prompt message may be preset, such as the correspondence table shown in table 1, which includes a correspondence relationship among the charging intensity value range, the charging intensity level, and the prompt message. For example, the charging intensity values are in the ranges of [0,100], [100,200], [200,300], respectively, and the corresponding charging intensity levels are weak, medium, and strong, respectively, and accordingly, the corresponding indicator lights may be in the colors of yellow, green, and red, respectively. Optionally, the prompt message may be represented by the frequency of the blinking of the indicator light.
TABLE 1 table of correspondences
Range of charge intensity values Charge intensity level Prompt information
0-100 Weak (weak) Yellow colour
100-200 In Green colour
200-300 High strength Red colour
As can be seen, with the above correspondence, the terminal executing step S205 may include: determining a charging intensity value range in which the current charging intensity value is located; and respectively determining the current charging intensity level according to the charging intensity value range so as to determine the prompt information to be output by utilizing the charging intensity level. The embodiment enables the user to know the current charging intensity in real time, so that the user can conveniently process the terminal according to the charging intensity. For example, the current charge intensity is increased or decreased.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position of the terminal for wireless charging in a preset period, perform linear fitting on the N magnetic field strength values to obtain a fitting line segment, and determine the charging strength value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a charging processing method according to another embodiment of the present invention. Compared with the charging processing method shown in fig. 1 or fig. 3, in the charging processing method shown in fig. 4, after the terminal determines the current charging strength value according to the slope of the fitted line segment, it may be determined whether the charging strength value is within a preset strength range, and if not, the charging loop may be cut off to ensure the charging safety or improve the charging efficiency. As shown in fig. 4, the charging processing method may include the steps of:
s301, the terminal acquires N magnetic field strength values of the position where the terminal is located for wireless charging in a preset period, wherein N is an integer greater than 2.
S302, the terminal judges whether the N magnetic field strength values meet a preset linear fitting condition; if the preset linear fitting condition is satisfied, executing step S303; if the preset linear fitting condition is not satisfied, step S301 is executed.
S303, the terminal performs linear fitting on the N magnetic field intensity values to obtain a fitting line segment.
S304, the terminal determines the current charging intensity value according to the slope of the obtained fitting line segment.
S305, the terminal judges whether the charging intensity value is within a preset intensity range, and if not, the step S306 is executed; if the intensity value is within the preset intensity value range, step S307 may be executed.
And S306, the terminal cuts off the current charging loop.
In the embodiment of the present invention, the current charging intensity value is not within the preset intensity value range, and the current charging intensity value is smaller than a first preset intensity value or larger than a second preset intensity value, where the first preset intensity value is smaller than the second preset intensity value, an interval from the first preset intensity value to the second preset intensity value is the preset intensity value range, and the preset intensity range may be determined according to the performance of the charging device. If the current charging intensity value is smaller than the first preset intensity value, the charging speed may be slower; if the current charging intensity value is greater than the second preset intensity value, failure of the charging equipment can be caused, so that the terminal can cut off the current charging loop when the current charging intensity value is not within the preset range.
And S307, the terminal outputs prompt information according to the charging intensity value, wherein the prompt information is used for prompting the current charging intensity.
In the embodiment of the present invention, the preset intensity range may be a preset charging intensity value range capable of ensuring the charging safety of the terminal, and is different from the charging intensity value range in the embodiment shown in fig. 3; accordingly, if the charging intensity value is within the preset intensity value range, the prompt message may be output according to the related content of the embodiment shown in fig. 3. Therefore, the charging processing method shown in fig. 4 can prompt the user to know the current charging intensity in time, and can ensure the charging safety of the terminal or improve the charging efficiency.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal can be a smart phone, a tablet computer, a smart wearable device and the like. Specifically, as shown in fig. 5, the terminal according to the embodiment of the present invention may include:
the obtaining module 401 is configured to obtain N magnetic field strength values of a location where a terminal performing wireless charging is located in a preset period, where N is an integer greater than 2.
In the embodiment of the invention, N is an integer greater than 2, and the magnetic field intensity of the position where the terminal is located changes in the wireless charging process of the terminal. For example, in the process of wirelessly charging the terminal, energy is mainly transmitted through a magnetic field, that is, the terminal receives a changing magnetic field and further generates an induced current through a coil, so that the obtaining module 401 can obtain a magnetic field strength value of a location where the terminal is located to determine a charging strength value of the terminal.
In the embodiment of the present invention, during the charging process, the obtaining module 401 obtains N magnetic field strength values of the location where the terminal is located, where N is an integer greater than 2; alternatively, the obtaining module 401 may obtain the N magnetic field strength values at a preset period, for example, obtain 10 magnetic field strength values at each second. In addition, the time interval between two times of obtaining the magnetic field strength values may be random obtaining, or equal time interval obtaining, and the embodiment of the present invention is not limited.
In this embodiment of the present invention, the obtaining module 401 may include a hall device, and the hall device is a solid-state electronic device using a hall effect and may be used to measure the magnetic field strength, so that the obtaining module 401 may obtain N magnetic field strength values at the position of the hall device by using the hall device.
A processing module 402, configured to perform linear fitting on the N magnetic field strength values obtained by the obtaining module 401, so as to obtain a fitted line segment.
In an embodiment of the present invention, the fitted line segment represents a linear variation relationship between the N magnetic field strength values in the preset period.
In the embodiment of the present invention, the processing module 402 performs linear fitting on the N magnetic field strength values, and the obtained fitting line segment represents a corresponding relationship between the magnetic field strength value and the obtaining time thereof.
A determining module 403, configured to determine, according to the obtained slope of the fitted line segment, a charging intensity value for the wireless charging device to wirelessly charge the terminal.
As an alternative embodiment, the slope of the fitted line segment represents the change rate of the N magnetic field strength values, and further represents the current charging current of the terminal, and the slope and the current charging current are in a direct proportional relationship, so that the slope can be used as the charging strength value for the wireless charging device to wirelessly charge the terminal.
As another optional implementation manner, the processing module 402 performs linear fitting on the N magnetic field strength values to obtain a fitted line segment, specifically: the terminal can sequentially perform linear fitting on the N magnetic field strength values according to the time sequence of the acquisition time of each magnetic field strength value in the N magnetic field strength values to obtain at least two fitting line segments; and respectively calculating the slope of each fitting line segment. Accordingly, the determining module 403 may determine, according to the calculated slopes, the charging strength value for the wireless charging device to wirelessly charge the terminal, for example, if the N magnetic field strength values are not on a straight line, but the slopes are increased, the N magnetic field strength values are linearly fit to two fitting line segments. By averaging the slopes of the two fitted line segments, the determining module 403 may use the average as the current charging intensity value of the terminal.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position where the terminal is located, wherein N is an integer greater than 2, linear fitting is carried out on the N magnetic field strength values to obtain a fitting line segment, and the current charging strength value can be determined according to the slope of the fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
Referring to fig. 6, fig. 6 is a schematic block diagram of another terminal structure provided in the present invention. The terminal can be a smart phone, a tablet computer, a smart wearable device and the like. Specifically, as shown in fig. 6, the terminal may include, in addition to the obtaining module 401, the processing module 402, and the determining module 403 described in fig. 5, a judging module 404, a controlling module 405, and a prompting module 406, and the terminal according to the embodiment of the present invention may include:
a determining module 404, configured to determine whether the charging intensity value determined by the determining module 403 is within a preset intensity range.
The control module 405 is configured to cut off the charging loop when the determining module 404 determines that the charging intensity value is not within the preset intensity range.
In the embodiment of the present invention, the current charging intensity value is not within the preset intensity value range, and the current charging intensity value is smaller than a first preset intensity value or larger than a second preset intensity value, where the first preset intensity value is smaller than the second preset intensity value, an interval from the first preset intensity value to the second preset intensity value is the preset intensity value range, and the preset intensity range may be determined according to the performance of the charging device. If the current charging intensity value is smaller than the first preset intensity value, the charging speed may be slower; if the current charging intensity value is greater than the second preset intensity value, which may cause the charging device to malfunction, the control module 405 may switch off the current charging loop when the current charging intensity value is not within the preset range.
A prompt module 406, configured to output prompt information according to the charging intensity value determined by the determination module 403, where the prompt information is used to prompt the current charging intensity.
In the embodiment of the present invention, the prompt information is used to prompt the current charging intensity, and the prompt information may prompt the current charging intensity through at least one of voice, vibration frequency, indicator light color, and indicator light flashing frequency.
Optionally, the determining module 404 is further configured to determine whether the N magnetic field strength values obtained by the obtaining module 401 satisfy a preset linear fitting condition.
Optionally, the processing module 402 is specifically configured to perform linear fitting on the N magnetic field strength values to obtain a fitted line segment when the determining module 404 determines that the N magnetic field strength values satisfy the preset linear fitting condition.
Optionally, the obtaining module 401 is further configured to obtain N magnetic field strength values of the location where the terminal for performing wireless charging is located again in a preset period when the determining module 404 determines that the N magnetic field strength values do not satisfy the preset linear fitting condition.
As an optional implementation manner, the determining module 404 determines whether the acquired N magnetic field strength values satisfy a preset linear fitting condition, specifically: and judging whether the change of the N magnetic field intensity values is linear change, if so, meeting the preset linear fitting condition, and if not, not meeting the preset linear fitting condition.
As another optional implementation manner, the determining module 404 determines whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition, specifically: and judging whether the change of the N magnetic field intensity values is from small to large or from large to small, if so, meeting the preset linear fitting condition, and if not, meeting the preset linear fitting condition.
As another alternative, the preset linear fitting condition means that the N magnetic field intensity values cannot be fitted to a straight line, and the variation trend does not conform to the fittable trend. The fittable trend refers to that the N magnetic field strength values continuously increase or continuously decrease, namely the N magnetic field strength values change from small to large or from large to small; the non-fitting trend refers to a variation trend of the N magnetic field strength values, except for the fitting trend, such as increasing first and then decreasing, or decreasing first and then increasing.
In this embodiment of the present invention, the obtaining module 401 may obtain N magnetic field strength values of the location where the terminal is located in a preset period, where N is an integer greater than 2, the determining module 404 may determine whether the N magnetic field strength values satisfy a preset linear fitting condition, and if the N magnetic field strength values do not satisfy the preset linear fitting condition, re-obtain the N magnetic field strength values of the location where the terminal is located for performing wireless charging; if the preset linear fitting condition is met, performing linear fitting on the acquired N magnetic field intensity values to obtain a fitting line segment; and determining the current charging intensity value according to the slope of the obtained fitted line segment. Further, the terminal can also judge whether the charging intensity value is within a preset intensity range, and if not, the charging loop can be cut off. According to the embodiment of the invention, the current charging strength value is determined through the magnetic field strength value, so that the wireless charging efficiency or the charging safety is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention. The terminal can be a smart phone, a tablet computer, a smart wearable device and the like. Specifically, the terminal in the embodiment shown in fig. 7 may include: one or more processors 603, one or more input devices 601, one or more output devices 602 and memory 604, one or more induction coils 606, and hall devices 607. The processor 603, the input device 601, the output device 602, the memory 604, the induction coil 606, and the hall device 607 are connected by a bus 605. The memory 604 is used to store instructions, and the processor 603 can call the instructions stored by the memory 604, wherein:
the hall device 607 is configured to obtain, through the induction coil 606, N magnetic field strength values at a position where the terminal performing wireless charging is located at a preset period;
in the embodiment of the invention, N is an integer larger than 2, and the magnetic field intensity of the position where the terminal is located changes in the wireless charging process of the terminal.
In the embodiment of the present invention, the hall device 607 is a solid-state electronic device using a hall effect, and can be used to measure the magnetic field strength, so that the terminal can obtain N magnetic field strength values of the location where the terminal is wirelessly charged through the hall device 607 in a preset period.
The calling of the code in the memory 604 by the processor 603 may perform the following operations:
performing linear fitting on the N magnetic field strength values obtained by the hall device 607 to obtain a fitted line segment; determining the current charging intensity value according to the slope of the fitting line segment; and determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the obtained slope of the fitting line segment.
And the fitted line segment represents the linear change relation among the N magnetic field strength values in the preset period.
As an alternative embodiment, the slope of the fitted line segment represents the change rate of the N magnetic field strength values, and further represents the current charging current of the terminal, and the slope is in a direct proportion, so that the processor 603 may use the slope as the current charging strength value of the terminal.
As another alternative, the processor 603 invoking code in the memory 604 may perform the following operations:
sequentially performing linear fitting on the N magnetic field strength values according to the time sequence of the acquisition time of each magnetic field strength value in the N magnetic field strength values to obtain at least two fitting line segments;
respectively calculating the slope of each fitting line segment;
and determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to each calculated slope.
For example, if the N magnetic field strength values are not on a straight line, but the slope is increasing, the line is fit to two fitted line segments. By averaging the slopes of the two fitted line segments, the processor 603 may use the average as a charging intensity value for the wireless charging device to wirelessly charge the terminal.
Optionally, the processor 603 invokes the code in the memory 604, and after determining the current charging intensity value according to the slope of the fitted line segment, the following operations may be further performed:
and judging whether the charging intensity value is within a preset intensity range, and if not, cutting off the charging loop.
Optionally, the processor 603 invokes the code in the memory 604, and after determining the current charging intensity value according to the slope of the fitted line segment, the following operations may be further performed:
and outputting prompt information according to the charging intensity value, wherein the prompt information is used for prompting the current charging intensity.
Optionally, after the hall device 607 obtains N magnetic field strength values of the position where the induction coil 606 is located, the processor 603 calls the code in the memory 604, and may further perform the following operations:
and judging whether the N magnetic field strength values obtained by the hall device 607 satisfy a preset linear fitting condition, and if so, performing linear fitting on the N magnetic field strength values to obtain a fitting line segment.
Optionally, the hall device 607 is further configured to obtain N magnetic field strength values of the position where the terminal including the induction coil 606 is located again through the hall device when the processor 603 determines that the N magnetic field strength values do not satisfy the preset linear fitting condition.
As an optional implementation manner, the processor 603 invokes the code in the memory 604, and determines whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition, specifically performs the following operations:
and judging whether the change of the N magnetic field intensity values is linear change, if so, meeting the preset linear fitting condition, and if not, not meeting the preset linear fitting condition.
As another optional implementation manner, the processor 603 invokes a code in the memory 604, determines whether the N magnetic field strength values acquired by the acquiring module satisfy a preset linear fitting condition, and specifically executes the following operations:
and judging whether the change of the N magnetic field intensity values is from small to large or from large to small, if so, meeting the preset linear fitting condition, and if not, meeting the preset linear fitting condition.
In the embodiment of the invention, the terminal can acquire N magnetic field strength values of the position of the terminal for wireless charging in a preset period, wherein N is an integer greater than 2, the N magnetic field strength values are subjected to linear fitting to obtain a fitting line segment, and the current charging strength value can be determined according to the slope of the fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
It should be understood that, in the embodiment of the present invention, the Processor 603 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 601 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 602 may include a display (LCD, etc.), a speaker, etc.
The memory 604 may include a read-only memory and a random access memory, and provides instructions and data to the processor 603. A portion of the memory 604 may also include non-volatile random access memory.
In a specific implementation, the processor 603, the input device 601, the output device 602, and the hall device 607, which are described in the embodiment of the present invention, may perform the implementation manners described in the first embodiment and the second embodiment of the charging processing method provided in the embodiment of the present invention, and may also perform the implementation manners of the terminal described in the embodiment of the present invention, which is not described herein again.
In the embodiment of the invention, the terminal can obtain N magnetic field strength values of the position of the terminal for wireless charging in a preset period, perform linear fitting on the N magnetic field strength values to obtain a fitting line segment, and determine the charging strength value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment. Therefore, the embodiment of the invention can determine the current charging intensity value in time so as to improve the charging efficiency or ensure the charging safety.
It should also be noted that, in the embodiments of the present invention, relational terms such as first, second, third, fourth, pin sequence numbers, and the like are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between the entities or operations. Also, 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, elements recited by the phrases "comprising …" and "comprising …" do not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the recited elements.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a non-volatile computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments are further described in detail for the purpose of illustrating the invention and the advantages thereof, it is to be understood that various embodiments may be combined, and the above-mentioned embodiments of the invention are not intended to limit the scope of the invention, and any combination, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the invention should be included in the scope of the invention. The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (13)

1. A charging processing method, comprising:
acquiring N magnetic field strength values of a position where a terminal for wireless charging is located at a preset period, wherein N is an integer greater than 2, and the magnetic field strength of the position where the terminal is located changes in the wireless charging process of the terminal;
performing linear fitting on the N magnetic field intensity values to obtain a fitting line segment, and determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the slope of the obtained fitting line segment;
the fitted line segment represents a linear change relation among the N magnetic field strength values in the preset period;
wherein, to carry out linear fitting to N magnetic field intensity value, obtain the fitting line segment to confirm the charge intensity value of N magnetic field intensity value according to the slope of the fitting line segment who obtains, include:
sequentially performing linear fitting on the N magnetic field strength values according to the time sequence of the acquisition time of each magnetic field strength value in the N magnetic field strength values to obtain at least two fitting line segments;
respectively calculating the slope of each fitting line segment;
determining a charging intensity value of the wireless charging device for wirelessly charging the terminal according to each slope obtained by calculation, wherein the charging intensity value comprises the following steps: and calculating the average value of the slopes of at least two fitting line segments, and taking the average value as the current charging intensity value of the terminal.
2. The method of claim 1, wherein after determining the charging strength value for the wireless charging device to wirelessly charge the terminal according to the slope of the obtained fitted line segment, the method further comprises:
judging whether the charging intensity value is within a preset intensity range;
and if the current is not within the preset intensity range, cutting off the charging loop.
3. The method according to claim 1 or 2, wherein after obtaining the N magnetic field strength values of the location of the terminal performing wireless charging at the preset period, the method further comprises:
judging whether the N magnetic field strength values meet a preset linear fitting condition or not;
and if the preset linear fitting condition is met, performing linear fitting on the N magnetic field intensity values to obtain a fitting line segment.
4. The method of claim 3, wherein the determining whether the N magnetic field strength values satisfy a preset linear fitting condition comprises: and judging whether the change of the N magnetic field intensity values is linear change, if so, meeting the preset linear fitting condition, and if not, not meeting the preset linear fitting condition.
5. The method of claim 3, wherein the determining whether the N magnetic field strength values satisfy a preset linear fitting condition comprises: and judging whether the change of the N magnetic field intensity values is from small to large or from large to small, if so, meeting the preset linear fitting condition, and if not, meeting the preset linear fitting condition.
6. The method of claim 3, further comprising:
and if the N magnetic field strength values do not meet the preset linear fitting condition, executing the step of acquiring the N magnetic field strength values of the position of the terminal for wireless charging in a preset period.
7. A terminal, comprising:
the terminal comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring N magnetic field strength values of a position where a terminal for wireless charging is located in a preset period, N is an integer greater than 2, and the magnetic field strength of the position where the terminal is located changes in the wireless charging process of the terminal;
the processing module is used for performing linear fitting on the N magnetic field strength values acquired by the acquisition module to acquire a fitting line segment, and the fitting line segment represents a linear change relation among the N magnetic field strength values in the preset period;
the determining module is used for determining a charging intensity value of the wireless charging equipment for wirelessly charging the terminal according to the obtained slope of the fitting line segment;
the processing module is specifically configured to perform linear fitting on the N magnetic field strength values in sequence according to a time sequence of acquisition times of each of the N magnetic field strength values to obtain at least two fitting line segments; respectively calculating the slope of each fitting line segment;
the determining module is specifically configured to determine a charging intensity value for the wireless charging of the terminal by the wireless charging device according to each calculated slope, where the determining module calculates an average value of at least two fitted line slope values, and uses the average value as a current charging intensity value of the terminal.
8. The terminal of claim 7, further comprising:
the judging module is used for judging whether the charging intensity value determined by the determining module is within a preset intensity range;
and the control module is used for cutting off the charging loop when the judging module judges that the charging intensity value is not within the preset intensity range.
9. The terminal of claim 8,
the judging module is further configured to judge whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition;
the processing module is specifically configured to, when the determining module determines that the N magnetic field strength values satisfy the preset linear fitting condition, perform linear fitting on the N magnetic field strength values to obtain a fitted line segment.
10. The terminal according to claim 9, wherein the determining module determines whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition, specifically, whether a change in the N magnetic field strength values is a linear change, if so, the preset linear fitting condition is satisfied, and if not, the preset linear fitting condition is not satisfied.
11. The terminal according to claim 9, wherein the determining module determines whether the N magnetic field strength values obtained by the obtaining module satisfy a preset linear fitting condition, specifically, determines whether a change in the N magnetic field strength values is a change from small to large or a change from large to small, if so, the preset linear fitting condition is satisfied, and if not, the preset linear fitting condition is not satisfied.
12. The terminal according to claim 9, wherein the obtaining module is further configured to, when the determining module determines that the N magnetic field strength values do not satisfy the preset linear fitting condition, perform the operation of obtaining the N magnetic field strength values at the location of the terminal performing the wireless charging in a preset period.
13. A computer-readable storage medium, in which program instructions are stored, the program instructions being for causing a computer, when invoked, to perform the method of any one of claims 1 to 6.
CN201611217581.XA 2016-12-26 2016-12-26 Charging processing method and terminal Active CN106655380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611217581.XA CN106655380B (en) 2016-12-26 2016-12-26 Charging processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611217581.XA CN106655380B (en) 2016-12-26 2016-12-26 Charging processing method and terminal

Publications (2)

Publication Number Publication Date
CN106655380A CN106655380A (en) 2017-05-10
CN106655380B true CN106655380B (en) 2021-01-12

Family

ID=58827420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611217581.XA Active CN106655380B (en) 2016-12-26 2016-12-26 Charging processing method and terminal

Country Status (1)

Country Link
CN (1) CN106655380B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943553B (en) * 2018-09-20 2023-12-26 中兴通讯股份有限公司 Wireless charging method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950999A (en) * 2010-09-21 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Wireless charging method, wireless charging receiving device and mobile terminal
CN102694408A (en) * 2011-09-27 2012-09-26 华为技术有限公司 Wireless charging strength indicating method and charged device
JP5850715B2 (en) * 2011-11-18 2016-02-03 株式会社Nttドコモ Radio wave intensity display system, radio wave intensity display method, program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950999A (en) * 2010-09-21 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Wireless charging method, wireless charging receiving device and mobile terminal
CN102694408A (en) * 2011-09-27 2012-09-26 华为技术有限公司 Wireless charging strength indicating method and charged device
JP5850715B2 (en) * 2011-11-18 2016-02-03 株式会社Nttドコモ Radio wave intensity display system, radio wave intensity display method, program

Also Published As

Publication number Publication date
CN106655380A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US20220043067A1 (en) Charging method and device, charging system, electronic equipment and storage medium
JP6607669B2 (en) Wireless charging apparatus and charging method thereof
CN101345554A (en) Method, equipment and system for displaying electric quantity of Bluetooth equipment on Bluetooth mobile phone
CN105745906B (en) Message processing method, system and related equipment
CN108768430B (en) Communication control management method and mobile terminal
JP2018509669A (en) Information push method and device
CN103873690B (en) Information processing method and intelligent terminal in driving
CN104580698A (en) Mobile terminal and information processing method for mobile terminal under off state
CN105334420A (en) Information processing method and electronic device
CN105050045B (en) A kind of control method and terminal of the SOT state of termination
CN106655380B (en) Charging processing method and terminal
CN106532971B (en) Wireless charging method and device
CN102647517A (en) Mobile phone and low-power alarm method thereof
CN107046304B (en) Wireless charging method, related device and system
US10386402B2 (en) Shoe and method for detecting electrical leakage using the same
CN108566684B (en) Communication connection establishing method and related equipment
EP3163855A3 (en) Method and device for making call
CN106211361A (en) A kind of mobile terminal bluetooth compatibility processing method and system
CN107592666B (en) Method and device for increasing transmission power of terminal equipment
TWI706687B (en) Payment method and client
US20160277917A1 (en) Method and apparatus for automatic detection and selection of an alternative roaming provider
CN109275070B (en) Early warning prompting method and device for preventing microphone from being damaged and terminal equipment
CN103581412B (en) A kind of method of information processing and electronic equipment
CN110602738B (en) Network connection method and device and electronic device
CN105451233B (en) A kind of anti-method monitored, system 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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant