WO2011088672A1 - 一种终端的智能充电方法和智能充电装置 - Google Patents
一种终端的智能充电方法和智能充电装置 Download PDFInfo
- Publication number
- WO2011088672A1 WO2011088672A1 PCT/CN2010/075385 CN2010075385W WO2011088672A1 WO 2011088672 A1 WO2011088672 A1 WO 2011088672A1 CN 2010075385 W CN2010075385 W CN 2010075385W WO 2011088672 A1 WO2011088672 A1 WO 2011088672A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- charging
- terminal
- battery
- flag
- voltage value
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2207/00—Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J2207/30—Charge provided using DC bus or data bus of a computer
Definitions
- the present invention relates to a power charging technology for a terminal, and more particularly to a smart charging method and an intelligent charging device for a terminal. Background technique
- Current smart mobile terminals usually support two charging methods, one is charging by a conventional AC (Alternating Current) charger; the other charging method is using a general purpose on a personal computer (PC, Personal Computer)
- the 5V power supply provided by the serial bus (USB, Universal Serial Bus) port is charged.
- the traditional charging method using the AC charger has a faster charging speed and a more obvious charging effect, but it depends on the existence of the charger.
- the charging method of the USB port of the PC only needs to connect the PC and the mobile terminal with a USB data cable when the PC is turned on, so that the mobile terminal can be charged, which is convenient; however, due to the USB port provided on the PC
- the limitation of the power supply the charging current of the USB port is smaller than that of the AC charger, so the charging time is longer than that of the AC charger.
- the common implementation functions of the software system of the intelligent mobile terminal are: When the mobile terminal and the PC use the USB data line Once connected, both charging and data connection operations are performed. Such an implementation function may cause inconvenience to the user: when the user makes a USB connection not for charging, but only for transmitting or synchronizing data on the PC and the mobile terminal, such as If the situation is not distinguished, the frequent insertion and removal of the USB data cable by the user may cause the software system to frequently charge the mobile terminal, which not only brings a bad experience to the user, but also frequently affects the mobile. The normal function and service life of the terminal battery.
- the current smart mobile terminal provides an optional function of "whether charging when connected to the PC after power on", and the user selects whether to enable the USB charging function according to the purpose of inserting the USB data line.
- This implementation of giving the choice to the user determines the user experience, but requires the user to select each time the USB cable is plugged in, which is cumbersome and inconvenient.
- the main object of the present invention is to provide a smart charging method and a smart charging device for a terminal to implement USB smart charging of the terminal.
- the invention provides a smart charging method for a terminal, the method comprising:
- the terminal When the terminal is connected to the personal computer (PC) through the data line, the terminal collects the current battery voltage value in real time, and compares the collected battery voltage value with a predetermined battery pre-charge voltage threshold to obtain a comparison result. According to the comparison result, when the battery voltage value of the collection is not higher than the battery pre-charge voltage threshold, the terminal simultaneously enters the charging and data transmission synchronization state; otherwise, the terminal only enters the data transmission synchronization state. .
- PC personal computer
- the current battery voltage value is collected in real time, specifically:
- the terminal detects the connection status of the data line in real time, determines whether to enter the smart charging mode when detecting that the data line is connected to the PC and the terminal, and collects the current battery voltage value in real time when determining to enter the smart charging mode.
- the comparison results are as follows: If the battery voltage value of the collection is not higher than the battery pre-charge voltage threshold, the flag flag set to enable the charging function is TRUE; if the battery voltage value of the collection is higher than the battery pre-charge voltage threshold, Set the flag bit flag for turning on the charging function to FALSE.
- the charging and data transmission synchronization states are simultaneously entered, otherwise only the data transmission synchronization state is entered, specifically:
- the terminal reads the value of the flag flag of the charging function, and if the flag is TRUE, the charging and data transmission synchronization states are simultaneously entered; if the flag is FALSE, only the data transmission synchronization state is entered.
- the data lines are Universal Serial Bus (USB) data lines, or other data lines that support charging and data transfer multiplexing.
- USB Universal Serial Bus
- the present invention also provides a smart charging device for a terminal, the device comprising: a voltage value set module, a comparison module and a state processing module, wherein
- the voltage value collection module is configured to collect current battery voltage values of the terminal in real time when the terminal is connected to the PC through the data line;
- the comparing module is configured to compare the battery voltage value of the collected battery with a predetermined battery pre-charging voltage threshold to obtain a comparison result
- the state processing module is configured to, according to the comparison result, enter a charging and data transmission synchronization state when the battery voltage value of the collection is not higher than a battery precharge voltage threshold, and is higher than a battery precharge voltage threshold , only enters the data transfer synchronization state.
- the voltage value collection module is further configured to detect a connection condition of the data line in real time, determine whether to enter the smart charging mode when detecting that the data line is connected to the PC and the terminal, and determine when entering the smart charging mode, real time Set the current battery voltage value.
- the comparison module is further configured to: when the battery voltage value of the collection is not higher than the battery pre-charge voltage threshold, set a flag flag of the on-charge function to be TRUE; When the battery voltage value is higher than the battery pre-charge voltage threshold, the flag flag set to enable the charging function is FALSE.
- the state processing module is further configured to: read a value of a flag bit flag that turns on the charging function, and if the flag is TRUE, enter a charging and data transmission synchronization state at the same time; if the flag is FALSE, enter only data transmission. Synchronization status.
- the data line is a USB data line, or other data line that supports charging and data transmission multiplexing.
- the smart charging method and the intelligent charging device of the terminal provided by the present invention collect current battery voltage values in real time when the terminal is connected to the PC through the data line, and the collected battery voltage value and the predetermined battery pre-preparation
- the charging voltage threshold is compared; according to the comparison result, when the battery voltage value of the collector is not higher than the battery pre-charging voltage threshold, the charging and data transmission synchronization states are simultaneously entered; otherwise, only the data transmission synchronization state is entered.
- the smart charging method and device of the invention it is possible to automatically control whether to charge the battery of the terminal according to the current battery voltage condition of the terminal, thereby avoiding the forced operation of charging the battery every time the connection data line is connected, so that the charging function of the terminal is further improved. Intelligent and user-friendly.
- the smart charging method of the present invention is simple to implement, and can be realized by tampering with the internal driving and application code of the software system of the terminal and the user interface (UI, User Interface) function interface without changing the hardware system of the terminal.
- the invention also does not require the user to set the charging or not according to the needs every time, which greatly enhances the user experience and better realizes the concept of "intelligent" of the intelligent terminal.
- FIG. 1 is a flowchart of a smart charging method of a terminal according to the present invention.
- FIG. 2 is a flowchart of an implementation of an application of an advanced RISC Machine (aARM) in an embodiment of the present invention
- FIG. 3 is a flowchart of an implementation of modulating a high-level reduced instruction set microprocessor (mARM, modem ARM) side according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of a smart charging device of a terminal according to the present invention. detailed description
- the invention needs to distinguish different situations of charging and data transmission synchronization, and proposes a smart charging method of the terminal, and the core idea is as follows:
- the terminal When the terminal is connected to the PC through the data line, the terminal real-time When the current battery voltage value is collected, and the battery voltage value of the collected electricity is not higher than the battery pre-charge voltage threshold, the terminal simultaneously enters the charging and data transmission synchronization state; otherwise, the terminal only enters the data transmission synchronization state.
- the terminal referred to in the present invention refers to all terminals capable of realizing charging and data transmission synchronization when connected to a PC through a data line, and the terminal is not limited to a smart phone or a personal digital assistant (PDA). Also includes music players such as MP3 and MP4. In short, any intelligent charging method applicable to the charging and data transmission synchronization function terminals capable of connecting through data lines is suitable for the terminal to be protected by the present invention.
- the data line for realizing the charging and data transmission synchronization functions is a USB data line
- the data line of the present invention may of course be a USB data line; however, due to differences in hardware systems of various terminal manufacturers, some terminals Synchronously multiplexed ports and data lines may be used with other types of charging and data transmission.
- the data lines of the present invention naturally include: USB data lines, and other data lines that support charging and data transmission multiplexing. That is to say, the present invention does not limit the port type of the data line connection terminal, and the smart charging method proposed by the present invention can be used as long as the data line (regardless of the type) is inserted and has the functions of charging and data transmission synchronization. , distinguish between charging and data transmission synchronization operations, and intelligent charging management.
- the smart charging method provided by the present invention will be described in detail below with reference to FIG.
- the USB data cable will be described as an example.
- the method mainly includes the following steps:
- Step 101 The terminal is connected to the PC through a USB data line.
- Step 102 The terminal determines whether the user selects to enter the USB smart charging mode. If yes, go to step 103; otherwise, go to step 106.
- the terminal detects the connection of the data line in real time, and further determines whether the user selects to enter the USB smart charging mode when detecting that the data line is connected to the PC and the terminal, and performs step 103 when determining that the user selects to enter the USB smart charging mode; otherwise, Go to step 106.
- the so-called smart charging mode refers to a new working mode added in the terminal.
- the terminal works in the smart charging mode, the terminal performs charging according to the smart charging method of the present invention; when the terminal does not work in the smart charging mode The terminal will be charged according to the existing charging method.
- Whether to enter the USB smart charging mode can be selected by the user through the user interface (UI, User Interface) provided by the terminal.
- UI User Interface
- Step 103 The terminal enters a USB smart charging mode.
- Steps 104-105 in the USB smart charging mode, the terminal collects the current battery voltage value in real time through its software system, and compares the collected battery voltage value with a predetermined battery pre-charging voltage threshold; according to the comparison result, When the battery voltage value of the battery is not higher than the battery pre-charge voltage threshold, step 106 is performed; when the battery voltage value of the battery is higher than the battery pre-charge voltage threshold, step 107 is performed.
- Step 106 The terminal simultaneously enters the charging and data transmission synchronization state.
- Step 107 The terminal only enters the data transmission synchronization state.
- the terminal determines that the battery voltage value of the collector is higher than the battery precharge voltage threshold, it is considered that there is no need to charge, and then the internal charging function is disabled, so that only the data transmission synchronization state is entered.
- the predetermined battery pre-charging voltage threshold can be set internally by the software system charging module of the terminal, and the specific value can be determined according to the software system requirements of different terminals or the battery genus. Depending on the sex, if the threshold can be selected as the set voltage of the first low-power alarm reminder of the terminal, it can also be selected as the other set battery low voltage or voltage percentage; the threshold can also be provided by the user through the terminal.
- the UI is set, for example, multiple single-select voltage thresholds can be provided for the user to select, or high, medium, and low battery voltage selection levels can be provided for the user to select. In short, the form of the UI can be rich and varied.
- the smart charging method proposed by the present invention also provides an “on/off smart charging” Optional function; the difference is that when the smart charging function of the invention is turned on, the terminal enters a smart charging mode, that is, when the terminal is connected to the PC through the data line, the embedded software system of the terminal is based on the current battery.
- the voltage condition automatically controls whether the battery of the terminal is charged, thereby avoiding the forced operation of charging the battery every time the data line is connected, and making the charging function of the terminal more intelligent and user-friendly.
- the smart charging method of the present invention is simple to implement, and can be implemented by modifying the internal driving and application code of the software system of the terminal and the UI function interface without changing the hardware system of the terminal.
- the invention also does not require the user to set the charging or not according to the need every time, which greatly enhances the user experience and better realizes the concept of "intelligent" of the intelligent terminal.
- the following is an example of a smart charging method based on a Windows Mobile-based dual-core (mARM + aARM) smartphone.
- mARM + aARM the aARM side is mainly responsible for the battery-driven program of the smartphone
- mARM is mainly responsible for the charging control of the smartphone.
- the implementation process of the aARM side mainly includes the following steps:
- Step 201 Modify the UI interface of the smartphone and the corresponding registry content.
- Modify the UI of the upper application system of the smartphone that is, add optional functions of USB smart charging in the charging setting, and modify the corresponding contents of the internal registry of the system.
- the setting method of the battery pre-charge voltage threshold V can be the internal setting of the system or the user setting. If it is the user setting, the UI of the application system needs to be adjusted accordingly, that is, the UI can provide the USB smart charging. Optional function options for the user to choose from.
- Step 202 In real time, the USB data cable connection of the smart phone is detected in the battery driver of the aARM side. If it is detected that the USB data cable is connected to the PC and the smart phone, go to step 203; otherwise, no further operations are performed.
- Step 203 Determine whether the user chooses to enter the USB smart charging mode. If yes, go to step 204; otherwise, do not perform additional operations.
- Steps 204 ⁇ 205 enter the USB smart charging mode, collect the current battery voltage value V in real time through its battery driver, and compare the collected battery voltage value V with a predetermined battery pre-charging voltage threshold V, if v V, go to step 206; otherwise, go to step 207.
- Step 206 When judging v V, setting the flag flag of the USB charging function to be true (TRUE), indicating that the smart phone needs to be charged, and the smart phone has enabled the USB charging function b
- Step 207 When judging v > V, setting the flag flag of the USB charging function to be false (FALSE), indicating that the smart phone is not required to be charged, and the smart phone turns off the USB charging function.
- FALSE flag flag of the USB charging function
- the mARM side controls the USB charging function according to the value of turning on the USB charging function flag bit flag. If flag is TRUE, the USB charging function is turned on, and the relevant charging hardware configuration is operated; if flag is FALSE, the USB charging function is turned off, and the relevant charging hardware configuration is operated.
- flag is TRUE
- flag is FALSE
- the USB charging function is turned off
- the relevant charging hardware configuration is operated.
- the following problems may occur: When the aARM side is not released, that is, when the smartphone is not turned on or the aARM side is not loaded during the booting process, the mARM side cannot read the aARM side.
- the valid value of the USB charging function flag flag flag flag flag is turned on, only the initialization value of the mARM side can be read, instead of the actual aARM side setting value.
- an NV item value of the smartphone can be selected as the memory value.
- the value of the USB charging function flag flag is turned on after the power is turned on, the flag value is assigned to the NV item value.
- the USB smart charging function can be determined according to the NV value, thereby avoiding the smart phone when the USB data cable is not turned on or inserted during the booting process. The response function does not match the actual selection of the user.
- Step 301 Determine whether the aARM side is released, and if yes, perform step 302; otherwise, execute step 304.
- Step 302 Read the value of the flag of the USB charging function flag.
- Step 303 Determine whether the value of the flag is TRUE. If yes, go to step 306; otherwise, go to step 308.
- step 304 the USB charging function is turned on or off according to the value of the NV item.
- Step 305 Determine whether the value of the NV item is 1, if yes, go to step 306; otherwise, go to step 308.
- Steps 306 ⁇ 307 turn on the USB charging function, and write the value of the NV item to 1.
- Steps 308 ⁇ 309 turn off the USB charging function, and write the value of the NV item to 0.
- the USB charging function is turned on or off according to the value of the flag; when the aARM side is not released, the USB is turned on or off according to the value of the NV item. Charging function.
- Such an operation avoids the inconsistency between the response function of the smartphone and the actual selection of the user when the smartphone is not turned on or the USB data cable is plugged in during the boot process.
- the optional function of "turning on/off the smart charging” according to the present invention can also be combined with the optional function of "whether charging when connected to the PC after power on", that is, providing the two in the terminal.
- Function selection when the user selects the optional function of "turn on/off smart charging", the smart charging process according to the present invention is executed; when the user selects the optional function of "whether charging when connected to the PC after power on", the execution is performed.
- Corresponding operations in the prior art correspond to functions.
- the present invention further provides an intelligent charging device for the terminal. As shown in FIG. 4, the device mainly includes: a voltage value collecting module 10, a comparing module 20, and a state processing module 30.
- the voltage value collection module 10 is configured to collect the current battery voltage value of the terminal in real time when the terminal is connected to the PC through the data line.
- the voltage value collection module 10 detects the connection status of the data line in real time, determines whether to enter the smart charging mode when detecting that the data line is connected to the PC and the terminal, and collects the current battery voltage value in real time when determining to enter the smart charging mode. .
- the comparing module 20 is configured to compare the battery voltage value collected by the voltage value collecting module 10 with a predetermined battery pre-charging voltage threshold to obtain a comparison result.
- the state processing module 30 is configured to enter the charging and data transmission synchronization state simultaneously when the battery voltage value of the collection is not higher than the battery pre-charge voltage threshold according to the comparison result; otherwise, only the data transmission synchronization state is entered.
- the comparison module 20 sets the flag flag of the on-charging function to TRUE when the battery voltage value of the collector is not higher than the battery pre-charge voltage threshold; the battery voltage value in the collector is higher than the battery pre-charge voltage threshold At the same time, the flag flag set to enable the charging function is FALSE; the state processing module 30 reads the value of the flag bit flag for turning on the charging function, and if the flag is TRUE, the charging and data transmission synchronization state is simultaneously entered; if the flag is FALSE, then Only enter the data transfer synchronization state.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Description
一种终端的智能充电方法和智能充电装置 技术领域
本发明涉及终端的电源充电技术, 尤其涉及一种终端的智能充电方法 和智能充电装置。 背景技术
随着移动式嵌入设备技术的不断发展与成熟, 移动终端已成为人们日 常生活中必不可少的通讯电子设备。 而近年来, 集合传统移动终端、 掌上 电脑和移动上网等综合功能的智能移动终端, 已经成为移动终端领域发展 的必然趋势。
目前的智能移动终端通常支持两种充电方式, 一种充电方式为传统的 利用交流( AC , Alternating Current ) 充电器进行充电; 另一种充电方式为 利用个人计算机( PC, Personal Computer )上的通用串行总线( USB , Universal Serial Bus )端口提供的 5V电源进行充电。传统的使用 AC充电器的充电方 式, 其充电速度较快, 充电效果也比较明显, 但是要依托充电器的存在。 而利用 PC的 USB端口的充电方式,只需要在 PC开启的情况下用一根 USB 数据线连接 PC和移动终端, 即可对移动终端进行充电, 比较便捷; 但是, 由于 PC上的 USB端口提供电源的限制, USB端口的充电电流相比 AC充 电器要小, 因此充电时间相比 AC充电器也会较长。
由于通过 PC上的 USB端口进行移动终端与 PC的数据传输和同步也是 智能移动终端的一大功能, 因此, 目前智能移动终端的软件系统常见的实 现功能是: 当移动终端与 PC用 USB数据线连接后, 会同时进行充电和数 据连接操作。 这样的实现功能会造成用户使用上不便: 当用户进行 USB连 接不是为了充电, 而仅仅是为了传输或同步 PC与移动终端上的数据时, 如
果没有对这种情况进行区分, 那么用户频繁插拔 USB数据线会导致软件系 统频繁对移动终端进行充电操作, 这不仅给用户带来了不好的体验, 而且 频繁的充电也会影响到移动终端电池的正常功能和使用寿命。
针对上述问题, 目前的智能移动终端提供了 "开机后连接到 PC时是否 充电" 的可选功能, 由用户根据插入 USB 数据线的目的来选择是否开启 USB充电功能。 这种将选择权交给用户决定的实现方案, 虽然增强了用户 的体验, 但是在每次插入 USB数据线时都需要用户进行选择, 这也存在操 作上的繁瑣和不便。 发明内容
有鉴于此, 本发明的主要目的在于提供一种终端的智能充电方法和智 能充电装置, 以实现对终端的 USB智能充电。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供了一种终端的智能充电方法, 该方法包括:
当终端通过数据线连接到个人计算机(PC )上时, 所述终端实时釆集 当前的电池电压值, 并将釆集的电池电压值与预定的电池预充电电压阔值 进行比较, 得到比较结果; 根据所述比较结果, 在所述釆集的电池电压值 不高于电池预充电电压阔值时, 所述终端同时进入充电和数据传输同步状 态; 否则, 所述终端只进入数据传输同步状态。
所述当终端通过数据线连接到 PC上时, 实时釆集当前的电池电压值, 具体为:
所述终端实时检测数据线的连接情况,在检测到数据线已连接 PC和终 端时, 判断是否进入智能充电模式, 并在判断进入所述智能充电模式时, 实时釆集当前的电池电压值。 比较结果, 具体为:
如果所述釆集的电池电压值不高于电池预充电电压阔值, 则设置开启 充电功能的标志位 flag为 TRUE; 如果所述釆集的电池电压值高于电池预 充电电压阔值, 则设置开启充电功能的标志位 flag为 FALSE。
所述根据比较结果, 在釆集的电池电压值不高于电池预充电电压阔值 时, 同时进入充电和数据传输同步状态, 否则只进入数据传输同步状态, 具体为:
所述终端读取开启充电功能的标志位 flag的值,如果所述 flag为 TRUE , 则同时进入充电和数据传输同步状态; 如果所述 flag为 FALSE, 则只进入 数据传输同步状态。
所述数据线为通用串行总线 (USB )数据线, 或其他支持充电和数据 传输复用的数据线。
本发明还提供了一种终端的智能充电装置, 该装置包括: 电压值釆集 模块、 比较模块和状态处理模块, 其中,
所述电压值釆集模块, 用于在终端通过数据线连接到 PC上时, 实时釆 集所述终端当前的电池电压值;
所述比较模块, 用于将釆集的电池电压值与预定的电池预充电电压阔 值进行比较, 得到比较结果;
所述状态处理模块, 用于根据比较结果, 在所述釆集的电池电压值不 高于电池预充电电压阔值时, 同时进入充电和数据传输同步状态, 高于电 池预充电电压阔值时, 只进入数据传输同步状态。
所述电压值釆集模块进一步用于, 实时检测数据线的连接情况, 在检 测到数据线已连接 PC和终端时, 判断是否进入智能充电模式, 并在判断进 入所述智能充电模式时, 实时釆集当前的电池电压值。
所述比较模块进一步用于, 在所述釆集的电池电压值不高于电池预充 电电压阔值时, 设置开启充电功能的标志位 flag为 TRUE; 在所述釆集的
电池电压值高于电池预充电电压阔值时, 设置开启充电功能的标志位 flag 为 FALSE。
所述状态处理模块进一步用于, 读取开启充电功能的标志位 flag的值, 如果所述 flag为 TRUE, 则同时进入充电和数据传输同步状态; 如果所述 flag为 FALSE, 则只进入数据传输同步状态。
所述数据线为 USB数据线,或其他支持充电和数据传输复用的数据线。 本发明所提供的一种终端的智能充电方法和智能充电装置, 在终端通 过数据线连接到 PC上时, 实时釆集当前的电池电压值, 并将釆集的电池电 压值与预定的电池预充电电压阔值进行比较; 根据比较结果, 在釆集的电 池电压值不高于电池预充电电压阔值时, 同时进入充电和数据传输同步状 态, 否则, 只进入数据传输同步状态。
通过本发明的智能充电方法和装置, 能够根据终端当前的电池电压情 况自动控制是否对终端的电池进行充电, 从而避免了每次连接数据线均对 电池充电的强制操作, 使终端的充电功能更加智能化和人性化。 此外, 本 发明的智能充电方法实现简单, 可在不改变终端的硬件系统的基础上通过 爹改终端的软件系统的内部驱动和应用代码、 以及用户界面 (UI , User Interface )功能界面来实现。 本发明也无需用户每次都根据需要对充电与否 进行设置, 这大大增强了用户体验, 且更好的实现了智能终端 "智能化" 的理念。 附图说明
图 1为本发明一种终端的智能充电方法的流程图;
图 2 为本发明实施例中应用高级精简指令集微处理器 (aARM , application Advanced RISC Machine )侧的实现流程图;
图 3为本发明实施例中调制高级精简指令集微处理器(mARM, modem ARM )侧的实现流程图;
图 4为本发明一种终端的智能充电装置的组成结构示意图。 具体实施方式
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 本发明针对数据线进行 PC和终端连接时,需要区分充电和数据传输同 步的不同情况, 提出一种终端的智能充电方法, 其核心思想为: 当终端通 过数据线连接到 PC上时, 终端实时釆集当前的电池电压值, 并将釆集的电 的电池电压值不高于电池预充电电压阔值时, 终端同时进入充电和数据传 输同步状态, 否则, 终端只进入数据传输同步状态。
需要说明的是, 本发明所谓的终端是指通过数据线与 PC连接时, 能够 实现充电和数据传输同步功能的所有终端, 该终端不仅限于智能手机、 个 人数码助理( PDA, Personal Digital Assistant ), 还包括 MP3、 MP4等音乐 播放器。 总之, 凡是能够通过数据线连接实现充电和数据传输同步功能终 端, 都适用于本发明的智能充电方法, 都应属于本发明要保护的终端范围 内。
另外, 由于目前常用的实现充电和数据传输同步功能的数据线为 USB 数据线, 因此, 本发明所述的数据线当然可以为 USB数据线; 然而, 由于 各终端厂商硬件系统存在差异, 有些终端可能会釆用其他类型的充电和数 据传输同步复用端口、 数据线。 那么, 本发明所述的数据线自然的包括: USB数据线, 以及其他支持充电和数据传输复用的数据线。 也就是说, 本 发明并不对数据线连接终端的端口类型进行限定, 只要插入数据线 (无论 为何种类型)后兼具充电和数据传输同步功能, 即可以釆用本发明所提出 的智能充电方法, 对充电和数据传输同步操作进行区分, 并进行智能化的 充电管理。
下面结合图 1 , 对本发明所提供的智能充电方法进行详细说明, 且为描
述方便, 后续将以 USB数据线为例进行描述。 如图 1所示, 该方法主要包 括以下步骤:
步骤 101 , 终端通过 USB数据线与 PC连接。
步骤 102, 终端判断用户是否选择进入 USB智能充电模式, 如果是, 执行步骤 103 ; 否则, 执行步骤 106。
终端实时检测数据线的连接情况, 在检测到数据线已连接 PC 和终端 时, 进一步判断用户是否选择进入 USB智能充电模式, 并在判断用户选择 进入 USB智能充电模式时, 执行步骤 103; 否则, 执行步骤 106。 所谓智 能充电模式, 是指在终端中新增的一种工作模式, 当终端工作在智能充电 模式下时, 终端会按照本发明的智能充电方法进行充电; 当终端不工作在 智能充电模式下时,终端则会按照现有的充电方法进行充电。是否进入 USB 智能充电模式,可以由用户通过终端所提供的用户界面( UI, User Interface ) 进行选择。
步骤 103 , 终端进入 USB智能充电模式。
步骤 104~105 , 在 USB智能充电模式下, 终端通过其软件系统实时釆 集当前的电池电压值, 并将釆集的电池电压值与预定的电池预充电电压阔 值进行比较; 根据比较结果, 在釆集的电池电压值不高于电池预充电电压 阔值时, 执行步骤 106; 在釆集的电池电压值高于电池预充电电压阔值时, 执行步骤 107。
步骤 106, 终端同时进入充电和数据传输同步状态。
步骤 107 , 终端只进入数据传输同步状态。
当终端判断釆集的电池电压值高于电池预充电电压阔值时, 认为无需 充电, 进而将自身内部的充电功能禁止, 从而只进入数据传输同步状态。
需要说明的是, 预定的电池预充电电压阔值可以通过终端的软件系统 充电模块内部设定, 具体值的取定可视不同终端的软件系统要求或电池属
性而定, 如该阔值可选取为终端第一次低电告警提醒的设定电压, 也可以 选取为其他设定的电池低电压或电压百分比; 该阀值还可以由用户通过终 端所提供的 UI进行设定, 如可以提供多个单选电压界值供用户选择, 或者 提供高、 中、 低等电池电压选择等级供用户选择。 总之, UI的形式可以丰 富多样。
由此可以看出, 与现有技术中提供的 "开机后连接到 PC时是否充电" 的可选功能相同的是, 本发明提出的智能充电方法也提供一种 "开启 /关闭 智能充电" 的可选功能; 所不同的是, 当本发明的智能充电功能开启之后, 终端进入一种智能充电的模式, 即当终端通过数据线与 PC连接后, 终端的 嵌入式软件系统会根据当前的电池电压情况自动控制是否对终端的电池进 行充电, 从而避免了每次连接数据线均对电池充电的强制操作, 使终端的 充电功能更加智能化和人性化。 此外, 本发明的智能充电方法实现简单, 可在不改变终端的硬件系统的基础上通过修改终端的软件系统的内部驱动 和应用代码、 以及 UI功能界面来实现。 本发明也无需用户每次都根据需要 对充电与否进行设置, 这大大增强了用户体验, 且更好的实现了智能终端 "智能化" 的理念。
下面再以基于 Windows Mobile的双核 ( mARM + aARM )智能手机为 例, 对上述终端的智能充电方法进一步详细阐述。 其中, aARM 侧主要负 责智能手机的电池驱动相关程序, mARM主要负责智能手机的充电控制。
aARM侧的实现流程, 如图 2所示, 主要包括以下步骤:
步骤 201 , 修改智能手机的 UI界面和对应的注册表内容。
修改智能手机上层应用系统的 UI,即在充电设置中增加 USB智能充电 的可选功能, 同时对系统内部注册表的对应内容进行修改。 电池预充电电 压阀值 V的设定方式可以是系统内部设定或用户设定, 如果是用户设定, 那么还需要应用系统的 UI做出相应调整, 即保证 UI能够提供 USB智能充
电的可选功能选项供用户选择。
步骤 202 , 在 aARM侧的电池驱动程序中实时检测智能手机的 USB数 据线连接情况, 如果检测到 USB数据线已连接 PC和智能手机, 执行步骤 203; 否则, 不做进一步操作。
步骤 203 , 判断用户是否选择进入 USB智能充电模式, 如果是, 执行 步骤 204; 否则, 不做额外操作。
步骤 204~205 , 进入 USB智能充电模式, 通过其电池驱动程序实时釆 集当前的电池电压值 V,并将釆集的电池电压值 V与预定的电池预充电电压 阔值 V进行比较, 如果 v V, 执行步骤 206; 否则, 执行步骤 207。
步骤 206, 在判断 v V时, 设置开启 USB充电功能的标志位 flag为 真(TRUE ), 表示需要对智能手机充电, 且智能手机已经开启 USB充电功 b
fj匕。
步骤 207 , 在判断 v > V时, 设置开启 USB充电功能的标志位 flag为 假(FALSE ), 表示不需要对智能手机充电, 智能手机关闭 USB充电功能。
mARM侧根据开启 USB充电功能标志位 flag的值来控制 USB充电功 能。 如果 flag为 TRUE, 则开启 USB充电功能, 操作相关的充电硬件配置; 如果 flag为 FALSE, 则关闭 USB充电功能, 操作相关的充电硬件配置。 然 而, 在实际应用时会存在如下问题: 当 aARM侧未被释放时, 即在智能手 机未开机或在开机过程中 aARM侧未被加载完成的情况下, mARM侧是无 法读取 aARM侧提供的开启 USB充电功能标志位 flag的有效值的,只能读 取到 mARM侧的初始化值, 而不是实际的 aARM侧的设定值。 因此, 需要 在 mARM侧根据前一次开机时 aARM侧设定的 flag有效值记录一个记忆 值, 该记忆值不会因为智能手机的开启和关闭而消失。 此处可以选择智能 手机的一个 NV项值作为该记忆值,当开机后开启 USB充电功能标志位 flag 的值随着用户的设定而发生改变时, 则将 flag值赋予该 NV项值。 而在未
开机或在开机过程中插入 USB数据线时, 则可根据该 NV项值来判定是否 开启 USB智能充电功能, 这样避免了智能手机在未开机或在开机过程中插 入 USB数据线时, 智能手机的响应功能与用户实际的选择不一致的情况发 生。
mARM侧的具体实现流程, 如图 3所示, 主要包括以下步骤: 步骤 301 , 判断 aARM侧是否释放, 如果是, 执行步骤 302; 否则, 执 行步骤 304。
步骤 302, 读取开启 USB充电功能标志位 flag的值。
步骤 303 , 判断 flag的值是否为 TRUE, 如果是, 执行步骤 306; 否则, 执行步骤 308。
步骤 304, 才艮据 NV项的值决定开启或关闭 USB充电功能。
步骤 305 , 判断 NV项的值是否为 1 , 如果是, 执行步骤 306; 否则, 执行步骤 308。
步骤 306~307, 开启 USB充电功能, 并写入 NV项的值为 1。
步骤 308~309, 关闭 USB充电功能, 并写入 NV项的值为 0。
从图 3的流程可以看出, 在 aARM侧释放的情况下, 根据 flag的值来 决定开启或关闭 USB充电功能; 在 aARM侧没有释放的情况下, 根据 NV 项的值来决定开启或关闭 USB充电功能。 这样的操作, 避免了智能手机在 未开机或在开机过程中插入 USB数据线时, 智能手机的响应功能与用户实 际的选择不一致的情况发生。
另外, 本发明所述的 "开启 /关闭智能充电" 的可选功能, 也可以与现 有技术中 "开机后连接到 PC时是否充电" 的可选功能结合, 即在终端中提 供这两种功能的选择, 当用户选择 "开启 /关闭智能充电" 的可选功能时, 执行本发明所述的智能充电流程; 当用户选择 "开机后连接到 PC时是否充 电" 的可选功能时, 执行现有技术中对应该功能的相应操作。
为实现上述终端的智能充电方法, 本发明还提供了一种终端的智能充 电装置, 如图 4所示, 该装置主要包括: 电压值釆集模块 10、 比较模块 20 和状态处理模块 30。
其中, 电压值釆集模块 10, 用于在终端通过数据线连接到 PC上时, 实时釆集终端当前的电池电压值。 电压值釆集模块 10实时检测数据线的连 接情况,在检测到数据线已连接 PC和终端时,判断是否进入智能充电模式, 并在判断进入智能充电模式时, 实时釆集当前的电池电压值。
比较模块 20,用于将电压值釆集模块 10釆集的电池电压值与预定的电 池预充电电压阔值进行比较, 得到比较结果。 状态处理模块 30, 用于根据 比较结果, 在釆集的电池电压值不高于电池预充电电压阔值时, 同时进入 充电和数据传输同步状态, 否则, 只进入数据传输同步状态。 具体的, 比 较模块 20在釆集的电池电压值不高于电池预充电电压阔值时, 设置开启充 电功能的标志位 flag为 TRUE; 在釆集的电池电压值高于电池预充电电压 阔值时,设置开启充电功能的标志位 flag为 FALSE; 状态处理模块 30读取 开启充电功能的标志位 flag的值, 如果 flag为 TRUE, 则同时进入充电和 数据传输同步状态; 如果 flag为 FALSE, 则只进入数据传输同步状态。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。
Claims
1、 一种终端的智能充电方法, 其特征在于, 该方法包括:
当终端通过数据线连接到个人计算机(PC )上时, 所述终端实时釆集 当前的电池电压值, 并将釆集的电池电压值与预定的电池预充电电压阔值 进行比较, 得到比较结果;
根据所述比较结果, 在所述釆集的电池电压值不高于电池预充电电压 阔值时, 所述终端同时进入充电和数据传输同步状态; 否则, 所述终端只 进入数据传输同步状态。
2、 根据权利要求 1所述终端的智能充电方法, 其特征在于, 所述当终 端通过数据线连接到 PC上时, 实时釆集当前的电池电压值, 为:
所述终端实时检测数据线的连接情况,在检测到数据线已连接 PC和终 端时, 判断是否进入智能充电模式, 并在判断进入所述智能充电模式时, 实时釆集当前的电池电压值。
3、 根据权利要求 1所述终端的智能充电方法, 其特征在于, 所述将釆 如果所述釆集的电池电压值不高于电池预充电电压阔值, 则设置开启 充电功能的标志位 flag为真(TRUE ); 如果所述釆集的电池电压值高于电 池预充电电压阔值, 则设置开启充电功能的标志位 flag为假( FALSE )。
4、 根据权利要求 3所述终端的智能充电方法, 其特征在于, 所述根据 比较结果, 在釆集的电池电压值不高于电池预充电电压阔值时, 同时进入 充电和数据传输同步状态, 否则只进入数据传输同步状态, 为:
所述终端读取开启充电功能的标志位 flag的值,如果所述 flag为 TRUE , 则同时进入充电和数据传输同步状态; 如果所述 flag为 FALSE, 则只进入 数据传输同步状态。
5、根据权利要求 1至 4任一项所述终端的智能充电方法,其特征在于, 所述数据线为通用串行总线 (USB )数据线, 或其他支持充电和数据传输 复用的数据线。
6、 一种终端的智能充电装置, 其特征在于, 该装置包括: 电压值釆集 模块、 比较模块和状态处理模块, 其中,
所述电压值釆集模块, 用于在终端通过数据线连接到 PC上时, 实时釆 集所述终端当前的电池电压值;
所述比较模块, 用于将釆集的电池电压值与预定的电池预充电电压阔 值进行比较, 得到比较结果;
所述状态处理模块, 用于根据比较结果, 在所述釆集的电池电压值不 高于电池预充电电压阔值时, 同时进入充电和数据传输同步状态, 高于电 池预充电电压阔值时, 只进入数据传输同步状态。
7、 根据权利要求 6所述终端的智能充电装置, 其特征在于, 所述电压 值釆集模块进一步用于, 实时检测数据线的连接情况, 在检测到数据线已 连接 PC和终端时, 判断是否进入智能充电模式, 并在判断进入所述智能充 电模式时, 实时釆集当前的电池电压值。
8、 根据权利要求 6所述终端的智能充电装置, 其特征在于, 所述比较 模块进一步用于, 在所述釆集的电池电压值不高于电池预充电电压阔值时, 设置开启充电功能的标志位 flag为 TRUE; 在所述釆集的电池电压值高于 电池预充电电压阔值时, 设置开启充电功能的标志位 flag为 FALSE。
9、 根据权利要求 8所述终端的智能充电装置, 其特征在于, 所述状态 处理模块进一步用于,读取开启充电功能的标志位 flag的值,如果所述 flag 为 TRUE, 则同时进入充电和数据传输同步状态; 如果所述 flag为 FALSE, 则只进入数据传输同步状态。
10、 根据权利要求 6至 9任一项所述终端的智能充电装置, 其特征在 于,所述数据线为 USB数据线,或其他支持充电和数据传输复用的数据线。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010034400.6 | 2010-01-19 | ||
CN201010034400.6A CN101783427B (zh) | 2010-01-19 | 2010-01-19 | 一种终端的智能充电方法和智能充电装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011088672A1 true WO2011088672A1 (zh) | 2011-07-28 |
Family
ID=42523314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2010/075385 WO2011088672A1 (zh) | 2010-01-19 | 2010-07-22 | 一种终端的智能充电方法和智能充电装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101783427B (zh) |
WO (1) | WO2011088672A1 (zh) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783427B (zh) * | 2010-01-19 | 2014-06-11 | 中兴通讯股份有限公司 | 一种终端的智能充电方法和智能充电装置 |
CN102202117B (zh) | 2011-04-22 | 2015-01-28 | 中兴通讯股份有限公司 | 一种具有usb接口的电子设备及其usb通信启动方法 |
CN103036255A (zh) * | 2011-09-30 | 2013-04-10 | 何春纬 | 充电电路 |
CN103490109B (zh) * | 2012-06-12 | 2016-12-14 | 南京中兴新软件有限责任公司 | 一种终端的充电方法及装置 |
CN103441314B (zh) * | 2013-08-26 | 2016-07-06 | 上海施能电器设备厂 | 一种智能充电机充电方法 |
US9168835B2 (en) * | 2013-11-27 | 2015-10-27 | GM Global Technology Operations LLC | Systems and methods for auxiliary power outlet control |
CN103700900B (zh) * | 2013-12-19 | 2016-09-28 | 贝壳网际(北京)安全技术有限公司 | 移动终端充电的控制方法、装置、系统和移动终端 |
CN103762691B (zh) | 2014-01-28 | 2015-12-23 | 广东欧珀移动通信有限公司 | 电池充电装置及电池充电保护控制方法 |
MX2016009854A (es) | 2014-01-28 | 2017-04-25 | Guang Dong Oppo Mobile Telecomm Corp Ltd | Terminal, adaptador de alimentación eléctrica y método para controlar una anomalía de carga. |
CN105098862A (zh) * | 2014-05-19 | 2015-11-25 | 中兴通讯股份有限公司 | 一种充电控制方法、装置及终端 |
CN104538688B (zh) * | 2014-11-27 | 2017-10-20 | 上海热像机电科技股份有限公司 | 一种嵌入手机式热像仪的智能充电方法 |
CN104657318B (zh) * | 2015-03-19 | 2017-11-07 | 广东欧珀移动通信有限公司 | 与主机端通信的方法、装置及移动终端 |
CN105515092A (zh) * | 2015-12-04 | 2016-04-20 | 小米科技有限责任公司 | 终端充电控制方法及装置 |
CN106684991A (zh) * | 2016-12-30 | 2017-05-17 | 滁州昭阳电信通讯设备科技有限公司 | 一种充电的方法及移动电源 |
CN106842058B (zh) * | 2017-02-28 | 2022-04-01 | 上海传英信息技术有限公司 | 一种基于智能终端的电量控制系统和方法 |
CN108958451B (zh) * | 2018-06-11 | 2021-09-21 | 广州博鳌健康产业研究院(有限合伙) | 一种用于穿戴式设备的数据采集和通信方法及装置 |
CN111193529B (zh) * | 2018-11-15 | 2022-04-12 | 常州市派腾电子技术服务有限公司 | 数据传输方法和装置 |
CN112531835B (zh) * | 2020-11-30 | 2024-06-21 | 东莞市熠源电子科技有限公司 | 移动终端的充电方法、装置、存储介质及移动终端 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2659054Y (zh) * | 2003-08-07 | 2004-11-24 | 海信集团有限公司 | 手机的数据转换及充电装置 |
US20080100260A1 (en) * | 2006-10-27 | 2008-05-01 | Chih-Min Hsu | Charging control method for lithium battery |
CN201312130Y (zh) * | 2008-09-03 | 2009-09-16 | 李家俊 | 一种具有usb通信和扩展功能的充电器 |
CN101694889A (zh) * | 2009-10-20 | 2010-04-14 | 中兴通讯股份有限公司 | 智能充电方法和装置 |
CN101783427A (zh) * | 2010-01-19 | 2010-07-21 | 中兴通讯股份有限公司 | 一种终端的智能充电方法和智能充电装置 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100595613B1 (ko) * | 2003-11-14 | 2006-06-30 | 엘지전자 주식회사 | 충전기 내장형 이동 통신 단말기의 충전 제어 방법 |
KR100713850B1 (ko) * | 2005-09-28 | 2007-05-07 | 삼성전자주식회사 | 배터리 팩과 휴대용 전자장치 및 그 제어방법 |
CN2893948Y (zh) * | 2006-03-30 | 2007-04-25 | 温海涛 | 一种带数据自动存储功能的手机充电器 |
CN201112509Y (zh) * | 2007-06-13 | 2008-09-10 | 顾亚东 | 多用充电装置 |
CN101471463A (zh) * | 2007-12-29 | 2009-07-01 | 鸿富锦精密工业(深圳)有限公司 | 电子装置及其充电方法 |
CN201286124Y (zh) * | 2008-11-05 | 2009-08-05 | 张旺林 | 一种带通用充电接口的手机 |
-
2010
- 2010-01-19 CN CN201010034400.6A patent/CN101783427B/zh active Active
- 2010-07-22 WO PCT/CN2010/075385 patent/WO2011088672A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2659054Y (zh) * | 2003-08-07 | 2004-11-24 | 海信集团有限公司 | 手机的数据转换及充电装置 |
US20080100260A1 (en) * | 2006-10-27 | 2008-05-01 | Chih-Min Hsu | Charging control method for lithium battery |
CN201312130Y (zh) * | 2008-09-03 | 2009-09-16 | 李家俊 | 一种具有usb通信和扩展功能的充电器 |
CN101694889A (zh) * | 2009-10-20 | 2010-04-14 | 中兴通讯股份有限公司 | 智能充电方法和装置 |
CN101783427A (zh) * | 2010-01-19 | 2010-07-21 | 中兴通讯股份有限公司 | 一种终端的智能充电方法和智能充电装置 |
Also Published As
Publication number | Publication date |
---|---|
CN101783427A (zh) | 2010-07-21 |
CN101783427B (zh) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011088672A1 (zh) | 一种终端的智能充电方法和智能充电装置 | |
US8788852B2 (en) | System and method for providing power through a reverse local data transfer connection | |
CN101989749B (zh) | 充电装置及充电方法 | |
WO2013168289A1 (ja) | 電子機器およびその制御方法 | |
CN101526930A (zh) | Usb接口主从机检测装置及检测方法 | |
KR20140113904A (ko) | 복수의 핸드셰이크들을 이용하는 usb를 통한 디바이스 충전 | |
CN106230070B (zh) | 一种充电方法及装置 | |
WO2012030348A1 (en) | Charging port | |
CN105244942A (zh) | 充电电流控制方法及移动终端 | |
CN103024195A (zh) | 一种智能移动终端及其充电实现方法 | |
CN102981916A (zh) | 一种移动终端及其控制方法和装置 | |
CN107104478B (zh) | 一种信息处理方法及电子设备 | |
CN101673190A (zh) | 普通sata硬盘与移动usb硬盘联用的方法 | |
CN106774769B (zh) | 一种终端工作模式的切换方法及装置、手持终端 | |
CN106329625B (zh) | 一种充电方法及装置 | |
CN107742909A (zh) | 充电电路、智能终端及其充电方法 | |
CN104836290A (zh) | 一种移动终端充电器插入拔出的检测方法及检测系统 | |
CN202949498U (zh) | 具有人脸识别装置的电视机 | |
CN107832638A (zh) | 一种终端充电的方法及终端 | |
CN106066438B (zh) | 一种移动终端基于otg检测设备充电状态的方法及系统 | |
CN102223227B (zh) | 安全智能密码存储芯片及其通信文件自动重建方法 | |
TWI717108B (zh) | 電子菸系統動態切換方法 | |
TW202312623A (zh) | 資料備份單元對行動裝置智能充電的方法 | |
TW201234697A (en) | Electrical device and battery management method thereof | |
CN207612080U (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: 10843712 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 10843712 Country of ref document: EP Kind code of ref document: A1 |