WO2017096834A1 - 实现无线充电的方法、移动终端和终端 - Google Patents

实现无线充电的方法、移动终端和终端 Download PDF

Info

Publication number
WO2017096834A1
WO2017096834A1 PCT/CN2016/088850 CN2016088850W WO2017096834A1 WO 2017096834 A1 WO2017096834 A1 WO 2017096834A1 CN 2016088850 W CN2016088850 W CN 2016088850W WO 2017096834 A1 WO2017096834 A1 WO 2017096834A1
Authority
WO
WIPO (PCT)
Prior art keywords
boot
wireless charging
processing logic
thread
mobile terminal
Prior art date
Application number
PCT/CN2016/088850
Other languages
English (en)
French (fr)
Inventor
安旭峰
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/242,071 priority Critical patent/US20170161079A1/en
Publication of WO2017096834A1 publication Critical patent/WO2017096834A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Definitions

  • the present application relates to the field of mobile terminals, and in particular, to a method, a mobile terminal, and a terminal for implementing wireless charging.
  • wireless charging technology has been applied to mobile terminals (eg, mobile phones). With wireless charging technology, users can get rid of the charging line that has long shackled mobile phones, which is convenient for some applications and security.
  • wireless charging modes There are two types of wireless charging modes, one is wireless charging in the power-on state, and the other is wireless charging in the power-off state.
  • boot boot and initialization in the boot initialization process to determine whether the boot cause is a wireless charging trigger, and if so, set the boot mode to wireless charging mode. Then the kernel is started normally. After the kernel is started, the upper application service is started and initialized. In the initialization process of the application service, the boot mode is detected first. When the boot mode is detected as the wireless charging mode, a charging application is started, and The charging application completes the charging function. In addition, the charging application can also complete the shutdown alarm response function and button response function.
  • the inventor of the present application found in the prior art that in the prior art, the wireless charging in the off state needs to start the boot, the kernel, the upper application service, and the upper layer of a charging application, and the startup process is relatively large.
  • the time required to initiate wireless charging is relatively long; on the other hand, starting the wireless charging itself also causes loss of power consumption of the mobile phone, thereby causing a problem of low power conversion rate during wireless charging, resulting in waste of electrical energy.
  • An object of the present application is to provide a method for implementing wireless charging and a mobile terminal to avoid the problem that the wireless charging time is long and the power conversion rate is low during wireless charging.
  • a method for implementing wireless charging comprising: initiating a boot and entering an initialization phase of a boot in response to the triggered first boot thread; in the initialization phase of the boot, determining the first A boot thread is triggered by a wireless charging event, which is performed after the initialization phase of the boot is completed and before the kernel is booted.
  • the method further includes: setting, in the initialization phase of the boot, the power-on mode to the wireless charging mode if it is determined that the first boot thread is triggered by a wireless charging event.
  • the method further comprises: performing key processing logic and/or shutdown alarm processing logic after the initialization phase of the boot is completed and before the kernel is started.
  • the executing button processing logic includes: detecting whether there is a short button operation, and if yes, lighting the display screen of the mobile terminal in response to the short button operation, and drawing a charging picture on the display screen, the charging The picture is used to display the charging progress; it is detected whether there is a long button operation, and if so, in response to the long button operation, the second power-on thread is triggered to restart the mobile terminal in the second power-on thread.
  • the executing the alarm clock processing logic comprises: detecting whether the shutdown alarm clock expires; if the shutdown alarm time expires, triggering the third boot thread to restart the mobile terminal in the third boot thread.
  • the loop execution is performed in a single thread: wireless charging processing logic, key processing logic, and shutdown alarm processing logic; or, wireless charging processing logic, and key processing logic Or, wireless charging processing logic, and shutdown alarm processing logic.
  • a mobile terminal for implementing wireless charging including: a boot startup module, configured to start boot and enter an initialization phase of a boot in response to the triggered first boot thread; For determining, in the initialization phase of the boot, whether the first boot thread is triggered by a wireless charging event; the wireless charging processing logic module is configured to execute the wireless charging processing logic after the initialization phase of the boot is completed and before the kernel is started.
  • the mobile terminal further includes: a boot mode setting module, configured to: in the initialization phase of the boot, if it is determined that the first boot thread is triggered by a wireless charging event, setting the boot mode to wireless Charging mode.
  • a boot mode setting module configured to: in the initialization phase of the boot, if it is determined that the first boot thread is triggered by a wireless charging event, setting the boot mode to wireless Charging mode.
  • the mobile terminal further includes: a button processing logic module, configured to execute a button processing logic after the initialization phase of the boot is completed and before the kernel is started; and the shutdown alarm processing logic module is used to complete the initialization phase of the boot. The shutdown alarm processing logic is then executed and before the kernel is started.
  • a button processing logic module configured to execute a button processing logic after the initialization phase of the boot is completed and before the kernel is started.
  • the shutdown alarm processing logic module is used to complete the initialization phase of the boot. The shutdown alarm processing logic is then executed and before the kernel is started.
  • the button processing logic module is further configured to: detect whether there is a short button operation, and if yes, illuminate a display screen of the mobile terminal in response to the short button operation, and draw a charging picture on the display screen, The charging picture is used to display the charging progress; detecting whether there is a long button operation, and if so, in response to the long button operation, triggering the second power-on thread to restart the mobile terminal in the second power-on thread.
  • the shutdown alarm processing logic module is further configured to: detect whether the shutdown alarm expires; if the shutdown alarm expires, trigger a third boot thread to restart the mobile terminal in the third boot thread.
  • a terminal including: the mobile terminal that implements wireless charging according to any one of the second aspect of the present application.
  • an embodiment of the present application provides a method for implementing wireless charging, including a memory, one or more processors, and one or more programs, wherein the one or more programs are in the one or more programs The following operations are performed when the processor executes:
  • booting is initiated and entering an initialization phase of the boot; in the initialization phase of the boot, if it is determined that the first boot thread is triggered by a wireless charging event, after the initialization phase of the boot is completed and is started.
  • the wireless charging processing logic is executed before the kernel.
  • an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and the computer executable instructions, in response to performing, enable a wireless charging execution operation, Operations include:
  • booting is initiated and entering an initialization phase of the boot; in the initialization phase of the boot, if it is determined that the first boot thread is triggered by a wireless charging event, after the initialization phase of the boot is completed and is started.
  • the wireless charging processing logic is executed before the kernel.
  • the method for implementing wireless charging provided by the present application and the mobile terminal start to execute the wireless charging processing logic before the initialization phase of the boot is completed and before starting the kernel, without starting the kernel and the upper layer application after the initialization phase of the boot is completed.
  • the service then enters the charging mode.
  • This method of implementing wireless charging reduces the time to initiate wireless charging and saves power by not requiring the boot kernel and upper layer applications.
  • FIG. 2 is a flow chart of a specific embodiment of a method for implementing wireless charging according to the present application
  • FIG. 3 is a flowchart of a first boot thread of the present application
  • FIG. 4 is a schematic structural diagram of a mobile terminal implementing wireless charging according to the present application.
  • FIG. 5 is a schematic structural diagram of a mobile terminal that implements wireless charging according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a computer program of a mobile terminal for implementing wireless charging according to an embodiment of the present application.
  • FIG. 1 is a flow chart of a method of implementing wireless charging in accordance with the present application.
  • Methods for achieving wireless charging include:
  • Step 101 In response to the triggered first boot thread, boot boot and enter the boot initialization phase.
  • the first boot thread of the mobile phone is triggered by means of electromagnetic induction interruption. Specifically, it is detected whether an electromagnetic induction interruption is generated, if an electromagnetic induction interruption is detected, it is detected whether there is a wireless charging network, and if a wireless charging network is detected, the first power-on thread is triggered.
  • Step 102 In the initialization phase of the boot, if it is determined that the first boot thread is triggered by the wireless charging event, the wireless charging processing logic is executed after the initialization phase of the boot is completed and before the kernel is started.
  • the boot mode is set to the wireless charging mode. In this way, after booting, it directly enters the wireless charging mode of operation.
  • the phone may enter multiple modes, such as restart mode, factory reset mode, and charging mode (divided into wired charging mode or wireless charging mode).
  • the different boot modes of the mobile phone are set because the purpose of the mobile phone booting may be different, so that the mobile phone enters different boot modes after the booting to perform corresponding operations, thereby improving work efficiency.
  • the power-on mode is set to the restart mode if it is determined that the first boot thread is not triggered by a wireless charging event, for example, triggered by a long button.
  • Embodiments of the method of implementing wireless charging include:
  • Step 201 In response to the triggered first boot thread, boot boot and enter the boot initialization phase.
  • Step 202 In the initialization phase of the boot, if it is determined that the first boot thread is triggered by the wireless charging event, after the initialization phase of the boot is completed and before the kernel is started, the first boot thread is entered.
  • the wireless charging processing logic, the key processing logic, and the key processing logic are executed in a single thread manner. And shutdown alarm processing logic; or wireless charging processing logic, and button processing logic; or wireless charging processing logic, and shutdown alarm processing logic.
  • the sequence of performing the wireless charging processing logic, the key processing logic, and the shutdown alarm processing logic in a single-threaded manner is exemplarily shown in FIG. 3, and the execution order of the above processing logics is not limited in actual operation.
  • the operation of entering the first boot thread in step 202 includes the process shown in FIG. 3, which can be implemented in a single-thread loop manner, and FIG. 3 only shows a single execution process:
  • step 301 wireless charging processing logic is executed, in which wireless charging operation is performed.
  • the type of the wireless charger can be determined according to the information sent by the wireless charger, and the corresponding charging current can be set.
  • the current can be set to 2A, 1.5A, or other current values.
  • a first threshold may be set, for example, 90% of the full charge. If the current power rise reaches the first threshold, the charging current is decreased until the charging is stopped.
  • a second threshold such as 95% of the full charge, may also be set, and if the battery is dropped to the second threshold due to user usage after the battery is fully charged, charging is resumed.
  • step 302 key processing logic is executed.
  • this step detecting whether there is a short button operation, and if so, in response to the short button operation, lighting the display screen of the mobile terminal, and drawing a charging picture on the display screen, the charging picture is used to display the charging progress; if not, Continue with the while loop. It is detected whether there is a long button operation, and if so, in response to the long button operation, the second power-on thread is triggered to restart the mobile terminal in the second power-on thread; if not, the while loop is continued.
  • step 303 the shutdown alarm processing logic is executed.
  • the third boot thread is triggered to restart the mobile terminal in the third boot thread. Specifically, in each cycle of the while loop, the information of the hardware register set by the shutdown alarm is read, and if the corresponding shutdown alarm time information is detected, the third startup thread is triggered.
  • the first boot thread shown in FIG. 3 includes wireless charging processing logic and buttons. Processing logic, shutdown alarm processing logic. However, in practice, it may also include only wireless charging processing logic, button processing logic, or only wireless charging processing logic, shutdown alarm processing logic.
  • FIG. 4 illustrates a mobile terminal implementing wireless charging according to the present application, including:
  • the boot startup module 401 is configured to start boot and enter an initialization phase of the boot in response to the triggered first boot thread;
  • the determining module 402 is configured to determine, in an initialization phase of the boot, whether the first boot thread is triggered by a wireless charging event;
  • the wireless charging processing logic module 403 is configured to execute the wireless charging processing logic after the initialization phase of the boot is completed and before the kernel is started.
  • the mobile terminal that implements wireless charging may further include:
  • the boot mode setting module is configured to set the boot mode to the wireless charging mode if it is determined that the first boot thread is triggered by a wireless charging event during the initialization phase of the boot.
  • the mobile terminal that implements wireless charging may further include:
  • Key processing logic module for executing key processing logic after the initialization phase of the boot is completed and before the kernel is started;
  • the shutdown alarm processing logic module is used to execute the shutdown alarm processing logic after the initialization phase of the boot is completed and before the kernel is started.
  • the button processing logic module is further configured to: detect whether there is a short button operation, and if yes, illuminate a display screen of the mobile terminal in response to the short button operation, and draw a charging picture on the display screen, where the charging picture is used The charging progress is displayed; detecting whether there is a long button operation, and if so, in response to the long button operation, triggering the second booting thread to restart the mobile terminal in the second booting thread.
  • the shutdown alarm processing logic module is further configured to: detect whether the shutdown alarm expires; if the shutdown alarm expires, trigger a third boot thread to restart the mobile terminal in the third boot thread.
  • the method for implementing wireless charging provided by the present application and the mobile terminal start to execute the wireless charging processing logic before the initialization phase of the boot is completed and before starting the kernel, without starting the kernel and the upper layer application after the initialization phase of the boot is completed.
  • the service then enters the charging mode.
  • This method of implementing wireless charging reduces the time to initiate wireless charging and saves power by not requiring the boot kernel and upper layer applications.
  • the embodiment of the present application further provides a terminal, including: the mobile terminal that implements wireless charging according to any of the foregoing device embodiments.
  • FIG. 5 is a schematic structural diagram of a mobile terminal that implements wireless charging according to an embodiment of the present disclosure.
  • the mobile terminal implementing wireless charging in the embodiment of the present application includes: a memory 61, one or more processors 62, and one or more programs 63.
  • the one or more programs 63 when executed by one or more processors 62, perform any of the above-described embodiments.
  • the mobile terminal implementing wireless charging in the embodiment of the present application starts the boot and enters the initialization phase of the boot by responding to the triggered first boot thread; in the initialization phase of the boot, if it is determined that the first boot thread is wirelessly charged Event triggering, the wireless charging processing logic is executed after the initialization phase of the boot is completed and before the kernel is started. Before the initialization phase of the boot is completed and before the kernel is started, the wireless charging processing logic is executed, without starting the kernel, the upper application service, and then entering the charging mode after the initialization phase of the boot is completed.
  • This mobile terminal that implements wireless charging shortens the time to initiate wireless charging and saves power by not requiring the booting of the core and upper layer applications.
  • FIG. 6 is a schematic structural diagram of a computer program of a mobile terminal for implementing wireless charging according to an embodiment of the present application.
  • the computer program product 71 of the mobile terminal for implementing wireless charging in the embodiment of the present application may include a signal bearing medium 72.
  • Signal bearing medium 72 may include one or more instructions 73 that, when executed by, for example, a processor, may provide the functionality described above with respect to Figures 1-3.
  • the instructions 73 can include: an initialization phase for initiating boot and entering boot in response to the first boot thread being triggered; and for initializing during boot, if determined The first boot thread is triggered by a wireless charging event, and the wireless charging processing logic is executed after the initialization phase of the boot is completed and before the kernel is booted.
  • a mobile terminal implementing wireless charging can perform one or more of the steps shown in FIG. 1 in response to instruction 73.
  • signal bearing medium 72 can include computer readable media 74 such as, but not limited to, a hard disk drive, a compact disk (CD), a digital versatile disk (DVD), a digital tape, a memory, and the like.
  • the signal bearing medium 72 can include a recordable medium 75 such as, but not limited to, a memory, a read/write (R/W) CD, an R/W DVD, and the like.
  • the signal bearing medium 72 can include a communication medium 76 such as, but not limited to, a digital and/or analog communication medium (eg, fiber optic cable, waveguide, wired communication link, wireless communication link, etc.).
  • computer program product 71 can be transmitted over RF signal bearing medium 72 to one or more modules of a mobile terminal that implements wireless charging, wherein signal bearing medium 72 is comprised of a wireless communication medium (eg, wireless communication compliant with the IEEE 802.11 standard) Media) transfer.
  • a wireless communication medium eg, wireless communication compliant with the IEEE 802.11 standard
  • the computer program product of the embodiment of the present application by using the first boot thread in response to being triggered, starting the boot and entering the initialization phase of the boot, in the initialization phase of the boot, if it is determined that the first boot thread is triggered by the wireless charging event
  • the wireless charging processing logic is executed after the initialization phase of the boot is completed and before the kernel is booted. Before the initialization phase of the boot is completed and before the kernel is started, the wireless charging processing logic is executed, without starting the kernel, the upper application service, and then entering the charging mode after the initialization phase of the boot is completed.
  • This mobile terminal that implements wireless charging shortens the time to initiate wireless charging and saves power by not requiring the booting of the core and upper layer applications.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

一种实现无线充电的方法和移动终端。该方法包括:响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段(101);在boot的初始化阶段,如果确定第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑(102)。这种实现无线充电的方法和移动终端缩短了启动无线充电的时间,并且由于不需要启动内核和上层应用而节省了电能。

Description

实现无线充电的方法、移动终端和终端
本申请要求于2015年12月8日提交中国专利局、申请号为2015108973418、发明名称为“实现无线充电的方法和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动终端领域,尤其涉及实现无线充电的方法、移动终端和终端。
背景技术
目前,无线充电技术已经被应用到移动终端(如,手机)上。通过无线充电技术,用户可以摆脱长久以来束缚手机的充电线,从而在某些应用方面和安全方面获得便利。无线充电模式分为两种,一种是开机状态下的无线充电,另一种是关机状态下的无线充电。
在现有技术中,以关机状态的手机进行无线充电为例,用户将处于关机状态的手机放到无线充电器上,手机在检测到充电网络后便通过电磁感应中断等方式触发开机。其中,先启动boot并进行初始化,在boot的初始化过程中需确定开机原因是否为无线充电触发,如果是,将开机模式设置为无线充电模式。然后正常启动内核,内核启动后,最后启动上层的应用服务并进行初始化,在应用服务的初始化过程中会先检测开机模式,当检测到开机模式为无线充电模式时,启动一个充电应用,并由该充电应用完成充电功能的工作。除此之外,该充电应用还可以完成关机闹钟响应功能以及按键响应功能等工作。
但是,本申请的发明人在研究中发现,在现有技术中,关机状态下的无线充电需要先后启动boot、内核、上层的应用服务以及上层的一个充电应用,启动流程比较多,一方面,导致启动无线充电的时间比较长;另一方面,启动无线充电本身也产生对手机的功耗损耗,从而导致无线充电时电能转换率较低的问题,造成了电能的浪费。
发明内容
本申请旨在解决上面描述的问题。本申请的一个目的是提供一种实现无线充电的方法以及移动终端,以避免启动无线充电时间长、无线充电时电能转换率较低的问题。
根据本申请的第一方面,提供了一种实现无线充电的方法,包括:响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
可选地,所述方法还包括:在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,将开机模式设置为无线充电模式。
可选地,所述方法还包括:在boot的初始化阶段完毕之后且在启动内核之前,执行按键处理逻辑和/或关机闹钟处理逻辑。
可选地,所述执行按键处理逻辑包括:检测是否存在短按键操作,如果是则响应于短按键操作,点亮移动终端的显示屏幕,并在所述显示屏幕上绘制充电图片,所述充电图片用于显示充电进度;检测是否存在长按键操作,如果是则响应于长按键操作,触发第二开机线程,以便在所述第二开机线程中重启移动终端。
可选地,所述执行闹钟处理逻辑包括:检测关机闹钟是否到时;如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。
可选地,在boot的初始化阶段完毕之后且在启动内核之前,在单线程中循环执行:无线充电处理逻辑、按键处理逻辑、和关机闹钟处理逻辑;或者,无线充电处理逻辑、和按键处理逻辑;或者,无线充电处理逻辑、和关机闹钟处理逻辑。
根据本申请实施例的第二方面,提供了一种实现无线充电的移动终端,包括:boot启动模块,用于响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;判断模块,用于在boot的初始化阶段,确定所述第一开机线程是否由无线充电事件触发;无线充电处理逻辑模块,用于在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
其中,所述移动终端还包括:开机模式设置模块,用于在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,将开机模式设置为无线 充电模式。
可选地,所述移动终端还包括:按键处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行按键处理逻辑;关机闹钟处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行关机闹钟处理逻辑。
可选地,所述按键处理逻辑模块还用于:检测是否存在短按键操作,如果是则响应于短按键操作,点亮移动终端的显示屏幕,并在所述显示屏幕上绘制充电图片,所述充电图片用于显示充电进度;检测是否存在长按键操作,如果是则响应于长按键操作,触发第二开机线程,以便在所述第二开机线程中重启移动终端。
可选地,所述关机闹钟处理逻辑模块还用于:检测关机闹钟是否到时;如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。
第三方面,还提供了一种终端,包括:如本申请第二方面任一项提供的所述实现无线充电的移动终端。
第四方面,本申请实施例提供一种实现无线充电的方法,包括存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
第五方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机可执行指令,所述计算机可执行指令响应于执行使得实现无线充电执行操作,所述操作包括:
响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
本申请所提供的实现无线充电的方法及移动终端在boot的初始化阶段完成之前且在启动内核之前,就开始执行无线充电处理逻辑,而不需要在boot的初始化阶段完成之后先启动内核、上层应用服务再进入充电模式。这种实现无线充电的方法缩短了启动无线充电的时间,并且由于不需要启动内核和上层应用而节省了电能。
参照附图来阅读对于示例性实施例的以下描述,本申请的其他特性特征和优点将变得清晰。
附图说明
并入到说明书中并且构成说明书的一部分的附图示出了本申请的实施例,并且与描述一起用于解释本申请的原理。在这些附图中,类似的附图标记用于表示类似的要素。下面描述中的附图是本申请的一些实施例,而不是全部实施例。对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,可以根据这些附图获得其他的附图。
图1为本申请实现无线充电方法的流程图;
图2为本申请的一种实现无线充电方法的具体实施例的流程图;
图3为本申请的第一开机线程的流程图;
图4为本申请的实现无线充电的移动终端的结构示意图;
图5为本申请实施例提供的实现无线充电的移动终端的结构示意图;
图6为本申请实施例提供的用于实现无线充电的移动终端的计算机程序的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
图1是根据本申请的实现无线充电的方法的流程图。实现无线充电的方法包括:
步骤101,响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段。
在该步骤中,通过电磁感应中断的方式触发手机的第一开机线程。具体地,检测是否产生电磁感应中断,如果检测到电磁感应中断,则检测是否存在无线充电网络,如果检测到无线充电网络则触发第一开机线程。
步骤102,在boot的初始化阶段,如果确定第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
其中在boot的初始化阶段,如果确定第一开机线程是由无线充电事件触发,则将开机模式设置为无线充电模式。这样,开机后就直接进入无线充电的操作模式。实际中,手机开机后可能进入多种模式,例如重启模式、恢复出厂设置模式、充电模式(分为有线充电模式或无线充电模式)。手机设置不同的开机模式是因为手机开机的目的可能不同,这样手机开机后进入不同的开机模式执行相应的操作,提高工作效率。
此外,如果确定第一开机线程不是由无线充电事件触发,例如,由长按键触发,则将开机模式设置为重启模式。
具体地,在boot的初始化阶段完毕之后且在启动内核之前,还可能执行按键处理逻辑和/或关机闹钟处理逻辑。按键处理逻辑和关机闹钟处理逻辑会在下面具体实施例中详细描述。
图2是根据本申请的实现无线充电的方法的一个具体实施例的流程图。该实现无线充电的方法的实施例包括:
步骤201,响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段。
步骤202,在boot的初始化阶段,如果确定第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,进入第一开机线程。
在第一开机线程中,以单线程的方式执行无线充电处理逻辑、按键处理逻辑、 和关机闹钟处理逻辑;或者无线充电处理逻辑、和按键处理逻辑;或者无线充电处理逻辑、和关机闹钟处理逻辑。
下面在图3中示例性地示出了以单线程的方式执行无线充电处理逻辑、按键处理逻辑、和关机闹钟处理逻辑的顺序,实际操作中并不限定上述各处理逻辑的执行顺序。
步骤202中的进入第一开机线程的操作包括如图3所示的过程,该过程可以用单线程循环的方式实现,图3仅仅示出了单次执行过程:
步骤301,执行无线充电处理逻辑,在该步骤中进行无线充电操作。
在该步骤中,可以根据接收到无线充电器所发送的信息来判断无线充电器的类型,并设置对应的充电电流。通常,可以将电流设置为2A、1.5A,或者其他电流值。在充电时,可以设置第一阈值,例如充满电量的90%,如果当前电量上升达到该第一阈值,则减小充电电流,直到充满后停止充电。此外,还可以设置第二阈值,例如充满电量的95%,如果在电量充满后由于用户使用使得电量下降到该第二阈值,则再次开始充电。
步骤302,执行按键处理逻辑。
在该步骤中,检测是否存在短按键操作,如果是,响应于短按键操作,点亮移动终端的显示屏幕,并在显示屏幕上绘制充电图片,该充电图片用于显示充电进度;如果否,继续进行while循环。检测是否存在长按键操作,如果是,响应于长按键操作,触发第二开机线程,以便在第二开机线程中重启移动终端;如果否,继续进行while循环。
步骤303,执行关机闹钟处理逻辑。
在该步骤中,检测关机闹钟是否到时;如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。具体地,在该while循环的每次循环中,读取该关机闹钟所设置的硬件寄存器的信息,如果检测到相应的关机闹钟到时信息,则触发第三开机线程。
需要说明的是,图3所示的第一开机线程中,包括无线充电处理逻辑、按键 处理逻辑、关机闹钟处理逻辑。但是在实际上可以根据需要,也可以仅包括无线充电处理逻辑、按键处理逻辑,或者仅包括无线充电处理逻辑、关机闹钟处理逻辑。
图4示出了根据本申请的实现无线充电的移动终端,包括:
boot启动模块401,用于响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;
判断模块402,用于在boot的初始化阶段,确定第一开机线程是否由无线充电事件触发;
无线充电处理逻辑模块403,用于在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
该实现无线充电的移动终端还可以包括:
开机模式设置模块,用于在boot的初始化阶段,如果确定第一开机线程是由无线充电事件触发,将开机模式设置为无线充电模式。
此外,该实现无线充电的移动终端还可以包括:
按键处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行按键处理逻辑;
关机闹钟处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行关机闹钟处理逻辑。
其中,按键处理逻辑模块还用于:检测是否存在短按键操作,如果是,响应于短按键操作,点亮移动终端的显示屏幕,并在所述显示屏幕上绘制充电图片,所述充电图片用于显示充电进度;检测是否存在长按键操作,如果是,响应于长按键操作,触发第二开机线程,以便在所述第二开机线程中重启移动终端。
关机闹钟处理逻辑模块还用于:检测关机闹钟是否到时;如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。
实现无线充电的移动终端所包括的各模块的功能与无线充电的方法中具体 的执行方式对应相同,此处不再赘述。
本申请所提供的实现无线充电的方法及移动终端在boot的初始化阶段完成之前且在启动内核之前,就开始执行无线充电处理逻辑,而不需要在boot的初始化阶段完成之后先启动内核、上层应用服务再进入充电模式。这种实现无线充电的方法缩短了启动无线充电的时间,并且由于不需要启动内核和上层应用而节省了电能。
本申请实施例还提供一种终端,包括:如以上任一装置实施例提供的所述实现无线充电的移动终端。
图5为本申请实施例提供的实现无线充电的移动终端的结构示意图。如图5所示,本申请实施例的实现无线充电的移动终端包括:存储器61、一个或多个处理器62以及一个或多个程序63。
其中,所述一个或多个程序63在由一个或多个处理器62执行时执行上述实施例中的任意一种方法。
本申请实施例的实现无线充电的移动终端,通过响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。在boot的初始化阶段完成之前且在启动内核之前,就开始执行无线充电处理逻辑,而不需要在boot的初始化阶段完成之后先启动内核、上层应用服务再进入充电模式。这种实现无线充电的移动终端缩短了启动无线充电的时间,并且由于不需要启动内核和上层应用而节省了电能。
图6为本申请实施例提供的用于实现无线充电的移动终端的计算机程序的结构示意图。如图6所示,本申请实施例的用于实现无线充电的移动终端的计算机程序产品71,可以包括信号承载介质72。信号承载介质72可以包括一个或更多个指令73,该指令73在由例如处理器执行时,处理器可以提供以上针对图1-3描述的功能。例如,指令73可以包括:用于响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;以及用于在boot的初始化阶段,如果确定 所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。因此,例如,参照图1,实现无线充电的移动终端可以响应于指令73来进行图1中所示的步骤中的一个或更多个。
在一些实现中,信号承载介质72可以包括计算机可读介质74,诸如但不限于硬盘驱动器、压缩盘(CD)、数字通用盘(DVD)、数字带、存储器等。在一些实现中,信号承载介质72可以包括可记录介质75,诸如但不限于存储器、读/写(R/W)CD、R/W DVD等。在一些实现中,信号承载介质72可以包括通信介质76,诸如但不限于数字和/或模拟通信介质(例如,光纤线缆、波导、有线通信链路、无线通信链路等)。因此,例如,计算机程序产品71可以通过RF信号承载介质72传送给实现无线充电的移动终端的一个或多个模块,其中,信号承载介质72由无线通信介质(例如,符合IEEE 802.11标准的无线通信介质)传送。
本申请实施例的计算机程序产品,通过利用响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段,在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,由于在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。在boot的初始化阶段完成之前且在启动内核之前,就开始执行无线充电处理逻辑,而不需要在boot的初始化阶段完成之后先启动内核、上层应用服务再进入充电模式。这种实现无线充电的移动终端缩短了启动无线充电的时间,并且由于不需要启动内核和上层应用而节省了电能。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
上面描述的内容可以单独地或者以各种方式组合起来实施,而这些变型方式 都在本申请的保护范围之内。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制。尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (12)

  1. 一种实现无线充电的方法,其特征在于,包括:
    响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;
    在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
  2. 根据权利要求1所述的实现无线充电的方法,其特征在于,所述方法还包括:
    在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,将开机模式设置为无线充电模式。
  3. 根据权利要求1或2所述的实现无线充电的方法,其特征在于,所述方法还包括:
    在boot的初始化阶段完毕之后且在启动内核之前,执行按键处理逻辑和/或关机闹钟处理逻辑。
  4. 根据权利要求3所述的实现无线充电的方法,其特征在于,所述执行按键处理逻辑包括:
    检测是否存在短按键操作,如果是,响应于短按键操作,点亮移动终端的显示屏幕,并在所述显示屏幕上绘制充电图片,所述充电图片用于显示充电进度;
    检测是否存在长按键操作,如果是,响应于长按键操作,触发第二开机线程,以便在所述第二开机线程中重启移动终端。
  5. 根据权利要求3所述的实现无线充电的方法,其特征在于,所述执行闹钟处理逻辑包括:
    检测关机闹钟是否到时;
    如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。
  6. 根据权利要求3所述的实现无线充电的方法,其特征在于,在boot的初始化阶段完毕之后且在启动内核之前,在单线程中循环执行:
    无线充电处理逻辑、按键处理逻辑、和关机闹钟处理逻辑;或者,
    无线充电处理逻辑、和按键处理逻辑;或者,
    无线充电处理逻辑、和关机闹钟处理逻辑。
  7. 一种实现无线充电的移动终端,其特征在于,包括:
    boot启动模块,用于响应于被触发的第一开机线程,启动boot并进入boot的初始化阶段;
    判断模块,用于在boot的初始化阶段,确定所述第一开机线程是否由无线充电事件触发;
    无线充电处理逻辑模块,用于在boot的初始化阶段完成之后且在启动内核之前,执行无线充电处理逻辑。
  8. 根据权利要求7所述的实现无线充电的移动终端,其特征在于,所述移动终端还包括:
    开机模式设置模块,用于在boot的初始化阶段,如果确定所述第一开机线程是由无线充电事件触发,将开机模式设置为无线充电模式。
  9. 根据权利要求7或8所述的实现无线充电的移动终端,其特征在于,所述移动终端还包括:
    按键处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行按键处理逻辑;
    关机闹钟处理逻辑模块,用于在boot的初始化阶段完毕之后且在启动内核之前,执行关机闹钟处理逻辑。
  10. 根据权利要求9所述的实现无线充电的移动终端,其特征在于,所述按键处理逻辑模块还用于:
    检测是否存在短按键操作,如果是,响应于短按键操作,点亮移动终端的显示屏幕,并在所述显示屏幕上绘制充电图片,所述充电图片用于显示充电进度;
    检测是否存在长按键操作,如果是,响应于长按键操作,触发第二开机线程,以便在所述第二开机线程中重启移动终端。
  11. 根据权利要求9所述的实现无线充电的移动终端,其特征在于,所 述关机闹钟处理逻辑模块还用于:
    检测关机闹钟是否到时;
    如果关机闹钟到时,触发第三开机线程,以便在所述第三开机线程中重启移动终端。
  12. 一种终端,其特征在于,包括:如权利要求7-11任一项所述的实现无线充电的移动终端。
PCT/CN2016/088850 2015-12-08 2016-07-06 实现无线充电的方法、移动终端和终端 WO2017096834A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/242,071 US20170161079A1 (en) 2015-12-08 2016-08-19 Method, mobile terminal and terminal for implementing wireless charging

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510897341.8 2015-12-08
CN201510897341.8A CN105867898A (zh) 2015-12-08 2015-12-08 实现无线充电的方法和移动终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/242,071 Continuation US20170161079A1 (en) 2015-12-08 2016-08-19 Method, mobile terminal and terminal for implementing wireless charging

Publications (1)

Publication Number Publication Date
WO2017096834A1 true WO2017096834A1 (zh) 2017-06-15

Family

ID=56624298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088850 WO2017096834A1 (zh) 2015-12-08 2016-07-06 实现无线充电的方法、移动终端和终端

Country Status (2)

Country Link
CN (1) CN105867898A (zh)
WO (1) WO2017096834A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881623B (zh) * 2018-05-30 2021-06-01 Oppo(重庆)智能科技有限公司 移动终端控制方法、移动终端及其存储介质
CN111525638A (zh) * 2020-04-20 2020-08-11 江苏紫米电子技术有限公司 闹钟状态控制方法、装置、设备及存储介质
CN113596244B (zh) * 2021-06-24 2023-06-23 展讯半导体(南京)有限公司 智能终端的关机闹钟实现方法、系统、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431241A (zh) * 2007-11-06 2009-05-13 希姆通信息技术(上海)有限公司 双核手机关机状态下充电及充电导致开机处理方法及装置
CN101931696A (zh) * 2010-08-11 2010-12-29 无锡中星微电子有限公司 手机快速开机的方法和系统
US20130117552A1 (en) * 2010-06-24 2013-05-09 Hanrim Postech Co., Ltd. Method for changing receiving mode in mobile terminal and mobile terminal thereof
CN103905603A (zh) * 2012-12-21 2014-07-02 上海晨兴希姆通电子科技有限公司 手机开机方法及手机开机系统
CN104238713A (zh) * 2013-06-21 2014-12-24 贝壳网际(北京)安全技术有限公司 一种智能移动终端的充电方法及系统
CN104578209A (zh) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 一种无线充电终端及用户终端、无线充电方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267623A (zh) * 2008-04-11 2008-09-17 上海闻泰电子科技有限公司 一种手机启动引导的构建方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431241A (zh) * 2007-11-06 2009-05-13 希姆通信息技术(上海)有限公司 双核手机关机状态下充电及充电导致开机处理方法及装置
US20130117552A1 (en) * 2010-06-24 2013-05-09 Hanrim Postech Co., Ltd. Method for changing receiving mode in mobile terminal and mobile terminal thereof
CN101931696A (zh) * 2010-08-11 2010-12-29 无锡中星微电子有限公司 手机快速开机的方法和系统
CN103905603A (zh) * 2012-12-21 2014-07-02 上海晨兴希姆通电子科技有限公司 手机开机方法及手机开机系统
CN104238713A (zh) * 2013-06-21 2014-12-24 贝壳网际(北京)安全技术有限公司 一种智能移动终端的充电方法及系统
CN104578209A (zh) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 一种无线充电终端及用户终端、无线充电方法

Also Published As

Publication number Publication date
CN105867898A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
US10275586B2 (en) Method for power management using fingerprint identification in mobile terminal and mobile terminal
US10698461B2 (en) Electronic device and heat control method based on temperature of battery in electronic device
CN102622079B (zh) 一种休眠方法、唤醒方法和移动终端设备
US10080194B2 (en) Method, device, and computer-readable storage medium for awaking electronic equipment
US8176305B2 (en) Information processing apparatus, activation method, and program
KR102314673B1 (ko) 서버, 전자 장치 및 전자 장치의 정보 제공 방법
US9848072B2 (en) Electronic device monitoring method and apparatus
US20180260019A1 (en) Method and apparatus for managing battery of electronic device
US11139672B2 (en) Device and method for performing wireless charging and payment
EP3098687B1 (en) Electronic device and power managing method thereof
WO2017096834A1 (zh) 实现无线充电的方法、移动终端和终端
US9830178B2 (en) Dynamic reassignment for multi-operating system devices
CN107810488A (zh) 一种虚拟机的状态管理方法、装置和智能终端
JP5649254B2 (ja) ポータブルコンピューティングデバイスのプロセッサがスリープ状態に迅速に入りスリープ状態から迅速に出るための方法およびシステム
EP3016374A1 (en) Electronic device for sensing lens and operating method thereof
CN105867579A (zh) 终端控制方法、装置及终端
WO2015172283A1 (zh) 一种降低功耗的方法、装置及移动终端
WO2016179900A1 (zh) 一种路由设备及其节电方法、装置、存储介质
US20140380030A1 (en) Automatic turning on of a data processing device during charging of a battery source thereof
WO2017219482A1 (zh) 启动方法和装置
CN105786315A (zh) 时间显示方法及装置
CN106451670B (zh) 一种充电控制方法、装置及终端设备
CN106101406B (zh) 一种基于移动终端的关机闹铃触发处理方法及移动终端
US20150123875A1 (en) Power management device and method
CN115827076A (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: 16872036

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: 16872036

Country of ref document: EP

Kind code of ref document: A1