Terminal control method and device, electronic equipment and storage medium

By limiting its communication function according to the operating mode of the terminal, the problem of high power consumption of the terminal equipment is solved, and the communication function is dynamically configured to reduce power consumption and improve efficiency.

CN119729710APending Publication Date: 2025-03-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311258309.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The modem of the terminal device consumes a lot of power during operation, resulting in higher power consumption of the terminal.

Method used

By obtaining the current operating mode of the terminal, if it is determined to be a specified operating mode (such as power saving mode, temperature control mode, weak field mode or sleep mode), the communication function of the terminal is restricted, such as switching the Modem from the activated state to the semi-activated state, and closing the management module corresponding to the communication function in the Telephony framework.

Benefits of technology

Dynamic configuration of terminal communication functions is realized, reducing equipment power consumption and improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729710A_ABST
    Figure CN119729710A_ABST
Patent Text Reader

Abstract

The invention relates to a terminal control method and device, electronic equipment and a storage medium. Acquiring a current operation mode of the terminal; under the condition that the operation mode is determined to be a specified operation mode, limiting a communication function of the terminal; through the technical scheme, the communication function of the terminal can be configured according to the current operation mode of the terminal, dynamic configuration of the communication function of the terminal is realized, the power consumption of equipment is reduced, and the working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a terminal control method, device, electronic device and storage medium. Background Art

[0002] In the related technology, the hardware layer of the terminal can realize communication capabilities through the modem and perform signal modulation and demodulation during the communication process. The software layer can manage the communication capability interface through the Telephony framework. After the mobile terminal is powered on, the modem will be powered on and initialized; the Telephony framework will interact with the modem through the wireless interface layer to perform command and data transmission and reception to meet the user's data surfing, calls, and text message transmission and reception needs. However, the modem consumes a lot of power when working, resulting in high power consumption of the terminal. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a terminal control method, device, electronic device and storage medium, which are used to reduce device power consumption and improve work efficiency.

[0004] According to a first aspect of an embodiment of the present disclosure, a terminal control method is provided, the method comprising:

[0005] Get the current operating mode of the terminal;

[0006] If it is determined that the operation mode is a designated operation mode, a communication function of the terminal is restricted.

[0007] Optionally, obtaining the current operation mode of the terminal includes:

[0008] In response to receiving a mode selection instruction from a user, determining the operating mode selected by the user according to the mode selection instruction; or,

[0009] Acquire current operating parameters of the terminal, and determine the operating mode according to the operating parameters.

[0010] Optionally, the operating parameter includes a remaining power of the terminal; the operating mode includes a power saving mode; and determining the operating mode according to the operating parameter includes:

[0011] When the remaining power is less than or equal to a preset remaining power threshold, it is determined that the terminal is in the power saving mode.

[0012] Optionally, the operating parameter includes temperature information of the terminal; the operating mode includes a temperature control mode; and determining the operating mode according to the operating parameter includes:

[0013] When the temperature information is greater than or equal to a preset temperature threshold, it is determined that the terminal is in the temperature control mode.

[0014] Optionally, the operating parameter includes signal strength information of the terminal; the operating mode includes a weak field mode; and determining the operating mode according to the operating parameter includes:

[0015] When the signal strength information is less than or equal to a preset signal strength threshold and the duration reaches a first preset time threshold, it is determined that the terminal is in the weak field mode.

[0016] Optionally, the operating parameter includes screen status information of the terminal; the screen status information indicates whether the screen status of the terminal is in a screen-off state; the operating mode includes a sleep mode; and determining the operating mode according to the operating parameter includes:

[0017] When the screen status information indicates that the screen status of the terminal is in the screen-off state and the screen-off time reaches a second preset time threshold, it is determined that the terminal is in the sleep mode.

[0018] Optionally, determining that the operating mode is a specified operating mode includes:

[0019] Determine a mode identifier corresponding to the operating mode;

[0020] When the mode identifier is a designated mode identifier, the operation mode is determined to be a designated operation mode.

[0021] Optionally, the method further comprises:

[0022] When the operation mode is the specified operation mode, outputting prompt information; the prompt information is used to prompt whether to limit the communication function of the terminal;

[0023] The limiting the communication function of the terminal includes:

[0024] In response to receiving a confirmation instruction sent by the user according to the prompt information, limiting the communication function of the terminal.

[0025] Optionally, limiting the communication function of the terminal includes:

[0026] Stop the communication function of the terminal; or,

[0027] Stop a designated sub-function in a communication function of the terminal; the communication function includes a plurality of sub-functions.

[0028] Optionally, the terminal includes a modem and a telephony framework; the modem includes an initial state, a semi-activated state and an activated state; and stopping the communication function of the terminal includes:

[0029] Switching the modem from the activated state to the semi-activated state, and shutting down the management module corresponding to the communication function in the telephony framework;

[0030] The stopping of the specified sub-function in the communication function of the terminal includes:

[0031] Stop the transmission of signal strength change information between the Modem and the Telephony framework.

[0032] According to a second aspect of an embodiment of the present disclosure, a terminal control device is provided, the device comprising:

[0033] An acquisition module, configured to acquire the current operation mode of the terminal;

[0034] The restriction module is configured to restrict the communication function of the terminal when it is determined that the operation mode is a designated operation mode.

[0035] Optionally, the acquisition module is configured to, in response to receiving a mode selection instruction from the user, determine the operating mode selected by the user according to the mode selection instruction; or, obtain current operating parameters of the terminal and determine the operating mode according to the operating parameters.

[0036] Optionally, the operating parameters include the remaining power of the terminal; the operating mode includes a power saving mode; and the restriction module is configured to determine that the terminal is in the power saving mode when the remaining power is less than or equal to a preset remaining power threshold.

[0037] Optionally, the operating parameters include temperature information of the terminal; the operating mode includes a temperature control mode; and the limiting module is configured to determine that the terminal is in the temperature control mode when the temperature information is greater than or equal to a preset temperature threshold.

[0038] Optionally, the operating parameters include signal strength information of the terminal; the operating mode includes a weak field mode; and the limiting module determines that the terminal is in the weak field mode when the signal strength information is less than or equal to a preset signal strength threshold and the duration reaches a first preset time threshold.

[0039] Optionally, the operating parameters include screen status information of the terminal; the screen status information indicates whether the screen status of the terminal is in the screen-off state; the operating mode includes a sleep mode; the restriction module is configured to determine that the terminal is in the sleep mode when the screen status information indicates that the screen status of the terminal is in the screen-off state and the screen-off time reaches a second preset time threshold.

[0040] Optionally, the restriction module is configured to determine a mode identifier corresponding to the operating mode; and when the mode identifier is a designated mode identifier, determine that the operating mode is the designated operating mode.

[0041] Optionally, the device further comprises:

[0042] a prompt module, configured to output prompt information when the operation mode is the specified operation mode; the prompt information is used to prompt whether to limit the communication function of the terminal;

[0043] The restriction module is configured to restrict the communication function of the terminal in response to receiving a confirmation instruction sent by the user according to the prompt information.

[0044] Optionally, the restriction module is configured to stop the communication function of the terminal; or, to stop a specified sub-function in the communication function of the terminal; the communication function includes multiple sub-functions.

[0045] Optionally, the terminal includes a modem and a Telephony framework; the Modem includes an initial state, a semi-activated state and an activated state; the restriction module is configured to switch the Modem from the activated state to the semi-activated state, and shut down a management module corresponding to the communication function in the Telephony framework; or, stop the transmission of signal strength change information between the Modem and the Telephony framework.

[0046] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device comprising:

[0047] processor;

[0048] a memory for storing processor-executable instructions;

[0049] The processor is configured to implement the steps of the terminal control method provided in the first aspect of the present disclosure when executing.

[0050] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the terminal control method provided in the first aspect of the present disclosure are implemented.

[0051] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: configuring the communication function of the terminal according to the current operation mode of the terminal, realizing dynamic configuration of the communication function of the terminal, reducing device power consumption, and improving work efficiency.

[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0054] Figure 1 The present invention is a flowchart of a terminal control method according to an exemplary embodiment.

[0055] Figure 2 The figure is a flow chart showing a modem state transition according to an exemplary embodiment.

[0056] Figure 3 The invention is a block diagram showing a terminal control device according to an exemplary embodiment.

[0057] Figure 4 is based on Figure 3 A block diagram of a terminal control device is shown in an embodiment.

[0058] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment.

[0059] Figure 6 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0061] First, the application scenario of the present disclosure is introduced. The present disclosure is applied in the scenario where the terminal communicates. The terminal can be a wearable device, such as a watch, earphones, helmet or glasses. In the related art, the hardware layer of the terminal can realize the communication capability through the modem and perform signal modulation and demodulation during the communication process. The software layer can manage the communication capability interface through the Telephony framework. After the mobile terminal is powered on, the modem will be powered on and initialized; the Telephony framework will interact with the modem through the wireless interface layer to perform command and data transmission and reception to meet the user's data surfing, calls, and text message transmission and reception requirements. In addition, the modem will work after the terminal is powered on and stops working after the terminal is shut down, so the power consumption is large, resulting in high power consumption of the terminal.

[0062] In order to solve the above problems, the present disclosure provides a terminal control method, device, electronic device and storage medium; obtains the current operating mode of the terminal; and when it is determined that the operating mode is a specified operating mode, limits the communication function of the terminal; through the above technical scheme, the communication function of the terminal can be configured according to the current operating mode of the terminal, thereby realizing dynamic configuration of the terminal communication function, reducing equipment power consumption and improving work efficiency.

[0063] Figure 1 is a flow chart of a terminal control method according to an exemplary embodiment. Figure 1 As shown, the method can be applied in a terminal, and includes the following steps.

[0064] S101. Obtain the current operation mode of the terminal.

[0065] In some embodiments, the above step S101 may include: in response to receiving a mode selection instruction from a user, determining the operating mode selected by the user according to the mode selection instruction; for example, the mode selection instruction may be an instruction triggered by a touch operation of the user. The mode selection interface may be displayed through the display of the terminal, and the mode selection interface may include multiple operating modes, such as one or more of a power saving mode, a temperature control mode, a weak field mode, a sleep mode, a night mode, or an eye protection mode. The user may select the operating mode of the terminal according to their own needs, and generate the mode selection instruction, and the terminal determines the operating mode selected by the user according to the mode selection instruction. In this way, the user can flexibly select the operating mode of the terminal, thereby improving the user experience.

[0066] In other embodiments, the above step S101 may include: obtaining the current operating parameters of the terminal, and determining the operating mode according to the operating parameters. In this way, the terminal can determine the operating mode according to the operating parameters, thereby limiting the communication function of the terminal, realizing the configurability of the terminal communication capability, and reducing the power consumption of the device.

[0067] The operating parameters of the terminal may include the remaining power of the terminal, the temperature information of the terminal, the signal strength information of the terminal, or the screen status information of the terminal; and the above-mentioned determination of the operating mode according to the operating parameters may include the following methods:

[0068] Mode 1: The operating mode may include a power saving mode; when the operating parameter includes the remaining power of the terminal, the terminal may be determined to be in the power saving mode when the remaining power is less than or equal to a preset remaining power threshold. For example, the preset remaining power threshold may be in the range of 3%-10%, for example, 3%, 5%, 8% or 10%. In this way, when the remaining power of the terminal is low, the terminal may be switched to the power saving mode to reduce the power consumption of the device.

[0069] It should be noted that when the terminal is in power saving mode, if the terminal is charged and during the charging process, the remaining power is greater than or equal to the preset target remaining power threshold, the power saving mode is exited. For example, the preset target remaining power threshold can be in the range of 8%-15%, for example, 8%, 10% or 15%. In this way, when the remaining power of the terminal is high, the power saving mode can be exited in time to avoid affecting user use and improve user experience.

[0070] Mode 2: The operating mode may include a temperature control mode; when the operating parameter includes the temperature information of the terminal, the terminal may be determined to be in the temperature control mode when the temperature information is greater than or equal to a preset temperature threshold. For example, the preset temperature threshold may be between 40°C and 50°C, for example, 40°C, 45°C or 50°C.

[0071] It should be noted that the temperature control mode can be exited when the temperature information is less than or equal to the preset target temperature threshold. For example, the preset target temperature threshold can be between 30°C and 40°C, for example, 30°C, 35°C or 40°C. In this way, when the terminal exits the temperature control mode, it can be determined that the temperature of the terminal will not affect the user, thereby improving the user experience.

[0072] Method three: the operating mode may include a weak field mode; when the operating parameters include the signal strength information of the terminal, it can be determined that the terminal is in the weak field mode when the signal strength information is less than or equal to a preset signal strength threshold and the duration reaches a first preset time threshold.

[0073] For example, the signal strength information may refer to the number of signal grids, and the higher the signal strength, the more signal grids there are. The preset signal strength threshold may be in the range of 0-2, for example, 0 grids (no signal), 1 grid, or 2 grids. The first preset time threshold may be in the range of 10min-20min, for example, 10min, 15min, or 20min. In this way, the terminal can determine the signal strength according to the signal strength information and automatically switch to the weak field mode, thereby improving work efficiency.

[0074] Method four: the operating mode may include a sleep mode; when the operating parameters include screen status information of the terminal (the screen status information may indicate whether the screen status of the terminal is in a screen-off state), it may be determined that the terminal is in the sleep mode when the screen status information indicates that the screen status of the terminal is in the screen-off state and the screen-off time reaches a second preset time threshold.

[0075] For example, the screen-off state may refer to the user having no interactive operation with the terminal. The second preset time threshold may be in the range of 1 min-5 min, for example, 1 min, 2 min or 5 min. In this way, when it is determined according to the screen state information that the user does not need to use the terminal, the terminal may be switched to the sleep mode to reduce the power consumption of the device.

[0076] S102: When it is determined that the operation mode is the designated operation mode, limit the communication function of the terminal.

[0077] In some embodiments, determining that the operation mode is the designated operation mode may include: determining a mode identifier corresponding to the operation mode; and determining that the operation mode is the designated operation mode when the mode identifier is the designated mode identifier. In this way, the designated operation mode can be determined by the identifier, thereby executing the corresponding communication function restriction method, thereby improving work efficiency.

[0078] For example, considering that the terminal may experience one or more situations of low remaining battery, high device temperature, weak signal strength and screen-off state at the same time during use, the above-mentioned specified operating modes may include one or more of power saving mode, temperature control mode, weak field mode and sleep mode.

[0079] Through the above technical solution, the communication function of the terminal can be configured according to the current operation mode of the terminal, thereby realizing dynamic configuration of the terminal communication function, reducing device power consumption and improving work efficiency.

[0080] In some embodiments, when the operating mode is the specified operating mode, a prompt message may be output; the prompt message is used to prompt whether to limit the communication function of the terminal; in response to receiving a confirmation instruction sent by the user according to the prompt message, the communication function of the terminal is limited. In a possible implementation, in response to receiving a denial instruction sent by the user according to the prompt message, the communication function of the terminal is no longer restricted. In this way, when the operating mode is the specified operating mode, a prompt message may be issued to the user, and it may be determined whether to limit the communication function of the terminal according to the user's instruction, thereby achieving flexible configuration of the communication function of the terminal and improving the user experience.

[0081] In other embodiments, the above-mentioned limiting the communication function of the terminal may include: stopping the communication function of the terminal; or stopping a specified sub-function in the communication function of the terminal; the communication function includes multiple sub-functions. For example, stopping the communication function of the terminal may be deactivating the communication function of the terminal; stopping the specified sub-function in the communication function of the terminal may be semi-deactivating the communication function of the terminal, that is, deactivating some functions in the communication function of the terminal. In this way, the communication function can be configured to be deactivated or semi-deactivated, and different deactivation methods can be set according to different modes to expand the applicability of the configuration method and improve work efficiency.

[0082] In other embodiments, the terminal may include a modem and a Telephony framework; the modem may include an initial state, a semi-activated state, and an activated state; the above-mentioned stopping of the communication function of the terminal may include: switching the modem from the activated state to the semi-activated state, and shutting down the management module corresponding to the communication function in the Telephony framework; the above-mentioned designated sub-function may be a function of transmitting signal strength change information between the modem and the Telephony framework, and stopping the designated sub-function in the communication function of the terminal may include: stopping the transmission of signal strength change information between the modem and the Telephony framework.

[0083] For example, the initial state of the modem may be MODEM_STATE_POWER_OFF (indicating that the modem is not powered on); the semi-activated state may be MODEM_STATE_AWARE (indicating that the modem has established a data transmission channel with the Telephony framework, but the modem is in an inactive state); the activated state may be MODEM_STATE_ALIVE (indicating that the modem is in an enabled state and can communicate with the Telephony framework). The Telephony framework may include management modules corresponding to communication functions, such as a SIM card module, a communication module, a radio frequency module, and a data module.

[0084] The following examples are used to illustrate the transition between the three modes. Figure 4 As shown, the Modem and the Telephony framework establish a data connection channel through RILD, and switch from the initial state to the semi-activated state. When receiving an activation request, the Telephony framework activates the various management modules corresponding to the communication function (including the SIM card module, the communication module, the radio frequency module, and the data module), and the Modem switches from the semi-activated state to the activated state. When receiving a deactivation request, the Modem successfully switches from the activated state to the semi-activated state, and the Telephony framework shuts down the various management modules corresponding to the communication function. When receiving a semi-deactivation request, according to the semi-deactivation request, part of the communication function of the Modem is shut down, that is, the transmission of signal strength change information between the Modem and the Telephony framework is shut down.

[0085] Figure 3 is a block diagram of a terminal control device according to an exemplary embodiment. Figure 5 The device includes an acquisition module 310 and a restriction module 320.

[0086] The acquisition module 310 is configured to acquire the current operation mode of the terminal;

[0087] The restriction module 320 is configured to restrict the communication function of the terminal when it is determined that the operation mode is the designated operation mode.

[0088] Through the above technical solution, the communication function of the terminal can be configured according to the current operation mode of the terminal, thereby realizing dynamic configuration of the terminal communication function, reducing device power consumption and improving work efficiency.

[0089] Optionally, the acquisition module 310 is configured to, in response to receiving a mode selection instruction from the user, determine the operating mode selected by the user according to the mode selection instruction; or, obtain current operating parameters of the terminal and determine the operating mode according to the operating parameters.

[0090] Optionally, the operating parameters include the remaining power of the terminal; the operating mode includes a power saving mode; and the limiting module 320 is configured to determine that the terminal is in the power saving mode when the remaining power is less than or equal to a preset remaining power threshold.

[0091] Optionally, the operating parameter includes temperature information of the terminal; the operating mode includes a temperature control mode; and the limiting module 320 is configured to determine that the terminal is in the temperature control mode when the temperature information is greater than or equal to a preset temperature threshold.

[0092] Optionally, the operating parameters include signal strength information of the terminal; the operating mode includes a weak field mode; the limiting module 320 determines that the terminal is in the weak field mode when the signal strength information is less than or equal to a preset signal strength threshold and the duration reaches a first preset time threshold.

[0093] Optionally, the operating parameters include screen status information of the terminal; the screen status information indicates whether the screen status of the terminal is in the screen-off state; the operating mode includes a sleep mode; the restriction module 320 is configured to determine that the terminal is in the sleep mode when the screen status information indicates that the screen status of the terminal is in the screen-off state and the screen-off time reaches a second preset time threshold.

[0094] Optionally, the restriction module 320 is configured to determine a mode identifier corresponding to the operating mode; and when the mode identifier is a designated mode identifier, determine that the operating mode is the designated operating mode.

[0095] Figure 4 is based on Figure 3 A block diagram of a terminal control device is shown in the embodiment of FIG. Figure 4 As shown, the device also includes:

[0096] The prompt module 330 is configured to output a prompt message when the operation mode is the specified operation mode; the prompt message is used to prompt whether to limit the communication function of the terminal;

[0097] The restriction module 320 is configured to restrict the communication function of the terminal in response to receiving a confirmation instruction sent by the user according to the prompt information.

[0098] Optionally, the restriction module 320 is configured to stop the communication function of the terminal; or, to stop a specified sub-function in the communication function of the terminal; the communication function includes multiple sub-functions.

[0099] Optionally, the terminal includes a modem and a Telephony framework; the Modem includes an initial state, a semi-activated state and an activated state; the restriction module 320 is configured to switch the Modem from the activated state to the semi-activated state, and close the management module corresponding to the communication function in the Telephony framework; or, stop the transmission of signal strength change information between the Modem and the Telephony framework.

[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0101] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the terminal control method provided by the present disclosure are implemented.

[0102] In summary, the present disclosure provides a method, device, electronic device and storage medium for terminal control; obtains the current operating mode of the terminal; and when it is determined that the operating mode is a specified operating mode, limits the communication function of the terminal; through the above technical scheme, the communication function of the terminal can be configured according to the current operating mode of the terminal, thereby realizing dynamic configuration of the terminal communication function, reducing device power consumption and improving work efficiency.

[0103] Figure 5 1 is a block diagram of an electronic device 500 according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0104] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 505 , a multimedia component 508 , an audio component 510 , an input / output interface 512 , a sensor component 514 , and a communication component 516 .

[0105] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned terminal control method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0106] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0107] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0108] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0109] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0110] The input / output interface 512 provides an interface between the processing component 502 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0111] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0112] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0113] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned terminal control method.

[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to complete the terminal control method described above. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0115] Figure 66 is a block diagram of another electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be provided as a server. Figure 6 , the electronic device 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632 for storing instructions executable by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute instructions to perform the above-mentioned terminal control method.

[0116] The electronic device 600 may also include a power supply component 626 configured to perform power management of the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to a network, and an input / output interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0118] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal control method, characterized in that: The method comprises: Get the current operating mode of the terminal; If it is determined that the operation mode is a designated operation mode, a communication function of the terminal is restricted.

2. The method according to claim 1, characterized in that The obtaining of the current operation mode of the terminal includes: In response to receiving a mode selection instruction from a user, determining the operating mode selected by the user according to the mode selection instruction; or, Acquire current operating parameters of the terminal, and determine the operating mode according to the operating parameters.

3. The method according to claim 2, characterized in that The operating parameter includes the remaining power of the terminal; the operating mode includes a power saving mode; and determining the operating mode according to the operating parameter includes: When the remaining power is less than or equal to a preset remaining power threshold, it is determined that the terminal is in the power saving mode.

4. The method according to claim 2, characterized in that: The operating parameter includes temperature information of the terminal; the operating mode includes a temperature control mode; and determining the operating mode according to the operating parameter includes: When the temperature information is greater than or equal to a preset temperature threshold, it is determined that the terminal is in the temperature control mode.

5. The method according to claim 2, characterized in that: The operating parameters include signal strength information of the terminal; the operating mode includes a weak field mode; and determining the operating mode according to the operating parameters includes: When the signal strength information is less than or equal to a preset signal strength threshold and the duration reaches a first preset time threshold, it is determined that the terminal is in the weak field mode.

6. The method according to claim 2, characterized in that The operating parameters include screen status information of the terminal; the screen status information indicates whether the screen status of the terminal is in a screen-off state; The operating mode includes a sleep mode; and determining the operating mode according to the operating parameters includes: When the screen status information indicates that the screen status of the terminal is in the screen-off state and the screen-off time reaches a second preset time threshold, it is determined that the terminal is in the sleep mode.

7. The method according to claim 1, characterized in that Determining the operating mode as the designated operating mode includes: Determine a mode identifier corresponding to the operating mode; When the mode identifier is a designated mode identifier, the operation mode is determined to be a designated operation mode.

8. The method according to claim 1, characterized in that: The method further comprises: When the operation mode is the specified operation mode, outputting prompt information; the prompt information is used to prompt whether to limit the communication function of the terminal; The limiting the communication function of the terminal includes: In response to receiving a confirmation instruction sent by the user according to the prompt information, limiting the communication function of the terminal.

9. The method according to any one of claims 1 to 8, characterized in that The limiting the communication function of the terminal includes: Stop the communication function of the terminal; or, Stop a designated sub-function in a communication function of the terminal; the communication function includes a plurality of sub-functions.

10. The method according to claim 9, characterized in that The terminal includes a modem and a telephony framework; the modem includes an initial state, a semi-activated state and an activated state; and stopping the communication function of the terminal includes: Switching the modem from the activated state to the semi-activated state, and shutting down the management module corresponding to the communication function in the telephony framework; The stopping of the specified sub-function in the communication function of the terminal includes: Stop the transmission of signal strength change information between the Modem and the Telephony framework.

11. A terminal control device, characterized in that: The device comprises: An acquisition module, configured to acquire the current operation mode of the terminal; The restriction module is configured to restrict the communication function of the terminal when it is determined that the operation mode is a designated operation mode.

12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 10 when executed.

13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.