WO2020113472A1 - 充电提示方法、装置、移动终端及计算机可读存储介质 - Google Patents
充电提示方法、装置、移动终端及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2020113472A1 WO2020113472A1 PCT/CN2018/119380 CN2018119380W WO2020113472A1 WO 2020113472 A1 WO2020113472 A1 WO 2020113472A1 CN 2018119380 W CN2018119380 W CN 2018119380W WO 2020113472 A1 WO2020113472 A1 WO 2020113472A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- charger
- type
- charging
- mobile terminal
- chargers
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the program performs an interfacing function, e.g. device driver
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/42—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data with electronic devices having internal batteries, e.g. mobile phones
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/47—Arrangements for checking compatibility or authentication between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
Definitions
- the present application belongs to the technical field of terminals, and particularly relates to a charging prompt method, device, mobile terminal, and computer-readable storage medium.
- the mobile terminal can be free from the shackles of the power cord, and has the characteristics of being portable and portable.
- the power terminal or charger adapted to the mobile terminal can charge the mobile terminal anytime and anywhere, making the mobile terminal more portable.
- the present application provides a charging prompt method, device, mobile terminal, and computer-readable storage medium, which can issue a prompt when a user frequently uses a non-recommended type of charger to charge the mobile terminal.
- the first aspect of the present application provides a charging prompt method, which includes:
- a second aspect of the present application provides a charging prompt device, including:
- a determining module used to determine the type of the charger when a charger is connected
- the update module is used to update the historical cumulative times of connecting the charger of the type
- the prompting module is used to issue a prompt when the historical cumulative number of chargers of non-recommended types reaches a preset number of times.
- a third aspect of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
- the processor implements the computer program when the processor executes the computer program. Method steps.
- a fourth aspect of the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, implements the steps of the method of the first aspect.
- a fifth aspect of the present application provides a computer program product.
- the computer program product includes a computer program.
- the steps of the method of the first aspect are implemented.
- FIG. 1 is a schematic diagram of an implementation process of a charging prompt method provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of a correspondence table provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a statistical table provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of an interface of a pop-up window provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a detection circuit provided by an embodiment of the present application.
- FIG. 6 is another schematic structural diagram of a detection circuit provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of a charging prompt device provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
- This embodiment provides a charging prompt method, which can be applied to any mobile terminal with a rechargeable battery that needs to be charged, such as a mobile phone, tablet computer, notebook computer, smart bracelet, and personal digital assistant Wait for mobile terminals.
- any type of rechargeable battery can be selected according to actual needs, for example, a lithium ion battery.
- the charging prompt method provided in this embodiment includes:
- Step S101 When a charger is connected, determine the type of the charger.
- a charger whose output voltage and current are within the charging voltage and current range supported by the mobile terminal can be used to charge the mobile terminal.
- step S101 includes:
- Step S1011 when the charger is connected, obtain the ID of the charger
- Step S1012 Determine the type of the charger according to the ID of the charger.
- an ID resistor that is, IDR identification resistor
- the resistance value of the ID resistor is the ID of the charger.
- the ID of the charger can be obtained by acquiring the resistance value of the ID resistance of the charger. Different types of chargers have different ID resistances embedded inside. According to the resistance value of the ID resistance of the charger, the type of the charger can be determined.
- step S1012 includes:
- Step S10121 According to the ID of the charger, determine the value range of the ID of the charger;
- Step S10122 Determine the type of the charger according to the value range of the ID of the charger.
- the resistance range of the ID resistor embedded in the standard-type charger matching the mobile terminal is constant. According to the value range of the ID of the charger, it can be determined whether the charger belongs to the standard-type charger.
- step S10122 includes:
- the ID of the charger is 0, it is determined that the type of the charger is a standard USB port of a PC client;
- the ID of the charger is within the value range of the ID of a standard charger, it is determined that the type of the charger is a standard charger;
- the non-recommended type of charger includes the standard USB port of the PC client And the non-standard charger.
- the charging circuit corresponding to the standard USB port (Standard Download Port, SDP) of the PC (Personal Computer) client does not include an ID resistor. Therefore, when the ID of the charger is 0, the charger can be determined
- the type is the standard USB port of the PC client.
- the standard charger (Dedicated Charging Port, DCP) is a charger provided with the mobile terminal when shipped from the factory, or a charger with the same parameters as the charger provided with the mobile terminal when shipped from the factory.
- the non-standard charger (Other Charging Port, OCP) is a charger that has different parameters from the charger provided with the mobile terminal when shipped from the factory.
- the standard charger belongs to the recommended type. The recommended type of charger can effectively guarantee the charging efficiency and charging stability, and is suitable for the mobile terminal charger; the non-recommended type of charger has low charging efficiency and poor charging stability.
- step S10122 further includes:
- the ID of the charger is within the value range of the ID of the VOOC flash charging charger, it is determined that the type of the charger is a VOOC flash charging charger.
- VOOC flash charging charger (VOOC Charging Port, VCP) can effectively improve charging efficiency and ensure charging stability.
- VCP VOOC Charging Port
- step S10122 includes:
- step S10122 includes:
- the type of the charger is determined according to the numeric range of the ID of the charger and the corresponding relationship.
- the corresponding relationship may be a mapping relationship, and the mapping relationship may exist in the form of a corresponding relationship table or a look-up table (LUT, look-up-table), or input data having the same function as the display look-up table. That is to find other data tables or random storage memory (Random Access Memory, RAM) type storage media corresponding to the output data according to the input data.
- LUT look-up table
- RAM random storage memory
- a correspondence table indicating correspondence is exemplarily shown; wherein, the value 0 corresponds to a standard USB port of a PC client, the first value range corresponds to a standard charger, and the second value range corresponds to VOOC flash charging The third value range corresponds to the non-standard charger.
- Step S102 Update the historical cumulative number of times the charger of the type is connected.
- the mobile terminal is connected to a certain type of charger once, that is, the historical cumulative number of times that the type of charger is updated is updated.
- step S102 before step S102 includes:
- the corresponding step S102 includes:
- Step S1021 Update the historical cumulative times corresponding to the chargers of the type in the statistical table.
- the statistical table is a one-dimensional array or a two-dimensional table
- the tuple of the two-dimensional table is the historical cumulative times of the chargers of different types, and the attribute of the two-dimensional table is the type of the charger.
- the historical cumulative times corresponding to different types of chargers can be arranged into a one-dimensional array in any order, for example, according to the standard USB port, standard charger, VOOC flash of the PC client Chargers and non-standard chargers are arranged in order, and the cumulative number of times corresponding to each type of charger is arranged; one-dimensional array ⁇ 1, 3, 5, 2 ⁇ represents the standard USB port, standard charger, and VOOC flash charging of the PC client
- the historical cumulative times corresponding to the charger and non-standard charger are 1, 3, 5, and 2, respectively.
- a two-dimensional table is exemplarily shown, in which the standard USB port of the PC client corresponds to the value N1, the standard charger corresponds to the value N2, the VOOC flash charger corresponds to the value N3, and the non-standard charger corresponds to The value N4; N1, N2, N3, and N4 are all integers greater than or equal to 0 and less than or equal to the preset number of times.
- step S1021 includes:
- the mobile terminal is connected to a certain type of charger once, that is, the value of the historical cumulative number of times corresponding to the type of charger in the statistical table is increased by 1.
- step S102 before step S102 includes:
- step S102 includes:
- the time duration of the timing is greater than the preset time duration, the historical cumulative number of times the charger of the type connected is updated.
- the charging duration of a certain type of charger connected to the mobile terminal is greater than the preset duration, it is considered to be a user's active conscious charging.
- the history of this type of charger is updated Accumulated times; when the charging duration of a certain type of charger connected to the mobile terminal is less than or equal to the preset duration, it is considered to be a user's involuntary charging.
- the charger of this type is not updated Historical cumulative times.
- the preset duration can be set to any effective charging duration according to actual needs, for example, any duration from 100S (seconds) to 500S, such as 300S.
- Step S103 When the historical cumulative number of chargers of a non-recommended type reaches a preset number, a prompt is issued.
- the historical cumulative number of non-recommended chargers reaches a preset number, it indicates that users frequently use non-standard chargers or the standard USB port of the PC client to charge the mobile terminal, the charging efficiency is low and the charging stability Poor, at this time, you need to issue a prompt, suggesting that users use a standard charger to charge the mobile terminal.
- the user can be reminded by any prompt method such as pop-up window, short message or voice prompt.
- the specific prompt content can be set according to actual needs, as long as it is used to remind users not to use non-standard chargers too much, it is recommended that users use the contents of standard chargers.
- the prompt content can be: "XX detected that you often use a non-standard charger/PC client's USB port for charging. Using a standard charger can improve charging efficiency.”
- XX is the device name of the mobile terminal or the name of the voice assistant.
- the prompt content displayed on the display interface of the mobile terminal 400 in the form of a pop-up window is exemplarily shown, wherein the prompt content displayed in the pop-up window 401 is “XX detected that you often use a non-standard charger For charging, using a standard charger can improve the charging efficiency.”
- the preset number of times can be set according to actual needs, for example, any number of times between 5 times and 30 times, for example, 20 times.
- step S103 includes:
- step S103 it includes:
- the historical cumulative times of all types of chargers can be cleared, or the historical cumulative times of non-recommended chargers can be cleared, and the mobile terminal can be reconnected to each Count the cumulative number of times the type of charging history.
- the charging prompt method further includes:
- a prompt may also be issued, suggesting that users use VOOC flash chargers to charge mobile terminals to improve charging efficiency and charging stability.
- the user can be reminded by any prompt method such as pop-up window, short message or voice prompt.
- the specific prompt content can be set according to actual needs, as long as it is used to suggest users to use the VOOC flash charging charger.
- the prompt content can be: "XX detected that you often use a non-standard charger/USB port of the PC client/non-VOOC flash charging charger, using the VOOC flash charging charger can Improve charging efficiency".
- XX is the device name of the mobile terminal or the name of the voice assistant.
- the charging prompt method further includes:
- the historical cumulative number of times of the charger of the suggested type reaches a preset number, the historical cumulative number of times of the charger of all types is cleared, or the historical cumulative number of times of the charger of the suggested type is cleared.
- the historical cumulative number of chargers of all types can be cleared, or the historical cumulative number of chargers of non-recommended types can be cleared. Count the accumulated cumulative times of each type of charging.
- the charging prompt method further includes:
- the preset time period can be set according to actual needs, for example, any number of days from 30 days to 90 days, for example, 60 days.
- step S101 before step S101, it includes:
- Step S000 When the charger is connected, detect whether the prompt function is turned off;
- Step S100 When the prompt function is not turned off, determine the type of the charger.
- step S000 before step S000, it includes:
- step S000 it also includes:
- the system setting of the mobile terminal defaults to turn on the prompt function.
- the prompt function When the prompt function is turned on, the system defaults to update and record the historical cumulative number of times that the charger of this type is connected when the mobile terminal is connected to the charger.
- the preset number of times the corresponding prompt is issued.
- the user can turn off the reminder function through any human-computer interaction.
- the reminder function When the reminder function is turned off, the system will stop updating and recording the historical cumulative times. When the historical cumulative times reach the preset number, the corresponding prompt will not be issued.
- keys for turning on and off the prompt function can be set on the system setting interface, the main interface of the mobile terminal, or the main body of the mobile terminal, so as to realize one-key opening and one-key closing control of the prompt function.
- the type of the charger is determined, the number of times the mobile terminal is connected to different types of chargers is accumulated, and a reminder is issued when the mobile terminal is connected to a non-recommended type of charger too many times. Remind users to use the recommended type of charger, which can effectively assist users to improve charging efficiency, improve charging stability and extend battery life.
- this embodiment exemplarily shows the ID detection circuit 500 of the charger.
- the detection circuit 500 includes a voltage dividing resistor R1 and an analog-to-digital converter 511 located in the mobile terminal 510.
- the detection circuit 500 also The resistor R2 in the charger 520 is included, and the resistor R2 is the ID resistance corresponding to the ID of the charger 520.
- connection relationship between the devices in the detection circuit 500 is as follows:
- One end of the voltage dividing resistor R1 is connected to the reference voltage VREF.
- the other end of the voltage dividing resistor R1 is electrically connected to the input terminal of the analog-to-digital converter 511 and one end of the resistor R2, and the other end of the resistor R2 One end is grounded.
- step S101 in Embodiment 1 specifically includes:
- the resistance value of the resistance corresponding to the charger ID is obtained, and the resistance value of the resistance corresponding to the charger ID The resistance is equal to the ID of the charger.
- step S101 in Embodiment 1 is as follows:
- R charger_id represents the resistance of the charger corresponding to the ID of the charger
- R pull_up represents the resistance of the voltage-dividing resistor
- U adc represents the voltage output from the output of the analog-to-digital converter
- U ref represents the Said reference voltage
- the detection circuit 500 further includes a processor 512 connected to the output of the analog-to-digital converter 511.
- the processor is used to obtain the reference voltage, the output voltage of the analog-to-digital converter output terminal and the resistance of the voltage-dividing resistor when the mobile terminal is connected to the charger, according to the reference voltage, the output of the analog-to-digital converter Use the above formula to calculate the resistance of the resistor corresponding to the ID of the charger, and then obtain the ID of the charger.
- the processor can be the central processing unit (CPU) of the mobile terminal, or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (Application Specific Integrated) Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the charging prompt method in Embodiment 1 may be executed by the processor 512, and the charging prompt method is specifically implemented by the processor 512 when running a corresponding computer program.
- This embodiment provides a charging prompt device 7 for executing the method steps in Embodiment 1 or 2, and the charging prompt device 7 may be the mobile terminal described in Embodiment 1 or 2.
- the charging prompt device 7 provided by this embodiment includes:
- the determining module 701 is configured to determine the type of the charger when the charger is connected;
- the update module 702 is used to update the historical cumulative times of connecting the charger of the type
- the prompting module 703 is configured to issue a prompt when the historical cumulative number of chargers of non-recommended types reaches a preset number of times.
- the determination module 701, the update module 702, and the prompt module 703 may be software program modules in the processor of the mobile terminal.
- the so-called processor can be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the determination module 701 includes:
- An obtaining unit configured to obtain the ID of the charger when the charger is connected
- the determining unit is configured to determine the type of the charger according to the ID of the charger.
- the charging prompt device 7 further includes:
- the establishment module is used to establish a statistical table for counting the historical cumulative times of connecting different types of chargers
- the update module 702 includes:
- the first updating unit is used to update the historical cumulative times corresponding to the chargers of the type in the statistical table.
- the charging prompt device 7 further includes:
- the timing module is used to start timing when a charger is connected; stop timing when the charger is unplugged;
- the update module 702 includes:
- the second updating unit is configured to update the cumulative cumulative number of times that the charger of the type is connected when the time duration is greater than the preset time duration.
- the timing module may be a processor or an internal timer of the mobile terminal, and may specifically be implemented by a crystal oscillator.
- the prompting module 703 is further configured to issue a prompt reminding the user to use the suggested type of charger when the historical cumulative number of chargers of the non-recommended type reaches a preset number of times.
- the charging prompt device 7 further includes:
- the clearing module is used to clear the historical cumulative times of all types of chargers; or, to clear the historical cumulative times of chargers of non-recommended types.
- the emptying module is also used to:
- the historical cumulative number of times of the charger of the suggested type reaches a preset number, the historical cumulative number of times of the charger of all types is cleared, or the historical cumulative number of times of the charger of the suggested type is cleared.
- the emptying module is also used to:
- the charging prompt device 7 further includes:
- the detection module is used to detect whether the prompt function is turned off when the charger is connected;
- the determining module 701 is also used to determine the type of the charger when the prompt function is not turned off.
- the detection module is also used to detect whether a charger is connected
- the charging prompt device 7 further includes:
- the return module is used to detect whether the charger is connected when the prompt function is turned off.
- the type of the charger is determined, the number of times the mobile terminal is connected to different types of chargers is accumulated, and a reminder is issued when the mobile terminal is connected to a non-recommended type of charger too many times. Remind users to use the recommended type of charger, which can effectively assist users to improve charging efficiency, improve charging stability and extend battery life.
- connection in all the embodiments of the present application refers to an electrical connection
- the electrical connection refers to a communication connection for transmitting electrical signals implemented through a cable or a data bus.
- the electrical signal may be a current signal, a voltage signal or a pulse signal.
- this embodiment provides a mobile terminal 8 including a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as charging Prompt the program.
- the processor 80 executes the computer program 82, the steps in the above embodiments of each charging prompt method are implemented, for example, steps S101 to S103 shown in FIG. 1.
- the processor 80 executes the computer program 82, the functions of the modules in the foregoing device embodiments are realized, for example, the functions of the modules 701 to 703 shown in FIG. 7.
- the computer program 82 may be divided into one or more modules, and the one or more modules are stored in the memory 81 and executed by the processor 80 to complete the application.
- the one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the mobile terminal 8.
- the computer program 82 may be divided into a determination module, an update module, and a prompt module. The specific functions of each module are as follows:
- a determining module used to determine the type of the charger when a charger is connected
- the update module is used to update the historical cumulative times of connecting the charger of the type
- the prompting module is used to issue a prompt when the historical cumulative number of chargers of non-recommended types reaches a preset number of times.
- the mobile terminal 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art may understand that FIG. 8 is only an example of the mobile terminal 8 and does not constitute a limitation on the mobile terminal 8, and may include more or fewer components than those illustrated, or combine certain components, or different components. For example, the mobile terminal may further include input and output devices, network access devices, buses, and the like.
- the so-called processor 80 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 81 may be an internal storage unit of the mobile terminal 8, such as a hard disk or a memory of the mobile terminal 8.
- the memory 81 may also be an external storage device of the mobile terminal 8, such as a plug-in hard disk equipped on the mobile terminal 8, a smart memory card (Smart) Media (SMC), and a secure digital (SD) Cards, flash cards, etc.
- the memory 81 may also include both an internal storage unit of the mobile terminal 8 and an external storage device.
- the memory 81 is used to store the computer program and other programs and data required by the mobile terminal.
- the memory 81 can also be used to temporarily store data that has been or will be output.
- each functional unit and module is used as an example for illustration.
- the above-mentioned functions can be allocated by different functional units
- Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
- the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit may use hardware It can also be implemented in the form of software functional units.
- the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
- the disclosed device/mobile terminal and method may be implemented in other ways.
- the device/mobile terminal embodiments described above are only schematic.
- the division of the module or unit is only a logical function division, and in actual implementation, there may be another division manner, such as multiple units Or components can be combined or integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit may be implemented in the form of hardware or software functional unit.
- the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
- the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware.
- the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented.
- the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
- the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc.
- ROM Read-Only Memory
- RAM Random Access Memory
- electrical carrier signals telecommunications signals and software distribution media, etc.
- the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media Does not include electrical carrier signals and telecommunications signals.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
一种充电提示方法、装置、移动终端及计算机可读存储介质,(S101)通过在移动终端(510)连接充电器(520)时,确定充电器(520)的类型,(S102)分别累计移动终端(510)连接不同类型的充电器(520)的次数,(S103)并在移动终端(510)连接非建议类型的充电器(520)的次数过多时,发出提示,提醒用户使用建议类型的充电器(520),该方法可以有效辅助用户提高充电效率、提升充电稳定性并延长电池的使用寿命。
Description
本申请属于终端技术领域,尤其涉及一种充电提示方法、装置、移动终端及计算机可读存储介质。
随着科学技术的不断发展,手机、平板电脑、笔记本电脑、智能手环、个人数字助理等层出不穷。通过在移动终端中设置可充电的电池,使得移动终端可以脱离电源线的束缚,具备可移动、可携带的便携式特性。通过与移动终端适配的电源适配器或充电器,可随时随地的为移动终端充电,使得移动终端更加便携。
发明内容
本申请提供一种充电提示方法、装置、移动终端及计算机可读存储介质,可以在用户频繁使用非建议类型的充电器为移动终端充电时,发出提示。
本申请的第一方面提供了一种充电提示方法,其包括:
当连接充电器时,确定所述充电器的类型;
更新连接所述类型的充电器的历史累计次数;
当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
本申请的第二方面提供了一种充电提示装置,其包括:
确定模块,用于当连接充电器时,确定所述充电器的类型;
更新模块,用于更新连接所述类型的充电器的历史累计次数;
提示模块,用于当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
本申请的第三方面提供了一种移动终端,包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现上述第一方面的方法的步骤。
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现上述第一方面的方法的步骤。
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现上述第一方面的方法的步骤。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附 图获得其他的附图。
图1是本申请实施例提供的充电提示方法的实现流程示意图;
图2是本申请实施例提供的对应关系表的示意图;
图3是本申请实施例提供的统计表的示意图;
图4是本申请实施例提供的弹窗的界面示意图;
图5是本申请实施例提供的检测电路的一种结构示意图;
图6是本申请实施例提供的检测电路的另一种结构示意图;
图7是本申请实施例提供的充电提示装置的结构示意图;
图8是本申请实施例提供的移动终端的结构示意图。
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。
实施例1
本实施例提供一种充电提示方法,其可以应用于任意的具有可充电的电池,需要对所述电池进行充电的移动终端,例如,手机、平板电脑、笔记本电脑、智能手环、个人数字助理等移动终端。
在具体应用中,根据移动终端类型的不同,可以根据实际需要选择任意类型的可充电的电池,例如,锂离子电池。
如图1所示,本实施例所提供的充电提示方法,包括:
步骤S101、当连接充电器时,确定所述充电器的类型。
在具体应用中,理论上,输出的电压和电流在移动终端所支持的充电电压和电流范围内的充电器均可用于为移动终端充电。
在一个实施例中,步骤S101包括:
步骤S1011、当连接充电器时,获取所述充电器的ID;
步骤S1012、根据所述充电器的ID,确定所述充电器的类型。
在具体应用中,充电器中嵌入有与充电器的ID(Identification,身份证明)对应的ID电阻(即IDR识别电阻),ID电阻的阻值即为充电器的ID。通过获取充电器的ID电阻的阻值即可得到充电器的ID。不同类型的充电器其内部嵌入的ID电阻的阻值不同。根据充电器的ID电阻的阻值大小,即可确定充电器的类型。
在一个实施例中,步骤S1012包括:
步骤S10121、根据所述充电器的ID,确定所述充电器的ID所处的数值范围;
步骤S10122、根据所述充电器的ID所处的数值范围,确定所述充电器的类型。
在具体应用中,与移动终端配套的标准类型的充电器中嵌入的ID电阻的阻值范围恒定,根据充电器的ID所处的数值范围,即可确定充电器是否属于标准类型的充电器。
在一个实施例中,步骤S10122包括:
当所述充电器的ID为0时,确定所述充电器的类型为PC客户端的标准USB端口;
当所述充电器的ID处于标准充电器的ID的数值范围内时,确定所述充电器的类型为标准充电器;
当所述充电器的ID处于非标准充电器的ID的数值范围内时,确定所述充电器的类型为非标准充电器,所述非建议类型的充电器包括所述PC客户端的标准USB端口和所述非标准充电器。
在具体应用中,PC(Personal Computer,个人计算机)客户端的标准USB端口(Standard Download Port,SDP)对应的充电电路中不包括ID电阻,因此,当充电器的ID为0时,可以确定充电器的类型为PC客户端的标准USB端口。
在具体应用中,标准充电器(Dedicated Charging Port,DCP)为出厂时提供的与移动终端配套的充电器,或者,与出厂时提供的与移动终端配套的充电器的参数相同的充电器。非标准充电器(Other Charging Port,OCP)即为与出厂时提供的与移动终端配套的充电器的参数不相同的充电器。标准充电器属于建议类型的充电器。建议类型的充电器可以有效保证充电效率和充电稳定性,适配于移动终端的充电器;非建议类型的充电器充电效率低下、充电稳定性差。
在一个实施例中,步骤S10122还包括:
当所述充电器的ID处于VOOC闪充充电器的ID的数值范围内时,确定所述充电器的类型为VOOC闪充充电器。
在具体应用中,使用VOOC闪充充电器(VOOC Charging Port,VCP)可以有效提高充电效率且保证充电稳定性,VOOC闪充充电器为建议类型的充电器。
在一个实施例中,步骤S10122之前包括:
建立不同类型的充电器的ID对应的数值范围和充电器的类型之间的对应关系;
对应的,步骤S10122包括:
根据所述充电器的ID所处的数值范围和所述对应关系,确定所述充电器的类型。
在具体应用中,对应关系可以为映射关系,该映射关系可以以对应关系表或显示查找表(LUT,look-up-table)的形式存在,还可以通过具有与显示查找表同等功能的 输入数据即根据输入数据查找对应的输出数据的其他数据表或随机存储记忆体(Random Access Memory,RAM)类存储介质来实现。
如图2所示,示例性的示出了表示对应关系的对应关系表;其中,数值0对应PC客户端的标准USB端口,第一数值范围对应标准充电器,第二数值范围对应VOOC闪充充电器,第三数值范围对应非标准充电器。
步骤S102、更新连接所述类型的充电器的历史累计次数。
在具体应用中,检测到移动终端连接某个类型的充电器一次,即更新该类型的充电器的历史累计次数。
在一个实施例中,步骤S102之前包括:
建立用于统计连接不同类型的充电器的历史累计次数的统计表;
对应的步骤S102,包括:
步骤S1021、更新所述统计表中所述类型的充电器对应的历史累计次数。
在一个实施例中,所述统计表为一维数组或二维表;
当所述统计表为二维表时,所述二维表的元组为不同类型的所述充电器的历史累计次数,所述二维表的属性为所述充电器的类型。
在具体应用中,统计表为一维数组时,可以按照任意顺序将不同类型的充电器对应的历史累计次数排列成一维数组,例如,可以按照PC客户端的标准USB端口、标准充电器、VOOC闪充充电器、非标准充电器的顺序排列各类型的充电器对应的历史累计次数;一维数组{1,3,5,2}表示PC客户端的标准USB端口、标准充电器、VOOC闪充充电器和非标准充电器对应的历史累计次数分别为1、3、5和2。
如图3所示,示例性的示出了一个二维表,其中,PC客户端的标准USB端口对应数值N1,标准充电器对应数值N2,VOOC闪充充电器对应数值N3,非标准充电器对应数值N4;N1、N2、N3和N4均为大于或等于0且小于或等于预设次数的整数。
在一个实施例中,步骤S1021包括:
将所述统计表中所述类型的充电器对应的历史累计次数加1。
在具体应用中,移动终端连接某个类型的充电器一次,即统计表中该类型的充电器对应的历史累计次数的数值加1。
在一个实施例中,步骤S102之前包括:
当连接充电器时,开始计时;
当拔出所述充电器时,停止计时;
对应的,步骤S102包括:
当计时的时长大于预设时长时,更新连接所述类型的充电器的历史累计次数。
在具体应用中,当移动终端连接某个类型的充电器进行充电的时长大于预设时长时,则认为是一次用户主动意识的充电,在这种情况下,才更新该类型的充电器的历史累计次数;当移动终端连接某个类型的充电器进行充电的时长小于或等于预设时长时,则认为是一次用户非主动意识的充电,在这种情况下,不更新该类型的充电器的历史累计次数。
在具体应用中,预设时长可以根据实际需要设置为任意的有效充电时长,例如,100S(秒)~500S中的任意时长,比如,300S。
步骤S103、当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
在具体应用中,当非建议类型的充电器的历史累计次数达到预设次数时,则表明用户频繁使用非标准充电器或PC客户端的标准USB端口为移动终端充电,充电效率低下且充电稳定性较差,此时,则需要发出提示,建议用户使用标准充电器为移动终端充电。可以通过弹窗、短消息或语音提示等任意提示方式,来实现对用户的提醒。具体提示内容可以根据实际需要进行设置,只要是用于提醒用户不要过多使用非标准充电器,建议用户使用标准充电器的内容即可。例如,对于不具备VOOC闪充功能的移动终端,提示内容可以为:“XX检测到您经常使用非标准充电器/PC客户端的USB端口充电,使用标准充电器可以提升充电效率哦”。其中,XX为移动终端的设备名称或语音助手的名称。
如图4所示,示例性的示出了以弹窗形式显示于移动终端400的显示界面的提示内容,其中,弹窗401所显示的提示内容为“XX检测到您经常使用非标准充电器充电,使用标准充电器可以提升充电效率哦”。
在具体应用中,预设次数可以根据实际需要进行设置,例如,5次~30次之间的任意次数,比如,20次。
在一个实施例中,步骤S103包括:
当非建议类型的充电器的历史累计次数达到预设次数时,发出提醒用户使用建议类型的充电器的提示。
在一个实施例中,步骤S103之后,包括:
清空所有类型的所述充电器的历史累计次数;
或者,清空所述非建议类型的充电器的历史累计次数。
在具体应用中,在发出建议用户使用标准充电器的提示之后,可以清空所有类型的充电器的历史累计次数,或者,清空非建议类型的充电器的历史累计次数,重新对移动终端连接每个类型的充电的历史累计次数进行计数。
在一个实施例中,所述充电提示方法,还包括:
当非VOOC闪充充电器的历史累计次数达到预设次数时,发出提醒用户使用VOOC闪充充电器的提示。
在具体应用中,当非VOOC闪充充电器的历史累计次数达到预设次数时,也可以发出提示,建议用户使用VOOC闪充充电器为移动终端充电,以提高充电效率和充电稳定性。可以通过弹窗、短消息或语音提示等任意提示方式,来实现对用户的提醒。具体提示内容可以根据实际需要进行设置,只要是用于建议用户使用VOOC闪充充电器的内容即可。例如,对于具备VOOC闪充功能的移动终端,提示内容可以为:“XX检测到您经常使用非标准充电器/PC客户端的USB端口/非VOOC闪充充电器充电,使用VOOC闪充充电器可以提升充电效率哦”。其中,XX为移动终端的设备名称或语音助手的名称。
在一个实施例中,所述充电提示方法,还包括:
当建议类型的充电器的历史累计次数达到预设次数时,清空所有类型的所述充电器的历史累计次数,或者,清空所述建议类型的充电器的历史累计次数。
在具体应用中,在发出建议用户使用VOOC闪充充电器提示之后,可以清空所有类型的充电器的历史累计次数,或者,清空非建议类型的充电器的历史累计次数,重新对移动终端连接每个类型的充电的历史累计次数进行计数。
在一个实施例中,所述充电提示方法,还包括:
在预设时间段内,当任一类型的充电器的历史累计次数未达到预设次数时,清空所述任一类型的充电器的历史累计次数。
在具体应用中,预设时间段可以根据实际需要进行设置,例如,30天~90天中的任意天数,比如,60天。
在一个实施例中,步骤S101之前,包括:
步骤S000、当连接充电器时,检测是否关闭提示功能;
步骤S100、当未关闭提示功能时,确定所述充电器的类型。
在一个实施例中,步骤S000之前,包括:
检测是否连接充电器;
对应的,步骤S000之后,还包括:
当关闭提示功能时,返回检测是否连接充电器。
在具体应用中,移动终端的系统设置默认开启提示功能,提示功能开启时,系统默认在移动终端连接充电器时,更新和记录连接该类型的充电器的历史累计次数,并在历史累计次数达到预设次数时,发出相应的提示。用户可以通过任意的人机交互方式关闭该提示功能,当提示功能关闭时,系统将会停止更新和记录历史累计次数,在历史累 计次数达到预设次数时,也不发出对应的提示。
在具体应用中,可以在移动终端的系统设置界面、主界面或移动终端主体上设置用于开启和关闭提示功能的按键,以实现提示功能的一键开启和一键关闭控制。
本实施例通过在移动终端连接充电器时,确定充电器的类型,分别累计移动终端连接不同类型的充电器的次数,并在移动终端连接非建议类型的充电器的次数过多时,发出提示,提醒用户使用建议类型的充电器,可以有效辅助用户提高充电效率、提升充电稳定性并延长电池的使用寿命。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例2
如图5所示,本实施例中示例性的示出了充电器的ID的检测电路500,检测电路500包括位于移动终端510中的分压电阻R1和模数转换器511,检测电路500还包括位于充电器520中的电阻R2,电阻R2即为与充电器520的ID对应的ID电阻。
如图5所示,检测电路500中各器件之间的连接关系如下:
分压电阻R1的一端接入参考电压VREF,当移动终端510连接充电器520时,分压电阻R1的另一端与模数转换器511的输入端和电阻R2的一端电连接,电阻R2的另一端接地。
在本实施例中,实施例1中的步骤S101,具体包括:
当移动终端连接充电器时,根据参考电压、模数转换器的输出端输出的电压和分压电阻的阻值,获取充电器的ID对应的电阻的阻值,充电器的ID对应的电阻的阻值等于充电器的ID。
在本实施例中,基于图5所示的检测电路500的结构示意图,实施例1中的步骤S101的实现公式如下:
其中,R
charger_id表示所述充电器的ID对应的电阻的阻值,R
pull_up表示所述分压电阻的阻值,U
adc表示所述模数转换器的输出端输出的电压,U
ref表示所述参考电压。
如图6所示,在本实施例中,检测电路500还包括处理器512,处理器512与模数转换器511的输出端连接。
在本实施例中,处理器用于当移动终端连接充电器时,获取参考电压、模数转换器的输出端输出的电压和分压电阻的阻值,以根据参考电压、模数转换器的输出端输出 的电压和分压电阻的阻值,利用上述公式计算充电器的ID对应的电阻的阻值,从而得到充电器的ID。
在具体应用中,处理器可以是移动终端的中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在具体应用中,实施例1中的充电提示方法可以由处理器512来执行,该充电提示方法具体由处理器512在运行相应的计算机程序时实现。
实施例3
本实施例提供一种充电提示装置7,用于执行实施例1或2中的方法步骤,所述充电提示装置7可以是实施例1或实施例2所述的移动终端。
如图7所示,本实施例提供的充电提示装置7,包括:
确定模块701,用于当连接充电器时,确定所述充电器的类型;
更新模块702,用于更新连接所述类型的充电器的历史累计次数;
提示模块703,用于当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
在具体应用中,确定模块701、更新模块702和提示模块703可以是移动终端的处理器中的软件程序模块。所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在一个实施例中,确定模块701包括:
获取单元,用于当连接充电器时,获取所述充电器的ID;
确定单元,用于根据所述充电器的ID,确定所述充电器的类型。
在一个实施例中,充电提示装置7还包括:
建立模块,用于建立用于统计连接不同类型的充电器的历史累计次数的统计表;
对应的,更新模块702,包括:
第一更新单元,用于更新所述统计表中所述类型的充电器对应的历史累计次数。
在一个实施例中,充电提示装置7还包括:
计时模块,用于当连接充电器时,开始计时;当拔出所述充电器时,停止计时;
对应的,更新模块702,包括:
第二更新单元,用于当计时的时长大于预设时长时,更新连接所述类型的充电器的历史累计次数。
在具体应用中,计时模块可以是处理器或移动终端的内部计时器,具体可以通过晶体振荡器来实现。
在一个实施例中,提示模块703还用于当非建议类型的充电器的历史累计次数达到预设次数时,发出提醒用户使用建议类型的充电器的提示。
在一个实施例中,充电提示装置7还包括:
清空模块,用于清空所有类型的所述充电器的历史累计次数;或者,清空所述非建议类型的充电器的历史累计次数。
在一个实施例中,所述清空模块,还用于:
当建议类型的充电器的历史累计次数达到预设次数时,清空所有类型的所述充电器的历史累计次数,或者,清空所述建议类型的充电器的历史累计次数。
在一个实施例中,所述清空模块,还用于:
在预设时间段内,当任一类型的充电器的历史累计次数未达到预设次数时,清空所述任一类型的充电器的历史累计次数。
在一个实施例中,充电提示装置7,还包括:
检测模块,用于当连接充电器时,检测是否关闭提示功能;
确定模块701还用于当未关闭提示功能时,确定所述充电器的类型。
在一个实施例中,检测模块还用于检测是否连接充电器;
对应的,充电提示装置7,还包括:
返回模块,用于当关闭提示功能时,返回检测是否连接充电器。
本实施例通过在移动终端连接充电器时,确定充电器的类型,分别累计移动终端连接不同类型的充电器的次数,并在移动终端连接非建议类型的充电器的次数过多时,发出提示,提醒用户使用建议类型的充电器,可以有效辅助用户提高充电效率、提升充电稳定性并延长电池的使用寿命。
应理解,本申请所有实施例中的连接均是指电性连接,电性连接是指通过电缆线、数据总线等实现的用于传输电信号的通信连接。电信号可以是电流信号、电压信号或脉冲信号等。
实施例4
如图8所示,本实施例提供一种移动终端8,其包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机程序82,例如充电提示程序。所述处理器80执行所述计算机程序82时实现上述各个充电提示方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,所述处理器80执行所述计算机程序82时实现上述各装置实施例中各模块的功能,例如图7所示模块701至703的功能。
示例性的,所述计算机程序82可以被分割成一个或多个模块,所述一个或者多个模块被存储在所述存储器81中,并由所述处理器80执行,以完成本申请。所述一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序82在所述移动终端8中的执行过程。例如,所述计算机程序82可以被分割成确定模块、更新模块和提示模块,各模块具体功能如下:
确定模块,用于当连接充电器时,确定所述充电器的类型;
更新模块,用于更新连接所述类型的充电器的历史累计次数;
提示模块,用于当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
所述移动终端8可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是移动终端8的示例,并不构成对移动终端8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述移动终端还可以包括输入输出设备、网络接入设备、总线等。
所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器81可以是所述移动终端8的内部存储单元,例如移动终端8的硬盘或内存。所述存储器81也可以是所述移动终端8的外部存储设备,例如所述移动终端8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器81还可以既包括所述移动终端8的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机程序以及所述移动终端所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单 元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/移动终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/移动终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以 为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。
Claims (20)
- 一种充电提示方法,其特征在于,包括:当连接充电器时,确定所述充电器的类型;更新连接所述类型的充电器的历史累计次数;当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
- 根据权利要求1所述的充电提示方法,其特征在于,当连接充电器时,确定所述充电器的类型,包括:当连接充电器时,获取所述充电器的ID;根据所述充电器的ID,确定所述充电器的类型。
- 根据权利要求2所述的充电提示方法,其特征在于,根据所述充电器的ID,确定所述充电器的类型,包括:根据所述充电器的ID,确定所述充电器的ID所处的数值范围;根据所述充电器的ID所处的数值范围,确定所述充电器的类型。
- 根据权利要求3所述的充电提示方法,其特征在于,根据所述充电器的ID所处的数值范围,确定所述充电器的类型,包括:当所述充电器的ID为0时,确定所述充电器的类型为PC客户端的标准USB端口;当所述充电器的ID处于标准充电器的ID的数值范围内时,确定所述充电器的类型为标准充电器;当所述充电器的ID处于非标准充电器的ID的数值范围内时,确定所述充电器的类型为非标准充电器,所述非建议类型的充电器包括所述PC客户端的标准USB端口和所述非标准充电器。
- 根据权利要求4所述的充电提示方法,其特征在于,根据所述充电器的ID所处的数值范围,确定所述充电器的类型,还包括:当所述充电器的ID处于VOOC闪充充电器的ID的数值范围内时,确定所述充电器的类型为VOOC闪充充电器。
- 根据权利要求5所述的充电提示方法,其特征在于,还包括:当非VOOC闪充充电器的历史累计次数达到预设次数时,发出提醒用户使用VOOC闪充充电器的提示。
- 根据权利要求2所述的充电提示方法,其特征在于,应用于移动终端,所述移动终端包括分压电阻和模数转换器,所述充电器包括与所述充电器的ID对应的电阻;所述分压电阻的一端接入参考电压,当所述移动终端连接所述充电器时,所述分压电阻的另一端与所述模数转换器的输入端和所述充电器的ID对应的电阻的一端电连 接,所述充电器的ID对应的电阻的另一端接地;当连接充电器时,获取所述充电器的ID,包括:当所述移动终端连接所述充电器时,根据所述参考电压、所述模数转换器的输出端输出的电压和所述分压电阻的阻值,获取所述充电器的ID对应的电阻的阻值,所述充电器的ID对应的电阻的阻值等于所述充电器的ID。
- 根据权利要求1所述的充电提示方法,其特征在于,更新连接所述类型的充电器的历史累计次数之前,包括:建立用于统计连接不同类型的充电器的历史累计次数的统计表;更新连接所述类型的充电器的历史累计次数,包括:更新所述统计表中所述类型的充电器对应的历史累计次数。
- 根据权利要求9所述的充电提示方法,其特征在于,更新所述统计表中所述类型的充电器对应的历史累计次数,包括:将所述统计表中所述类型的充电器对应的历史累计次数加1。
- 根据权利要求9所述的充电提示方法,其特征在于,所述统计表为一维数组或二维表;当所述统计表为二维表时,所述二维表的元组为不同类型的所述充电器的历史累计次数,所述二维表的属性为所述充电器的类型。
- 根据权利要求1~11任一项所述的充电提示方法,其特征在于,当连接充电器时,确定所述充电器的类型之前,包括:当连接充电器时,检测是否关闭提示功能;当未关闭提示功能时,确定所述充电器的类型。
- 根据权利要求12所述的充电提示方法,其特征在于,当连接充电器时,检测是否关闭提示功能之前,包括:检测是否连接充电器;当连接充电器时,检测是否关闭提示功能之后,还包括:当关闭提示功能时,返回检测是否连接充电器。
- 根据权利要求1~11任一项所述的充电提示方法,其特征在于,更新连接所述类型的充电器的历史累计次数之前,包括:当连接充电器时,开始计时;当拔出所述充电器时,停止计时;更新连接所述类型的充电器的历史累计次数,包括:当计时的时长大于预设时长时,更新连接所述类型的充电器的历史累计次数。
- 根据权利要求1~11任一项所述的充电提示方法,其特征在于,当非建议类型的充电器的历史累计次数达到预设次数时,发出提示之后,包括:清空所有类型的所述充电器的历史累计次数;或者,清空所述非建议类型的充电器的历史累计次数。
- 根据权利要求1~11任一项所述的充电提示方法,其特征在于,当非建议类型的充电器的历史累计次数达到预设次数时,发出提示,包括:当非建议类型的充电器的历史累计次数达到预设次数时,发出提醒用户使用建议类型的充电器的提示。
- 根据权利要求1~11任一项所述的充电提示方法,其特征在于,还包括:当建议类型的充电器的历史累计次数达到预设次数时,清空所有类型的所述充电器的历史累计次数,或者,清空所述建议类型的充电器的历史累计次数。
- 一种充电提示装置,其特征在于,包括:确定模块,用于当连接充电器时,确定所述充电器的类型;更新模块,用于更新连接所述类型的充电器的历史累计次数;提示模块,用于当非建议类型的充电器的历史累计次数达到预设次数时,发出提示。
- 一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至17任一项所述方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至17任一项所述方法的步骤。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP18942452.6A EP3890141A4 (en) | 2018-12-05 | 2018-12-05 | PROCEDURE AND DEVICE FOR CHARGING REQUEST, MOBILE TERMINAL DEVICE AND COMPUTER-READABLE STORAGE MEDIUM |
| PCT/CN2018/119380 WO2020113472A1 (zh) | 2018-12-05 | 2018-12-05 | 充电提示方法、装置、移动终端及计算机可读存储介质 |
| CN201880098897.2A CN113016114A (zh) | 2018-12-05 | 2018-12-05 | 充电提示方法、装置、移动终端及计算机可读存储介质 |
| US17/338,241 US20210294757A1 (en) | 2018-12-05 | 2021-06-03 | Charging Prompting Method, Mobile Terminal, and Computer-Readable Storage Medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2018/119380 WO2020113472A1 (zh) | 2018-12-05 | 2018-12-05 | 充电提示方法、装置、移动终端及计算机可读存储介质 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US17/338,241 Continuation US20210294757A1 (en) | 2018-12-05 | 2021-06-03 | Charging Prompting Method, Mobile Terminal, and Computer-Readable Storage Medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020113472A1 true WO2020113472A1 (zh) | 2020-06-11 |
Family
ID=70974444
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/119380 Ceased WO2020113472A1 (zh) | 2018-12-05 | 2018-12-05 | 充电提示方法、装置、移动终端及计算机可读存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20210294757A1 (zh) |
| EP (1) | EP3890141A4 (zh) |
| CN (1) | CN113016114A (zh) |
| WO (1) | WO2020113472A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20220105787A (ko) * | 2021-01-21 | 2022-07-28 | 삼성전자주식회사 | 전력 공급 회로 및 이를 포함하는 전자 장치 |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050112951A1 (en) * | 2003-11-26 | 2005-05-26 | Chien-An Chen | Memory card reader for electronic devices |
| CN101267120A (zh) * | 2007-03-15 | 2008-09-17 | 中兴通讯股份有限公司 | 识别供电装置的方法及其电路 |
| CN201956711U (zh) * | 2010-12-29 | 2011-08-31 | 上海华勤通讯技术有限公司 | 用于向待充电设备提供充电服务的平台 |
| CN102684270A (zh) * | 2012-05-31 | 2012-09-19 | 华为技术有限公司 | 一种识别usb充电器类型的方法及usb设备 |
| CN102938572A (zh) * | 2012-11-05 | 2013-02-20 | Tcl通讯(宁波)有限公司 | 自动识别非标配充电器及设置其充电电流的方法及系统 |
| CN105048555A (zh) * | 2015-08-04 | 2015-11-11 | Tcl移动通信科技(宁波)有限公司 | 一种usb充电器充电识别的方法及系统 |
| CN105762863A (zh) * | 2015-04-17 | 2016-07-13 | 维沃移动通信有限公司 | 一种充电方法和充电装置 |
| CN106300501A (zh) * | 2016-07-26 | 2017-01-04 | 广东欧珀移动通信有限公司 | 一种适配器识别方法及智能移动终端 |
| CN106684993A (zh) * | 2017-01-03 | 2017-05-17 | 惠州Tcl移动通信有限公司 | 一种基于移动终端的充电器识别处理方法及系统 |
| CN107317061A (zh) * | 2017-05-27 | 2017-11-03 | 北京新能源汽车股份有限公司 | 动力电池管理方法、系统及汽车 |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7205747B2 (en) * | 2004-07-09 | 2007-04-17 | Intersil Americas, Inc. | System and method for monitoring a charging period in a battery charger |
| JP4804326B2 (ja) * | 2006-12-18 | 2011-11-02 | 京セラ株式会社 | 充電制御回路 |
| US8169196B2 (en) * | 2007-06-27 | 2012-05-01 | Sony Mobile Communications Ab | Charging device |
| US20090128346A1 (en) * | 2007-11-20 | 2009-05-21 | Motorola, Inc. | Alert devices and methods for portable electronic device removal from chargers |
| US8288994B2 (en) * | 2008-03-31 | 2012-10-16 | Lenovo (Singapore) Pte. Ltd. | Management of fast battery charging in mobile devices |
| US20110095728A1 (en) * | 2009-10-28 | 2011-04-28 | Superior Communications, Inc. | Method and apparatus for recharging batteries in a more efficient manner |
| JP5630818B2 (ja) * | 2010-10-26 | 2014-11-26 | Necカシオモバイルコミュニケーションズ株式会社 | 携帯端末、携帯端末の制御方法及び携帯端末の制御プログラム |
| CN104411463B (zh) * | 2012-07-06 | 2017-06-30 | 日立工机株式会社 | 背包型电源 |
| WO2014073182A1 (ja) * | 2012-11-07 | 2014-05-15 | 三洋電機株式会社 | 充電器 |
| CN107005062B (zh) * | 2015-10-16 | 2020-01-17 | Oppo广东移动通信有限公司 | 充电方法、移动终端和充电装置 |
| WO2018098942A1 (zh) * | 2016-11-29 | 2018-06-07 | 华为技术有限公司 | 一种确定充电器的方法、相关设备及系统 |
| CN106774769B (zh) * | 2016-12-21 | 2021-09-21 | 浙江大华技术股份有限公司 | 一种终端工作模式的切换方法及装置、手持终端 |
-
2018
- 2018-12-05 EP EP18942452.6A patent/EP3890141A4/en not_active Withdrawn
- 2018-12-05 CN CN201880098897.2A patent/CN113016114A/zh active Pending
- 2018-12-05 WO PCT/CN2018/119380 patent/WO2020113472A1/zh not_active Ceased
-
2021
- 2021-06-03 US US17/338,241 patent/US20210294757A1/en not_active Abandoned
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050112951A1 (en) * | 2003-11-26 | 2005-05-26 | Chien-An Chen | Memory card reader for electronic devices |
| CN101267120A (zh) * | 2007-03-15 | 2008-09-17 | 中兴通讯股份有限公司 | 识别供电装置的方法及其电路 |
| CN201956711U (zh) * | 2010-12-29 | 2011-08-31 | 上海华勤通讯技术有限公司 | 用于向待充电设备提供充电服务的平台 |
| CN102684270A (zh) * | 2012-05-31 | 2012-09-19 | 华为技术有限公司 | 一种识别usb充电器类型的方法及usb设备 |
| CN102938572A (zh) * | 2012-11-05 | 2013-02-20 | Tcl通讯(宁波)有限公司 | 自动识别非标配充电器及设置其充电电流的方法及系统 |
| CN105762863A (zh) * | 2015-04-17 | 2016-07-13 | 维沃移动通信有限公司 | 一种充电方法和充电装置 |
| CN105048555A (zh) * | 2015-08-04 | 2015-11-11 | Tcl移动通信科技(宁波)有限公司 | 一种usb充电器充电识别的方法及系统 |
| CN106300501A (zh) * | 2016-07-26 | 2017-01-04 | 广东欧珀移动通信有限公司 | 一种适配器识别方法及智能移动终端 |
| CN106684993A (zh) * | 2017-01-03 | 2017-05-17 | 惠州Tcl移动通信有限公司 | 一种基于移动终端的充电器识别处理方法及系统 |
| CN107317061A (zh) * | 2017-05-27 | 2017-11-03 | 北京新能源汽车股份有限公司 | 动力电池管理方法、系统及汽车 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3890141A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP3890141A4 (en) | 2021-12-22 |
| US20210294757A1 (en) | 2021-09-23 |
| CN113016114A (zh) | 2021-06-22 |
| EP3890141A1 (en) | 2021-10-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103457458B (zh) | 电流切换控制设备及电子设备 | |
| CN105934865B (zh) | 控制充电的方法和装置以及电子设备 | |
| WO2021008403A1 (zh) | 电池充电管理方法、终端设备及存储介质 | |
| CN108988431B (zh) | 一种多协议充电装置以及多协议充电方法 | |
| WO2020103017A1 (zh) | 一种开机流程控制方法、开机流程控制装置及终端设备 | |
| CN114865755B (zh) | 多电池电源及充放电方法和电子设备 | |
| CN107643998B (zh) | 基于智能模块实现otg和充电双功能的系统 | |
| WO2021190320A1 (zh) | 电池充电保护方法、充电保护装置、移动终端及存储介质 | |
| ES2753802T3 (es) | Procedimiento de carga, dispositivo de carga y terminal | |
| CN110191215A (zh) | 终端及处理方法 | |
| CN114859258B (zh) | 应用于多电池的电量计和电子设备 | |
| CN110429696B (zh) | 电池充电方法、电子装置及计算机可读存储介质 | |
| WO2020097864A1 (zh) | 一种充电检测方法、充电检测装置及终端设备 | |
| CN104362687A (zh) | 一种基于usb-otg双向平衡电量的方法及装置 | |
| CN110265739B (zh) | 电池管理方法、系统、终端设备及存储介质 | |
| CN114844182B (zh) | 充电电路、充电方法及电子设备 | |
| CN115219930B (zh) | 车辆蓄电池老化预警方法、装置、电子设备以及存储介质 | |
| CN110308780B (zh) | 电池管理方法、系统、终端设备及存储介质 | |
| CN112540304A (zh) | 电池电量管理方法、电子设备及计算机存储介质 | |
| CN108388458A (zh) | 消息处理方法及相关产品 | |
| CN110021792A (zh) | 充电控制方法、装置、终端设备及计算机存储介质 | |
| CN105656113A (zh) | 用于充电控制的方法及其电子装置 | |
| CN107658920B (zh) | 基于外置充电实现otg和充电双功能的系统 | |
| US20210294757A1 (en) | Charging Prompting Method, Mobile Terminal, and Computer-Readable Storage Medium | |
| CN111600355B (zh) | 充电控制方法、装置及设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18942452 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2018942452 Country of ref document: EP Effective date: 20210702 |