[go: up one dir, main page]

CN106301846B - Network awakening system analysis method and device - Google Patents

Network awakening system analysis method and device Download PDF

Info

Publication number
CN106301846B
CN106301846B CN201510287912.6A CN201510287912A CN106301846B CN 106301846 B CN106301846 B CN 106301846B CN 201510287912 A CN201510287912 A CN 201510287912A CN 106301846 B CN106301846 B CN 106301846B
Authority
CN
China
Prior art keywords
terminal
network data
terminal system
awakened
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510287912.6A
Other languages
Chinese (zh)
Other versions
CN106301846A (en
Inventor
阳文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201510287912.6A priority Critical patent/CN106301846B/en
Publication of CN106301846A publication Critical patent/CN106301846A/en
Application granted granted Critical
Publication of CN106301846B publication Critical patent/CN106301846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method and a device for analyzing a network awakening system, wherein the method comprises the following steps: monitoring the dormant state of a terminal system; when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point; acquiring network data received within a preset time after a current awakening time point; when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened; and acquiring and marking the application of the abnormal awakening system according to the network data. The invention automatically analyzes and marks the application of the system which is abnormally awakened due to network connection, so that the terminal can not consume abnormal power and flow due to the application.

Description

Network awakening system analysis method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for analyzing a wake-on-lan system.
Background
After the mobile phone is turned off when the system enters the dormant state, the user can wake up the system through corresponding key operation to turn on the screen. However, in some cases, there is an application that abnormally wakes up the system due to network connection, which causes the handset to consume power and traffic abnormally.
The solution adopted at present is: the reason for waking up the system on the internet is determined by manually analyzing the data, but the mode of manually analyzing the data has low efficiency and cannot remind a user to close the application of the abnormal wake-up system in time, so that the mobile phone consumes abnormal power and flow.
Disclosure of Invention
The embodiment of the invention provides a method and a device for analyzing a network awakening system, aiming at quickly determining the network awakening reason of a terminal system and reducing the power consumption of a terminal.
To achieve the above object, an analysis method for a wake-on-lan system according to an embodiment of the present invention includes:
monitoring the dormant state of a terminal system;
when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point;
acquiring network data received within a preset time after a current awakening time point;
when the source address of the network data is not the IP of the local terminal, judging that a terminal system is abnormally awakened;
and acquiring and marking the application of the abnormal awakening system according to the network data.
The embodiment of the present invention further provides an analysis device for a wake-on-lan system, including:
the monitoring module is used for monitoring the dormant state of the terminal system;
the recording module is used for recording the current awakening time point when the terminal system is awakened from the dormant state;
the acquisition module is used for acquiring network data received within a preset time after the current awakening time point;
the judging module is used for judging that the terminal system is abnormally awakened when the source address of the network data is not the IP of the terminal local machine;
and the marking module is used for acquiring the application of the abnormal awakening system according to the network data and marking the application.
The embodiment of the invention provides a method and a device for analyzing a network awakening system, which are characterized in that the dormant state of a terminal system is monitored; when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point; acquiring network data received within a preset time after a current awakening time point; when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened; the application of the abnormal awakening system is obtained and marked according to the network data, so that a user can be helped to automatically analyze and mark the application of the abnormal awakening system due to network connection through the terminal background, and the terminal cannot consume abnormal power and flow due to the application.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a flowchart illustrating a first embodiment of a wake-on-LAN system analysis method according to the present invention;
FIG. 4 is a flowchart illustrating a wake-on-LAN system analysis method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a wake-on-LAN system analysis method according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a wake-on-LAN system analysis method according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a fifth embodiment of a wake-on-LAN system analysis method according to the present invention;
FIG. 8 is a functional block diagram of an analysis device of a wake-on-LAN system according to a first embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a labeling module in an embodiment of the present invention;
FIG. 10 is a functional block diagram of an analysis device of a wake-on-LAN system according to a second embodiment of the present invention;
fig. 11 is a functional block diagram of an analysis device of a wake-on-lan system according to a third embodiment of the present invention.
In order to make the technical solution of the present invention clearer and clearer, the following detailed description is made with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main idea of the embodiment scheme of the invention is as follows: monitoring the dormant state of a terminal system; when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point; acquiring network data received within a preset time after a current awakening time point; when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened; the application of the abnormal awakening system is obtained and marked according to the network data, so that a user can be helped to automatically analyze and mark the application of the abnormal awakening system due to network connection through the terminal background, and the terminal cannot consume abnormal power and flow due to the application.
In the embodiment of the invention, the reason for waking up the system on the network is determined by manually analyzing the data in the prior art, but the mode of manually analyzing the data has low efficiency and cannot remind a user to close the application of the abnormal wake-up system in time, so that the mobile phone consumes abnormal power and flow.
Therefore, the embodiment of the present invention provides a solution, which can automatically analyze and mark the application that abnormally wakes up the system due to network connection, so that the terminal does not consume power and traffic abnormally due to the application.
The terminal related to the embodiment may specifically be a mobile terminal such as a mobile phone with screen-off and screen-on functions.
A mobile terminal implementing various embodiments of the present invention will be described below with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal described above may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a wearable device (such as a smart band, a smart watch, etc.), a navigation device, and the like.
In the following, the terminal is exemplified as a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
As shown in fig. 1, fig. 1 is a schematic hardware structure of a user terminal (mobile terminal) implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc.
Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive a broadcast signal by using a signal such as multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting system of a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a user interface (U I) or a graphical user interface (GU I) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (communicating communication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality.
Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, a CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC)280, the MSC 280 being configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC 280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN 290 interfaces with the MSC 280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the hardware structure of the mobile terminal and the communication system, the embodiment of the network awakening system analysis method is provided.
As shown in fig. 3, a first embodiment of the present invention provides a wake-on-lan system analysis method, including:
step S101, monitoring the sleep state of a terminal system;
after the terminal is started, if the user operation is finished, the user can enable the terminal to be off and enter a dormant state through the corresponding key; in addition, when the terminal monitors that the screen has no operation within a preset time (for example, 5 minutes, which can be set), the terminal automatically turns off the screen and enters a sleep state.
Whether the sleep state of the terminal is awakened or not is judged by monitoring the sleep state of the terminal system in real time or periodically.
The terminal wake-up operation may be triggered by a user through a corresponding key, may be normally woken up by local data of the terminal, or may be abnormally woken up by network data of other applications. The scheme of the embodiment finds out the reason for waking up the terminal system by the network data abnormality of other applications, so that the terminal does not consume power and flow abnormally due to the application.
Step S102, when it is monitored that the terminal system is awakened from the sleep state, recording the current awakening time point;
when the terminal system is awakened from the dormant state, recording the current awakening time point so as to judge whether data exists in the current network data transmission layer or not according to the awakening time point, and if so, judging the source of the transmitted network data so as to judge whether the awakening operation of the current terminal system is abnormal awakening operation or not.
Step S103, network data received within a preset time after the current awakening time point is obtained;
in the scheme of the embodiment, the current network data transmission layer is defaulted to receive the network data within the preset time after the awakening time point, and whether the source address of the received network data is the local IP of the terminal is judged.
Step S104, when the source address of the network data is not the IP of the terminal local machine, judging that the terminal system is abnormally awakened;
and step S105, acquiring and marking the application of the abnormal awakening system according to the network data.
And when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened, acquiring the application of the abnormally awakened system according to the received network data, and marking the application so as to enable a user to select whether to close or unload the application. If the source address of the network data is the local IP of the terminal, the terminal system can be judged not to be abnormally awakened and can be processed according to a normal flow.
Specifically, as an implementation manner, when acquiring and labeling an application of the abnormal wake-up system according to the received network data, the following scheme may be adopted:
firstly, a source address IP of received network data is obtained, and then a corresponding target port number is obtained according to the IP of the network data.
And then, positioning the application of the abnormal awakening system according to the acquired target port number, and labeling the positioned application.
Examples are as follows:
if the current IP of the terminal is 10.2525.150.194, and the source address of the network data received within the preset time after the current wake-up time is 119.188.45.154 and the corresponding network port number is 53178, it can be considered that the system is woken up by the network data of the application whose network port number is 53178 and 119.188.45.154 is related to.
Compared with the prior art, the reason for waking up the system on the network is determined by manually analyzing the data, and the embodiment specifically monitors the dormant state of the terminal system through the scheme; when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point; acquiring network data received within a preset time after a current awakening time point; when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened; the application of the abnormal awakening system is obtained and marked according to the network data, so that the user can be helped to automatically analyze and mark the application of the abnormal awakening system due to network connection through the terminal background, the user can conveniently and timely close the application, the terminal cannot consume power and flow abnormally due to the application, and the user is helped to better save power and flow.
As shown in fig. 4, a second embodiment of the present invention provides a wake-on-lan system analysis method, based on the embodiment shown in fig. 3, in the step S103: the method also comprises the following steps after the network data received in the preset time after the current awakening time point is obtained:
step S106, judging whether the source address of the network data is the IP of the local terminal, if so, entering step S107; otherwise, executing step S104;
and S107, judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system.
Compared with the embodiment shown in fig. 3, the present embodiment further includes an operation of determining that the terminal system is awakened normally.
Specifically, firstly, judging whether a source address of network data is the IP of the terminal local machine, if so, judging that a terminal system is awakened normally, and removing the dormant state of the terminal system; otherwise, judging that the terminal system is abnormally awakened.
Therefore, whether the terminal system is awakened normally or not is judged, normal dormancy or dormancy releasing operation of the terminal system can be guaranteed, and the phenomena of abnormal power consumption and flow consumption of the terminal caused by abnormal awakening of the terminal system by certain applications due to network connection can be avoided.
As shown in fig. 5, a third embodiment of the present invention provides a wake-on-lan system analysis method, based on the embodiment shown in fig. 4, in the step S104: after the terminal system is judged to be abnormally awakened, the method further comprises the following steps:
step S108, refusing to respond to the awakening operation of the terminal system, and keeping the dormant state of the terminal system.
This step may be performed before or after the above step S105.
Compared with the embodiment shown in fig. 4, the present embodiment further includes other related operations after the terminal system is abnormally awakened. Specifically, after the terminal system is judged to be abnormally awakened, the terminal system keeps a dormant state without responding to the awakening operation of the terminal system, so that the power consumption of the terminal can be saved.
As shown in fig. 6, a fourth embodiment of the present invention provides a method for analyzing a wake-on-lan system, based on the embodiment shown in fig. 5, after the step S105, the method further includes:
step S109, receiving an application operation instruction triggered by a user;
and step S110, closing the marked application program according to the application operation instruction.
Compared with the embodiment shown in fig. 5, the embodiment further includes closing the application program of the abnormal wake-up terminal system according to the user operation instruction, so as to save power consumption of the terminal and save traffic.
As shown in fig. 7, a fifth embodiment of the present invention provides a wake-on-lan system analysis method, based on the embodiment shown in fig. 6, in the step S103: the method also comprises the following steps before the network data received in the preset time after the current awakening time point is obtained:
step S1031, judging whether network data are received within a preset time after the current wake-up time point; if yes, go to step S103: acquiring network data received within a preset time after a current awakening time point; otherwise, step S107 is performed: and judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system.
Compared with the embodiment shown in fig. 6, the present embodiment further includes a processing scheme for a case where no network data is received.
Specifically, when it is monitored that the terminal system is awakened from the sleep state, recording a current awakening time point, and judging whether network data is received within a preset time after the current awakening time point; if the network data is received, the network data received within the preset time after the current awakening time point is obtained so as to judge whether the terminal system is abnormally awakened or not according to the source of the network data; and if the network data is not received, judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system.
Therefore, whether the terminal system receives the network data or not and the source of the received network data are judged, whether the terminal system is awakened normally or not is judged, normal dormancy or dormancy releasing operation of the terminal system can be guaranteed, the phenomena of abnormal power consumption and flow consumption of the terminal when the terminal system is awakened abnormally by certain applications due to network connection can be avoided, and flexibility of the terminal system is improved.
Correspondingly, the embodiment of the invention is provided for the analysis device of the network wake-up system.
As shown in fig. 8, a first embodiment of the present invention provides an apparatus for analyzing a wake-on-lan system, including: the system comprises a monitoring module 201, a recording module 202, an obtaining module 203, a judging module 204 and a labeling module 205, wherein:
a monitoring module 201, configured to monitor a sleep state of a terminal system;
a recording module 202, configured to record a current wake-up time point when it is monitored that the terminal system is woken up from a sleep state;
an obtaining module 203, configured to obtain network data received within a preset time after a current wake-up time point;
a judging module 204, configured to judge that the terminal system is abnormally awakened when the source address of the network data is not the terminal local IP;
and the marking module 205 is configured to obtain an application of the abnormal wake-up system according to the network data and mark the application.
Specifically, after the terminal is started, if the user finishes the operation, the user can turn off the screen of the terminal through the corresponding key to enter a dormant state; in addition, when the terminal monitors that the screen has no operation within a preset time (for example, 5 minutes, which can be set), the terminal automatically turns off the screen and enters a sleep state.
Whether the sleep state of the terminal is awakened or not is judged by monitoring the sleep state of the terminal system in real time or periodically.
The terminal wake-up operation may be triggered by a user through a corresponding key, may be normally woken up by local data of the terminal, or may be abnormally woken up by network data of other applications. The scheme of the embodiment finds out the reason for waking up the terminal system by the network data abnormality of other applications, so that the terminal does not consume power and flow abnormally due to the application.
When the terminal system is awakened from the dormant state, recording the current awakening time point so as to judge whether data exists in the current network data transmission layer or not according to the awakening time point, and if so, judging the source of the transmitted network data so as to judge whether the awakening operation of the current terminal system is abnormal awakening operation or not.
In the scheme of the embodiment, the current network data transmission layer is defaulted to receive the network data within the preset time after the awakening time point, and whether the source address of the received network data is the local IP of the terminal is judged.
And when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened, acquiring the application of the abnormally awakened system according to the received network data, and marking the application so as to enable a user to select whether to close or unload the application. If the source address of the network data is the local IP of the terminal, the terminal system can be judged not to be abnormally awakened and can be processed according to a normal flow.
Specifically, as an embodiment, as shown in fig. 9, the labeling module 205 includes: an obtaining unit 2051, a positioning unit 2052, and a labeling unit 2053, wherein:
an obtaining unit 2051, configured to obtain a corresponding target port number according to the IP of the network data;
a positioning unit 2052, configured to position, according to the target port number, an application of the abnormal wake-up system;
a labeling unit 2053 for labeling the located application.
Firstly, a source address IP of received network data is obtained, and then a corresponding target port number is obtained according to the IP of the network data.
And then, positioning the application of the abnormal awakening system according to the acquired target port number, and labeling the positioned application.
Examples are as follows:
if the current IP of the terminal is 10.2525.150.194, and the source address of the network data received within the preset time after the current wake-up time is 119.188.45.154 and the corresponding network port number is 53178, it can be considered that the system is woken up by the network data of the application whose network port number is 53178 and 119.188.45.154 is related to.
Compared with the prior art, the reason for waking up the system on the network is determined by manually analyzing the data, and the embodiment specifically monitors the dormant state of the terminal system through the scheme; when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point; acquiring network data received within a preset time after a current awakening time point; when the source address of the network data is not the IP of the local terminal, judging that the terminal system is abnormally awakened; the application of the abnormal awakening system is obtained and marked according to the network data, so that the user can be helped to automatically analyze and mark the application of the abnormal awakening system due to network connection through the terminal background, the user can conveniently and timely close the application, the terminal cannot consume power and flow abnormally due to the application, and the user is helped to better save power and flow.
As shown in fig. 10, a second embodiment of the present invention provides an apparatus for analyzing a wake-on-lan system, based on the embodiment shown in fig. 8, the apparatus further includes: an operation module 206;
the determining module 204 is further configured to determine whether a source address of the network data is the terminal local IP, and if so, determine that the terminal system is normally awakened;
the operation module 206 is configured to release the sleep state of the terminal system when the terminal system is awakened normally, and refuse to respond to the awakening operation of the terminal system when the terminal system is awakened abnormally, so as to maintain the sleep state of the terminal system.
Compared with the above embodiment, the present embodiment further includes an operation of determining that the terminal system is awakened normally.
Specifically, firstly, judging whether a source address of network data is the IP of the terminal local machine, if so, judging that a terminal system is awakened normally, and removing the dormant state of the terminal system; otherwise, judging that the terminal system is abnormally awakened.
Therefore, whether the terminal system is awakened normally or not is judged, normal dormancy or dormancy releasing operation of the terminal system can be guaranteed, and the phenomena of abnormal power consumption and flow consumption of the terminal caused by abnormal awakening of the terminal system by certain applications due to network connection can be avoided.
In addition, after the terminal system is judged to be abnormally awakened, the terminal system can be kept in a dormant state without responding to the awakening operation of the terminal system, so that the power consumption of the terminal can be further saved.
As shown in fig. 11, a third embodiment of the present invention provides an apparatus for analyzing a wake-on-lan system, based on the embodiment shown in fig. 10, the apparatus further includes:
a receiving module 207, configured to receive an application operation instruction triggered by a user;
the operation module 206 is further configured to close the marked application program according to the application operation instruction.
Compared with the embodiment, the embodiment further comprises the step of closing the application program of the abnormal awakening terminal system according to the user operation instruction so as to save the power consumption of the terminal and save the flow.
Further, the determining module 204 is further configured to determine whether network data is received within a preset time after a current wake-up time point when it is monitored that the terminal system is woken up from the sleep state; if yes, the obtaining module 203 obtains the network data received within a preset time after the current wake-up time point; otherwise, it is determined that the terminal system is woken up normally, and the operation module 206 releases the sleep state of the terminal system.
Specifically, when it is monitored that the terminal system is awakened from the sleep state, recording a current awakening time point, and judging whether network data is received within a preset time after the current awakening time point; if the network data is received, the network data received within the preset time after the current awakening time point is obtained so as to judge whether the terminal system is abnormally awakened or not according to the source of the network data; and if the network data is not received, judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system.
Therefore, whether the terminal system receives the network data or not and the source of the received network data are judged, whether the terminal system is awakened normally or not is judged, normal dormancy or dormancy releasing operation of the terminal system can be guaranteed, the phenomena of abnormal power consumption and flow consumption of the terminal when the terminal system is awakened abnormally by certain applications due to network connection can be avoided, and flexibility of the terminal system is improved.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (8)

1. A wake-on-LAN system analysis method, comprising:
monitoring the dormant state of a terminal system;
when the terminal system is monitored to be awakened from the dormant state, recording the current awakening time point;
acquiring network data received within a preset time after a current awakening time point;
when the source address of the network data is not the IP of the local terminal, judging that a terminal system is abnormally awakened;
acquiring a corresponding target port number according to the IP of the network data;
positioning the application of the abnormal wake-up system according to the target port number;
marking the positioned application;
receiving an application operation instruction triggered by a user;
and closing the marked application program according to the application operation instruction.
2. The method of claim 1, wherein the step of obtaining the network data received within a preset time after the current wake-up time further comprises:
judging whether the source address of the network data is the IP of the local machine of the terminal, if so, judging that the source address of the network data is the IP of the local machine of the terminal
Judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system; otherwise, executing the following steps: and judging that the terminal system is abnormally awakened.
3. The method according to claim 1 or 2, wherein the step of determining that the terminal system is abnormally awakened further comprises:
and refusing the awakening operation of the terminal system in response to the response, and keeping the dormant state of the terminal system.
4. The method according to claim 1, wherein the step of obtaining the network data received within a preset time after the current wake-up time point further comprises:
judging whether network data are received within a preset time after the current awakening time point; if yes, executing the following steps: acquiring network data received within a preset time after a current awakening time point;
otherwise, judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system.
5. An apparatus for analyzing a wake-on-lan system, comprising:
the monitoring module is used for monitoring the dormant state of the terminal system;
the recording module is used for recording the current awakening time point when the terminal system is awakened from the dormant state;
the acquisition module is used for acquiring network data received within a preset time after the current awakening time point;
the judging module is used for judging that the terminal system is abnormally awakened when the source address of the network data is not the IP of the terminal local machine;
the marking module is used for acquiring the application of the abnormal awakening system according to the network data and marking the application;
wherein, the labeling module comprises: the acquisition unit is used for acquiring a corresponding target port number according to the IP of the network data; the positioning unit is used for positioning the application of the abnormal wake-up system according to the target port number; the marking unit is used for marking the positioned application;
wherein the apparatus further comprises: the receiving module is used for receiving an application operation instruction triggered by a user; and the operation module is also used for closing the marked application program according to the application operation instruction.
6. The apparatus of claim 5, further comprising: an operation module;
the judging module is further configured to judge whether a source address of the network data is the local IP of the terminal, and if so, judge that the terminal system is awakened normally;
the operation module is used for releasing the dormant state of the terminal system when the terminal system is awakened normally, refusing to respond to the awakening operation of the terminal system when the terminal system is awakened abnormally, and keeping the dormant state of the terminal system.
7. The apparatus of claim 6,
the judging module is further used for judging whether network data is received within a preset time after the current awakening time point when the terminal system is awakened from the dormant state; if so, the acquisition module acquires the network data received within a preset time after the current awakening time point; otherwise, judging that the terminal system is awakened normally, and releasing the dormant state of the terminal system by the operation module.
8. A computer-readable storage medium storing a program, wherein the program is executed by a computer when running, the method recited in any one of claims 1 to 4.
CN201510287912.6A 2015-05-29 2015-05-29 Network awakening system analysis method and device Active CN106301846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510287912.6A CN106301846B (en) 2015-05-29 2015-05-29 Network awakening system analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510287912.6A CN106301846B (en) 2015-05-29 2015-05-29 Network awakening system analysis method and device

Publications (2)

Publication Number Publication Date
CN106301846A CN106301846A (en) 2017-01-04
CN106301846B true CN106301846B (en) 2020-12-25

Family

ID=57655916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510287912.6A Active CN106301846B (en) 2015-05-29 2015-05-29 Network awakening system analysis method and device

Country Status (1)

Country Link
CN (1) CN106301846B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320840B (en) * 2019-07-11 2021-06-22 四川长虹网络科技有限责任公司 Method and system capable of reducing power consumption of Internet of things product battery
CN113453321A (en) * 2020-03-27 2021-09-28 北京小米移动软件有限公司 Terminal wake-up processing method, device and medium
CN113923695A (en) * 2020-07-09 2022-01-11 北京罗克维尔斯科技有限公司 Awakening fault detection method and device and message sending method and device
CN112202740A (en) * 2020-09-21 2021-01-08 上海微波技术研究所(中国电子科技集团公司第五十研究所) FPGA-based awakenable UDP transmission protocol implementation method and system
CN114124767B (en) * 2021-11-29 2024-06-04 奇瑞汽车股份有限公司 Automatic test method and device for gateway network management strategy

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516870A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299944B (en) * 2010-06-23 2014-05-14 江苏瑞曼信息技术有限公司 Method for automatically starting or awakening computer through network
CN102624566A (en) * 2012-03-20 2012-08-01 华为技术有限公司 Method, device and system for waking up calling terminal
CN102932757A (en) * 2012-09-25 2013-02-13 百度在线网络技术(北京)有限公司 Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system
CN104079596B (en) * 2013-03-26 2018-09-07 腾讯科技(深圳)有限公司 A kind of remote wake-up method and device
CN104572240B (en) * 2013-10-18 2019-06-25 联想(北京)有限公司 Control method and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516870A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN106301846A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN105848268B (en) A kind of method and terminal reducing power consumption
CN105718027B (en) The management method and mobile terminal of background application
CN106304037B (en) Virtual SIM card management method and device
CN106844029B (en) Self-management Android process freezing and unfreezing device and method
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN106488420B (en) Incoming call processing method, device and system and readable storage medium
CN106301846B (en) Network awakening system analysis method and device
CN106357903A (en) Terminal starting control device and method
CN105208205A (en) Data service switching apparatus and method
CN105353947A (en) Mobile terminal and application display content controlling method
CN104954557A (en) Reminding method and reminding device
CN105100437A (en) Method and device for realizing display control
CN106161790B (en) Mobile terminal and control method thereof
CN106484534B (en) Control method and control device for displayed mobile terminal
CN105939425B (en) Screen dynamic monitoring device and method
CN106231657B (en) Method and device for switching power saving modes of double-screen mobile terminal
CN106792607A (en) Mobile terminal and the method for reducing mobile terminal power consumption
CN106488035A (en) A kind of mobile terminal and control method
CN106791149A (en) A kind of method of mobile terminal and control screen
CN106028428A (en) Information processing method and mobile terminal
CN106412877B (en) Activation method and activation device for mobile terminal SIM card
CN106774860B (en) Intelligent eliminating method and system for information corner mark
CN106131942B (en) Communication method and terminal
CN105094598A (en) Device and method for processing operational objects
CN106331324B (en) Screen-off control method and device for mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant