WO2018103379A1 - Terminal monitoring method and mobile terminal - Google Patents
Terminal monitoring method and mobile terminal Download PDFInfo
- Publication number
- WO2018103379A1 WO2018103379A1 PCT/CN2017/099193 CN2017099193W WO2018103379A1 WO 2018103379 A1 WO2018103379 A1 WO 2018103379A1 CN 2017099193 W CN2017099193 W CN 2017099193W WO 2018103379 A1 WO2018103379 A1 WO 2018103379A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- period
- state
- screen
- detecting
- Prior art date
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 75
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012360 testing method Methods 0.000 claims abstract description 112
- 238000004891 communication Methods 0.000 claims description 26
- 238000001514 detection method Methods 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 16
- 238000010295 mobile communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is leader and terminal is follower
- H04W52/0219—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is leader and terminal is follower where the power saving management affects multiple terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0258—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
- H04W52/027—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0287—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of mobile terminal technologies, and in particular, to a terminal monitoring method and a mobile terminal.
- Wi-Fi Wireless fidelity
- IEEE 802.11 IEEE-defined wireless network communication
- a Wi-Fi-enabled mobile communication terminal such as a mobile phone
- Wi-Fi STA Wireless Fidelity Station
- the mobile communication terminal works in In the Wi-Fi workstation mode, as a terminal connection router, it can also be used as a Wi-Fi AP (wireless fidelity access point) to access other Wi-Fi STAs.
- Wi-Fi STA Wireless Fidelity Station
- Wi-Fi AP wireless fidelity access point
- an embodiment of the present invention provides a terminal monitoring method, including:
- the test data is used to monitor the second terminal.
- a connection state wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
- the first terminal detects whether the screen is in an off-screen state
- the first terminal When detecting the entering the screen-out state, the first terminal sends test data to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
- an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
- a monitoring unit configured to send test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the second terminal a connection state, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
- a detecting unit configured to detect whether the screen is in an off state
- the monitoring unit is further configured to send test data to the second terminal by using a second preset duration as a second period when detecting the entering the screen-off state, where the second period is greater than the first period.
- an embodiment of the present invention provides a mobile terminal, including:
- processor a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface are connected by the communication bus and complete communication with each other;
- the memory stores executable program code for wireless communication
- the processor is configured to invoke the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
- an embodiment of the present invention provides a storage medium, where the storage medium stores a program, and the program is used to perform the steps described in any one of the first aspects of the embodiments of the present invention.
- FIG. 1 is a schematic flowchart diagram of a terminal monitoring method according to an embodiment of the present invention
- FIG. 2 is a schematic flow chart of another terminal monitoring method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention.
- FIG. 4 is a schematic flow chart of another terminal monitoring method according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart diagram of another terminal monitoring method according to an embodiment of the present invention.
- FIG. 6 is a block diagram of a unit structure of a mobile terminal according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
- references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
- the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
- the connection state of the mobile communication terminal working in the Wi-Fi workstation mode connected to the access point is periodically monitored, and the monitoring period is too Shorter increases the operating current of the mobile communication terminal operating in the Wi-Fi access point mode and causes the power consumption of the mobile communication terminal operating in the Wi-Fi access point mode to increase, which also causes the work in the Wi-Fi workstation mode.
- the power consumption of the mobile communication terminal is increased due to being frequently woken up.
- the first terminal when the first terminal is in the bright screen state, the first terminal is sent to the second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as the first period.
- the connection status of the second terminal is used, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects whether When the screen is off, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than the first period. cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- FIG. 1 is a schematic diagram of a terminal monitoring method according to an embodiment of the present invention.
- a terminal monitoring method in an embodiment of the present invention includes:
- the first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the first A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
- the first terminal and the second terminal include, but are not limited to, portable mobile terminal electronic devices such as a smart phone, a tablet computer, a notebook computer, and a personal digital assistant.
- the first terminal and the second terminal may also include non-mobile terminals such as desktop computers.
- the Wi-Fi workstation mode refers to the Internet as a client connection router. Those skilled in the art can understand that opening the Wi-Fi workstation mode refers to opening the Wi-Fi STA (Workstation) function of the terminal, or simply turning on Wi-Fi.
- the Wi-Fi access point mode refers to being a Wi-Fi access point (Wi-Fi hotspot) for other terminals to access, and those skilled in the art can understand that turning on the Wi-Fi access point mode refers to opening the Wi of the terminal.
- -Fi AP access point
- the terminal has a Wi-Fi STA function in the Wi-Fi workstation mode, and can access other Wi-Fi APs (for example, a wireless router, a mobile router, or a personal router) through its Wi-Fi chip, and to the Wi -Fi AP applies for an IP address to access corporate networks, the Internet, or carriers over a Wi-Fi network Network etc.
- the terminal has a Wi-Fi AP function in a Wi-Fi access point mode, and the Wi-Fi chip serves as an access point to provide wireless broadband access services for at least one Wi-Fi workstation device in the vicinity to A Wi-Fi workstation device is connected to the corporate network, the Internet, or the carrier's network.
- the first terminal detects whether it enters a blackout state.
- the specific implementation manner of the first terminal detecting whether to enter the screen-off state may be detecting whether a user-triggered screen-out event is received, such as a touch operation for a screen-out button.
- the first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- the first terminal may further perform the following operations:
- the first terminal detects whether a bright screen state is entered
- the first terminal sends test data to the second terminal when detecting the entering a bright screen state.
- the first terminal may further perform the following operations:
- the first terminal detects whether a bright screen state is entered
- the first terminal When detecting the entering the bright screen state, the first terminal sends the test data to the second terminal by using the first preset duration as a first period.
- the specific implementation manner that the first terminal sends the test data to the second terminal by using the second preset duration as the second period may be:
- the first terminal detects whether the first terminal is in a charging state when detecting that the screen is in an off-screen state
- the first terminal When detecting that the first terminal is not in the charging state, the first terminal sends the test data to the second terminal by using the second preset duration as the second period.
- the first terminal may further perform the following operations:
- the first terminal When detecting that the screen is not in the blanking state, the first terminal detects whether multicast data and/or broadcast data is received within a preset time period;
- the first terminal sends the test data to the second terminal by using the third preset duration as a third period, where The third period is greater than the first period.
- FIG. 2 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention.
- the terminal monitoring method in the embodiment of the present invention includes:
- the first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
- the first terminal detects whether the screen is in an off state.
- the first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
- the first terminal detects whether a bright screen state is entered.
- the first terminal sends test data to the second terminal by using the first preset duration as a first period when detecting the entering a bright screen state.
- the first terminal is in a bright screen.
- the test data is sent to the second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as the first period to monitor the connection status of the second terminal, where the first terminal works on Wi-Fi.
- the second terminal is a terminal working in the Wi-Fi workstation mode, and secondly, the first terminal detects whether the screen is in the off-screen state, and when detecting the entering the screen-out state, the monitoring period is adjusted to the second period.
- the test data is sent to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- FIG. 3 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention.
- the terminal monitoring method in the embodiment of the present invention includes:
- the first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
- the first terminal detects whether the screen is in an off state.
- the first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
- the first terminal detects whether a bright screen state is entered.
- the first terminal sends test data to the second terminal when detecting the entering a bright screen state.
- the second terminal If the second terminal is unexpectedly disconnected before the first terminal enters the bright screen state, and the first terminal has not yet sent the test data period, the second terminal connection is actually disconnected. However, the first terminal displays a bad experience that the second terminal is still connected due to the periodic monitoring that has not yet arrived. Therefore, by implementing steps S204 to S205, the first terminal detects that the screen is in a bright screen. In the state, the test data is immediately sent to the second terminal instead of waiting for the periodic check time to expire before detecting, and the connection status sent by the first terminal is quickly determined by the second terminal.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- FIG. 4 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention.
- the terminal monitoring method in the embodiment of the present invention includes:
- the first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the first A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
- the first terminal detects whether the screen is in a blackout state.
- the first terminal detects whether the first terminal is in a charging state when detecting that the screen is in an off-screen state.
- the first terminal sends test data to the second terminal by using a second preset duration as a second period when detecting that the first terminal is not in a charging state.
- the first terminal adjusts the monitoring period when detecting that the first terminal is not in the charging state, and the second preset period is the second period to the second period.
- the second terminal sends the test data.
- the detection period may be shortened, or the test data may be sent to the second terminal according to the original first period.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- FIG. 5 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention.
- the terminal monitoring method in the embodiment of the present invention includes:
- the first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
- the first terminal detects whether it enters a blackout state.
- step S503 when it is detected that the screen is off, step S503 is performed; when it is detected that the screen is not in progress, steps S504 to S505 are performed.
- the first terminal detects the entering the screen-out state, and adopts the second preset duration as the second week. And transmitting test data to the second terminal, where the second period is greater than the first period.
- the first terminal detects whether multicast data and/or broadcast data is received within a preset time period.
- the first terminal sends the test data to the second terminal by using the third preset duration as a third period. Wherein the third period is greater than the first period.
- the monitoring of the connection state of the second terminal at this time has no practical effect, and the second terminal is monitored.
- the connection state is to ensure that the second terminal can successfully receive the multicast data and/or the broadcast data received and buffered in the first terminal, and therefore, if it is detected that the first terminal does not receive the preset time period,
- the first terminal adjusts the monitoring period, and sends the test data to the second terminal by using the third preset duration as a third period, where the third period is greater than the first period.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- the mobile terminal may include a monitoring unit 601 and a detecting unit 602, where:
- the monitoring unit 601 is configured to send, in a bright screen state, test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as a first period, where the test data is used to monitor the a connection status of the second terminal, where the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal working in a Wi-Fi workstation mode;
- the detecting unit 602 is configured to detect whether the screen is in a blanking state
- the monitoring unit 601 is further configured to: when detecting the entering the screen-out state, send test data to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
- the detecting unit 602 is specifically configured to: detect whether a user-triggered blackout event is received when detecting whether the device is in an off-screen state.
- the detecting unit 602 is further configured to detect after the test unit 601 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state. Whether to enter the bright screen state;
- the monitoring unit 601 is further configured to send test data to the second terminal when detecting a state of entering a bright screen.
- the detecting unit 602 is further configured to detect after the test unit 601 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state. Whether to enter the bright screen state;
- the monitoring unit 601 is further configured to send test data to the second terminal by using the first preset duration as a first period when detecting a status of entering a bright screen.
- the monitoring unit 601 is configured to: when detecting the entering the blackout state, send the test data to the second terminal by using the second preset duration as the second period, specifically for detecting the entry
- the first terminal is detected to be in a charging state; when it is detected that the first terminal is not in the charging state, the test data is sent to the second terminal in a second period.
- the monitoring unit 601 is further configured to: when detecting that the first terminal is in a charging state, send test data to the second terminal in the first period.
- the monitoring unit 601 is further configured to: when detecting that the first terminal is in a charging state, send test data to the second terminal by using the fourth preset duration as a fourth period, where The fourth period is less than the first period.
- the detecting unit 602 is further configured to: when detecting that the screen is not in the screen, detecting whether the multicast data is received within a preset time period and/or Broadcast data
- the monitoring unit 601 is further configured to: if it is detected that the multicast data and/or the broadcast data is not received within the preset time period, the first terminal uses the third preset duration as the third period The second terminal sends test data, wherein the third period is greater than the first period.
- the mobile terminal described in the device embodiment of the present invention is presented in the form of a functional unit.
- the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
- a processor shared, dedicated or chipset
- memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
- the function of sending the test data to the second terminal establishing the Wi-Fi connection with the first terminal by using the first preset duration as the first period in the bright screen state may be as shown in FIG. 7 .
- the mobile terminal is implemented by using the executable program code in the memory 102 by the processor 101 to establish a Wi-Fi connection with the first terminal in a first period of time in a bright screen state.
- the second terminal sends test data.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- the embodiment of the present invention further provides another mobile terminal, as shown in FIG. 7, including: a processor 101, a memory 102, a communication interface 103, and a communication bus 104; wherein the processor 101, the memory 102, and the communication interface 103 communicate
- the bus 104 connects and completes communication with each other;
- the processor 101 controls wireless communication with an external cellular network through the communication interface 103;
- the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and a low noise amplifier (low noise) Amplifier, LNA), duplexer, etc.
- the memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention The terminal monitoring method specifically disclosed in the medium.
- the processor 101 is configured to send, in a bright screen state, test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period, where the test data is used to monitor the a connection status of the second terminal, where the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode; detecting whether the screen is in an off-screen state; When detecting the entering the screen-out state, transmitting the test data to the second terminal by using the second preset duration as the second period, where the second period is greater than the first period.
- the processor 101 may further be configured to detect whether the light is entered. a screen state; when detecting a state of entering a bright screen, transmitting test data to the second terminal.
- the processor 101 may further be configured to detect whether the light is entered. a screen state; when detecting the entering a bright screen state, transmitting test data to the second terminal by using the first preset duration as a first period.
- the processor 101 when the processor 101 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state, the processor 101 is specifically configured to detect the entry and exit. In the screen state, detecting whether the first terminal is in a charging state; and detecting that the first terminal is not in a charging state, transmitting test data to the second terminal in a second period of the second preset duration.
- the processor 101 is further configured to detect whether the multicast data is received within a preset time period and/or Broadcast data; if it is detected that the multicast data and/or is not received within the preset time period And playing the data, sending the test data to the second terminal by using the third preset duration as a third period, wherein the third period is greater than the first period.
- the first preset duration is the first period
- the second terminal that establishes a Wi-Fi connection with the first terminal is sent.
- Testing data to monitor a connection status of the second terminal wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle.
- the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
- the embodiment of the present invention further provides another mobile terminal.
- FIG. 8 for the convenience of description, only parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present invention. section.
- the mobile terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, and the like, and the mobile terminal is used as a mobile phone as an example:
- FIG. 8 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
- the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, and processing.
- RF radio frequency
- Device 980 and components such as power supply 990.
- the structure of the handset shown in FIG. 8 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
- the RF circuit 910 can be used for receiving and transmitting information.
- RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, LNA), duplexer, etc.
- RF circuitry 910 can also communicate with the network and other devices via wireless communication.
- the above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division) Multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, short message service (SMS), and the like.
- GSM global system of mobile communication
- GPRS general packet radio service
- CDMA code division multiple access
- WCDMA wideband code division multiple access
- LTE long term evolution
- SMS short message service
- the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
- the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the mobile phone, and the like.
- memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
- the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
- the fingerprint identification module 931 can collect fingerprint data of the user.
- the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
- the fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.).
- the input unit 930 may also include other input devices 932.
- other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
- the display unit 940 can include a display screen 941.
- the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- LCD liquid crystal display
- OLED organic light-emitting diode
- FIG. 8 the fingerprint recognition module 931 and the display The screen 941 is implemented as two separate components to implement the input and input functions of the handset, but in some embodiments, the fingerprint recognition module 931 can be integrated with the display screen 941 to implement the input and output functions of the handset.
- the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
- vibration recognition related functions such as pedometer, tapping
- the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
- the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
- the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
- Wi-Fi is a short-range wireless transmission technology.
- the mobile phone can help users to send and receive e-mail, browse web pages and access streaming media through the Wi-Fi module 970, which provides users with wireless broadband Internet access.
- FIG. 8 shows the Wi-Fi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
- the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
- the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. Understand The above modem processor may also not be integrated into the processor 980.
- the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
- a power source 990 such as a battery
- the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
- the method flow of each step may be implemented based on the structure of the mobile phone.
- each unit function can be implemented based on the structure of the mobile phone.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the terminal monitoring methods described in the foregoing method embodiments.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A terminal monitoring method and a mobile terminal, the method comprising: a first terminal sending testing data to a second terminal that establishes a WiFi connection with the first terminal using a first preset duration as a first period in a lit-screen state, the testing data being used for monitoring a connection state of the second terminal, wherein the first terminal is a terminal working in a WiFi access point mode and the second terminal is a terminal working in a WiFi working station mode; the first terminal detecting whether a screen is in an off state; and the first terminal, when detecting that the screen is in an off state, sending the testing data to the second terminal using a second preset duration as a second period, the second period being larger than the first period.
Description
本发明要求2016年12月7日递交的发明名称为“一种终端监测方法及移动终端”的申请号201611118306.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application of the application No. 201611118306.2, entitled "A Terminal Monitoring Method and Mobile Terminal", filed on December 7, 2016, the contents of which are incorporated herein by reference. .
本发明涉及移动终端技术领域,具体涉及一种终端监测方法及移动终端。The present invention relates to the field of mobile terminal technologies, and in particular, to a terminal monitoring method and a mobile terminal.
无线保真(wireless fidelity,Wi-Fi)是IEEE定义的一个无线网络通信的工业标准(IEEE 802.11)。现有技术中具有Wi-Fi功能的移动通信终端(例如手机),其Wi-Fi功能即可以作为Wi-Fi STA(wireless fidelity station,Wi-Fi工作站)来实现,即该移动通信终端工作在Wi-Fi工作站模式下,作为终端连接路由器上网,也可以作为Wi-Fi AP(wireless fidelity access point,Wi-Fi接入点)来接入其他Wi-Fi STA,即作为接入点为周边设备提供网络接入服务。Wireless fidelity (Wi-Fi) is an industry standard for IEEE-defined wireless network communication (IEEE 802.11). In the prior art, a Wi-Fi-enabled mobile communication terminal (such as a mobile phone) can be implemented as a Wi-Fi STA (Wireless Fidelity Station), that is, the mobile communication terminal works in In the Wi-Fi workstation mode, as a terminal connection router, it can also be used as a Wi-Fi AP (wireless fidelity access point) to access other Wi-Fi STAs. Provide network access services.
发明内容Summary of the invention
第一方面,本发明实施例提供了一种终端监测方法,包括:In a first aspect, an embodiment of the present invention provides a terminal monitoring method, including:
第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;Sending, by the first terminal, a test data to a second terminal that establishes a Wi-Fi connection with the first terminal, where the first terminal is in a bright state, the test data is used to monitor the second terminal. a connection state, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
所述第一终端检测是否进入熄屏状态;The first terminal detects whether the screen is in an off-screen state;
所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。
When detecting the entering the screen-out state, the first terminal sends test data to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
第二方面,本发明实施例提供了一种移动终端,其特征在于,所述移动终端包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
监测单元,用于在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;a monitoring unit, configured to send test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the second terminal a connection state, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
检测单元,用于检测是否进入熄屏状态;a detecting unit, configured to detect whether the screen is in an off state;
所述监测单元,还用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。The monitoring unit is further configured to send test data to the second terminal by using a second preset duration as a second period when detecting the entering the screen-off state, where the second period is greater than the first period.
第三方面,本发明实施例提供了一种移动终端,包括:In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface are connected by the communication bus and complete communication with each other;
所述存储器存储有可执行程序代码,所述通信接口用于无线通信;The memory stores executable program code for wireless communication;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。The processor is configured to invoke the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
第四方面,本发明实施例提供了一种存储介质,所述存储介质存储有程序,所述程序用于执行本发明实施例第一方面任一方法所述的步骤。In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a program, and the program is used to perform the steps described in any one of the first aspects of the embodiments of the present invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例公开的一种终端监测方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a terminal monitoring method according to an embodiment of the present invention;
图2是本发明实施例公开的另一种终端监测方法的流程示意图;2 is a schematic flow chart of another terminal monitoring method according to an embodiment of the present invention;
图3是本发明实施例公开的另一种终端监测方法的流程示意图;3 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention;
图4是本发明实施例公开的另一种终端监测方法的流程示意图4 is a schematic flow chart of another terminal monitoring method according to an embodiment of the present invention;
图5是本发明实施例公开的另一种终端监测方法的流程示意图;
FIG. 5 is a schematic flowchart diagram of another terminal monitoring method according to an embodiment of the present invention; FIG.
图6是本发明实施例公开的一种移动终端的单元组成框图;6 is a block diagram of a unit structure of a mobile terminal according to an embodiment of the present invention;
图7是本发明实施例公开的一种移动终端的结构示意图;FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图8是本发明实施例公开的另一种移动终端的结构示意图。FIG. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
现有技术中,当移动通信终端工作在Wi-Fi接入点模式时,会周期性地监测连接到该接入点的工作在Wi-Fi工作站模式的移动通信终端的连接状态,监测周期太短既会增加工作在Wi-Fi接入点模式的移动通信终端的工作电流而引起工作在Wi-Fi接入点模式的移动通信终端的功耗增加,也会导致工作在Wi-Fi工作站模式的移动通信终端因被频繁地唤醒而造成的功耗增加。In the prior art, when the mobile communication terminal operates in the Wi-Fi access point mode, the connection state of the mobile communication terminal working in the Wi-Fi workstation mode connected to the access point is periodically monitored, and the monitoring period is too Shorter increases the operating current of the mobile communication terminal operating in the Wi-Fi access point mode and causes the power consumption of the mobile communication terminal operating in the Wi-Fi access point mode to increase, which also causes the work in the Wi-Fi workstation mode. The power consumption of the mobile communication terminal is increased due to being frequently woken up.
本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数
据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。In the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in the bright screen state, the first terminal is sent to the second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as the first period.
According to the monitoring, the connection status of the second terminal is used, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects whether When the screen is off, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than the first period. cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
为了更好理解本发明实施例公开的一种终端监测方法及移动终端,下面对本发明实施例进行详细介绍。In order to better understand a terminal monitoring method and a mobile terminal disclosed in the embodiments of the present invention, the embodiments of the present invention are described in detail below.
请参阅图1,图1是本发明实施例提供了一种终端监测方法,如图1所示,本发明实施例中的终端监测方法包括:Referring to FIG. 1 , FIG. 1 is a schematic diagram of a terminal monitoring method according to an embodiment of the present invention. As shown in FIG. 1 , a terminal monitoring method in an embodiment of the present invention includes:
S101、第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端。S101. The first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the first A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
其中,所述第一终端和所述第二终端包括但不限于智能手机(smart phone)、平板电脑、笔记本电脑、个人数字助理等便携式移动终端电子设备。所述第一终端和所述第二终端也可以包括台式计算机等非移动终端。The first terminal and the second terminal include, but are not limited to, portable mobile terminal electronic devices such as a smart phone, a tablet computer, a notebook computer, and a personal digital assistant. The first terminal and the second terminal may also include non-mobile terminals such as desktop computers.
其中,Wi-Fi工作站模式指作为客户端连接路由器上网,本领域技术人员可以理解打开Wi-Fi工作站模式是指打开所述终端的Wi-Fi STA(工作站)功能,或者简称为打开Wi-Fi;Wi-Fi接入点模式指作为Wi-Fi接入点(Wi-Fi热点)供其他终端接入,本领域技术人员可以理解打开Wi-Fi接入点模式是指打开所述终端的Wi-Fi AP(接入点)功能,或者简称为打开热点。The Wi-Fi workstation mode refers to the Internet as a client connection router. Those skilled in the art can understand that opening the Wi-Fi workstation mode refers to opening the Wi-Fi STA (Workstation) function of the terminal, or simply turning on Wi-Fi. The Wi-Fi access point mode refers to being a Wi-Fi access point (Wi-Fi hotspot) for other terminals to access, and those skilled in the art can understand that turning on the Wi-Fi access point mode refers to opening the Wi of the terminal. -Fi AP (access point) function, or simply open hotspot.
所述终端在Wi-Fi工作站模式下,具有Wi-Fi STA功能,可以通过其Wi-Fi芯片接入到其他Wi-Fi AP(例如:无线路由器、移动路由器或个人路由器),并向该Wi-Fi AP申请IP地址,以通过Wi-Fi网络访问企业网、因特网或运营商
的网络等。所述终端在Wi-Fi接入点模式下,具有Wi-Fi AP功能,其Wi-Fi芯片作为接入点为周边的至少一个Wi-Fi工作站设备提供无线宽带接入服务,以将上述至少一个Wi-Fi工作站设备接入到企业网、因特网或运营商的网络等。The terminal has a Wi-Fi STA function in the Wi-Fi workstation mode, and can access other Wi-Fi APs (for example, a wireless router, a mobile router, or a personal router) through its Wi-Fi chip, and to the Wi -Fi AP applies for an IP address to access corporate networks, the Internet, or carriers over a Wi-Fi network
Network etc. The terminal has a Wi-Fi AP function in a Wi-Fi access point mode, and the Wi-Fi chip serves as an access point to provide wireless broadband access services for at least one Wi-Fi workstation device in the vicinity to A Wi-Fi workstation device is connected to the corporate network, the Internet, or the carrier's network.
S102、所述第一终端检测是否进入熄屏状态。S102. The first terminal detects whether it enters a blackout state.
具体地,所述第一终端检测是否进入熄屏状态的具体实现方式可以是检测是否接收到用户触发的熄屏事件,例如针对熄屏按键的触控操作等。Specifically, the specific implementation manner of the first terminal detecting whether to enter the screen-off state may be detecting whether a user-triggered screen-out event is received, such as a touch operation for a screen-out button.
S103、所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。S103. The first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
可选的,所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,所述第一终端还可以执行以下操作:Optionally, after the first terminal sends the test data to the second terminal by using the second preset duration as the second period, the first terminal may further perform the following operations:
所述第一终端检测是否进入亮屏状态;The first terminal detects whether a bright screen state is entered;
所述第一终端在检测到进入亮屏状态时,向所述第二终端发送测试数据。The first terminal sends test data to the second terminal when detecting the entering a bright screen state.
可选的,所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,所述第一终端还可以执行以下操作:Optionally, after the first terminal sends the test data to the second terminal by using the second preset duration as the second period, the first terminal may further perform the following operations:
所述第一终端检测是否进入亮屏状态;The first terminal detects whether a bright screen state is entered;
所述第一终端在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。
When detecting the entering the bright screen state, the first terminal sends the test data to the second terminal by using the first preset duration as a first period.
可选的,所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据的具体实现方式可以是:Optionally, the specific implementation manner that the first terminal sends the test data to the second terminal by using the second preset duration as the second period may be:
所述第一终端在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;The first terminal detects whether the first terminal is in a charging state when detecting that the screen is in an off-screen state;
所述第一终端在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。When detecting that the first terminal is not in the charging state, the first terminal sends the test data to the second terminal by using the second preset duration as the second period.
可选的,所述第一终端检测是否进入熄屏状态之后,所述第一终端还可以执行以下操作:Optionally, after the first terminal detects whether the screen is in the blanking state, the first terminal may further perform the following operations:
在检测到没有进入熄屏状态时,所述第一终端检测在预设时间段内是否接收到组播数据和/或广播数据;When detecting that the screen is not in the blanking state, the first terminal detects whether multicast data and/or broadcast data is received within a preset time period;
若检测到在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。If it is detected that the multicast data and/or the broadcast data is not received within the preset time period, the first terminal sends the test data to the second terminal by using the third preset duration as a third period, where The third period is greater than the first period.
与上述图1所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种终端监测方法的流程示意图。如图2所示,本发明实施例中的终端监测方法包括:For the same as the embodiment shown in FIG. 1 , please refer to FIG. 2 , which is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention. As shown in FIG. 2, the terminal monitoring method in the embodiment of the present invention includes:
S201、第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;S201: The first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;
S202、所述第一终端检测是否进入熄屏状态。S202. The first terminal detects whether the screen is in an off state.
S203、所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。S203. The first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
S204、所述第一终端检测是否进入亮屏状态。S204. The first terminal detects whether a bright screen state is entered.
S205、所述第一终端在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。S205. The first terminal sends test data to the second terminal by using the first preset duration as a first period when detecting the entering a bright screen state.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏
状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, the first terminal is in a bright screen.
In the state, the test data is sent to the second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as the first period to monitor the connection status of the second terminal, where the first terminal works on Wi-Fi. In the access point mode terminal, the second terminal is a terminal working in the Wi-Fi workstation mode, and secondly, the first terminal detects whether the screen is in the off-screen state, and when detecting the entering the screen-out state, the monitoring period is adjusted to the second period. The test data is sent to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
与上述图1所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种终端监测方法的流程示意图。如图3所示,本发明实施例中的终端监测方法包括:Referring to FIG. 3, FIG. 3 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention. As shown in FIG. 3, the terminal monitoring method in the embodiment of the present invention includes:
S301、第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端。S301: The first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
S302、所述第一终端检测是否进入熄屏状态。S302. The first terminal detects whether the screen is in an off state.
S303、所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。S303. The first terminal sends test data to the second terminal by using a second preset duration as a second period, where the second terminal is greater than the first period.
S304、所述第一终端检测是否进入亮屏状态。S304. The first terminal detects whether a bright screen state is entered.
S305、所述第一终端在检测到进入亮屏状态时,向所述第二终端发送测试数据。S305. The first terminal sends test data to the second terminal when detecting the entering a bright screen state.
其中,若第二终端在第一终端进入亮屏状态之前意外断开,而此时第一终端还未到发送测试数据的周期,此时,会给用户造成第二终端连接实际已经断开,但是第一终端由于周期性监测还未到时而导致的显示第二终端依然连接的不好体验。因此,通过实施步骤S204至S205,在第一终端检测到进入亮屏状
态时,立即发送测试数据到第二终端而不是等待周期性的检查时间到期再去检测,通过第二终端是否响应第一终端发送的测试数据来快速判断第二终端的连接状态。If the second terminal is unexpectedly disconnected before the first terminal enters the bright screen state, and the first terminal has not yet sent the test data period, the second terminal connection is actually disconnected. However, the first terminal displays a bad experience that the second terminal is still connected due to the periodic monitoring that has not yet arrived. Therefore, by implementing steps S204 to S205, the first terminal detects that the screen is in a bright screen.
In the state, the test data is immediately sent to the second terminal instead of waiting for the periodic check time to expire before detecting, and the connection status sent by the first terminal is quickly determined by the second terminal.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
与上述图1所示的实施例一致的,请参阅图4,图4是本发明实施例提供的另一种终端监测方法的流程示意图。如图4所示,本发明实施例中的终端监测方法包括:For the same as the embodiment shown in FIG. 1 , please refer to FIG. 4 , which is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention. As shown in FIG. 4, the terminal monitoring method in the embodiment of the present invention includes:
S401、第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端。S401. The first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the first A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
S402、所述第一终端检测是否进入熄屏状态。S402. The first terminal detects whether the screen is in a blackout state.
S403、所述第一终端在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态。S403. The first terminal detects whether the first terminal is in a charging state when detecting that the screen is in an off-screen state.
S404、所述第一终端在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。S404. The first terminal sends test data to the second terminal by using a second preset duration as a second period when detecting that the first terminal is not in a charging state.
其中,当所述第一终端连接充电器,即处于充电状态时,无需考虑功耗问
题,因此,所述第一终端在检测到进入熄屏状态时,且检测到所述第一终端没有处于充电状态时,才调整监测周期,以第二预设时长为第二周期向所述第二终端发送测试数据。当所述第一终端在检测到进入熄屏状态时,且检测到所述第一终端处于充电状态时,可以缩短检测周期,或者按照原来的第一周期向所述第二终端发送测试数据。Wherein, when the first terminal is connected to the charger, that is, in a charging state, there is no need to consider power consumption.
Therefore, the first terminal adjusts the monitoring period when detecting that the first terminal is not in the charging state, and the second preset period is the second period to the second period. The second terminal sends the test data. When the first terminal detects that the first terminal is in the charging state, and detects that the first terminal is in the charging state, the detection period may be shortened, or the test data may be sent to the second terminal according to the original first period.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
与上述图1所示的实施例一致的,请参阅图5,图5是本发明实施例提供的另一种终端监测方法的流程示意图。如图5所示,本发明实施例中的终端监测方法包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart of another terminal monitoring method according to an embodiment of the present invention. As shown in FIG. 5, the terminal monitoring method in the embodiment of the present invention includes:
S501、第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端。S501: The first terminal sends test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the A connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode.
S502、所述第一终端检测是否进入熄屏状态。S502. The first terminal detects whether it enters a blackout state.
其中,在检测到进入熄屏状态时,执行步骤S503;在检测到没有进入熄屏状态时,执行步骤S504至S505。Wherein, when it is detected that the screen is off, step S503 is performed; when it is detected that the screen is not in progress, steps S504 to S505 are performed.
S503、所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周
期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。S503. The first terminal detects the entering the screen-out state, and adopts the second preset duration as the second week.
And transmitting test data to the second terminal, where the second period is greater than the first period.
S504、在检测到没有进入熄屏状态时,所述第一终端检测在预设时间段内是否接收到组播数据和/或广播数据。S504. When detecting that the screen is not in the blanking state, the first terminal detects whether multicast data and/or broadcast data is received within a preset time period.
S505、若检测到在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。S505. If it is detected that the multicast data and/or the broadcast data is not received in the preset time period, the first terminal sends the test data to the second terminal by using the third preset duration as a third period. Wherein the third period is greater than the first period.
具体地,当所述第一终端检测在预设时间段内没有接收到组播数据和/或广播数据时,此时再去监测第二终端的连接状态没有什么实际作用,监测第二终端的连接状态是为了保证第二终端可以顺利接收到第一终端中接收并缓存的组播数据和/或广播数据,因此,若检测到第一终端在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端调整监测周期,以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。Specifically, when the first terminal detects that the multicast data and/or the broadcast data is not received within the preset time period, the monitoring of the connection state of the second terminal at this time has no practical effect, and the second terminal is monitored. The connection state is to ensure that the second terminal can successfully receive the multicast data and/or the broadcast data received and buffered in the first terminal, and therefore, if it is detected that the first terminal does not receive the preset time period, For the multicast data and/or the broadcast data, the first terminal adjusts the monitoring period, and sends the test data to the second terminal by using the third preset duration as a third period, where the third period is greater than the first period.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。如图6所示,该移动终端可以包括监测单元601和检测单元602,其中:
The following is an embodiment of the apparatus of the present invention. The apparatus embodiment of the present invention is used to implement the method implemented by the method embodiment of the present invention. As shown in FIG. 6, the mobile terminal may include a monitoring unit 601 and a detecting unit 602, where:
所述监测单元601,用于在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;The monitoring unit 601 is configured to send, in a bright screen state, test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using the first preset duration as a first period, where the test data is used to monitor the a connection status of the second terminal, where the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal working in a Wi-Fi workstation mode;
所述检测单元602,用于检测是否进入熄屏状态;The detecting unit 602 is configured to detect whether the screen is in a blanking state;
所述监测单元601,还用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。The monitoring unit 601 is further configured to: when detecting the entering the screen-out state, send test data to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
可选的,所述检测单元602,在用于检测是否进入熄屏状态时,具体用于:检测检测是否接收到用户触发的熄屏事件。Optionally, the detecting unit 602 is specifically configured to: detect whether a user-triggered blackout event is received when detecting whether the device is in an off-screen state.
可选的,所述检测单元602,在所述监测单元601在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还用于检测是否进入亮屏状态;Optionally, the detecting unit 602 is further configured to detect after the test unit 601 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state. Whether to enter the bright screen state;
所述监测单元601,还用于在检测到进入亮屏状态时,向所述第二终端发送测试数据。The monitoring unit 601 is further configured to send test data to the second terminal when detecting a state of entering a bright screen.
可选的,所述检测单元602,在所述监测单元601在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还用于检测是否进入亮屏状态;Optionally, the detecting unit 602 is further configured to detect after the test unit 601 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state. Whether to enter the bright screen state;
所述监测单元601,还用于在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。The monitoring unit 601 is further configured to send test data to the second terminal by using the first preset duration as a first period when detecting a status of entering a bright screen.
可选的,所述监测单元601,在用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据时,具体用于在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。Optionally, the monitoring unit 601 is configured to: when detecting the entering the blackout state, send the test data to the second terminal by using the second preset duration as the second period, specifically for detecting the entry When the screen is off, the first terminal is detected to be in a charging state; when it is detected that the first terminal is not in the charging state, the test data is sent to the second terminal in a second period.
可选的,所述监测单元601,还用于在检测到所述第一终端处于充电状态时,以所述第一周期向所述第二终端发送测试数据。Optionally, the monitoring unit 601 is further configured to: when detecting that the first terminal is in a charging state, send test data to the second terminal in the first period.
可选的,所述监测单元601,还用于在检测到所述第一终端处于充电状态时,以所述第四预设时长为第四周期向所述第二终端发送测试数据,所述第四周期小于所述第一周期。
Optionally, the monitoring unit 601 is further configured to: when detecting that the first terminal is in a charging state, send test data to the second terminal by using the fourth preset duration as a fourth period, where The fourth period is less than the first period.
可选的,所述检测单元602,在用于检测是否进入熄屏状态之后,还用于在检测到没有进入熄屏状态时,检测在预设时间段内是否接收到组播数据和/或广播数据;Optionally, after detecting the entering the blackout state, the detecting unit 602 is further configured to: when detecting that the screen is not in the screen, detecting whether the multicast data is received within a preset time period and/or Broadcast data
所述监测单元601,还用于若检测到在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。The monitoring unit 601 is further configured to: if it is detected that the multicast data and/or the broadcast data is not received within the preset time period, the first terminal uses the third preset duration as the third period The second terminal sends test data, wherein the third period is greater than the first period.
需要注意的是,本发明装置实施例所描述的移动终端是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the mobile terminal described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit" may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware. A processor (shared, dedicated or chipset) and memory of the program, combinatorial logic, and/or other suitable components that perform the functions described above.
举例来说,上述所述监测单元601在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据的功能可以由图7所示的移动终端来实现,具体可以通过处理器101通过调用存储器102中的可执行程序代码,在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据。For example, the function of sending the test data to the second terminal establishing the Wi-Fi connection with the first terminal by using the first preset duration as the first period in the bright screen state may be as shown in FIG. 7 . The mobile terminal is implemented by using the executable program code in the memory 102 by the processor 101 to establish a Wi-Fi connection with the first terminal in a first period of time in a bright screen state. The second terminal sends test data.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。
It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
本发明实施例还提供了另一种移动终端,如图7所示,包括:处理器101,存储器102,通信接口103和通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的终端监测方法。The embodiment of the present invention further provides another mobile terminal, as shown in FIG. 7, including: a processor 101, a memory 102, a communication interface 103, and a communication bus 104; wherein the processor 101, the memory 102, and the communication interface 103 communicate The bus 104 connects and completes communication with each other; the processor 101 controls wireless communication with an external cellular network through the communication interface 103; the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and a low noise amplifier (low noise) Amplifier, LNA), duplexer, etc. The memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention The terminal monitoring method specifically disclosed in the medium.
所述处理器101,用于在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;检测是否进入熄屏状态;在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。The processor 101 is configured to send, in a bright screen state, test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period, where the test data is used to monitor the a connection status of the second terminal, where the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode; detecting whether the screen is in an off-screen state; When detecting the entering the screen-out state, transmitting the test data to the second terminal by using the second preset duration as the second period, where the second period is greater than the first period.
可选的,所述处理器101在用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还可以用于检测是否进入亮屏状态;在检测到进入亮屏状态时,向所述第二终端发送测试数据。Optionally, after the processor 101 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state, the processor 101 may further be configured to detect whether the light is entered. a screen state; when detecting a state of entering a bright screen, transmitting test data to the second terminal.
可选的,所述处理器101在用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还可以用于检测是否进入亮屏状态;在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。Optionally, after the processor 101 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state, the processor 101 may further be configured to detect whether the light is entered. a screen state; when detecting the entering a bright screen state, transmitting test data to the second terminal by using the first preset duration as a first period.
可选的,所述处理器101在用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据时,具体用于在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。Optionally, when the processor 101 sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-off state, the processor 101 is specifically configured to detect the entry and exit. In the screen state, detecting whether the first terminal is in a charging state; and detecting that the first terminal is not in a charging state, transmitting test data to the second terminal in a second period of the second preset duration.
可选的,所述处理器101在用于检测是否进入熄屏状态之后,还可以用于在检测到没有进入熄屏状态时,检测在预设时间段内是否接收到组播数据和/或广播数据;若检测到在所述预设时间段内没有接收到所述组播数据和/或广
播数据,则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。Optionally, after detecting, by the processor 101, whether the device is in the blackout state, the processor 101 is further configured to detect whether the multicast data is received within a preset time period and/or Broadcast data; if it is detected that the multicast data and/or is not received within the preset time period
And playing the data, sending the test data to the second terminal by using the third preset duration as a third period, wherein the third period is greater than the first period.
可以看出,本发明实施例提供的终端监测方法中,首先,第一终端在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,以监测第二终端的连接状态,其中,第一终端为工作于Wi-Fi接入点模式的终端,第二终端为工作于Wi-Fi工作站模式的终端,其次,第一终端检测是否进入熄屏状态,在检测到进入熄屏状态时,将监测周期调整为第二周期,即以第二预设时长为第二周期向该第二终端发送测试数据,该第二周期大于第一周期。可见,由于工作在Wi-Fi接入点模式的移动终端在熄屏状态时,用户无需看到连接到该接入点的工作在Wi-Fi工作站模式的移动终端的连接状态,因此,移动终端根据熄屏状态和亮屏动态调整监测周期,不但可以降低工作在Wi-Fi接入点模式的移动终端的功耗,同时也会降低工作在Wi-Fi工作站模式的移动终端的功耗。It can be seen that, in the terminal monitoring method provided by the embodiment of the present invention, first, when the first terminal is in a bright screen state, the first preset duration is the first period, and the second terminal that establishes a Wi-Fi connection with the first terminal is sent. Testing data to monitor a connection status of the second terminal, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, the second terminal is a terminal operating in a Wi-Fi workstation mode, and second, the first terminal detects Whether to enter the screen-out state, when the detection of the screen-out state is detected, the monitoring period is adjusted to the second period, that is, the second preset period is used as the second period to send test data to the second terminal, where the second period is greater than One cycle. It can be seen that since the mobile terminal working in the Wi-Fi access point mode is in the off state, the user does not need to see the connection state of the mobile terminal working in the Wi-Fi workstation mode connected to the access point, and therefore, the mobile terminal Adjusting the monitoring period dynamically according to the off-screen state and the bright screen can not only reduce the power consumption of the mobile terminal operating in the Wi-Fi access point mode, but also reduce the power consumption of the mobile terminal operating in the Wi-Fi workstation mode.
本发明实施例还提供了另一种移动终端,如图8所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、个人数字助理(personal digital assistant,PDA)、销售终端(point of sales,POS)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention further provides another mobile terminal. As shown in FIG. 8 , for the convenience of description, only parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present invention. section. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, and the like, and the mobile terminal is used as a mobile phone as an example:
图8示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图8,手机包括:射频(radio frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,Wi-Fi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图8中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 8, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, and processing. Device 980, and components such as power supply 990. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 8 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图8对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 8:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,
LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short message service,SMS)等。The RF circuit 910 can be used for receiving and transmitting information. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier,
LNA), duplexer, etc. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division) Multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, short message service (SMS), and the like.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the mobile phone, and the like. Moreover, memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及生成与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 can include a fingerprint identification module 931 and other input devices 932. The fingerprint identification module 931 can collect fingerprint data of the user. Optionally, the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. The fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.). In addition to the fingerprint recognition module 931, the input unit 930 may also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示屏941。虽然在图8中,指纹识别模组931与显示
屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和输出功能。The display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 940 can include a display screen 941. Alternatively, the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Although in FIG. 8, the fingerprint recognition module 931 and the display
The screen 941 is implemented as two separate components to implement the input and input functions of the handset, but in some embodiments, the fingerprint recognition module 931 can be integrated with the display screen 941 to implement the input and output functions of the handset.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961. On the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了Wi-Fi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users to send and receive e-mail, browse web pages and access streaming media through the Wi-Fi module 970, which provides users with wireless broadband Internet access. Although FIG. 8 shows the Wi-Fi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解
的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. Understand
The above modem processor may also not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 990 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述图1、图2、图3、图4和图5所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1, FIG. 2, FIG. 3, FIG. 4 and FIG. 5, the method flow of each step may be implemented based on the structure of the mobile phone.
前述图6所示的实施例中,各单元功能可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 6, each unit function can be implemented based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种终端监测方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the terminal monitoring methods described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者
也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or
It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(read-only memory,ROM)、随机存取器(random access memory,RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (ROM), random access memory (RAM), disk or optical disk.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; It should be understood by those skilled in the art that the present invention is not limited by the scope of the present invention.
Claims (20)
- 一种终端监测方法,其特征在于,所述方法包括:A terminal monitoring method, characterized in that the method comprises:第一终端在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;Sending, by the first terminal, a test data to a second terminal that establishes a Wi-Fi connection with the first terminal, where the first terminal is in a bright state, the test data is used to monitor the second terminal. a connection state, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;所述第一终端检测是否进入熄屏状态;The first terminal detects whether the screen is in an off-screen state;所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。When detecting the entering the screen-out state, the first terminal sends test data to the second terminal by using the second preset duration as a second period, where the second period is greater than the first period.
- 如权利要求1所述的方法,其特征在于,所述第一终端检测是否进入熄屏状态,包括:The method of claim 1, wherein the detecting, by the first terminal, whether to enter a screen-out state comprises:所述第一终端检测检测是否接收到用户触发的熄屏事件。The first terminal detects whether a user-triggered blackout event is received.
- 如权利要求1所述的方法,其特征在于,所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,所述方法还包括:The method according to claim 1, wherein the first terminal sends the test data to the second terminal after the second preset period is the second period after detecting the entering the screen-out state, The method also includes:所述第一终端检测是否进入亮屏状态;The first terminal detects whether a bright screen state is entered;所述第一终端在检测到进入亮屏状态时,向所述第二终端发送测试数据。The first terminal sends test data to the second terminal when detecting the entering a bright screen state.
- 如权利要求1所述的方法,其特征在于,所述第一终端在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,所述方法还包括:The method according to claim 1, wherein the first terminal sends the test data to the second terminal after the second preset period is the second period after detecting the entering the screen-out state, The method also includes:所述第一终端检测是否进入亮屏状态;The first terminal detects whether a bright screen state is entered;所述第一终端在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。When detecting the entering the bright screen state, the first terminal sends the test data to the second terminal by using the first preset duration as a first period.
- 如权利要求1所述的方法,其特征在于,所述第一终端在检测到进入 熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,包括:The method of claim 1 wherein said first terminal detects an entry When the screen is off, the test data is sent to the second terminal by using the second preset duration as a second period, including:所述第一终端在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;The first terminal detects whether the first terminal is in a charging state when detecting that the screen is in an off-screen state;所述第一终端在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。When detecting that the first terminal is not in the charging state, the first terminal sends the test data to the second terminal by using the second preset duration as the second period.
- 如权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:所述第一终端在检测到所述第一终端处于充电状态时,以所述第一周期向所述第二终端发送测试数据。The first terminal sends test data to the second terminal in the first period when detecting that the first terminal is in a charging state.
- 如权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:所述第一终端在检测到所述第一终端处于充电状态时,以所述第四预设时长为第四周期向所述第二终端发送测试数据,所述第四周期小于所述第一周期。When the first terminal detects that the first terminal is in a charging state, the test data is sent to the second terminal by using the fourth preset duration as a fourth period, where the fourth period is smaller than the first cycle.
- 如权利要求1所述的方法,其特征在于,所述第一终端检测是否进入熄屏状态之后,所述方法还包括:The method of claim 1, wherein the method further comprises: after the first terminal detects whether the screen is in an off-screen state, the method further comprises:在检测到没有进入熄屏状态时,所述第一终端检测在预设时间段内是否接收到组播数据和/或广播数据;When detecting that the screen is not in the blanking state, the first terminal detects whether multicast data and/or broadcast data is received within a preset time period;若检测到在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。If it is detected that the multicast data and/or the broadcast data is not received within the preset time period, the first terminal sends the test data to the second terminal by using the third preset duration as a third period, where The third period is greater than the first period.
- 一种移动终端,其特征在于,所述移动终端包括:A mobile terminal, characterized in that the mobile terminal comprises:监测单元,用于在亮屏状态时以第一预设时长为第一周期向与第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端; a monitoring unit, configured to send test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor the second terminal a connection state, wherein the first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;检测单元,用于检测是否进入熄屏状态;a detecting unit, configured to detect whether the screen is in an off state;所述监测单元,还用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。The monitoring unit is further configured to send test data to the second terminal by using a second preset duration as a second period when detecting the entering the screen-off state, where the second period is greater than the first period.
- 如权利要求9所述的移动终端,其特征在于,所述检测单元在用于检测是否进入熄屏状态时,具体用于:The mobile terminal according to claim 9, wherein the detecting unit is configured to: when detecting whether to enter a screen-off state, specifically:检测检测是否接收到用户触发的熄屏事件。The detection detects whether a user-triggered blackout event is received.
- 如权利要求9所述的移动终端,其特征在于,The mobile terminal of claim 9, wherein所述检测单元,在所述监测单元在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还用于检测是否进入亮屏状态;The detecting unit is further configured to detect whether to enter a bright screen state after the test unit sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-out state;所述监测单元,还用于在检测到进入亮屏状态时,向所述第二终端发送测试数据。The monitoring unit is further configured to send test data to the second terminal when detecting a state of entering a bright screen.
- 如权利要求6所述的移动终端,其特征在于,A mobile terminal according to claim 6, wherein所述检测单元,在所述监测单元在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据之后,还用于检测是否进入亮屏状态;The detecting unit is further configured to detect whether to enter a bright screen state after the test unit sends the test data to the second terminal by using the second preset duration as the second period when detecting the entering the screen-out state;所述监测单元,还用于在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。The monitoring unit is further configured to send test data to the second terminal by using the first preset duration as a first period when detecting a status of entering a bright screen.
- 如权利要求9所述的移动终端,其特征在于,The mobile terminal of claim 9, wherein所述监测单元,在用于在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据时,具体用于在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。The monitoring unit is configured to: when detecting the entering the blackout state, sending the test data to the second terminal by using the second preset duration as the second period, specifically, when detecting the entering the screen-out state, Detecting whether the first terminal is in a charging state; and when detecting that the first terminal is not in a charging state, transmitting test data to the second terminal in a second period of the second preset duration.
- 如权利要求13所述的移动终端,其特征在于,所述监测单元,还用 于在检测到所述第一终端处于充电状态时,以所述第一周期向所述第二终端发送测试数据。The mobile terminal according to claim 13, wherein said monitoring unit is further used When detecting that the first terminal is in a charging state, transmitting test data to the second terminal in the first period.
- 如权利要求13所述的移动终端,其特征在于,所述监测单元,还用于在检测到所述第一终端处于充电状态时,以所述第四预设时长为第四周期向所述第二终端发送测试数据,所述第四周期小于所述第一周期。The mobile terminal according to claim 13, wherein the monitoring unit is further configured to: when detecting that the first terminal is in a charging state, to the fourth preset duration as a fourth period The second terminal sends test data, and the fourth period is smaller than the first period.
- 如权利要求9所述的移动终端,其特征在于,The mobile terminal of claim 9, wherein所述检测单元,在用于检测是否进入熄屏状态之后,还用于在检测到没有进入熄屏状态时,检测在预设时间段内是否接收到组播数据和/或广播数据;The detecting unit is further configured to: after detecting that the screen is not in the screen, detecting whether the multicast data and/or the broadcast data are received within the preset time period;所述监测单元,还用于若检测到在所述预设时间段内没有接收到所述组播数据和/或广播数据,第一终端则以第三预设时长为第三周期向所述第二终端发送测试数据,其中,所述第三周期大于所述第一周期。The monitoring unit is further configured to: if it is detected that the multicast data and/or broadcast data is not received within the preset time period, the first terminal sends the third preset duration to the third period to the The second terminal sends test data, wherein the third period is greater than the first period.
- 一种移动终端,其特征在于,包括:A mobile terminal, comprising:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface are connected by the communication bus and complete communication with each other;所述存储器存储有可执行程序代码,所述通信接口用于无线通信;The memory stores executable program code for wireless communication;所述处理器用于调用所述存储器中的所述可执行程序代码,执行以下操作:The processor is configured to invoke the executable program code in the memory to perform the following operations:在亮屏状态时以第一预设时长为第一周期向与所述第一终端建立Wi-Fi连接的第二终端发送测试数据,所述测试数据用于监测所述第二终端的连接状态,其中,所述第一终端为工作于Wi-Fi接入点模式的终端,所述第二终端为工作于Wi-Fi工作站模式的终端;Transmitting test data to a second terminal that establishes a Wi-Fi connection with the first terminal by using a first preset duration as a first period in a bright screen state, where the test data is used to monitor a connection status of the second terminal The first terminal is a terminal operating in a Wi-Fi access point mode, and the second terminal is a terminal operating in a Wi-Fi workstation mode;检测是否进入熄屏状态;Detect whether it enters the screen-out state;在检测到进入熄屏状态时,以第二预设时长为第二周期向所述第二终端发送测试数据,所述第二周期大于所述第一周期。 When detecting the entering the screen-out state, transmitting the test data to the second terminal by using the second preset duration as the second period, where the second period is greater than the first period.
- 如权利要求17所述的移动终端,其特征在于,所述处理器还用于调用所述存储器中的所述可执行程序代码,执行以下操作:The mobile terminal of claim 17, wherein the processor is further configured to invoke the executable program code in the memory to perform the following operations:检测是否进入亮屏状态;Check if it enters the bright screen state;在检测到进入亮屏状态时,向所述第二终端发送测试数据。When the entry into the bright screen state is detected, the test data is transmitted to the second terminal.
- 如权利要求17所述的移动终端,其特征在于,所述处理器还用于调用所述存储器中的所述可执行程序代码,执行以下操作:The mobile terminal of claim 17, wherein the processor is further configured to invoke the executable program code in the memory to perform the following operations:检测是否进入亮屏状态;Check if it enters the bright screen state;在检测到进入亮屏状态时,以所述第一预设时长为第一周期向所述第二终端发送测试数据。When the entering the bright screen state is detected, the test data is sent to the second terminal by using the first preset duration as a first period.
- 如权利要求17所述的移动终端,其特征在于,所述处理器还用于调用所述存储器中的所述可执行程序代码,执行以下操作:The mobile terminal of claim 17, wherein the processor is further configured to invoke the executable program code in the memory to perform the following operations:在检测到进入熄屏状态时,检测所述第一终端是否处于充电状态;Detecting whether the first terminal is in a charging state when detecting the entering the screen-out state;在检测到所述第一终端没有处于充电状态时,以第二预设时长为第二周期向所述第二终端发送测试数据。 When it is detected that the first terminal is not in the charging state, the test data is sent to the second terminal by using the second preset duration as the second period.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611118306.2 | 2016-12-07 | ||
CN201611118306.2A CN106686704B (en) | 2016-12-07 | 2016-12-07 | Terminal monitoring method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018103379A1 true WO2018103379A1 (en) | 2018-06-14 |
Family
ID=58867890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/099193 WO2018103379A1 (en) | 2016-12-07 | 2017-08-26 | Terminal monitoring method and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106686704B (en) |
WO (1) | WO2018103379A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117154872A (en) * | 2023-08-01 | 2023-12-01 | 南京汤峰机电有限公司 | Lithium battery charging control method and system |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106686704B (en) * | 2016-12-07 | 2020-03-03 | Oppo广东移动通信有限公司 | Terminal monitoring method and mobile terminal |
CN114624569A (en) * | 2022-03-04 | 2022-06-14 | 惠州Tcl移动通信有限公司 | Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103235673A (en) * | 2013-04-11 | 2013-08-07 | 深圳市天微电子有限公司 | Touch screen detection method and touch screen |
CN103763762A (en) * | 2014-01-17 | 2014-04-30 | 宇龙计算机通信科技(深圳)有限公司 | Terminal management system, terminal and terminal management method |
CN103974391A (en) * | 2013-02-04 | 2014-08-06 | 华为终端有限公司 | Device wake-up method and device |
CN104092835A (en) * | 2014-07-31 | 2014-10-08 | 广东欧珀移动通信有限公司 | Power consumption anomaly detection method and device for mobile terminal |
US20150288809A1 (en) * | 2014-04-04 | 2015-10-08 | Apple Inc. | OAM System for LTE-U and Wi-Fi Operation and Coexistence Deployment |
CN106686704A (en) * | 2016-12-07 | 2017-05-17 | 广东欧珀移动通信有限公司 | A terminal monitoring method and mobile terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8005065B2 (en) * | 2007-09-11 | 2011-08-23 | Qualcomm Incorporated | Keep-alive for wireless networks |
CN101848463A (en) * | 2010-03-16 | 2010-09-29 | 苏州汉明科技有限公司 | Method for protecting access of legal user based on wireless access point |
CN102315864B (en) * | 2011-09-07 | 2015-11-25 | 百度在线网络技术(北京)有限公司 | For the method and apparatus of mobile device Point-to-Point Data Transmission |
CN103440032A (en) * | 2013-09-11 | 2013-12-11 | 广州市久邦数码科技有限公司 | Power-saving system and power-saving method by adjusting CPU (central processing unit) frequency of mobile terminal |
CN104144159B (en) * | 2014-06-26 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Intelligent heartbeat keepalive method and intelligent heartbeat keep-alive system |
CN105916196A (en) * | 2016-06-16 | 2016-08-31 | 硕诺科技(深圳)有限公司 | Power-saving stepped wifi control method |
-
2016
- 2016-12-07 CN CN201611118306.2A patent/CN106686704B/en not_active Expired - Fee Related
-
2017
- 2017-08-26 WO PCT/CN2017/099193 patent/WO2018103379A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103974391A (en) * | 2013-02-04 | 2014-08-06 | 华为终端有限公司 | Device wake-up method and device |
CN103235673A (en) * | 2013-04-11 | 2013-08-07 | 深圳市天微电子有限公司 | Touch screen detection method and touch screen |
CN103763762A (en) * | 2014-01-17 | 2014-04-30 | 宇龙计算机通信科技(深圳)有限公司 | Terminal management system, terminal and terminal management method |
US20150288809A1 (en) * | 2014-04-04 | 2015-10-08 | Apple Inc. | OAM System for LTE-U and Wi-Fi Operation and Coexistence Deployment |
CN104092835A (en) * | 2014-07-31 | 2014-10-08 | 广东欧珀移动通信有限公司 | Power consumption anomaly detection method and device for mobile terminal |
CN106686704A (en) * | 2016-12-07 | 2017-05-17 | 广东欧珀移动通信有限公司 | A terminal monitoring method and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117154872A (en) * | 2023-08-01 | 2023-12-01 | 南京汤峰机电有限公司 | Lithium battery charging control method and system |
CN117154872B (en) * | 2023-08-01 | 2023-12-29 | 南京汤峰机电有限公司 | Lithium battery charging control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106686704A (en) | 2017-05-17 |
CN106686704B (en) | 2020-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018103380A1 (en) | Method for accessing wireless network, and mobile terminal | |
WO2018049881A1 (en) | Data migration method and device | |
CN108900231B (en) | Dynamic antenna adjustment method and related products | |
CN106484283A (en) | A display control method and mobile terminal | |
US12063606B2 (en) | SSB transmission indication method and apparatus, terminal, device, and medium | |
WO2018103439A1 (en) | Information processing method and terminal device | |
CN106845422B (en) | A fingerprint identification module, fingerprint identification method and mobile terminal | |
WO2018103443A1 (en) | Network positioning method and terminal device | |
WO2018049884A1 (en) | Data migration method and device | |
CN106792819B (en) | Method and device for reducing power consumption of mobile terminal | |
WO2018049885A1 (en) | Data migration method and device | |
WO2019076250A1 (en) | Push message management method and related products | |
WO2018103381A1 (en) | Method for accelerating switch-off of wi-fi station mode of terminal, and mobile terminal | |
KR20190101983A (en) | Data transmission method and equipment | |
CN106604277B (en) | Wireless network access method and mobile terminal | |
CN106793010B (en) | Network access method and equipment | |
WO2018103379A1 (en) | Terminal monitoring method and mobile terminal | |
WO2020199919A1 (en) | Reporting method, configuration method, terminal, and network device | |
US11375497B2 (en) | Power configuration method and terminal | |
WO2017206903A1 (en) | Application control method and related device | |
WO2018103378A1 (en) | Method for sending data, and mobile terminal | |
WO2019011297A1 (en) | Fm channel finding and searching method, mobile terminal and storage apparatus | |
WO2018126407A1 (en) | Data transmission method and device | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
CN107659976B (en) | Network access method and related products |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17879219 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17879219 Country of ref document: EP Kind code of ref document: A1 |