CN109343689B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN109343689B
CN109343689B CN201811160562.7A CN201811160562A CN109343689B CN 109343689 B CN109343689 B CN 109343689B CN 201811160562 A CN201811160562 A CN 201811160562A CN 109343689 B CN109343689 B CN 109343689B
Authority
CN
China
Prior art keywords
charge capacity
full charge
battery
processor
information
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
CN201811160562.7A
Other languages
Chinese (zh)
Other versions
CN109343689A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811160562.7A priority Critical patent/CN109343689B/en
Publication of CN109343689A publication Critical patent/CN109343689A/en
Application granted granted Critical
Publication of CN109343689B publication Critical patent/CN109343689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the application discloses an information processing method and device, wherein the method comprises the following steps: obtaining first battery information, wherein the first battery information at least comprises a current first full charge capacity of a battery; obtaining a second full charge capacity of the battery, wherein the second full charge capacity is a stored historical full charge capacity of the battery; and if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message for updating the full charge capacity to the processor.

Description

Information processing method and device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an information processing method and apparatus.
Background
At present, when a user uses electronic equipment such as a notebook computer, the full charge capacity information of a battery can change along with the use of the battery, and due to the innovative function in the aspect of the battery, the battery can update the information of the battery, so that the information of the battery is more accurate, the trouble of battery verification of the user can be avoided, and the residual capacity of the synchronous battery can also change correspondingly according to the full charge capacity information. However, when the battery is not plugged, the microsoft OS still defaults that the full battery capacity read for the first time by plugging the battery every time is the full capacity of the battery without updating the battery information, and the remaining capacity displayed by the OS is the percentage information of the battery displayed by the System obtained by dividing the battery remaining capacity value by the battery full capacity value, so that the problem that the charging rate cannot reach 100% occurs, which brings inconvenience to the user.
Disclosure of Invention
In view of this, embodiments of the present application provide an information processing method and apparatus for solving the problems in the prior art, which can not only eliminate the operation of manually checking the battery, but also update the full charge capacity in time, thereby ensuring the accuracy of the battery information.
The technical scheme of the embodiment of the application is realized as follows:
in one aspect, an embodiment of the present application provides an information processing method, including:
obtaining first battery information, wherein the first battery information at least comprises a current first full charge capacity of a battery;
obtaining a second full charge capacity of the battery, wherein the second full charge capacity is a stored historical full charge capacity of the battery;
and if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message for updating the full charge capacity to the processor.
On the other hand, an embodiment of the present application further provides an information processing method, including:
receiving an operation instruction for acquiring battery information;
sending a first request message for obtaining battery information to an embedded controller EC based on the operation instruction;
receiving a notification message for updating the full charge capacity sent by the EC;
obtaining battery information including the full charge capacity based on the notification message.
In another aspect, an embodiment of the present application provides an information processing apparatus, including:
the device comprises a first obtaining unit, a second obtaining unit and a control unit, wherein the first obtaining unit is used for obtaining first battery information, and the first battery information at least comprises the current first full charge capacity of a battery;
a second obtaining unit, configured to obtain a second full charge capacity of the battery, where the second full charge capacity is a stored historical full charge capacity of the battery;
a first sending unit, configured to send a notification message for updating the full charge capacity to the processor if the first full charge capacity and the second full charge capacity satisfy a preset condition.
In another aspect, an embodiment of the present application provides an information processing apparatus, including:
a second receiving unit for receiving an operation instruction for obtaining battery information;
the second sending unit is used for sending a first request message for obtaining the battery information to the embedded controller EC based on the operation instruction;
a third receiving unit, configured to receive a notification message for updating a full charge capacity sent by the EC;
a fourth obtaining unit configured to obtain battery information including the full charge capacity based on the notification message.
The embodiment of the application provides an information processing method and device, wherein first battery information is obtained firstly, wherein the first battery information at least comprises the current first full charge capacity of a battery; obtaining a second full charge capacity of the battery, wherein the second full charge capacity is a stored historical full charge capacity of the battery; if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message for updating the full charge capacity to the processor; therefore, the operation of manually checking the battery can be omitted, the full charge capacity can be updated in time, and the accuracy of the battery information is further ensured.
Drawings
FIG. 1 is a schematic diagram of a flow chart of an implementation of an information processing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another implementation of the information processing method according to the embodiment of the present application;
FIG. 3 is a schematic flow chart of another implementation of the information processing method according to the embodiment of the present application;
FIG. 4A is a schematic diagram of a component structure of an information processing apparatus according to an embodiment of the present application;
FIG. 4B is a schematic diagram of a component structure of an information processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware entity of an electronic device in an embodiment of the present application.
Detailed Description
The technical solution of the present application is further elaborated below with reference to the drawings and the specific embodiments.
The present embodiment provides an information processing method, which is applied to an electronic device, and the functions implemented by the information processing method can be implemented by a processor in the electronic device calling a program code, which can be stored in a computer storage medium.
Fig. 1 is a schematic view of an implementation flow of an information processing method according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S101, first battery information is obtained.
Here, the step S101 may be implemented by an Embedded Controller (EC) in the electronic device, where the EC is a control system for executing a specified independent control function and having a capability of processing data in a complex manner. It is an electronic device or apparatus controlled by embedded microelectronic technology chip (including a series of microelectronic devices such as microprocessor chip, timer, sequencer or controller), and can complete various automatic processing tasks such as monitoring and control. In this embodiment of the present application, the EC may detect whether an Operating System (OS) needs to read information of the battery through a command by using a Low Pin Count interface (LPC) interrupt, and when determining that the OS is to update the information of the battery, the EC obtains current first battery information, where the first battery information at least includes a current first full charge capacity of the battery, and of course, the first battery information may further include information of current, voltage, remaining power, and the like of the battery.
Step S102, a second full charge capacity of the battery is obtained.
Here, the step S102 may be implemented by an EC. The second full charge capacity is a stored historical full charge capacity of the battery; in an actual implementation, the second full charge capacity may be a last full charge capacity of the battery.
In this embodiment, a correspondence table between the historical full charge capacity of the current and the time for obtaining the historical full charge capacity may be stored in the EC, so that when the step S102 is implemented, the EC may determine the full charge capacity obtained at the time closest to the current time, that is, the second full charge capacity, by querying the correspondence table.
Step S103, if the first full charge capacity and the second full charge capacity satisfy a preset condition, sending a notification message for updating the full charge capacity to the processor.
Here, the step S103 may be implemented by an EC. In an actual implementation process, the preset condition may be that the first full charge capacity is not equal to the second full charge capacity, or that a difference between the first full charge capacity and the second full charge capacity is greater than a preset threshold.
The processor mentioned in the embodiments of the present application may be considered as a Central Processing Unit (CPU) of the electronic device.
In other embodiments, before the step S103, the method further includes: judging whether the first full charge capacity and the second full charge capacity meet preset conditions or not; when the first full charge capacity and the second full charge capacity satisfy a preset condition, the first full charge capacity and the second full charge capacity are considered to be different, and then the step S103 is performed, so as to notify the processor to update the full charge capacity; if the first full charge capacity and the second full charge capacity do not meet the preset condition, it is indicated that there is no difference between the first full charge capacity and the second full charge capacity, and at this time, the full charge capacity does not need to be updated, and only the second battery information including the current, the voltage, the remaining capacity, and the like of the battery may be sent to the processor.
In the information processing method provided by the embodiment of the application, first battery information is obtained, wherein the first battery information at least comprises a current first full charge capacity of a battery; obtaining a second full charge capacity of the battery, wherein the second full charge capacity is a stored historical full charge capacity of the battery; if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message for updating the full charge capacity to the processor; therefore, the operation of manually checking the battery can be omitted, the full charge capacity can be updated in time, and the accuracy of the battery information is further ensured.
Based on the foregoing embodiments, an information processing method is further provided in an embodiment of the present application, and is applied to an electronic device at least including a processor and an EC, fig. 2 is a schematic diagram of a further implementation flow of the information processing method in the embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
in step S201, the processor receives an operation instruction to obtain battery information.
Step S202, the processor sends a first request message for obtaining battery information to the EC based on the operation instruction.
In step S203, the EC obtains current first battery information based on the received first request message.
Here, the first battery information at least includes a current first full charge capacity of the battery, and the first battery information may further include a current, a voltage, and a remaining capacity of the battery.
In step S204, the EC obtains a second full charge capacity of the battery.
Here, the second full charge capacity is a stored historical full charge capacity of the battery, and in the present embodiment, the second full charge capacity may be a last full charge capacity of the battery.
In step S205, the EC determines whether the first full charge capacity and the second full charge capacity satisfy a preset condition.
Here, the preset condition may be that the first full charge capacity and the second full charge capacity are the same, and therefore, when the step S205 is implemented, it may be determined whether the first full charge capacity and the second full charge capacity are the same; when the first full charge capacity and the second full charge capacity are the same, it can be considered that the first full charge capacity and the second full charge capacity satisfy a preset condition, then step S208 is performed; when the first full charge capacity and the second full charge capacity are different, it can be considered that the first full charge capacity and the second full charge capacity do not satisfy the preset condition, and then the process proceeds to step S206.
In other embodiments, the preset condition may be that an absolute value of a difference between the first full charge capacity and the second full charge capacity is smaller than a preset threshold, and therefore, the step S205 may be implemented to determine whether the absolute value of the difference between the first full charge capacity and the second full charge capacity is smaller than a preset threshold. When the absolute value of the difference between the first full charge capacity and the second full charge capacity is smaller than a preset threshold, the first full charge capacity and the second full charge capacity are considered to satisfy a preset condition, and then the process proceeds to step S208; when the absolute value of the difference between the first full charge capacity and the second full charge capacity is not less than a preset threshold, it may be considered that the first full charge capacity and the second full charge capacity do not satisfy a preset condition, and then the process proceeds to step S206.
In step S206, the EC sends the second battery information to the processor.
Here, the second battery information is battery information obtained by removing the first full charge capacity from the first telecommunication information, that is, when the second full charge capacity and the first full charge capacity do not satisfy a preset condition, that is, when it is considered that the full charge capacity of the battery has not changed, the second battery information with the first full charge capacity removed is sent to the processor.
And step S207, the processor determines and outputs and displays the percentage of the remaining capacity based on the second battery information.
Here, after the processor receives the second battery information, since the second battery information does not carry the first full charge capacity, the processor may determine that the full charge capacity of the battery has not changed, and therefore, the processor determines the percentage of the remaining power according to the remaining power carried in the second battery information and the full charge capacity of the battery stored in the processor, and controls to master the percentage of the remaining power in the preset display area of the electronic device.
In step S208, if the battery of the electronic device is connected to the motherboard, the EC sends a notification message of a battery insertion event to the processor to notify the processor to update the full charge capacity.
Here, if the first full charge capacity and the second full charge capacity satisfy a preset condition, that is, it is considered that the full charge capacity of the battery has changed, it is further required to confirm whether the battery of the electronic device is connected to the motherboard, and if the battery of the electronic device is connected to the motherboard, it is considered that the battery is in place, and at this time, the EC may notify the processor to update the full charge capacity of the battery by sending a notification message of a simulated battery insertion event to the processor.
In another embodiment, if the battery of the electronic device is not connected to the motherboard, indicating that the battery of the electronic device is not in place, the EC sends a notification message to the processor via the communication bus to update the full charge capacity of the battery, so as to notify the processor to update the full charge capacity of the battery.
In other embodiments, the EC may further determine whether the first full charge capacity and the second full charge capacity satisfy a preset condition at a preset time interval, and send a notification message of a battery insertion event (QEVENT) to the processor when the full charge capacity of the battery changes, so as to notify the processor of updating the full charge capacity.
In step S209, the EC stores the first full charge capacity.
Here, since the full charge capacity of the battery is changed, the EC stores the obtained first full charge capacity and accordingly stores the time at which the first full charge capacity is obtained.
In step S210, the processor sends a third request message for obtaining the first battery information to the battery controller in the battery.
Here, the processor updates the full charge capacity of the battery by reloading the battery information after receiving the notification message sent by the EC for updating the full charge capacity of the battery, and the processor needs to read various information including the current, voltage, remaining capacity, full capacity, battery material and the like of the battery when processing the event of battery insertion, and in implementation, the processor may send a third request message to the battery controller to request to obtain the first battery information, and the battery controller may obtain the current first battery information of the battery in the third request message, and send the current first battery information to the processor by carrying the first battery information in a third response message, wherein the current full charge capacity of the battery is at least included in the first battery information.
Step S211, the processor receives a third response message carrying the first battery information sent by the battery controller.
Here, the first battery information at least carries a first full charge capacity, and the first battery information may also carry a remaining capacity of the battery.
And after receiving the third response message, the processor analyzes the third response message to obtain the first battery information carried in the third response message.
In step S212, the processor determines the remaining capacity percentage of the battery according to the first full charge capacity and the remaining capacity.
Here, the step S212, when implemented, may determine a ratio of the remaining capacity and the first full charge capacity as a remaining capacity percentage of the battery.
In step S213, the processor outputs and displays the remaining capacity percentage.
Here, when the step S213 is implemented, the remaining capacity percentage may be output and displayed in a preset area of the display screen of the electronic device, and further, the remaining capacity percentage may be displayed in a digital form in the preset area, for example, the remaining capacity percentage is 50%, a number may be displayed in the preset area 50%, and in addition, the remaining capacity percentage may be displayed in an icon form in the preset area, for example, when the remaining capacity percentage is 50%, 50% of the preset area may be filled in a preset color.
It should be noted that, the processor mentioned in the embodiment of the present application may be regarded as a CPU of the electronic device.
In the information processing method provided by the embodiment of the application, firstly, a processor sends a first request message for obtaining battery information to an EC (electronic control unit) based on a received operation instruction for obtaining the battery information; after receiving a first request message, the EC obtains current first battery information and second full charge capacity of the battery, if the first full charge capacity and the second full charge capacity do not meet a preset condition, the EC sends second battery information obtained by removing the first full charge capacity from the first telecommunication information to the processor, and the processor determines and outputs and displays the percentage of the remaining electric quantity based on the second battery information; if the first full charge capacity and the second full charge capacity meet preset conditions and a battery of an electronic device is connected with a mainboard, an EC sends a notification message of a battery insertion event to a processor to notify the processor to update the full charge capacity, and the EC updates the second full charge capacity to the first full charge capacity and stores the first full charge capacity; after receiving the notification message, the processor sends a third request message for obtaining the first battery information to a battery controller in the battery; receiving a third response message which is sent by the battery controller and carries first battery information, wherein the first battery information at least carries a first full charge capacity and the residual capacity of the battery, so that the processor determines the percentage of the residual capacity of the battery according to the first full charge capacity and the residual capacity and outputs and displays the percentage of the residual capacity; therefore, when the full charge capacity of the battery changes, the processor can be triggered to update the full charge capacity through a virtual battery insertion event, so that the full charge capacity of the battery can be timely updated, and accurate battery information is provided for a user.
An information processing method is further provided in an embodiment of the present application, and fig. 3 is a schematic flow chart of a further implementation of the information processing method in the embodiment of the present application, as shown in fig. 3, the method includes the following steps:
in step S301, LPC reads data, and EC detects whether the OS transmits a command to read battery information.
Here, if the EC detects that the OS transmits the command to read the battery information, the process proceeds to step S302, and if the EC does not detect that the OS transmits the command to read the battery information, the process returns to step S301, and continues to read the data through the LPC, and the EC detects whether the OS transmits the command to read the battery information.
In step S302, the EC determines whether there is a change in the full charge capacity information of the battery.
Here, if the full charge capacity information of the battery has changed, the flow proceeds to step S303; if the full charge capacity information of the battery has not changed, the process proceeds to step S305.
In step S303, the EC transmits a battery insertion event notification OS if the full charge capacity information of the battery is changed.
In step S304, the OS updates the battery information based on the battery pull-out event, and outputs the display system battery information again.
At this time, the system battery information seen by the user is correct.
In step S305, the EC sends a response carrying the battery information, and loops to step S301.
In the information processing method provided by the embodiment of the application, when the EC detects that the OS reads the information of the battery through the command through LPC interruption, the EC knows that the OS needs to update the information of the battery at the moment, and further the EC judges whether the full charge capacity information of the battery changes or not, and if the full charge capacity information of the battery changes, the EC sends a battery insertion event to inform the OS of updating the information of the battery; therefore, not only can the EC be effectively prevented from frequently interfering the OS, but also the correctness of the OS for reading the battery information can be completely ensured.
Based on the foregoing embodiments, an information processing apparatus is provided in an embodiment of the present application, where the apparatus includes units and modules included in the units, and may be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4A is a schematic diagram of a structure of an information processing apparatus according to an embodiment of the present application, and as shown in fig. 4A, the apparatus 400 includes:
a first obtaining unit 401, configured to obtain first battery information, where the first battery information at least includes a current first full charge capacity of a battery;
a second obtaining unit 402, configured to obtain a second full charge capacity of the battery, where the second full charge capacity is a stored historical full charge capacity of the battery;
a first sending unit 403, configured to send a notification message for updating the full charge capacity to the processor if the first full charge capacity and the second full charge capacity satisfy a preset condition.
In other embodiments, the apparatus further comprises:
the first receiving unit is used for receiving a first request message for acquiring the battery information sent by the processor;
and a third obtaining unit, configured to obtain current first battery information based on the first request message.
In other embodiments, the first sending unit is configured to: and if the first full charge capacity and the second full charge capacity meet preset conditions and a battery of the electronic equipment is connected with the mainboard, sending a notification message of a battery insertion event to the processor to notify the processor to update the full charge capacity.
In other embodiments, the first sending unit is configured to: if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message carrying at least the first full charge capacity for updating the full charge capacity to the processor;
in other embodiments, the apparatus further comprises: a storage unit configured to update the second full charge capacity to the first full charge capacity and store the first full charge capacity.
In other embodiments, the third obtaining unit includes:
the sending module is used for sending a second request message for obtaining the first battery information to a battery controller in the battery if receiving a first request message for obtaining the battery information sent by a processor;
a first receiving module, configured to receive a second response message sent by the battery controller, where the second response message carries first battery information;
and the first obtaining module is used for analyzing the second response message and obtaining the current first full-charge capacity of the battery from the first battery information.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Based on the foregoing embodiments, an information processing apparatus is provided in an embodiment of the present application, where the apparatus includes units and modules included in the units, and may be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4B is a schematic diagram of a structure of an information processing apparatus according to an embodiment of the present application, and as shown in fig. 4B, the apparatus 410 includes:
a second receiving unit 411 for receiving an operation instruction to obtain battery information;
a second sending unit 412, configured to send a first request message for obtaining battery information to the embedded controller EC based on the operation instruction;
a third receiving unit 413, configured to receive a notification message for updating the full charge capacity sent by the EC;
a fourth obtaining unit 414, configured to obtain the battery information including the full charge capacity based on the notification message.
In other embodiments, the fourth obtaining unit includes:
a second obtaining module, configured to send a third request message for obtaining the first battery information to a battery controller in the battery;
a second receiving module, configured to receive a third response message that is sent by the battery controller and carries first battery information, where the first battery information at least carries a first full charge capacity.
In other embodiments, the first battery information further carries a remaining power of the battery, and correspondingly, the apparatus further includes:
a determination unit configured to determine a remaining capacity percentage of the battery according to the first full charge capacity and the remaining capacity;
and the output unit is used for outputting and displaying the percentage of the residual electric quantity.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
In the embodiment of the present application, if the information processing method is implemented in the form of a software functional module and sold or used as a standalone product, the information processing method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application further provides a computer storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions implement the steps of the information processing method provided by the foregoing embodiment.
Correspondingly, an embodiment of the present application further provides an electronic device, including:
a memory for storing an information processing program;
a processor for executing the information processing program stored in the memory to realize the steps of the information processing method provided by the other embodiment;
a battery to power the electronic device.
In other embodiments, the processor comprises:
a first processor for executing the information processing method provided in the other embodiments;
and the second processor is powered by a battery and is used for executing the information processing method provided in other embodiments, and the first processor can switch the power consumption state of the second processor.
It should be noted that the first processor may be the EC described in other embodiments, and the second processor may be a CPU.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that fig. 5 is a schematic hardware entity diagram of an electronic device in an embodiment of the present application, and as shown in fig. 5, the hardware entity of the computer device 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein
The processor 501 generally controls the overall operation of the computer device 500.
The communication interface 502 may enable the computer device to communicate with other terminals or servers via a network.
The Memory 503 is configured to store instructions and applications executable by the processor 501, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 501 and modules in the computer device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. An information processing method comprising:
obtaining first battery information, wherein the first battery information at least comprises a current first full charge capacity of a battery;
obtaining a second full charge capacity of the battery, wherein the second full charge capacity is a stored historical full charge capacity of the battery;
if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message for updating the full charge capacity to a processor;
wherein, if the first full charge capacity and the second full charge capacity satisfy a preset condition, sending a notification message for updating the full charge capacity to the processor, includes:
and if the first full charge capacity and the second full charge capacity meet preset conditions and the battery of the electronic device is connected with the mainboard, sending a notification message of a battery insertion event to the processor to notify the processor to update the full charge capacity.
2. The method as recited in claim 1, the method further comprising:
receiving a first request message for acquiring battery information sent by a processor;
and obtaining current first battery information based on the first request message.
3. The method as set forth in claim 1,
if the first full charge capacity and the second full charge capacity meet a preset condition, sending a notification message for updating the full charge capacity to the processor, wherein the notification message comprises: if the first full charge capacity and the second full charge capacity meet preset conditions, sending a notification message carrying at least the first full charge capacity for updating the full charge capacity to the processor;
or
After sending a notification message of a battery insertion event to the processor if the first full charge capacity and the second full charge capacity satisfy a preset condition, the method further comprises: updating the second full charge capacity to the first full charge capacity, and storing the first full charge capacity.
4. The method of claim 2, wherein obtaining current first battery information based on the first request message comprises:
sending a second request message for obtaining first battery information to a battery controller in the battery based on the first request message;
receiving a second response message sent by the battery controller, wherein the second response message carries first battery information;
and analyzing the second response message, and obtaining the current first full-charge capacity of the battery from the first battery information.
5. An information processing method, characterized in that the method comprises:
receiving an operation instruction for acquiring battery information;
sending a first request message for obtaining battery information to the embedded controller based on the operation instruction;
receiving, by a processor, a notification message sent by the embedded controller to update a full charge capacity; the notification message is sent in the form of a notification message of a battery insertion event when the embedded controller determines that the current first full-charge capacity and the current second full-charge capacity of the battery meet a preset condition and the battery of the electronic device is connected with the mainboard; the first full charge capacity and the second full charge capacity are obtained by the embedded controller; the second full charge capacity is a stored historical full charge capacity of the battery;
obtaining battery information including the full charge capacity based on the notification message.
6. The method of claim 5, wherein obtaining battery information including the full charge capacity based on the notification message comprises:
sending a third request message for obtaining the first battery information to a battery controller in the battery;
and receiving a third response message which is sent by the battery controller and carries first battery information, wherein the first battery information at least carries a first full charge capacity.
7. The method according to claim 6, wherein the first battery information further carries a remaining power of the battery, and correspondingly, the method further comprises:
determining a remaining capacity percentage of the battery according to the first full charge capacity and the remaining capacity;
and outputting and displaying the percentage of the remaining capacity.
8. An information processing apparatus comprising:
the device comprises a first obtaining unit, a second obtaining unit and a control unit, wherein the first obtaining unit is used for obtaining first battery information, and the first battery information at least comprises the current first full charge capacity of a battery;
a second obtaining unit, configured to obtain a second full charge capacity of the battery, where the second full charge capacity is a stored historical full charge capacity of the battery;
the first sending unit is used for sending a notification message for updating the full charge capacity to the processor if the first full charge capacity and the second full charge capacity meet a preset condition;
the first sending unit is further configured to send a notification message of a battery insertion event to the processor to notify the processor to update the full charge capacity if the first full charge capacity and the second full charge capacity satisfy a preset condition and the battery of the electronic device is connected to the motherboard.
9. An information processing apparatus comprising a processor and an embedded controller, the processor comprising:
a second receiving unit for receiving an operation instruction for obtaining battery information;
the second sending unit is used for sending a first request message for obtaining the battery information to the embedded controller based on the operation instruction;
a third receiving unit, configured to receive a notification message for updating a full charge capacity sent by the embedded controller; the notification message is sent in the form of a notification message of a battery insertion event when the embedded controller determines that the current first full-charge capacity and the current second full-charge capacity of the battery meet a preset condition and the battery of the electronic device is connected with the mainboard; the first full charge capacity and the second full charge capacity are obtained by the embedded controller; the second full charge capacity is a stored historical full charge capacity of the battery;
a fourth obtaining unit configured to obtain battery information including the full charge capacity based on the notification message.
CN201811160562.7A 2018-09-30 2018-09-30 Information processing method and device Active CN109343689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811160562.7A CN109343689B (en) 2018-09-30 2018-09-30 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811160562.7A CN109343689B (en) 2018-09-30 2018-09-30 Information processing method and device

Publications (2)

Publication Number Publication Date
CN109343689A CN109343689A (en) 2019-02-15
CN109343689B true CN109343689B (en) 2021-12-24

Family

ID=65307719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811160562.7A Active CN109343689B (en) 2018-09-30 2018-09-30 Information processing method and device

Country Status (1)

Country Link
CN (1) CN109343689B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489699A (en) * 2000-12-19 2004-04-14 ����ɭ�绰�ɷ����޹�˾ Battery capacity calibration
CN102165668A (en) * 2008-09-29 2011-08-24 三美电机株式会社 Mobile device, battery pack, display control method, and display control program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170274794A1 (en) * 2015-02-13 2017-09-28 Panasonic Intellectual Property Management Co., Ltd. Cell status estimation device and power supply device
TWI540427B (en) * 2015-07-22 2016-07-01 Hon Hai Prec Ind Co Ltd A System and Method for Displaying Battery Capacity
CN105353313B (en) * 2015-09-28 2020-07-28 欣旺达电子股份有限公司 Method and device for estimating state of charge of battery
CN105958588B (en) * 2016-06-07 2018-08-17 维沃移动通信有限公司 A kind of charging method and mobile terminal
CN106443462A (en) * 2016-09-05 2017-02-22 深圳市沃特玛电池有限公司 Method for correcting maximum usable capacity of power battery pack of electric car
US10670662B2 (en) * 2017-03-02 2020-06-02 Mediatek Inc. Method and apparatus for calibrating coulomb counting based state-of-charge estimation
CN107991618A (en) * 2017-11-21 2018-05-04 惠州市蓝微电子有限公司 A kind of SOC estimation method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489699A (en) * 2000-12-19 2004-04-14 ����ɭ�绰�ɷ����޹�˾ Battery capacity calibration
CN102165668A (en) * 2008-09-29 2011-08-24 三美电机株式会社 Mobile device, battery pack, display control method, and display control program

Also Published As

Publication number Publication date
CN109343689A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109074158B (en) Electronic equipment and method for starting application thereof
CN108281998B (en) Circuit for controlling power output from battery pack and battery pack
EP3574546B1 (en) Control method and electronic device based on battery leakage state
US6429625B1 (en) Method and apparatus for indicating battery charge status
EP3975378A1 (en) Charging method and apparatus, charging system, electronic device, storage medium
US8996901B2 (en) Power management of electronic device with display
CN105988805B (en) Application program management method and mobile terminal
CN106951057B (en) Application control method and mobile terminal
CN114327195B (en) Card management method, device and storage medium
KR20180101930A (en) Electronic Apparatus for checking battery abnormality and the Control method thereof
CN108228509B (en) USB interface switching device and electronic equipment
CN112464095B (en) Message pushing method, device, terminal and storage medium
CN104063131A (en) Application display method and device and user terminal
KR20160064734A (en) Method for charging control and an electronic device thereof
US20170235598A1 (en) Method for identifying application causing temperature rise of terminal, and terminal
CN111602308A (en) Battery state estimation
US11462930B2 (en) Method and device for controlling charging on basis of state of battery
CN109343689B (en) Information processing method and device
KR20190045562A (en) Method for controlling notification and electronic device thereof
US10983823B2 (en) Computer apparatus, task initiation method, and computer readable medium
CN108595238A (en) The display control method and device of application interface
CN111464688B (en) Working mode switching method and device
CN107357465B (en) Information processing method, information processing apparatus, and non-volatile computer storage medium
JP2019079580A (en) Electronic apparatus, calculation method and program
CN111987764B (en) Discharge control method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant