WO2014086139A1 - 控制终端关机的方法及装置 - Google Patents

控制终端关机的方法及装置 Download PDF

Info

Publication number
WO2014086139A1
WO2014086139A1 PCT/CN2013/078784 CN2013078784W WO2014086139A1 WO 2014086139 A1 WO2014086139 A1 WO 2014086139A1 CN 2013078784 W CN2013078784 W CN 2013078784W WO 2014086139 A1 WO2014086139 A1 WO 2014086139A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
status information
usage status
powered
abnormally powered
Prior art date
Application number
PCT/CN2013/078784
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 JP2014550635A priority Critical patent/JP2015504277A/ja
Priority to EP13786405.4A priority patent/EP2765483B1/en
Priority to US14/081,753 priority patent/US20140164798A1/en
Publication of WO2014086139A1 publication Critical patent/WO2014086139A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • 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/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling shutdown of a terminal.
  • BACKGROUND OF THE INVENTION there are many terminals that are not separated from the body by the battery, for example, wireless battery-battery router terminals, portable mobile terminals, etc., which often cause the terminal to be turned on due to accidental activation of the power switch during packaging and transportation. At this time, the user does not want to use the terminal, so the booting in the above situation may also be referred to as abnormal booting.
  • the terminal When the terminal is abnormally powered on, it will consume the power of the battery in the terminal, which causes the user to use the terminal when the terminal is turned on normally.
  • the terminal cannot be powered on because of low battery or no power. For example, when the terminal arrives at the operator's inventory for the numbering, if the terminal is abnormally turned on during the transportation, the terminal will not be able to boot for the first time because the battery is too low when the number is placed.
  • a method and a device for controlling a shutdown of a terminal are provided, which are used to solve the problem that the power consumption of the terminal is abnormally started in the prior art, and the power cannot be turned on for the first time.
  • the first aspect provides a method for controlling shutdown of a terminal, including: after the terminal is powered on, acquiring usage status information of the terminal; The usage status information determines that the terminal is abnormally powered on, and controls the terminal to shut down.
  • the usage status information of the terminal includes: a user identification module SIM card usage status information; and determining, according to the acquired usage status information of the terminal.
  • the abnormal startup of the terminal includes: the SIM card usage status information indicates that when the SIM card is not inserted into the terminal, determining that the terminal is abnormally powered on.
  • the usage status information of the terminal includes: the wireless fidelity Wi-Fi user number usage status information; the determining, according to the acquired usage status information of the terminal, that the terminal is abnormally powered on, includes: the Wi- The Fi user number usage status information indicates that when no Wi-Fi user accesses the terminal, it is determined that the terminal is abnormally powered on.
  • the use of the terminal includes: a Bluetooth access user number usage status information; the determining, according to the obtained usage status information of the terminal, that the terminal is abnormally powered on, the method includes: the Bluetooth access user number usage status information indicates that no Bluetooth user access When the terminal is in the terminal, it is determined that the terminal is abnormally powered on.
  • the usage status information of the terminal includes: a universal serial bus USB interface usage status information; and determining, according to the acquired usage status information of the terminal, that the terminal is abnormally powered on, including: When the USB interface uses the status information to indicate that no device is connected to the USB interface of the terminal, it is determined that the terminal is abnormally powered on.
  • the usage status information of the terminal includes: charging service usage status information; determining, according to the acquired usage status information of the terminal Determining that the terminal is abnormally powered on includes: the charger usage status information indicating that no charger is connected to the charger interface of the terminal, determining that The terminal is abnormally powered on.
  • the sixth possible implementation manner of the first aspect after the terminal is powered on, before acquiring the usage state information of the terminal
  • the method further includes: starting a timer; the controlling the terminal to be shut down is specifically: after the timer reaches a preset timing period, controlling the terminal to shut down.
  • the sixth possible implementation manner of the first aspect in a seventh possible implementation manner of the foregoing aspect, if the terminal is determined to be abnormally powered on according to the acquired usage state information of the terminal, Said timer.
  • the second aspect provides a device for controlling shutdown of a terminal, including: an acquiring unit, configured to acquire usage state information of the terminal after the terminal is powered on; and a detecting unit, configured to acquire the terminal according to the acquiring unit The status information is used to determine that the terminal is abnormally powered on; and the control unit is configured to control the terminal to shut down when the detecting unit determines that the terminal is abnormally powered on.
  • the acquiring unit is specifically configured to acquire the SIM card usage status information of the terminal, where the detecting unit is specifically configured to be used by the SIM The card usage status information indicates that when the SIM card is not inserted into the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit is specifically configured to obtain the number of Wi-Fi users of the terminal
  • the detecting unit is configured to: when the Wi-Fi user usage status information indicates that no Wi-Fi user accesses the terminal, determining that the terminal is abnormally powered on.
  • the acquiring unit is specifically configured to acquire the usage status information of the number of Bluetooth access users of the terminal, where the detecting unit is specifically used to The Bluetooth access user number usage status information indicates that when no Bluetooth user accesses the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit is specifically configured to obtain the USB interface usage state information of the terminal, where the detecting unit is specifically configured to: when the USB interface usage state information indicates that no device is connected to the When the USB interface of the terminal is determined, the terminal is determined to be abnormally powered on.
  • the acquiring unit is specifically configured to acquire, by using, the terminal usage status information of the terminal, where the detecting unit is specifically used to When the charger usage status information indicates that no charger is connected to the charger interface of the terminal, it is determined that the terminal is abnormally powered on.
  • the device further includes: a timer unit, configured to perform the acquiring Before the unit acquires the usage status information of the terminal, the timer is started; the control unit is specifically configured to: after the timer started by the startup unit reaches a preset timing period, control the terminal to be powered off; And the device unit is further configured to: when the detecting unit determines that the terminal is not abnormally powered on, turn off the timer.
  • the method for controlling the shutdown of the terminal provided by the embodiment of the present invention, after the terminal is powered on, does not remain in the boot state in all cases, but first detects whether the terminal is abnormally turned on, so when in the process of packaging and transporting the terminal When the terminal is powered on by accidentally touching the power switch, it can detect that the terminal is abnormally turned on, and control the terminal to be turned off, so that the battery power in the terminal is not consumed due to abnormal power-on, thereby ensuring that the battery power of the terminal meets the first boot.
  • the demand increases the success rate of the terminal's first boot.
  • FIG. 1 is a schematic flow chart of a method for shutting down a control terminal in an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for shutting down a control terminal in another embodiment of the present invention
  • FIG. 3 is a control terminal according to another embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal on which a control terminal is shut down according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a device for shutting down a control terminal according to an embodiment of the present invention
  • an embodiment of a method for controlling a shutdown of a terminal according to the present invention is as follows: Step 101: After the terminal is powered on, obtain usage status information of the terminal, and use the obtained terminal according to the obtained terminal. The status information determines whether the terminal is abnormally powered on.
  • the terminal may be a wireless battery router terminal, or a terminal that is not separated from the body by other types of batteries, such as a mobile terminal such as a mobile phone or a tablet computer.
  • the detection terminal is abnormally powered on, and the usage status information of the terminal may be acquired first. When the usage status information is consistent with the preset abnormal startup information, it is confirmed that the terminal is abnormally powered on.
  • the usage status information of the terminal that can be acquired may include a plurality of types of information, when detecting whether the terminal is abnormally powered on, only one type of information in the usage status information of the terminal may be acquired, or multiple types of usage status information of the terminal may be acquired. information.
  • the usage status information of the terminal In order to quickly detect that the terminal is abnormally powered on, it is possible to obtain only one type of information in the usage status information of the terminal. For example, only the user identification module (SIM, Subscriber Identity Module) usage status information is acquired, and the SIM card usage status information is used to identify whether When a SIM card is inserted into the terminal, when the SIM card usage status information is consistent with the abnormal boot information of the SIM card insertion terminal, it can be confirmed that the terminal is abnormally powered on.
  • SIM Subscriber Identity Module
  • various information in the usage status information of the terminal may be acquired.
  • at least one of the following information may be acquired: Wireless Fidelity ( Wi-Fi, Wireless Fidelity) usage status information, the Wi-Fi user usage status information is used to identify whether there is a Wi-Fi user access; Bluetooth access user usage status information, the Bluetooth access user The usage status information is used to identify whether there is a Bluetooth user access; the Universal Serial Bus (USB) interface uses status information, and the USB interface usage status information is used to identify whether a device is connected to the USB of the terminal.
  • Wi-Fi Wi-Fi, Wireless Fidelity
  • the charger uses status information, and the charger usage status information is used to identify whether a charger is connected to the charger interface of the terminal.
  • the usage status information of the obtained terminal further includes the Wi-Fi user number usage status information
  • the usage status information is consistent with the preset abnormal power-on information, and further includes: the Wi-Fi user number usage status information and no Wi- The abnormal startup information of the Fi user access terminal is consistent
  • the usage status information further includes the Bluetooth access user usage status information
  • the usage status information is consistent with the preset abnormal startup information, and further includes: the Bluetooth The usage status information of the access user is consistent with the abnormal startup information of the non-Bluetooth user access terminal; when the usage status information further includes the usage status information of the USB interface, the usage status information is consistent with the preset abnormal startup information.
  • the method further includes: the USB interface usage status information is consistent with the abnormal startup information of the USB interface of the terminal not connected to the terminal; and when the usage status information further includes the charger usage status information, the usage status information is
  • the preset abnormal boot information consistently includes: the charger use status information and a chargerless connection to the terminal Electric Power abnormalities consistent interface information.
  • a time period may be set in advance, so that the foregoing detection process is performed within the predetermined time period, wherein the terminal may be connected according to the network access duration and the waiting time.
  • the specific length of the time period is not limited in the embodiment of the present invention.
  • the foregoing preset time period may be implemented by configuring a timing period of the timer.
  • the detecting process may include: after the terminal is powered on, start the timer first, and then detect whether the terminal is abnormally powered on during the timing period of the timer.
  • Step 102 When it is determined that the terminal is abnormally powered on, the control terminal is powered off. If the terminal starts up, and then starts the timer, and then detects whether the terminal is abnormally powered on, when it is detected that the terminal is abnormally powered on, and the timer reaches a preset timing period, the control terminal is turned off. In addition, in the timing period of the timer, if it is detected that the terminal is normally powered on, the detection process may be terminated early, that is, the timer is turned off.
  • the method for controlling the shutdown of the terminal provided by the embodiment of the present invention, after the terminal is powered on, does not remain in the boot state in all cases, but first detects whether the terminal is abnormally turned on, so when packaging and transporting During the process of the terminal, when the terminal is powered on due to accidental activation of the power switch, it is possible to detect that the terminal is abnormally turned on and control the terminal to be turned off, so that the power of the battery in the terminal is not consumed due to abnormal power-on, thereby ensuring the battery on the terminal.
  • the power meets the requirements of the first boot, which improves the success rate of the first boot of the terminal. As shown in FIG.
  • Step 201 the terminal After booting, obtain the SIM card usage status information of the terminal. Since the terminal usually inserts the SIM card after the normal booting, the SIM card usage status information of the terminal can be obtained, and the SIM card usage status information is used to identify whether the SIM card is inserted into the terminal, so that the SIM card of the acquired terminal can be obtained. Use the status information to determine whether the terminal is abnormally powered on.
  • Step 202 Determine, according to the SIM card usage status information of the terminal, whether a SIM card is inserted into the terminal. If the determination result is yes, execute step 203. If the determination result is no, execute step 204.
  • the correspondence between the SIM card usage status information and the SIM card usage status used for identification may be as shown in Table 1. table
  • the SIM card usage status information is 0 to identify the SIM card insertion, and the SIM card usage status.
  • the message is 1 to identify no SIM card insertion.
  • step 203 it is confirmed that the terminal is normally turned on and remains in the power-on state.
  • Step 204 Confirm that the terminal is abnormally powered on, and the control terminal is powered off.
  • the status of the SIM card usage status of the terminal may be acquired by using a periodic acquisition manner in the timing period, and the SIM card usage status information of the terminal acquired in the timing period is identified.
  • the terminal is abnormally powered on.
  • the method for controlling the shutdown of the terminal not only ensures that the power of the battery on the terminal meets the requirement of the first booting, but also improves the success rate of the first booting of the terminal, and specifically obtains the SIM card of the terminal.
  • the status information is used to detect whether the terminal is abnormally turned on, the detection process is simple, and the detection efficiency is high.
  • another embodiment of the method for controlling the shutdown of the terminal according to the present invention is as follows: in this embodiment, the terminal is a wireless battery-battery router type terminal, and detects whether the terminal is abnormally powered on during the timing period of the timer, and detects the terminal.
  • Step 301 After the terminal is powered on, the timer is started. Specifically, the timer may be started during the initialization process after the terminal is powered on.
  • the timing period of the timer may be pre-configured according to requirements. For example, the timing period may be pre-configured according to the network access duration and the waiting time of the terminal. The specific length of the timing period is not limited by the present invention, for example, timing. The period can be pre-configured to be 1 minute, 2 minutes or 3 minutes.
  • Step 302 Acquire SIM card usage status information and Wi-Fi user number usage status information.
  • the status information of the SIM card can be 0, the SIM card is inserted, the status information of the SIM card is 1, and the SIM card is inserted.
  • the status information of the Wi-Fi user is 0, and the Wi-Fi status is no.
  • the acquired usage status information may include multiple types of information, where not limited to the SIM card usage status information and the Wi-Fi user number usage status information, and may also be a SIM card.
  • Step 303 Determine, according to the obtained usage status information, whether the SIM card is not inserted into the terminal and no Wi-Fi user accesses. If the determination result is yes, step 304 is performed; if the determination result is no, step 306 is performed. Step 304: Determine whether the timer period of the timer is reached. If the determination result is yes, go to step 305. If the judgment result is no, go to step 302. Step 305, confirming that the terminal is abnormally turned on, and the control terminal is powered off. Wherein, when the control terminal is turned off, the battery in the terminal is stopped to supply power, thereby saving power.
  • Step 306 deleting the timer and controlling the terminal to be used normally. It can be seen that the method for controlling the shutdown of the terminal provided by the embodiment of the present invention not only ensures that the power of the battery on the terminal meets the requirement of the first booting, but also improves the success rate of the first booting of the terminal, and obtains the success rate of the terminal by using the terminal.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes a processor 401, a Wi-Fi unit 402, a SIM card unit 403, a Bluetooth unit 404, a USB interface unit 405, and a charger interface unit 406.
  • the method of controlling the shutdown of the terminal of the above embodiment of the present invention can be implemented based on the above-described terminal entity component.
  • the Wi-Fi unit 402 is configured to implement Wi-Fi user access, and when the Wi-Fi user access is detected, change the usage status information of the Wi-Fi user (for example, 0 means no Wi-Fi user) Access, with 1 for Wi-Fi user access, and then report the Wi-Fi user usage status information to the processor 401, that is, after the Wi-Fi user number is changed in the Wi-Fi unit 402, the processing is performed.
  • the device 401 reports event processing of the Wi-Fi user number usage status information;
  • the SIM card unit 403 is configured to implement interaction between the terminal and the SIM card, read the SIM card information and report it to the terminal, and change the SIM card usage status information after detecting that the SIM card is inserted into the terminal (for example, using 0 to represent the SIM) The card is unavailable, and the SIM card is used to report the status information of the SIM card to the processor 401, that is, after the SIM card is inserted into the terminal in the SIM card unit 403, the status information of the SIM card is reported to the processor 401.
  • the Bluetooth unit 404 is configured to implement a Bluetooth connection between the terminal and other devices, and when detecting the access of the Bluetooth user, Change the usage status information of the number of Bluetooth access users (for example, 0 for no Bluetooth user access, 1 for Bluetooth user access), and then report the Bluetooth access user usage status information to the processor 401, that is, Bluetooth After the change of the number of Bluetooth users is added to the unit 404, the processor 401 reports the event processing of the status of the Bluetooth access user.
  • the USB interface unit 405 is configured to implement the USB interface function of the terminal, perform USB data transmission, and detect When the device is connected to the USB interface of the terminal, change the USB interface usage status information (for example, 0 means no USB device connected to the terminal, 1 means USB interface with device connected to the terminal), and then use the USB interface status information. It is reported to the processor 401, that is, after the USB interface unit 405 adds the USB interface of the device to the terminal, the processor 401 reports the event processing of the USB interface usage status information; the charger interface unit 406 is configured to detect whether the charger is connected to the charger.
  • the processor 401 Connect, realize the charging function of the terminal, and when detecting that the charger is connected to the charger interface of the terminal Change the charger usage status information (for example, 0 means charger interface connected to the terminal without charger, 1 means charger interface connected to the terminal with charger), and then report the charger usage status information to the processor 401 That is, after the charger interface unit 406 adds a charger interface connected to the terminal, the processor 401 reports event processing of the charger usage status information; the processor 401 is configured to specifically perform a method for controlling the shutdown of the terminal, A timer is started in the Initialization method of the processor 401.
  • the charger usage status information for example, 0 means charger interface connected to the terminal without charger, 1 means charger interface connected to the terminal with charger
  • the present invention also provides an embodiment of the device for controlling the shutdown of the terminal. As shown in FIG. 5, the device for controlling the shutdown of the terminal of the present invention is provided.
  • the device includes: an acquiring unit 501, configured to acquire usage state information of the terminal after the terminal is powered on, and a detecting unit 502, configured to The usage status information of the terminal acquired by the obtaining unit 501 determines that the terminal is abnormally powered on.
  • the control unit 503 is configured to control the terminal to shut down when the detecting unit 502 determines that the terminal is abnormally powered on.
  • the acquiring unit 501 is specifically configured to acquire the SIM card usage status information of the terminal
  • the detecting unit 502 is specifically configured to: when the SIM card usage status information indicates that no SIM card is inserted When the terminal is in the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 501 is specifically configured to acquire the usage status information of the Wi-Fi user number of the terminal, where the detecting unit 502 is specifically configured to use the number of the Wi-Fi users.
  • the status information indicates that when no Wi-Fi user accesses the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 501 is specifically configured to acquire the usage status information of the number of Bluetooth access users of the terminal, and the detecting unit 502 is specifically configured to use the number of the Bluetooth access users.
  • the status information indicates that when no Bluetooth user accesses the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 501 is specifically configured to acquire the USB interface usage status information of the terminal, and the detecting unit 502 is specifically configured to: when the USB interface usage status information indicates that no device is connected When the USB interface of the terminal is reached, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 501 is specifically configured to acquire the charger usage status information of the terminal, and the detecting unit 502 is specifically configured to: when the charger usage status information indicates that there is no charger When connected to the charger interface of the terminal, it is determined that the terminal is abnormally powered on. It should be noted that the foregoing specific implementation manners may be combined with each other.
  • the obtaining unit 501 may obtain the SIM card usage status information and the Wi-Fi user number usage status information, and the detecting unit 502 is in the SIM card usage status information. It is indicated that no SIM card is inserted into the terminal, and at the same time, the Wi-Fi user number usage status information indicates that no Wi-Fi user accesses the terminal, and it is determined that the terminal is abnormally powered on.
  • the device for controlling the shutdown of the terminal does not maintain the power-on state in all cases after the terminal is powered on, but firstly, the detecting unit 501 detects whether the terminal is abnormally powered on, so In the process of packaging and transporting the terminal, when the terminal is powered on by accidentally touching the power switch, it can be detected that the terminal is abnormally turned on, and then when the detecting unit 501 detects that the terminal is abnormally turned on, the control unit 502 controls the terminal to shut down, Then, the power of the battery on the terminal is consumed, thereby ensuring that the power of the battery on the terminal meets the requirement of the first boot, and the success rate of the first boot of the terminal is improved. As shown in FIG.
  • another embodiment of the apparatus for controlling the shutdown of the terminal of the present invention includes: a timer unit 601, configured to start a timer after the terminal is powered on; and an obtaining unit 602, configured to: After the unit 601 starts the timer, the usage status information of the terminal is obtained.
  • the detecting unit 603 is configured to determine that the terminal is abnormally powered on according to the usage status information of the terminal acquired by the acquiring unit 602.
  • the control unit 604 uses When the detecting unit 603 detects that the terminal is abnormally powered on, after the timer started by the timer unit 601 reaches a preset timing period, the terminal is controlled to be powered off.
  • the timer unit 601 is further configured to: when the detecting unit 603 determines that the terminal is not abnormally powered on, turn off the timer.
  • the acquiring unit 602 is specifically configured to acquire the SIM card usage status information of the terminal, and the detecting unit 603 is specifically configured to: when the SIM card usage status information indicates that no SIM card is inserted When the terminal is in the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 602 is specifically configured to acquire the usage status information of the Wi-Fi user number of the terminal, where the detecting unit 603 is specifically configured to use the number of the Wi-Fi users.
  • the status information indicates that when no Wi-Fi user accesses the terminal, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 602 is specifically configured to obtain the status of the Bluetooth access user usage status of the terminal.
  • the detecting unit 603 is specifically configured to: when the Bluetooth access user number usage status information indicates that there is no Bluetooth user access station When the terminal is described, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 602 is specifically configured to obtain the USB interface usage state information of the terminal, and the detecting unit 603 is specifically configured to: when the USB interface usage state information indicates that no device is connected When the USB interface of the terminal is reached, it is determined that the terminal is abnormally powered on.
  • the acquiring unit 602 is specifically configured to acquire the charger usage status information of the terminal, and the detecting unit 603 is specifically configured to: when the charger usage status information indicates that there is no charger When connected to the charger interface of the terminal, it is determined that the terminal is abnormally powered on.
  • the obtaining unit 602 may obtain the SIM card usage status information and the Wi-Fi user number usage status information, and the detecting unit 603 is in the SIM card usage status information. It is indicated that no SIM card is inserted into the terminal, and at the same time, the Wi-Fi user number usage status information indicates that no Wi-Fi user accesses the terminal, and it is determined that the terminal is abnormally powered on.
  • the terminal after the terminal is powered on, it is not kept in the boot state in all cases, but the terminal is first detected to be abnormally turned on, so that during the process of packaging and transporting the terminal, the power switch is accidentally touched.
  • the terminal When the terminal is powered on, it can detect that the terminal is abnormally powered on, and control the terminal to be turned off. Therefore, the power of the battery in the terminal is not consumed due to abnormal booting, thereby ensuring that the power of the battery on the terminal meets the requirement of the first booting, and the terminal is turned on for the first time.
  • the success rate professionals may further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

本发明实施例公开了控制终端关机的方法及装置,该方法包括:终端开机后,获取所述终端的使用状态信息;若根据获取的所述终端的使用状态信息确定所述终端为异常开机时,控制所述终端关机。本发明实施例中,在终端开机后,不是在所有情况下都保持开机状态,而是先要检测终端是否为异常开机,因此当在包装以及运输终端的过程中,由于意外触动电源开关而使终端开机时,能够检测出终端为异常开机,并控制终端关机,因此不会因为异常开机而消耗终端内电池的电量,从而能够确保终端上电池的电量满足首次开机的需求,提高了终端首次开机的成功率。

Description

控制终端关机的方法及装置 技术领域 本发明涉及通信技术领域, 尤其涉及控制终端关机的方法及装置。 背景技术 当前存在许多电池与机身不分离的终端, 例如, 无线带电池路由器类终端, 便携式移 动终端等, 这些终端在包装以及运输的过程中, 常常会因为意外触动电源开关而使终 端开机, 此时用户并非要使用该终端, 因此上述状况下的开机也可称为异常开机。 当 终端异常开机时, 会消耗终端内电池的电量, 从而导致用户在正常开机使用终端时, 终端因为电量较低或没有电量而无法开机使用。例如, 终端到达运营商库存进行放号 时, 如果终端在运送过程中异常开机, 则放号时终端会因为电池的电量过低而无法首 次开机。 发明内容 本发明实施例中提供了控制终端关机的方法及装置,用以解决现有技术中终端异常开 机耗费电池电量, 导致无法首次开机的问题。 为解决上述问题, 本发明实施例提供的技术方案如下: 第一方面, 提供一种控制终端关机的方法, 包括: 终端开机后, 获取所述终端的使用状态信息; 若根据获取的所述终端的使用状态信息确定所述终端为异常开机时,控制所述终端关 机。 结合第一方面, 在第一方面的第一种可能的实现方式中, 所述终端的使用状态信息包括: 用户识别模块 SIM卡使用状态信息; 所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 SIM卡使用状态信息指示没有 SIM卡插入所述终端时,确定所述终端为异常开机。 结合第一方面, 或第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实 现方式中, 所述终端的使用状态信息包括: 无线保真 Wi-Fi用户数使用状态信息; 所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户接入所述终端时,确定所述终端 为异常开机。 结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能的实 现方式, 在第一方面的第三种可能的实现方式中, 所述终端的使用状态信息包括: 蓝牙接入用户数使用状态信息; 所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述蓝牙接入用户数使用状态信息指示没有蓝牙用户接入所述终端时,确定所述终端 为异常开机。 结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能的实 现方式, 或第一方面的第三种可能的实现方式, 在第一方面的第四种可能的实现方式 中, 所述终端的使用状态信息包括: 通用串行总线 USB接口使用状态信息; 所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 USB接口使用状态信息指示没有设备连接到所述终端的 USB接口时,确定所述终 端为异常开机。 结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能的实 现方式,或第一方面的第三种可能的实现方式,或第一方面的第四种可能的实现方式, 在第一方面的第五种可能的实现方式中, 所述终端的使用状态信息包括: 充电器使用状态信息; 所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述充电器使用状态信息指示没有充电器连接到所述终端的充电器接口时,确定所述 终端为异常开机。 结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能的实 现方式,或第一方面的第三种可能的实现方式,或第一方面的第四种可能的实现方式, 或第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实现方式中, 在所 述终端开机后, 获取所述终端的使用状态信息之前, 还包括: 启动定时器; 所述控制所述终端关机具体为: 在所述定时器到达预设的定时周期后, 控制所述终端 关机。 结合第一方面的第六种可能的实现方式, 在第一方面的第七种可能的实现方式中, 若 根据获取的所述终端的使用状态信息确定所述终端不为异常开机时, 关闭所述定时 器。 第二方面, 提供一种控制终端关机的装置, 包括: 获取单元, 用于在终端开机后, 获取所述终端的使用状态信息; 检测单元,用于根据所述获取单元获取的所述终端的使用状态信息确定所述终端为异 常开机; 控制单元, 用于在所述检测单元确定所述终端为异常开机时, 控制所述终端关机。 结合第二方面, 在第二方面的第一种可能的实现方式中, 所述获取单元, 具体用于获取所述终端的 SIM卡使用状态信息; 所述检测单元,具体用于当所述 SIM卡使用状态信息指示没有 SIM卡插入所述终端时, 确定所述终端为异常开机。 结合第二方面, 或第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实 现方式中, 所述获取单元, 具体用于获取所述终端的 Wi-Fi用户数使用状态信息; 所述检测单元,具体用于当所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户接入 所述终端时, 确定所述终端为异常开机。 结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能的实 现方式, 在第二方面的第三种可能的实现方式中, 所述获取单元, 具体用于获取所述终端的蓝牙接入用户数使用状态信息; 所述检测单元,具体用于当所述蓝牙接入用户数使用状态信息指示没有蓝牙用户接入 所述终端时, 确定所述终端为异常开机。 结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能的实 现方式, 或第二方面的第三种可能的实现方式, 在第二方面的第四种可能的实现方式 中, 所述获取单元, 具体用于获取所述终端的 USB接口使用状态信息; 所述检测单元,具体用于当所述 USB接口使用状态信息指示没有设备连接到所述终端 的 USB接口时, 确定所述终端为异常开机。 结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能的实 现方式,或第二方面的第三种可能的实现方式,或第二方面的第四种可能的实现方式, 在第二方面的第五种可能的实现方式中, 所述获取单元, 具体用于获取所述终端的充电器使用状态信息; 所述检测单元,具体用于当所述充电器使用状态信息指示没有充电器连接到所述终端 的充电器接口时, 确定所述终端为异常开机。 结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能的实 现方式,或第二方面的第三种可能的实现方式,或第二方面的第四种可能的实现方式, 或第二方面的第五种可能的实现方式, 在第二方面的第六种可能的实现方式中, 所述 装置还包括: 定时器单元, 用于在所述获取单元获取所述终端的使用状态信息之前, 启动定时器; 所述控制单元, 具体用于在所述启动单元所启动的定时器到达预设的定时周期后, 控 制所述终端关机; 所述定时器单元, 还用于在所述检测单元确定所述终端不为异常开机时, 关闭所述定 时器。 采用本发明实施例所提供的控制终端关机的方法, 在终端开机后, 不是在所有情况下 都保持开机状态, 而是先要检测终端是否为异常开机, 因此当在包装以及运输终端的 过程中, 由于意外触动电源开关而使终端开机时, 能够检测出终端为异常开机, 并控 制终端关机, 因此不会因为异常开机而消耗终端内电池的电量, 从而能够确保终端上 电池的电量满足首次开机的需求, 提高了终端首次开机的成功率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要 使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施 例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些 附图获得其他的附图。 图 1是本发明一个实施例中的控制终端关机的方法流程示意图; 图 2是本发明另一个实施例中的控制终端关机的方法流程示意图; 图 3是本发明另一个实施例中的控制终端关机的方法流程示意图; 图 4是图 3所示方法实施例所基于的终端结构示意图; 图 5是本发明一个实施例中的控制终端关机的装置结构示意图; 图 6是本发明另一个实施例中的控制终端关机的装置结构示意图。 具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述, 显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 如图 1所示, 为本发明控制终端关机的方法的一个实施例, 其具体处理过程如下: 步骤 101, 终端开机后, 获取所述终端的使用状态信息, 并根据获取的所述终端的使 用状态信息确定所述终端是否为异常开机。 本发明实施例中, 上述终端, 可以为无线带电池路由器类终端, 也可以为其他类型的 电池与机身不分离的终端, 例如手机、 平板电脑等便携式移动终端。 其中,检测终端是否为异常开机,可以先获取终端的使用状态信息, 当使用状态信息与预 设的异常开机信息一致时, 确认终端为异常开机。 由于能够获取的终端的使用状态信息可以包括多种信息, 因此检测终端是否为异常开 机时, 可以仅获取终端的使用状态信息中的一种信息, 也可以获取终端的使用状态信 息中的多种信息。 为了快速检测出终端异常开机, 可以仅获取终端的使用状态信息中 的一种信息, 例如, 仅获取用户识别模块 (SIM, Subscriber Identity Module ) 卡 使用状态信息, SIM卡使用状态信息用于标识是否有 SIM卡插入终端, 当 SIM卡使用 状态信息与无 SIM卡插入终端的异常开机信息一致时, 可以确认终端为异常开机。 为 了提高检测终端异常开机的准确性, 可以获取终端的使用状态信息中的多种信息, 例 如, 除了获取上述 SIM卡使用状态信息之外, 还可以获取下述至少一种信息: 无线保 真(Wi-Fi, Wireless Fidelity)用户数使用状态信息, 所述 Wi-Fi用户数使用状态信 息用于标识是否有 Wi-Fi用户接入; 蓝牙接入用户数使用状态信息, 所述蓝牙接入用 户数使用状态信息用于标识是否有蓝牙用户接入; 通用串行总线 (USB, Universal Serial Bus ) 接口使用状态信息, 所述 USB接口使用状态信息用于标识是否有设备连 接到所述终端的 USB接口; 充电器使用状态信息, 所述充电器使用状态信息用于标识 是否有充电器连接到所述终端的充电器接口。 当获取的终端的使用状态信息还包括 Wi-Fi用户数使用状态信息时,所述使用状态信 息与预设的异常开机信息一致还包括:所述 Wi-Fi用户数使用状态信息与无 Wi-Fi用 户接入终端的异常开机信息一致; 当所述使用状态信息还包括所述蓝牙接入用户数使 用状态信息时, 所述使用状态信息与预设的异常开机信息一致还包括: 所述蓝牙接入 用户数使用状态信息与无蓝牙用户接入终端的异常开机信息一致; 当所述使用状态信 息还包括所述 USB接口使用状态信息时,所述使用状态信息与预设的异常开机信息一 致还包括:所述 USB接口使用状态信息与无设备连接到所述终端的 USB接口的异常开 机信息一致; 当所述使用状态信息还包括所述充电器使用状态信息时, 所述使用状态 信息与预设的异常开机信息一致还包括:所述充电器使用状态信息与无充电器连接到 所述终端的充电器接口的异常开机信息一致。 此外, 为了避免进行检测终端是否为异常开机的检测时间过长, 可以预先设定一个时 间段, 使上述检测过程在该预定的时间段内进行, 其中, 可以根据终端的入网时长以 及等待时间来设定该时间段, 本发明实施例对该时间段的具体长度不做限定。 上述预先 设定的时间段可以通过配置定时器的定时周期来实现, 相应的, 检测过程可以包括: 终端开机后, 先启动定时器, 然后在定时器的定时周期内检测终端是否为异常开机。 步骤 102, 当确定终端为异常开机时, 控制终端关机。 若终端开机后, 先启动定时器, 然后检测终端是否为异常开机, 则当检测出终端为异 常开机时, 且定时器到达预设的定时周期后, 控制终端关机。 另外, 在定时器的定时 周期内, 若检测出终端为正常开机, 可以提前结束检测过程, 即关闭该定时器。 由上可知, 采用本发明实施例所提供的控制终端关机的方法, 在终端开机后, 不是在 所有情况下都保持开机状态, 而是先要检测终端是否为异常开机, 因此当在包装以及 运输终端的过程中, 由于意外触动电源开关而使终端开机时, 能够检测出终端为异常 开机, 并控制终端关机, 因此不会因为异常开机而消耗终端内电池的电量, 从而能够 确保终端上电池的电量满足首次开机的需求, 提高了终端首次开机的成功率。 如图 2所示, 为本发明控制终端关机的方法的另一个实施例, 该实施例通过获取终端 的 SIM卡使用状态信息来检测终端是否为异常开机, 其具体处理过程如下: 步骤 201, 终端开机后, 获取终端的 SIM卡使用状态信息。 由于终端在正常开机后, 其上通常会插入 SIM卡, 因此可以获取终端的 SIM卡使用状 态信息, SIM卡使用状态信息用于标识是否有 SIM卡插入终端, 以便可以根据获取的 终端的 SIM卡使用状态信息判断终端是否为异常开机。 步骤 202, 根据终端的 SIM卡使用状态信息, 判断是否有 SIM卡插入终端, 若判断结 果为是, 则执行步骤 203, 若判断结果为否, 则执行步骤 204。 其中, SIM卡使用状态信息与用来标识的 SIM卡使用状态之间的对应关系可以如表一 所示。 表
Figure imgf000008_0001
由表一可知, 以 SIM卡使用状态信息为 0来标识有 SIM卡插入, 以 SIM卡使用状态 息为 1来标识无 SIM卡插入。 步骤 203, 确认终端正常开机, 保持开机状态。 步骤 204, 确认终端异常开机, 控制终端关机。 本发明实施例中, 当启动定时器时, 在定时周期内可以采取周期性获取的方式来获取 终端的 SIM卡使用状态信息, 当在定时周期内所获取的终端的 SIM卡使用状态信息都 标识出无 SIM卡插入时, 确认终端为异常开机。 由上可知, 采用本发明实施例所提供的控制终端关机的方法, 不仅能够确保终端上电 池的电量满足首次开机的需求, 提高了终端首次开机的成功率, 而且具体通过获取终 端的 SIM卡使用状态信息来检测终端是否为异常开机,检测过程简便,检测效率较高。 如图 3所示, 为本发明控制终端关机的方法的另一个实施例, 该实施例中终端为无线 带电池路由器类终端, 并且在定时器的定时周期内检测终端是否为异常开机, 检测终 端是否为异常开机时, 获取的终端的使用状态信息包括 SIM卡使用状态信息和 Wi-Fi 用户数使用状态信息, 下面对本实施例进行详细描述: 步骤 301, 终端开机后, 启动定时器。 其中, 具体可以在终端开机后的初始化过程中, 启动定时器。 本发明实施例中, 定时器的定时周期可以根据需要来预先配置,例如,可以根据终端的入 网时长以及等待时间预先配置上述定时周期,本发明对定时周期的具体时长不做限定,例 如, 定时周期可以预先配置为 1分钟、 2分钟或 3分钟。 步骤 302, 获取 SIM卡使用状态信息和 Wi-Fi用户数使用状态信息。 其中, 可以由 SIM卡使用状态信息为 0, 标识有 SIM卡插入, 由 SIM卡使用状态信息 为 1, 标识无 SIM卡插入; 由 Wi-Fi用户数使用状态信息为 0, 标识无 Wi-Fi用户接 入, 由 Wi-Fi用户数使用状态信息为 1, 标识有 Wi-Fi用户接入。 需要说明的是, 当检测终端是否为异常开机时, 获取的使用状态信息可以包括多种信 息, 其中, 不限于为 SIM卡使用状态信息和 Wi-Fi 用户数使用状态信息, 还可以为 SIM卡使用状态信息, 以及下述使用状态信息中的至少一种信息: Wi-Fi用户数使用 状态信息、 蓝牙接入用户数使用状态信息、 USB接口使用状态信息和充电器使用状态 信息。本实施例中, 对于采取何种使用状态信息的组合检测终端是否异常开机不进行 限制。 步骤 303, 根据获取的使用状态信息, 判断是否无 SIM卡插入终端且无 Wi-Fi用户接 入, 若判断结果为是, 则执行步骤 304; 若判断结果为否, 则执行步骤 306。 步骤 304, 判断是否到达定时器的定时周期, 若判断结果为是, 则执行步骤 305; 若 判断结果为否, 则执行步骤 302。 步骤 305, 确认终端异常开机, 控制终端关机。 其中, 当控制终端关机后, 相当于终端中的电池停止供电, 由此可以节省电量。 步骤 306, 删除定时器, 控制终端正常使用。 由上可知, 采用本发明实施例所提供的控制终端关机的方法, 不仅能够确保终端上电 池的电量满足首次开机的需求, 提高了终端首次开机的成功率, 而且通过获取终端的
SIM卡使用状态参数和 Wi-Fi用户数使用状态参数, 来检测终端是否为异常开机, 进 一步提高了检测终端是否为异常开机的准确性, 从而提高了控制终端关机的准确性。 如图 4所示为应用本发明实施例的一种终端结构示意图,终端包括处理器 401、 Wi-Fi 单元 402、 SIM卡单元 403、蓝牙单元 404、 USB接口单元 405和充电器接口单元 406, 可以基于上述终端实体构件来实现本发明上述实施例的控制终端关机的方法。 其中, Wi-Fi单元 402用于实现 Wi-Fi用户接入, 并在检测到有 Wi-Fi用户接入时, 更改 Wi-Fi用户数使用状态信息 (例如, 用 0代表无 Wi-Fi用户接入, 用 1代表有 Wi-Fi用户接入), 然后将 Wi-Fi用户数使用状态信息上报给处理器 401, 即在 Wi-Fi 单元 402中增加 Wi-Fi用户数变化之后,给处理器 401上报 Wi-Fi用户数使用状态信 息的事件处理;
SIM卡单元 403用于实现终端与 SIM卡之间的交互, 读取 SIM卡信息并上报给终端, 并在检测到有 SIM卡插入终端之后, 更改 SIM卡使用状态信息 (例如, 用 0代表 SIM 卡不可用, 用 1代表 SIM卡可用), 然后将 SIM卡使用状态信息上报给处理器 401, 即在 SIM卡单元 403中增加 SIM卡插入终端后,给处理器 401上报 SIM卡使用状态信 息的事件处理; 蓝牙单元 404用于实现终端与其他设备的蓝牙连接, 并在检测到有蓝牙用户接入时, 更改蓝牙接入用户数使用状态信息(例如, 用 0代表无蓝牙用户接入, 用 1代表有蓝 牙用户接入),然后将蓝牙接入用户数使用状态信息上报给处理器 401, 即在蓝牙单元 404中增加蓝牙用户数变化之后, 给处理器 401上报蓝牙接入用户数使用状态信息的 事件处理; USB接口单元 405用于实现终端的 USB接口功能, 进行 USB数据传输, 并在检测到有 设备连接到终端的 USB接口时, 更改 USB接口使用状态信息(例如, 用 0代表无设备 连接到终端的 USB接口, 用 1代表有设备连接到终端的 USB接口), 然后将 USB接口 使用状态信息上报给处理器 401, 即在 USB接口单元 405中增加有设备连接到终端的 USB接口之后, 给处理器 401上报 USB接口使用状态信息的事件处理; 充电器接口单元 406用于检测是否与充电器连接, 实现终端的充电功能, 并在检测到 有充电器连接到终端的充电器接口时, 更改充电器使用状态信息(例如, 用 0代表无 充电器连接到终端的充电器接口, 用 1代表有充电器连接到终端的充电器接口), 然 后将充电器使用状态信息上报给处理器 401, 即在充电器接口单元 406中增加有充电 器连接到终端的充电器接口之后,给处理器 401上报充电器使用状态信息的事件处理; 处理器 401 用于具体执行控制终端关机的方法, 在处理器 401 的初始化 ( Initialization)方法中启动定时器, 在定时器的定时周期内, 从 Wi-Fi单元 402、 SIM卡单元 403、 蓝牙单元 404、 USB接口单元 405和充电器接口单元 406中, 获取各 使用状态信息, 当根据使用状态信息判断出终端为正常开机时, 删除 Init方法中启 动的定时器, 否则, 在到达定时器的定时周期后, 控制终端关机。 与本发明控制终端关机的方法实施例相对应,本发明还提供了控制终端关机的装置实 施例。 如图 5所示为本发明控制终端关机的装置的一个实施例, 该装置包括: 获取单元 501, 用于在终端开机后, 获取所述终端的使用状态信息; 检测单元 502, 用于根据所述获取单元 501获取的所述终端的使用状态信息确定所述 终端为异常开机; 控制单元 503, 用于在所述检测单元 502确定所述终端为异常开机时, 控制所述终端 关机。 在一个具体的实现方式中: 所述获取单元 501, 具体用于获取所述终端的 SIM卡使用状态信息; 所述检测单元 502, 具体用于当所述 SIM卡使用状态信息指示没有 SIM卡插入所述终 端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 501, 具体用于获取所述终端的 Wi-Fi用户数使用状态信息; 所述检测单元 502, 具体用于当所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户 接入所述终端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 501, 具体用于获取所述终端的蓝牙接入用户数使用状态信息; 所述检测单元 502, 具体用于当所述蓝牙接入用户数使用状态信息指示没有蓝牙用户 接入所述终端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 501, 具体用于获取所述终端的 USB接口使用状态信息; 所述检测单元 502, 具体用于当所述 USB接口使用状态信息指示没有设备连接到所述 终端的 USB接口时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 501, 具体用于获取所述终端的充电器使用状态信息; 所述检测单元 502, 具体用于当所述充电器使用状态信息指示没有充电器连接到所述 终端的充电器接口时, 确定所述终端为异常开机。 需要说明的是, 上述几个具体的实现方式可以相互结合, 例如, 获取单元 501可以获 取 SIM卡使用状态信息和 Wi-Fi用户数使用状态信息,检测单元 502在当所述 SIM卡 使用状态信息指示没有 SIM卡插入所述终端,且同时 Wi-Fi用户数使用状态信息指示 没有 Wi-Fi用户接入所述终端时, 确定该终端异常开机。 由上可知, 采用本发明实施例所提供的控制终端关机的装置, 在终端开机后, 不是在 所有情况下都保持开机状态, 而是先要由检测单元 501检测终端是否为异常开机, 因 此当在包装以及运输终端的过程中, 由于意外触动电源开关而使终端开机时, 能够检 测出终端为异常开机,然后在检测单元 501检测出终端为异常开机时,由控制单元 502 控制终端关机, 不再消耗终端上电池的电量, 从而能够确保终端上电池的电量满足首 次开机的需求, 提高了终端首次开机的成功率。 如图 6所示为本发明控制终端关机的装置的另一个实施例, 该装置包括: 定时器单元 601, 用于在终端开机后, 启动定时器; 获取单元 602, 用于在所述定时器单元 601启动定时器后, 获取所述终端的使用状态 信息; 检测单元 603, 用于根据所述获取单元 602获取的所述终端的使用状态信息确定所述 终端为异常开机; 控制单元 604, 用于当所述检测单元 603检测出所述终端为异常开机时, 在所述定时 器单元 601所启动的定时器到达预设的定时周期后, 控制所述终端关机。 所述定时器单元 601, 还用于在所述检测单元 603确定所述终端不为异常开机时, 关 闭所述定时器。 在一个具体的实现方式中: 所述获取单元 602, 具体用于获取所述终端的 SIM卡使用状态信息; 所述检测单元 603, 具体用于当所述 SIM卡使用状态信息指示没有 SIM卡插入所述终 端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 602, 具体用于获取所述终端的 Wi-Fi用户数使用状态信息; 所述检测单元 603, 具体用于当所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户 接入所述终端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 602, 具体用于获取所述终端的蓝牙接入用户数使用状态信息; 所述检测单元 603, 具体用于当所述蓝牙接入用户数使用状态信息指示没有蓝牙用户 接入所述终端时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 602, 具体用于获取所述终端的 USB接口使用状态信息; 所述检测单元 603, 具体用于当所述 USB接口使用状态信息指示没有设备连接到所述 终端的 USB接口时, 确定所述终端为异常开机。 在另一个具体的实现方式中: 所述获取单元 602, 具体用于获取所述终端的充电器使用状态信息; 所述检测单元 603, 具体用于当所述充电器使用状态信息指示没有充电器连接到所述 终端的充电器接口时, 确定所述终端为异常开机。 需要说明的是, 上述几个具体的实现方式可以相互结合, 例如, 获取单元 602可以获 取 SIM卡使用状态信息和 Wi-Fi用户数使用状态信息,检测单元 603在当所述 SIM卡 使用状态信息指示没有 SIM卡插入所述终端,且同时 Wi-Fi用户数使用状态信息指示 没有 Wi-Fi用户接入所述终端时, 确定该终端异常开机。 由上述实施例可见, 在终端开机后, 不是在所有情况下都保持开机状态, 而是先要检 测终端是否为异常开机, 因此当在包装以及运输终端的过程中, 由于意外触动电源开 关而使终端开机时, 能够检测出终端为异常开机, 并控制终端关机, 因此不会因为异 常开机而消耗终端内电池的电量,从而能够确保终端上电池的电量满足首次开机的需 求, 提高了终端首次开机的成功率 专业人员还可以进一步应能意识到,结合本文中所公开的实施例描述的各示例的单元 及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清楚地说明 硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及 步骤。这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设计 约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功 能, 但是这种实现不应认为超出本发明实施例的范围。 结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的 软件模块, 或者二者的结合来实施。 对所公开的实施例的上述说明, 使本领域专业技术人员能够实现或使用本发明实施 例。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的, 本文中 所定义的一般原理可以在不脱离本发明实施例的精神或范围的情况下,在其他实施例 中实现。 因此, 本发明实施例将不会被限制于本文所示的这些实施例, 而是要符合与 本文所公开的原理和新颖特点相一致的最宽的范围。 以上所述仅为本发明实施例的较佳实施例而已, 并不用以限制本发明实施例, 凡 在本发明实施例的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含 在本发明实施例的保护范围之内。

Claims

权 利 要 求 书
1、 一种控制终端关机的方法, 其特征在于, 包括:
终端开机后, 获取所述终端的使用状态信息;
若根据获取的所述终端的使用状态信息确定所述终端为异常开机时,控制所述终端 关机。
2、 如权利要求 1所述的方法, 其特征在于,
所述终端的使用状态信息包括: 用户识别模块 SIM卡使用状态信息;
所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 SIM卡使用状态信息指示没有 SIM卡插入所述终端时,确定所述终端为异常开 机。
3、 如权利要求 1或 2所述的方法, 其特征在于,
所述终端的使用状态信息包括: 无线保真 Wi-Fi用户数使用状态信息;
所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户接入所述终端时,确定所述终 端为异常开机。
4、 如权利要求 1至 3中任一权利要求所述的方法, 其特征在于,
所述终端的使用状态信息包括: 蓝牙接入用户数使用状态信息;
所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述蓝牙接入用户数使用状态信息指示没有蓝牙用户接入所述终端时,确定所述终 端为异常开机。
5、 如权利要求 1至 4中任一权利要求所述的方法, 其特征在于,
所述终端的使用状态信息包括: 通用串行总线 USB接口使用状态信息;
所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述 USB接口使用状态信息指示没有设备连接到所述终端的 USB接口时,确定所述 终端为异常开机。
6、 根据权利要求 1至 5中任一权利要求所述的方法, 其特征在于,
所述终端的使用状态信息包括: 充电器使用状态信息;
所述根据获取的所述终端的使用状态信息确定所述终端为异常开机包括: 所述充电器使用状态信息指示没有充电器连接到所述终端的充电器接口时,确定所 述终端为异常开机。
7、 如权利要求 1至 6中任一权利要求所述的方法, 其特征在于, 在所述终端开机 后, 获取所述终端的使用状态信息之前, 还包括: 启动定时器;
所述控制所述终端关机具体为: 在所述定时器到达预设的定时周期后, 控制所述终 端关机。
8、 如权利要求 7所述的方法, 其特征在于, 若根据获取的所述终端的使用状态信 息确定所述终端不为异常开机时, 关闭所述定时器。
9、 一种控制终端关机的装置, 其特征在于, 包括:
获取单元, 用于在终端开机后, 获取所述终端的使用状态信息;
检测单元,用于根据所述获取单元获取的所述终端的使用状态信息确定所述终端为 异常开机;
控制单元, 用于在所述检测单元确定所述终端为异常开机时, 控制所述终端关机。
10、 如权利要求 9所述的装置, 其特征在于,
所述获取单元, 具体用于获取所述终端的 SIM卡使用状态信息;
所述检测单元,具体用于当所述 SIM卡使用状态信息指示没有 SIM卡插入所述终端 时, 确定所述终端为异常开机。
11、 如权利要求 9或 10所述的装置, 其特征在于,
所述获取单元, 具体用于获取所述终端的 Wi-Fi用户数使用状态信息;
所述检测单元,具体用于当所述 Wi-Fi用户数使用状态信息指示没有 Wi-Fi用户接 入所述终端时, 确定所述终端为异常开机。
12、 如权利要求 9至 11中任一权利要求所述的装置, 其特征在于,
所述获取单元, 具体用于获取所述终端的蓝牙接入用户数使用状态信息; 所述检测单元,具体用于当所述蓝牙接入用户数使用状态信息指示没有蓝牙用户接 入所述终端时, 确定所述终端为异常开机。
13、 如权利要求 9至 12中任一权利要求所述的装置, 其特征在于,
所述获取单元, 具体用于获取所述终端的 USB接口使用状态信息;
所述检测单元,具体用于当所述 USB接口使用状态信息指示没有设备连接到所述终 端的 USB接口时, 确定所述终端为异常开机。
14、 如权利要求 9至 13中任一权利要求所述的装置, 其特征在于,
所述获取单元, 具体用于获取所述终端的充电器使用状态信息;
所述检测单元,具体用于当所述充电器使用状态信息指示没有充电器连接到所述终 端的充电器接口时, 确定所述终端为异常开机。
15、 如权利要求 9至 14中任一权利要求所述的装置, 其特征在于, 所述装置还包 括:
定时器单元,用于在所述获取单元获取所述终端的使用状态信息之前,启动定时器; 所述控制单元, 具体用于在所述启动单元所启动的定时器到达预设的定时周期后, 控制所述终端关机;
所述定时器单元, 还用于在所述检测单元确定所述终端不为异常开机时, 关闭所述 定时器。
PCT/CN2013/078784 2012-12-06 2013-07-04 控制终端关机的方法及装置 WO2014086139A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2014550635A JP2015504277A (ja) 2012-12-06 2013-07-04 端末機器の電源オフ動作を制御するための方法と装置
EP13786405.4A EP2765483B1 (en) 2012-12-06 2013-07-04 Method and device for controlling shutdown of terminal
US14/081,753 US20140164798A1 (en) 2012-12-06 2013-11-15 Method and apparatus for controlling power-off of terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210518121.6A CN103856620B (zh) 2012-12-06 2012-12-06 控制终端关机的方法及装置
CN201210518121.6 2012-12-06

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/081,753 Continuation US20140164798A1 (en) 2012-12-06 2013-11-15 Method and apparatus for controlling power-off of terminal

Publications (1)

Publication Number Publication Date
WO2014086139A1 true WO2014086139A1 (zh) 2014-06-12

Family

ID=50863817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078784 WO2014086139A1 (zh) 2012-12-06 2013-07-04 控制终端关机的方法及装置

Country Status (4)

Country Link
EP (1) EP2765483B1 (zh)
JP (1) JP2015504277A (zh)
CN (1) CN103856620B (zh)
WO (1) WO2014086139A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111610B (zh) * 2014-06-24 2017-02-01 联想(北京)有限公司 一种电子设备及控制方法
CN104869235B (zh) * 2015-04-27 2017-08-18 广东欧珀移动通信有限公司 一种防止误开机的方法、装置、系统和一种移动终端
CN105867579A (zh) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 终端控制方法、装置及终端
CN105554275A (zh) * 2015-12-16 2016-05-04 广东欧珀移动通信有限公司 移动终端的开机方法及装置
CN105657800A (zh) * 2015-12-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 一种移动终端省电的方法及装置
CN105828425A (zh) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 移动通信终端低功耗实现方法及装置
CN106021006B (zh) * 2016-05-17 2019-03-26 Oppo广东移动通信有限公司 一种终端开机异常的处理方法及终端
CN106252752B (zh) * 2016-08-01 2018-09-07 广东乐源数字技术有限公司 一种智能手环出厂电池保护方法
CN107976933A (zh) * 2017-10-26 2018-05-01 广州番禺职业技术学院 一种服务器伺服控制系统及服务器断电保护方法
CN116526640B (zh) * 2023-07-05 2023-10-20 荣耀终端有限公司 电池保护方法、电子设备及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5905964A (en) * 1996-02-26 1999-05-18 Sony Corporation Portable communication apparatus
CN101931699A (zh) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 一种移动终端及其关机方法和装置
CN102404640A (zh) * 2011-11-25 2012-04-04 康佳集团股份有限公司 机顶盒自动关机的方法

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0121354D0 (en) * 2001-09-03 2001-10-24 Ericsson Telefon Ab L M Mobile communications device
JP4040444B2 (ja) * 2002-12-06 2008-01-30 キヤノン株式会社 無線アクセスポイント装置、電源供給方法、及びそのためのプログラム
JP4154262B2 (ja) * 2003-03-19 2008-09-24 キヤノン株式会社 無線通信装置及びその制御方法
CN100518210C (zh) * 2003-08-27 2009-07-22 联想(北京)有限公司 一种电子设备的操作控制方法及系统
CN100502599C (zh) * 2003-10-10 2009-06-17 高延飞 手机安全管理方法
DE102005051291A1 (de) * 2005-10-26 2007-05-03 Siemens Ag Verfahren zur Steuerung von Basisstationen in drahtlosen Kommunikationsnetzen
JP4953993B2 (ja) * 2007-08-31 2012-06-13 京セラ株式会社 携帯通信端末、送信電力切換方法および送信電力切換プログラム
DE102008062770B4 (de) * 2008-12-18 2023-04-06 Gigaset Communications Gmbh Telekommunikationsnetzwerkknoten und Verfahren zu dessen Betrieb
CN102073281A (zh) * 2009-11-23 2011-05-25 英业达股份有限公司 避免误触电源开关的方法及其装置
CN102111492A (zh) * 2009-12-29 2011-06-29 比亚迪股份有限公司 一种用于移动终端的开机检测的方法、装置及移动终端
CN202257431U (zh) * 2011-10-31 2012-05-30 成都高新区尼玛电子产品外观设计工作室 系统开关机信号脚的复位设计电路

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5905964A (en) * 1996-02-26 1999-05-18 Sony Corporation Portable communication apparatus
CN101931699A (zh) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 一种移动终端及其关机方法和装置
CN102404640A (zh) * 2011-11-25 2012-04-04 康佳集团股份有限公司 机顶盒自动关机的方法

Also Published As

Publication number Publication date
JP2015504277A (ja) 2015-02-05
EP2765483A4 (en) 2014-11-26
CN103856620A (zh) 2014-06-11
EP2765483A1 (en) 2014-08-13
CN103856620B (zh) 2016-09-28
EP2765483B1 (en) 2017-09-13
EP2765483A8 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
WO2014086139A1 (zh) 控制终端关机的方法及装置
CN109861317B (zh) 适配器、便携式电源系统及控制方法
US9588563B2 (en) Protocol for managing a controllable power adapter accessory
CN103078393B (zh) Usb集线器和usb集线器的电力供应方法
WO2013189133A1 (zh) Sim卡热插拔处理装置、方法及移动终端
CN109067416B (zh) 一种实现sim卡热插拔及启动的方法和智能硬件
US11895364B2 (en) Bluetooth connection method and television
CA2547204C (en) Inter-processor parameter management in a multiple-processor wireless mobile communication device operating on a processor specific communication network
US11977618B2 (en) Electronic device and control method
CA3032230A1 (en) Energy control method and apparatus for power consumption system
WO2014161271A1 (zh) Sim卡热插拔的方法、装置及系统
JP6421591B2 (ja) 充電制御装置、充電制御方法および充電制御プログラム
US20140164798A1 (en) Method and apparatus for controlling power-off of terminal
WO2015090077A1 (zh) 移动终端充电的控制方法、装置、系统和移动终端
JP5792753B2 (ja) 通信装置および通信装置動作状態移行方法
CN110545499A (zh) 通信方法、装置及其芯片、待充电设备和系统
CN109756397B (zh) 一种硬件共享方法、系统及相关设备
WO2013004175A1 (zh) 一种电子设备的软件升级方法及装置
CN115413015A (zh) 一种通信方法、装置、存储介质和终端设备
CN115086827A (zh) 耳机入盒检测方法、装置、耳机及存储介质
TWI469053B (zh) 電子裝置及其啟動方法
WO2013182053A1 (zh) 一种传感器接入检测方法、装置和系统
TW201315274A (zh) 無線網路裝置及其連線方法
CN114143858A (zh) WiFi接入方法、系统、设备及介质
WO2019100693A1 (zh) 控制se的系统、方法及芯片

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2013786405

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013786405

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2014550635

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13786405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE