CN111198743A - Display method and device of charging animation, equipment and storage medium - Google Patents

Display method and device of charging animation, equipment and storage medium Download PDF

Info

Publication number
CN111198743A
CN111198743A CN202010042822.1A CN202010042822A CN111198743A CN 111198743 A CN111198743 A CN 111198743A CN 202010042822 A CN202010042822 A CN 202010042822A CN 111198743 A CN111198743 A CN 111198743A
Authority
CN
China
Prior art keywords
charging
adapter
type
identification code
equipment
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.)
Granted
Application number
CN202010042822.1A
Other languages
Chinese (zh)
Other versions
CN111198743B (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 CN202010042822.1A priority Critical patent/CN111198743B/en
Publication of CN111198743A publication Critical patent/CN111198743A/en
Application granted granted Critical
Publication of CN111198743B publication Critical patent/CN111198743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The embodiment of the application discloses a display method, a display device, equipment and a storage medium of charging animation, wherein the method comprises the following steps: determining an identification code of a charging device electrically connected with the electronic device, wherein the identification code is used for uniquely identifying the charging device; displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.

Description

Display method and device of charging animation, equipment and storage medium
Technical Field
The embodiment of the application relates to electronic technology, and relates to a display method, a display device, equipment and a storage medium for charging animation.
Background
At present, electronic devices such as mobile phones and tablet computers become an indispensable part of life of people. Taking a mobile phone as an example, with the progress of technology, the performance of the mobile phone is continuously improved, and the functions of the mobile phone are more and more powerful. In the process of using the mobile phone, the requirements of users on various aspects of the mobile phone are higher and higher. In order to meet the requirements of users and attract more users, mobile phone manufacturers pay more attention to user experience while ensuring the performance and functions of mobile phones, for example, when the mobile phones detect that charging equipment is accessed, charging animation is displayed.
In general, when a mobile phone detects an adapter access, the android system remaps the adapter type of the mobile phone to a Dedicated Charging Port (DCP), and then displays a corresponding Charging animation. However, this approach does not meet the user's needs well.
Disclosure of Invention
The embodiment of the application provides a display method, a display device, equipment and a storage medium of charging animation.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a display method of a charging animation, where the method includes: determining an identification code of a charging device electrically connected with the electronic device, wherein the identification code is used for uniquely identifying the charging device; displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
In a second aspect, an embodiment of the present application provides a display device for charging an animation, including: the determining module is used for determining an identification code of the charging equipment which is electrically connected with the display device, and the identification code is used for uniquely identifying the charging equipment; the display module is used for displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements, when executing the computer program, the steps in the display method of the charging animation according to any one of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the display method of the charging animation according to any one of the embodiments of the present application.
In the embodiment of the application, an identification code of a charging device electrically connected with an electronic device is determined, wherein the identification code is used for uniquely identifying the charging device; displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animations corresponding to different identification codes are different; therefore, the charging equipment of the same type can display different charging animations if the charging equipment is different, and the requirements of users can be well met.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a display method of charging animation according to an embodiment of the present application;
fig. 2 is a schematic diagram of charging animations corresponding to different charging devices according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating an implementation flow of another display method of charging animation according to an embodiment of the present application;
FIG. 4A is a schematic structural diagram of a display device for charging animation according to an embodiment of the present disclosure;
FIG. 4B is a schematic structural diagram of a display device for charging animation according to an embodiment of the present application;
fig. 5 is a hardware entity diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
It should be noted that the terms "first \ second \ third" referred to in the embodiments of the present application merely distinguish similar or different objects and do not represent a specific ordering with respect to the objects, and it should be understood that "first \ second \ third" may be interchanged under certain ordering or sequence circumstances to enable the embodiments of the present application described herein to be implemented in other orders than illustrated or described herein.
The display method of the charging animation provided by the embodiment of the application can be applied to electronic equipment, the electronic equipment can be various types of equipment with a display function in the implementation process, for example, the electronic equipment can comprise an intelligent mobile terminal (for example, a mobile phone), a tablet computer, an electronic book, a notebook computer, a mobile power supply (for example, a charger, a travel charger), an electric vehicle, an unmanned aerial vehicle, an electronic cigarette, intelligent electronic equipment (for example, a watch, a bracelet, intelligent glasses, a sweeping robot) and the like. The functions implemented by the method can be implemented by calling program code by a processor in the electronic device, and the program code can be stored in a computer storage medium.
Fig. 1 is a schematic flow chart of an implementation process of a display method of a charging animation according to an embodiment of the present application, and as shown in fig. 1, the method at least includes the following steps 101 to 102:
step 101, determining an identification code of a charging device electrically connected with an electronic device, wherein the identification code is used for uniquely identifying the charging device.
The charging device may be various. For example, the charging device may be one of the following devices: other electronic devices (such as a notebook computer, a host computer, and the like) connected with the electronic device through a data line, a power delivery management (PD) adapter, a Quick Charge (QC) adapter, a DCP adapter, and a wireless charger; the DCP adapter may further include a plurality of sub-types of adapters, for example, a first adapter from version 1 to version 4 and a second adapter from version 1 to version 2, where the charging speeds of the adapters in different versions are different, and the charging speeds of the first adapter and the second adapter are also different. For example, a version of the second adapter can charge a cell phone with 4000mAh of battery from 1% to 100% in 30 minutes. A version of the first adapter is capable of charging a cell phone with 4000mAh of battery from 1% to 100% in 73 minutes.
In some embodiments, the identification code may be a model of the charging device, and may also be another code that is determined anew according to the model or type of the charging device; the length of the other codes is smaller than the model of the charging equipment, so that the storage space can be saved and the data reading speed can be improved. For example, the other code is 1, and the type of the corresponding charging device is the other electronic device; the other codes are 2, and the type of the corresponding charging equipment is a DCP adapter; the other codes are 3, and the type of the corresponding charging equipment is a PD adapter; the other codes are 4, and the type of the corresponding charging device is a QC adapter.
102, displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
For example, when the electronic device detects that the PD adapter is plugged in, the charging animation displayed is different from the charging animation displayed when the QC is plugged in. As shown in fig. 2, the charging animation displayed on the electronic device 20 when the second adapter of a certain version is inserted is 201, and the charging animation displayed on the electronic device 20 when the first adapter of a certain version is inserted is 202. In other words, in the embodiment of the application, when the same electronic device is plugged into different charging devices, the display of the corresponding charging animation is supported, instead of the display of the fixed charging animation, so that the charging interest can be increased, and the charging experience of a user can be improved.
In the embodiment of the application, an identification code of a charging device electrically connected with an electronic device is determined, wherein the identification code is used for uniquely identifying the charging device; displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animations corresponding to different identification codes are different; therefore, the charging equipment of the same type can display different charging animations if the charging equipment is different, and the requirements of users can be well met.
The embodiment of the present application further provides a display method of charging animation, the method at least includes the following steps 201 to 205:
step 201, detecting the type of a charging device when it is detected that the charging device is electrically connected with the electronic device.
Generally, a charging apparatus generally includes, depending on a charging speed: PD adapters, QC adapters, DCP adapters, other electronic devices (e.g., notebook computers, hosts, etc. connected through data lines) that access the charging interface of the electronic device, wireless charging devices; wherein, the DCP adapter further comprises a first adapter with multiple versions, a second adapter with multiple versions and the like.
In the embodiment of the present application, the electronic device may detect the type of the charging device in any one of various ways. In some embodiments, the electronic device may first detect whether the type of the charging device is a PD adapter; when the type of the charging equipment is not the PD adapter, whether the type of the charging equipment is the DCP adapter is detected again; when the type of the charging device is a DCP adapter, further detecting a DCP adapter subtype to which the type of the charging device belongs.
It should be noted that, in other embodiments, the electronic device may further detect whether the type of the charging device is a DCP adapter, and then detect whether the type of the charging device is a PD adapter if the type is not the DCP adapter. In other words, in the embodiment of the present application, there is no limitation on the sequence of detecting the type of the charging device by the electronic device.
In some embodiments, the DCP adapter subtype includes a different version of a first adapter and a different version of a second adapter, and so on. In implementation, the electronic device may detect whether the type of the charging device is a PD adapter according to a PD detection protocol. The electronic device may detect whether the type of the inserted charging device is the other electronic device or the DCP adapter according to a BC2.1 general charging protocol.
Step 202, determining a corresponding identification code according to the type of the charging device.
For example, as shown in table 1, different charging device types correspond to different identification codes. The charging animation corresponding to different identification codes is also different.
TABLE 1
Figure BDA0002368346570000051
In implementation, the electronic device may first obtain a configuration parameter table (for example, the content shown in table 1) including identification codes of a plurality of charging devices, and then determine the identification code corresponding to the type of the charging device according to a mapping relationship recorded in the configuration parameter table.
It should be noted that the electronic device may read the locally stored configuration parameter table, and may also obtain the configuration parameter table from the server side. It will be appreciated that as charging techniques are iteratively updated, new types of charging devices are increasingly emerging and therefore the configuration parameter tables need to be continually updated accordingly. In general, the server stores the latest version of the configuration parameter table, which includes the identification codes of a plurality of new types of charging devices.
When the configuration parameter table is stored locally, if the electronic equipment does not find the identification code corresponding to the type of the charging equipment in the locally stored configuration parameter table, downloading a new configuration parameter table from the server side to update the locally stored configuration parameter table, so that the identification code corresponding to the type of the charging equipment is obtained, and the corresponding charging animation can be successfully displayed. However, even if the identification code corresponding to the type of the charging device is obtained, the charging animation file corresponding to the identification code may not be available in the electronic device, so that in implementation, the electronic device may send a request message to the server, where the request message is used to request to obtain the charging animation file corresponding to the identification code; the electronic equipment receives the charging animation file sent by the server and stores the charging animation file to the local, so that when the charging equipment is inserted next time, the corresponding charging animation file does not need to be acquired from the server side, the power consumption of the electronic equipment can be saved, and the charging animation can be displayed quickly.
Step 203, writing the identification code of the charging device into a specific storage space; the specific storage space is used for uniquely storing the identification code of any type of charging equipment which is electrically connected with the electronic equipment currently.
For example, if the charging device currently establishing electrical connection with the electronic device is a PD adapter, the identification code "3" corresponding to the PD adapter is written into the specific storage space. And if the charging equipment which is electrically connected with the electronic equipment is the QC adapter at present, writing the identification code '4' corresponding to the QC adapter into the specific storage space.
From a software perspective, the operating system (e.g., android system) of an electronic device typically includes an upper system and a lower system; the bottom layer system refers to a KERNEL (KERNEL) layer, and the upper layer system is an application layer. The specific storage space belongs to an underlying system.
And step 204, controlling an upper layer system to read the identification code from the specific storage space.
And step 205, controlling the upper-layer system to display the charging animation corresponding to the identification code.
In the related art, each charging device has a separate storage space in the underlying system for recording the status and type of the charging device, i.e. recording whether the electronic device is being charged and the type of the device being charged. In this way, after receiving the event reported by the underlying system, the upper system needs to traverse each storage space one by one, so as to determine the identifier of the charging device currently charging the electronic device. The inventor finds out in the process of research that: thus, on the one hand, it is inconvenient to manage; on the other hand, especially when the underlying system reports the event frequently, the underlying system needs to traverse each storage space frequently, which increases the system overhead to a certain extent.
Based on this, in the embodiment of the present application, a plurality of charging devices share one storage space, that is, the specific storage space, which is capable of dynamically storing the identification code of any type of charging device that is currently electrically connected with the electronic device. That is, the identification code stored in the specific storage space is changed according to a change in the type of the charging device accessing the electronic device. The electronic device may store different identification codes at different times. For example, if the identification code stored in the specific storage space is "2", it indicates that the type of the charging device currently charging the electronic device is a DCP adapter; if the identification code stored in the specific storage space is '3', the type of the charging equipment for charging the electronic equipment is the PD adapter; if the identification code stored in the specific storage space is '4', the type of the charging device for charging the electronic device is the QC adapter.
It can be understood that each type of charging device shares a specific storage space, so that, when the upper system receives a ue event reported by the lower system, data stored in the storage space corresponding to each type of charging device need not be traversed and processed one by one, but only the identification code stored in the specific storage space needs to be read. Therefore, the management is convenient, and the system overhead is reduced to a certain extent.
The embodiment of the present application further provides a display method of charging animation, the method at least includes the following steps 301 to 310:
step 301, detecting the type of a charging device when the charging device is detected to be electrically connected with the electronic device;
step 302, detecting whether the type of the charging device is a PD adapter.
In implementation, the electronic device may detect whether the charging device is a PD adapter according to a PD detection protocol.
Step 303, when the type of the charging device is not a PD adapter, detecting whether the type of the charging device is a DCP adapter.
Certainly, when the type of the charging device is detected to be the PD adapter, determining the identification code corresponding to the PD adapter according to the preset mapping relationship in the configuration parameter table; then, according to the identification code corresponding to the PD adapter, the corresponding charging animation is displayed. When the charging method is implemented, each identification code corresponds to a different charging animation file. After the upper-layer system acquires the identification code of the charging equipment which is currently used for charging the electronic equipment, the corresponding charging animation file is loaded, so that the corresponding charging animation is displayed.
In implementation, the electronic device may detect whether the charging device is the other electronic device or the DCP adapter according to a BC2.1 general charging protocol. And when the type of the charging equipment is the other electronic equipment, correctly displaying the corresponding charging animation according to the identification codes corresponding to the other electronic equipment.
Step 304, when the type of the charging device is a DCP adapter, controlling a fast charging switch to disconnect a first connection between a data transmission pin of the electronic device and a Power Management Integrated Circuit (PMIC).
Taking the charging interface of the electronic device as a Type-C interface as an example, the bottom system of the electronic device controls the quick charging switch to disconnect the D + and D-pins of the electronic device, and switches the D + and D-pins from the PMIC to a Micro Control Unit (MCU) so that the charging device can communicate with the MCU, and further determine the sub-Type of the DCP adapter to which the Type of the charging device belongs.
305, controlling the quick charging switch to conduct a second connection between the data transmission pin and the MCU matched with the DCP adapter;
step 306, controlling the MCU to communicate with the charging device through the second connection, so as to further detect a DCP adapter subtype to which the type of the charging device belongs; when the DCP adapter subtype to which the type of the charging device belongs cannot be determined, executing step 307;
for example, the DCP adapter subtype includes a different version of a first adapter and a different version of a second adapter.
During implementation, if the MCU does not receive an indication message sent by the charging device within a specific time period, where the indication message is used to indicate the DCP adapter subtype of the charging device, it is determined that the DCP adapter subtype to which the type of the charging device belongs cannot be determined, and then step 307 is performed, in which the fast charging switch is switched back to the PMIC to determine whether the charging device is a QC adapter.
Of course, when the electronic device determines the DCP adapter subtype to which the type of the charging device belongs, the electronic device determines the identification code corresponding to the DCP adapter subtype according to the preset mapping relationship in the configuration parameter table, and then displays the charging animation corresponding to the identification code.
Step 307, controlling the quick charging switch to disconnect the second connection and to connect the first connection;
and 308, controlling the PMIC to communicate with the charging device through the first connection so as to determine whether the type of the charging device is a QC adapter.
And when the type of the charging equipment is the QC adapter, determining the identification code of the QC adapter, and then displaying the corresponding charging animation according to the identification code.
309, determining a corresponding identification code according to the type of the charging equipment;
step 310, displaying a corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
In some embodiments, the method of the embodiments of the present application further includes steps 401 to 403:
step 401, determining a usage scenario of the electronic device.
In implementation, the electronic device may determine a usage scenario of the electronic device according to a currently running application type.
Step 402, determining a charging current according to a use scene of the electronic equipment and the identification code of the charging equipment;
and 403, charging the electronic device according to the charging current.
The charging equipment inserted into the electronic equipment is different, and the set charging current of the electronic equipment is different under different use scenes. For example, when the user is playing a large game, the electronic device sets the current charging current according to the usage scenario and the identification code of the inserted charging device, thereby achieving the purpose of intelligent charging.
An exemplary application of the embodiments of the present application in a practical application scenario will be described below.
In the embodiment of the present application, a set of solutions is designed based on the principles of strong compatibility and good extensibility, that is, all adapters share a node, that is, share a specific storage space, and different values of the node have different meanings, for example, the name of the node is fast _ chg _ type, as shown in table 2 below, when the fast _ chg _ type is 0, it indicates that the type of the inserted adapter is unknown (unknown); when the fast _ chg _ type is 1, the type of the inserted adapter is USB, that is, the electronic device is electrically connected to other electronic devices (e.g., a notebook computer, a host, etc.) through a USB data line; when fast _ chg _ type is 2, the type of the inserted adapter is a DCP adapter; when fast _ chg _ type is 3, the type of the inserted adapter is a PD adapter; when fast _ chg _ type is 4, the type of the inserted adapter is the QC adapter; and setting the value of fast _ chg _ type corresponding to the fast charging adapter to be more than 4.
Each adapter corresponds to a unique identification code, after the first adapter or the second adapter is inserted, the type of the DCP adapter is firstly identified, then the electronic equipment can switch a quick charge switch, in the process of quick charge communication, a quick charge MCU sends the type of the adapter obtained through D + and D-handshaking of a data line to a mobile phone application layer through interruption, namely, a code (namely the identification code) for uniquely identifying the type of the adapter is taken in the process of quick charge communication, and the code is larger than the codes of the prior USB, DCP, PD and QC.
TABLE 2
Figure BDA0002368346570000101
For example, as shown in table 2 above, the identification code of the first adapter of version 1 is 5, the identification code of the first adapter of version 2 is 6, the identification code of the first adapter of version 3 is 7, the identification code of the first adapter of version 4 is 8, the identification code of the first power bank is 9, the identification code of the second adapter of version 1 is 10, the identification code of the second adapter of version 2 is 11, and the identification code of the second power bank is 12, so that different adapters have their own specific identification codes, and the upper system performs corresponding charging animation display according to the identification code reported by the lower system and performs scene current setting.
As shown in fig. 3, one example of a display of a charging animation is implemented for software.
After the adapter is inserted, firstly, a PD adaptation detection process is started by a KERNEL layer, the Type of the adapter is detected by the PD by using a CC pin of a Type-C interface, and a corresponding PD detection protocol can be referred to for how to detect specifically;
when the adapter is not a PD adapter, the KERNEL layer detects whether the type of the inserted adapter is USB or DCP according to a BC1.2 general charging protocol;
when the DCP adapter type is identified, the KERNEL layer switches the quick-charge switch to detect whether the type of the inserted adapter is the first adapter or the second adapter, wherein the quick-charge switch comprises a first-stage switch, namely a switch of D + and D-, and the D + and D-are switched from the PMIC to the quick-charge MCU.
When the first adapter is not identified, for example, when the first adapter is not identified within 30 seconds, the plugged-in adapter is considered not to be the first adapter, and the fast charge switch needs to be switched back to the PMIC from the fast charge MCU again, since the QC adapter identifies that pins D + and D-are to be used.
When a corresponding charger is identified, the KERNEL layer makes the fast _ chg _ type into the code, and then sends a Uevent event to an android system layer (namely the upper system) through a power _ supply reporting mechanism, and the android system layer reads the fast _ chg _ type of the KERNEL layer, so that an application displaying charging animation and an application contained in an intelligent charging white list can read the value of the fast _ chg _ type by the android system layer, and then displays correct charging animation and charging current according to the type of an adapter corresponding to the value.
In the embodiment of the application, a brand-new adapter type reporting scheme is provided to support charging animation display and intelligent scene charging. The scheme has the advantages of strong compatibility and expandability, reasonable and effective design of the defined charger type, and avoidance of the previous redundant design. Practical test results show that the scheme is feasible, and the android system layer can use fast _ chg _ type to make many derived logic designs, thereby being beneficial to the reasonable design of the upper-layer logic architecture.
Wherein, compatibility is strong: the method is characterized in that all subsequent items can use the set of codes without modification, and secondly, the flexibility is strong, and most types supported by charging protocols on the market at present comprise the codes. The reason that the expansibility is strong is that a new charging protocol appears in the market later, and the identified result can be directly added into the configuration parameter table.
In the related art, the redundancy design is that chargers of different charging types adopt different nodes and are dispersed in separate files of each project, and in the embodiment of the application, all adapters are directly distinguished and reported in the same file, so that the method is concise, efficient and non-omission.
In addition, since the specific item does not code the type of the first adapter when the first adapter is in a dummy charge (more than 90% of the charge is plugged into the first adapter), the specific item needs to be specially designed to avoid not displaying the charging animation. Therefore, the fast charging firmware needs to be unified for the item subsequently, so that the item and the normal item are kept unified, and as long as the first adapter is inserted, the adapter type is sent under any condition, so as to ensure the function of displaying the charging animation and the scene current on the upper layer.
Based on the foregoing embodiments, an embodiment of the present application provides a display device for charging animation, where the device includes modules that can 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 structural diagram of a display device for charging animation according to an embodiment of the present application, and as shown in fig. 4A, the device 400 includes a determining module 401 and a display module 402, where:
a determination module, configured to determine an identification code of a charging device that establishes an electrical connection with the display apparatus 400, where the identification code is used to uniquely identify the charging device;
the display module is used for displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
In some embodiments, the determination module 401 comprises a detection unit and a determination unit; wherein the detection unit is configured to: when detecting that the charging equipment is electrically connected with the display device 400, detecting the type of the charging equipment; the determining unit is used for determining the corresponding identification code according to the type of the charging equipment.
In some embodiments, the detection unit is configured to: detecting whether the type of the charging device is a PD adapter; when the type of the charging device is not a PD adapter, detecting whether the type of the charging device is a DCP adapter; when the type of the charging device is a DCP adapter, further detecting a DCP adapter subtype to which the type of the charging device belongs.
In some embodiments, the detection unit is configured to: controlling a fast charging switch to disconnect a first connection between a data transmission pin of the display device 400 and the PMIC; controlling the quick charging switch to conduct second connection between the data transmission pin and the MCU matched with the DCP adapter; and controlling the MCU to communicate with the charging equipment through the second connection so as to further detect the DCP adapter subtype to which the type of the charging equipment belongs.
In some embodiments, the detection unit is further configured to: when the DCP adapter subtype to which the type of the charging equipment belongs cannot be determined, controlling the quick charging switch to disconnect the second connection and conduct the first connection; and controlling the PMIC to communicate with the charging device through the first connection so as to determine whether the type of the charging device is a QC adapter.
In some embodiments, as shown in fig. 4B, the display device 400 includes a charging module 403 for: determining a usage scenario of the display apparatus 400; determining a charging current according to the use scene of the display device 400 and the identification code of the charging device; charging the display device 400 according to the charging current.
In some embodiments, a display module 402 to: writing the identification code of the charging device into a specific storage space; the specific storage space is used for uniquely storing an identification code of any type of charging equipment which is currently electrically connected with the display device 400; controlling an upper system to read the identification code from the specific storage space; and controlling the upper-layer system to display the charging animation corresponding to the identification code.
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.
It should be noted that, in the embodiment of the present application, if the display method of the charging animation is implemented in the form of a software functional module and is sold or used as a standalone product, the display 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 instructions for enabling an electronic device (which may be an intelligent mobile terminal, a mobile power source, an electric vehicle, a notebook computer, an unmanned aerial vehicle, a tablet computer, an electronic book, an electronic cigarette, an intelligent electronic device, a small electronic product, or the like) 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.
Accordingly, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the display method of charging animation provided in the above embodiments.
Correspondingly, an embodiment of the present application provides an electronic device, and fig. 5 is a schematic diagram of a hardware entity of the electronic device according to the embodiment of the present application, and as shown in fig. 5, the hardware entity of the electronic device 500 includes: the display device comprises a memory 501 and a processor 502, wherein the memory 501 stores a computer program capable of running on the processor 502, and the processor 502 executes the program to realize the steps of the display method of the charging animation provided in the above embodiment.
The Memory 501 is used for storing instructions and applications executable by the processor 502, 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 502 and modules in the electronic device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
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 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 modules is only one logical functional division, and there may be other division ways in actual implementation, such as: multiple modules 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 modules may be electrical, mechanical or other.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules; can be located in one place or distributed on a plurality of network units; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be separately regarded as one unit, or two or more modules may be integrated into one unit; the integrated module 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 embodied in the form of a software product, which is stored in a storage medium and includes instructions for enabling an electronic device (which may be an intelligent mobile terminal, a mobile power source, an electric vehicle, a notebook computer, an unmanned aerial vehicle, a tablet computer, an electronic book, an electronic cigarette, an intelligent electronic device, a small electronic product, or the like) 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 methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the 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 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 (10)

1. A method for displaying a charging animation, the method comprising:
determining an identification code of a charging device electrically connected with the electronic device, wherein the identification code is used for uniquely identifying the charging device;
displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
2. The method of claim 1, wherein determining the identification code of the charging device that establishes the electrical connection with the electronic device comprises:
detecting the type of the charging equipment when the charging equipment is detected to be electrically connected with the electronic equipment;
and determining a corresponding identification code according to the type of the charging equipment.
3. The method of claim 2, wherein the detecting the type of the charging device comprises:
detecting whether the type of the charging device is a power transfer management (PD) adapter;
when the type of the charging device is not a PD adapter, detecting whether the type of the charging device is a Dedicated Charging Port (DCP) adapter;
when the type of the charging device is a DCP adapter, further detecting a DCP adapter subtype to which the type of the charging device belongs.
4. The method of claim 3, wherein the further detecting a DCP adapter subtype to which the type of the charging device belongs comprises:
controlling a quick charging switch to disconnect a first connection between a data transmission pin of the electronic equipment and a Power Management Integrated Circuit (PMIC);
controlling the quick charging switch to conduct second connection between the data transmission pin and a Micro Control Unit (MCU) matched with the DCP adapter;
and controlling the MCU to communicate with the charging equipment through the second connection so as to further detect the DCP adapter subtype to which the type of the charging equipment belongs.
5. The method of claim 4, further comprising:
when the DCP adapter subtype to which the type of the charging equipment belongs cannot be determined, controlling the quick charging switch to disconnect the second connection and conduct the first connection;
and controlling the PMIC to communicate with the charging device through the first connection so as to determine whether the type of the charging device is a quick charging QC adapter.
6. The method of claim 1, further comprising:
determining a usage scenario of the electronic device;
determining a charging current according to the use scene of the electronic equipment and the identification code of the charging equipment;
and charging the electronic equipment according to the charging current.
7. The method of claim 1, wherein displaying the corresponding charging animation according to the identification code of the charging device comprises:
writing the identification code of the charging device into a specific storage space; the specific storage space is used for uniquely storing an identification code of any type of charging equipment which is electrically connected with the electronic equipment at present;
controlling an upper system to read the identification code from the specific storage space;
and controlling the upper-layer system to display the charging animation corresponding to the identification code.
8. A display device for charging an animation, comprising:
the determining module is used for determining an identification code of the charging equipment which is electrically connected with the display device, and the identification code is used for uniquely identifying the charging equipment;
the display module is used for displaying corresponding charging animation according to the identification code of the charging equipment; wherein, the charging animation that different identification codes correspond is different.
9. An electronic device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps in the display method of charging animation according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps in the display method of the charging animation according to any one of claims 1 to 7.
CN202010042822.1A 2020-01-15 2020-01-15 Display method and device of charging animation, equipment and storage medium Active CN111198743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010042822.1A CN111198743B (en) 2020-01-15 2020-01-15 Display method and device of charging animation, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010042822.1A CN111198743B (en) 2020-01-15 2020-01-15 Display method and device of charging animation, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111198743A true CN111198743A (en) 2020-05-26
CN111198743B CN111198743B (en) 2023-04-25

Family

ID=70746495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010042822.1A Active CN111198743B (en) 2020-01-15 2020-01-15 Display method and device of charging animation, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111198743B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004023386A (en) * 2002-06-14 2004-01-22 Matsushita Electric Ind Co Ltd Charging device and communication terminal
US20120246504A1 (en) * 2011-03-24 2012-09-27 Hon Hai Precision Industry Co., Ltd. Electronic device for detecting a type of a charger device during a sleep mode
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
US20160203626A1 (en) * 2015-01-13 2016-07-14 International Business Machines Corporation Display of context based animated content in electronic map
CN107172305A (en) * 2017-07-18 2017-09-15 上海与德科技有限公司 Terminal adaptive display method, device, terminal and storage medium
CN107368318A (en) * 2017-07-24 2017-11-21 万帮充电设备有限公司 The display system applied that charges and charging application terminal
US20180351373A1 (en) * 2017-06-04 2018-12-06 Apple Inc. Multi-device charging user interface
CN109660859A (en) * 2018-12-25 2019-04-19 北京潘达互娱科技有限公司 A kind of animated show method and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004023386A (en) * 2002-06-14 2004-01-22 Matsushita Electric Ind Co Ltd Charging device and communication terminal
US20120246504A1 (en) * 2011-03-24 2012-09-27 Hon Hai Precision Industry Co., Ltd. Electronic device for detecting a type of a charger device during a sleep mode
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
US20160203626A1 (en) * 2015-01-13 2016-07-14 International Business Machines Corporation Display of context based animated content in electronic map
US20180351373A1 (en) * 2017-06-04 2018-12-06 Apple Inc. Multi-device charging user interface
CN107172305A (en) * 2017-07-18 2017-09-15 上海与德科技有限公司 Terminal adaptive display method, device, terminal and storage medium
CN107368318A (en) * 2017-07-24 2017-11-21 万帮充电设备有限公司 The display system applied that charges and charging application terminal
CN109660859A (en) * 2018-12-25 2019-04-19 北京潘达互娱科技有限公司 A kind of animated show method and mobile terminal

Also Published As

Publication number Publication date
CN111198743B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN108075325B (en) Interface device
US10707688B2 (en) Method and apparatus for high speed charging using various charging schemes
CN112736599B (en) Method and apparatus for providing an interface
CN106990912B (en) Method for controlling SIM card and SD card and electronic equipment for realizing the card
US20120190406A1 (en) Docking station, portable device capable of multimedia data playback management, and methods thereof
KR100997309B1 (en) Method and system for discovering a power source on a peripheral bus
US20100011054A1 (en) Portable Media Delivery System with a Media Server and Highly Portable Media Client Devices
US20190258832A1 (en) Method and electronic device for controlling voltage output to external electronic device according to size of voltage detected at signal terminal connected to external electronic device
US8943232B2 (en) System method for enumerating client devices embedded in a user device during reboot, wake up or restart of user device
US11340676B2 (en) Method of identifying external electronic device based on power information and electronic device and storage medium for supporting same
CN104220957B (en) Charged by USB using the device of multiple signal exchanges
KR20180013561A (en) Electrical device
US20160079802A1 (en) Wireless control method, and apparatus and server adapted to the same
US20200280198A1 (en) Method for controlling connection between electronic device and charging device, and device for providing same
US10645480B2 (en) Electronic apparatus and method for controlling time measurement
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN103135454A (en) Docking station, portable device and methods thereof
CN113220385A (en) Automatic setting method for horizontal and vertical screens of mobile terminal
CN111198743B (en) Display method and device of charging animation, equipment and storage medium
WO2023197709A1 (en) Device identification method and related apparatus
CN104683431B (en) Intelligent network list object method for building up and information processing unit
CN111293748A (en) Method and device for monitoring electric quantity data
WO2016024238A2 (en) Charging device for computing appliances
CN111262737A (en) Port configuration management method and device, storage medium and terminal
CN116315185B (en) Electronic device and battery management method

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