CN108347718B - Method, device and storage medium for monitoring communication packet - Google Patents

Method, device and storage medium for monitoring communication packet Download PDF

Info

Publication number
CN108347718B
CN108347718B CN201810108445.XA CN201810108445A CN108347718B CN 108347718 B CN108347718 B CN 108347718B CN 201810108445 A CN201810108445 A CN 201810108445A CN 108347718 B CN108347718 B CN 108347718B
Authority
CN
China
Prior art keywords
packet
monitoring
communication packet
sending
time
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
CN201810108445.XA
Other languages
Chinese (zh)
Other versions
CN108347718A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810108445.XA priority Critical patent/CN108347718B/en
Publication of CN108347718A publication Critical patent/CN108347718A/en
Application granted granted Critical
Publication of CN108347718B publication Critical patent/CN108347718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present disclosure relates to a method, an apparatus, and a storage medium for monitoring a communication packet, which are applied to a receiving end, and the method includes: monitoring a communication packet sent by a sending end in a packet sending time in a current monitoring period; when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition; and when the first monitoring result meets the continuous monitoring triggering condition, continuing monitoring the communication packet in the packet sending time.

Description

Method, device and storage medium for monitoring communication packet
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a storage medium for monitoring a communication packet.
Background
BLE (Bluetooth Low Energy) technology is a robust wireless technology with Low cost, short distance and interoperability, and has been widely applied to electronic devices such as smart phones, tablet computers, smart watches, medical monitors and the like due to its Low standby power consumption.
In the related art, after the transmitting end and the receiving end are connected by the BLE technology, the receiving end (or the transmitting end) may run out of power or crash, or the receiving end may exceed a communication range of the transmitting end, or there may not be transmission of a communication packet between the receiving end and the transmitting end, under these circumstances, if a bluetooth connection state between the transmitting end and the receiving end is continuously maintained, there may be a situation that resources of the transmitting end and the receiving end are consumed, and at this time, in order to reduce consumption of resources of the transmitting end and the receiving end, the bluetooth connection between the transmitting end and the receiving end may be disconnected.
Disclosure of Invention
To solve the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for monitoring a communication packet.
In order to achieve the above object, according to a first aspect of the embodiments of the present disclosure, there is provided a method for monitoring a communication packet, which is applied to a receiving end, and includes:
monitoring a communication packet sent by a sending end in a packet sending time in a current monitoring period;
when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition;
and when the first monitoring result meets the continuous monitoring triggering condition, continuing monitoring the communication packet in the packet sending time.
Optionally, the persistent listening trigger condition includes:
determining that the communication packet is not received in the current monitoring period according to the first monitoring result; alternatively, the first and second electrodes may be,
and determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result.
Optionally, the method further comprises:
after continuing to monitor the communication packet in the packet sending time to obtain a second monitoring result, determining whether the second monitoring result meets a monitoring ending condition;
and when the second monitoring result meets the monitoring ending condition, ending monitoring the communication packet.
Optionally, the listening end condition includes:
determining that a correct communication packet is received according to the second monitoring result; alternatively, the first and second electrodes may be,
and the total time for monitoring the communication packet is greater than or equal to the packet sending time.
Optionally, the method further comprises:
after receiving the correct communication packet, if the correct communication packet is a data packet, sending a first response message to the sending end, and after receiving a response feedback message sent by the sending end, entering a dormant state;
and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for monitoring a communication packet, which is applied to a receiving end, and includes:
the first monitoring module is configured to monitor a communication packet sent by a sending end in a packet sending time in a current monitoring period;
a first determining module configured to determine whether a first listening result satisfies a continuous listening triggering condition at the end of the current listening period;
and the second monitoring module is configured to continue monitoring the communication packet in the packet sending time when the first monitoring result meets the continuous monitoring triggering condition.
Optionally, the persistent listening trigger condition includes:
determining that the communication packet is not received in the current monitoring period according to the first monitoring result; alternatively, the first and second electrodes may be,
and determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result.
Optionally, the method further comprises:
the second determining module is configured to determine whether a second monitoring result meets a monitoring ending condition after the monitoring of the communication packet in the packet sending time is continued to obtain the second monitoring result;
and the ending module is configured to end the monitoring of the communication packet when the second monitoring result meets the monitoring ending condition.
Optionally, the listening end condition includes:
determining that a correct communication packet is received according to the second monitoring result; alternatively, the first and second electrodes may be,
and the total time for monitoring the communication packet is greater than or equal to the packet sending time.
Optionally, the method further comprises:
the processing module is configured to send a first response message to the sending end after receiving the correct communication packet and if the correct communication packet is a data packet, and enter a dormant state after receiving a response feedback message sent by the sending end;
and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for listening for a communication packet, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
monitoring a communication packet sent by a sending end in a packet sending time in a current monitoring period;
when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition;
and when the first monitoring result meets the continuous monitoring triggering condition, continuing monitoring the communication packet in the packet sending time.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method described above.
By the technical scheme, the receiving end monitors the communication packet sent by the sending end in the packet sending time in the current monitoring period; when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition; when the first monitoring result meets the continuous monitoring triggering condition, the communication packet in the packet sending time is monitored continuously, so that the receiving end can receive the communication packet sent by the sending end in time, and the delay of the communication packet caused by the fact that the receiving end needs to monitor the communication packet in the next monitoring period is avoided.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating a method of listening for communication packets according to an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart illustrating yet another method of listening for communication packets in an exemplary embodiment of the disclosure;
fig. 3 is a block diagram of a first apparatus for listening for communication packets according to an exemplary embodiment of the disclosure;
fig. 4 is a block diagram of a second apparatus for listening for communication packets according to an exemplary embodiment of the disclosure;
fig. 5 is a block diagram of a third apparatus for listening for communication packets according to an exemplary embodiment of the disclosure;
fig. 6 is a block diagram illustrating a fourth apparatus for listening for communication packets according to an exemplary embodiment of the disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
First, describing an application scenario of the present disclosure, after a transmitting end and a receiving end are connected by a BLE technology, it is currently determined whether to disconnect bluetooth connections of the transmitting end and the receiving end by the following means: the method comprises the steps that a sending end sends a communication packet to a receiving end according to a preset packet sending period in packet sending time, and the receiving end monitors the communication packet sent by the sending end according to a monitoring period, wherein the receiving end does not receive the communication packet sent by the sending end in the current monitoring period or the received communication packet is an error packet, enters a dormant state and wakes up in the next monitoring period to continue monitoring the communication packet sent by the sending end, so that if the receiving end is determined to monitor a correct communication packet in the packet sending time, normal communication packet transmission exists between the receiving end and the sending end, at the moment, the Bluetooth connection of the receiving end and the sending end does not need to be disconnected, on the contrary, if the receiving end is determined not receive a communication packet or receives all error packets in the packet sending time, the normal communication packet transmission does not exist between the receiving end and the sending end, at the moment, the Bluetooth connection of the receiving end and the sending end is disconnected, however, in the process of monitoring the communication packet by the receiving end, because the receiving end does not monitor the communication packet sent by the sending end in the current monitoring period or the received communication packet is an error packet, the receiving end needs to enter the sleep mode and continue monitoring the communication packet in the next monitoring period, the sending end cannot send the communication packet to the receiving end in time, and the communication packet is delayed.
In order to solve the above problem, the present disclosure may determine whether the first monitoring result of the current monitoring period satisfies the continuous monitoring trigger condition after the current monitoring period is ended, and continue to monitor the communication packet within the packet sending time when the first monitoring result satisfies the continuous monitoring trigger condition.
The present disclosure will be described in detail with reference to specific examples.
Fig. 1 is a flowchart of a method for listening to a communication packet according to an exemplary embodiment of the present disclosure, which is applied to a receiving end, and as shown in fig. 1, the method includes:
in step 101, a communication packet sent by a sending end in a packet sending time is monitored in a current monitoring period.
The packet sending time may be a timeout parameter in the BLE protocol specification, for example, the packet sending time may include a start time, an end time, and a packet sending duration at which the sending end sends a communication packet, and if the receiving end monitors a correct communication packet within the packet sending time, the start time and the end time in the packet sending time may be reset, for example, if the receiving end monitors a correct communication packet at a certain time in the current monitoring period, the certain time in the current monitoring period may be updated to the start time of the packet sending time, and the end time is updated according to the updated start time and the updated packet sending duration.
In this step, the listening period of the receiving end may be determined by the following method: first, a plurality of packet listening times within the packet sending time are determined according to a latency parameter (corresponding to a packet receiving interval) and the packet sending time in the BLE protocol specification, for example, a first packet listening time within the packet sending time may be determined according to a start time and the latency parameter, a second packet listening time within the packet sending time may be determined according to the first packet listening time and the latency parameter, and so on, a plurality of packet listening times within the packet sending time may be determined, then, each packet listening time is taken as a time start point, and a monitoring period is formed with a preset time period as a time duration, which is only illustrated by way of example, and is not limited by the present disclosure.
In step 102, when the current listening period listening ends, it is determined whether the first listening result satisfies a continuous listening triggering condition.
In this step, the continuous listening triggering condition may include: determining that the communication packet is not received in the current monitoring period according to the first monitoring result; or determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result.
In step 103, when the first monitoring result meets the continuous monitoring trigger condition, the communication packet in the packet sending time is monitored continuously.
In the related art, the communication packet sent by the sending end is not monitored in the current monitoring period or the monitored communication packet is an error packet, and then the communication packet enters the dormant state, so that the communication packet sent by the sending end in the packet sending time can be monitored continuously when the first monitoring result meets the continuous monitoring triggering condition, and the monitoring delay of the communication packet in the related art is avoided.
By adopting the method, whether the first monitoring result of the current monitoring period meets the continuous monitoring triggering condition or not can be determined after the current monitoring period is finished, and the communication packet in the packet sending time is monitored continuously when the first monitoring result meets the continuous monitoring triggering condition, so that the receiving end can receive the communication packet sent by the sending end in time, and the delay of the communication packet caused by the fact that the receiving end needs to monitor the communication packet in the next monitoring period is avoided.
Fig. 2 is a flowchart of a method for listening to a communication packet according to an exemplary embodiment of the present disclosure, which is applied to a receiving end, and as shown in fig. 2, the method includes:
in step 201, a communication packet sent by a sending end in a packet sending time is monitored in a current monitoring period.
The packet sending time may be a timeout parameter in the BLE protocol specification, for example, the packet sending time may include a start time, an end time, and a packet sending duration at which the sending end sends a communication packet, and if the receiving end monitors a correct communication packet within the packet sending time, the start time and the end time in the packet sending time may be reset, for example, if the receiving end monitors a correct communication packet at a certain time in the current monitoring period, the certain time in the current monitoring period may be updated to the start time of the packet sending time, and the end time is updated according to the updated start time and the updated packet sending duration.
In this step, the listening period of the receiving end may be determined by the following method: first, a plurality of packet listening times within the packet sending time are determined according to a latency parameter (corresponding to a packet receiving interval) and the packet sending time in the BLE protocol specification, for example, a first packet listening time within the packet sending time may be determined according to a start time and the latency parameter, a second packet listening time within the packet sending time may be determined according to the first packet listening time and the latency parameter, and so on, a plurality of packet listening times within the packet sending time may be determined, then, each packet listening time is taken as a time start point, and a monitoring period is formed with a preset time period as a time duration, which is only illustrated by way of example, and is not limited by the present disclosure.
In step 202, at the end of the current listening period, it is determined whether the first listening result satisfies a continuous listening triggering condition.
In this step, the continuous listening triggering condition includes: determining that the communication packet is not received in the current monitoring period according to the first monitoring result; or, determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result, so that the receiving end enters a sleep state when the first monitoring result meets the continuous monitoring trigger in the related art, and wakes up in the next monitoring period to continue monitoring the communication packet, thereby causing the monitoring delay of the communication packet.
In one possible implementation, whether the communication packet is an error packet may be determined by: the communication packet sent by the sending end includes the check data and the communication data, so that the communication data can be calculated to obtain a communication result, and whether the communication result is consistent with the check data or not is determined, when the communication result is consistent with the check data, the communication packet is determined to be a correct communication packet, and when the communication result is inconsistent with the check information, the communication packet is determined to be an error packet.
When determining that the first listening result satisfies the continuous listening triggering condition, executing steps 203 and 205;
upon determining that the first listening result does not satisfy the persistent listening trigger condition, step 204 is performed.
In step 203, the communication packet in the packet sending time is monitored continuously to obtain a second monitoring result.
The method and the device avoid the condition that the receiving end enters the dormant state when the first monitoring result meets the continuous monitoring trigger in the related art, and therefore the second monitoring result can be obtained in time by keeping continuous monitoring.
In step 204, a sleep state is entered.
In step 205, it is determined whether the second snoop result satisfies a snoop end condition.
Wherein, the listening ending condition may include: determining to receive a correct communication packet according to the second monitoring result; or the total time for monitoring the communication packet is greater than or equal to the packet sending time, for example, when the packet sending duration of the packet sending time is 30s, if the total time for the receiving end to monitor the communication packet in the packet sending time is 25s, the monitoring ending condition is still not met, and if the total time for the receiving end to monitor the communication packet is 31s, the monitoring ending condition is met, and the communication packet does not need to be monitored continuously.
When it is determined that the second monitoring result satisfies the monitoring ending condition, execute step 206;
and returning to step 203 when the second interception result is determined not to satisfy the interception end condition.
In step 206, listening for the communication packet is terminated.
In this step, when the monitoring end condition is that a correct communication packet is determined to be received according to the second monitoring result, after the correct communication packet is received in step 205, if the correct communication packet is a data packet, a first response message is sent to the sending end, and after a response feedback message sent by the sending end is received, the sending end enters a dormant state; and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
By adopting the method, whether the first monitoring result of the current monitoring period meets the continuous monitoring triggering condition or not can be determined after the current monitoring period is finished, and the communication packet in the packet sending time is monitored continuously when the first monitoring result meets the continuous monitoring triggering condition, so that the receiving end can receive the communication packet sent by the sending end in time, and the delay of the communication packet caused by the fact that the receiving end needs to monitor the communication packet in the next monitoring period is avoided.
Fig. 3 is a block diagram of an apparatus for monitoring a communication packet according to an embodiment of the present disclosure, which is applied to a receiving end, and as shown in fig. 3, the apparatus includes:
a first monitoring module 301 configured to monitor a communication packet sent by a sending end within a packet sending time in a current monitoring period;
a first determining module 302 configured to determine whether the first listening result satisfies a continuous listening triggering condition at the end of the current listening period;
and the second monitoring module 303 is configured to continue monitoring the communication packet in the packet sending time when the first monitoring result meets the continuous monitoring trigger condition.
Optionally, the persistent listening trigger condition includes:
determining that the communication packet is not received in the current monitoring period according to the first monitoring result; alternatively, the first and second electrodes may be,
and determining the communication packet received in the current monitoring period as an error packet according to the first monitoring result.
Fig. 4 is a block diagram of an apparatus for listening for a communication packet according to an exemplary embodiment of the present disclosure, as shown in fig. 4, further including:
a second determining module 304, configured to determine whether a second monitoring result meets a monitoring ending condition after continuing to monitor the communication packet in the packet sending time to obtain the second monitoring result;
an ending module 305 configured to end the listening of the communication packet when the second listening result satisfies the listening ending condition.
Optionally, the listening end condition includes:
determining to receive a correct communication packet according to the second monitoring result; alternatively, the first and second electrodes may be,
the total time for monitoring the communication packet is greater than or equal to the packet sending time.
Fig. 5 is a block diagram of an apparatus for listening for a communication packet according to an exemplary embodiment of the disclosure, as shown in fig. 5, further including:
the processing module 306 is configured to, after receiving the correct communication packet, send a first response message to the sending end if the correct communication packet is a data packet, and enter a dormant state after receiving a response feedback message sent by the sending end;
and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
By adopting the device, whether the first monitoring result of the current monitoring period meets the continuous monitoring triggering condition or not can be determined after the current monitoring period is finished, and the communication packet in the packet sending time is continuously monitored when the first monitoring result meets the continuous monitoring triggering condition, so that the receiving end can timely receive the communication packet sent by the sending end, and the communication packet delay caused by the fact that the receiving end needs to monitor the communication packet in the next monitoring period is avoided.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of listening for communication packets provided by the present disclosure.
Fig. 6 is a block diagram illustrating an apparatus 600 for listening for communication packets according to an exemplary embodiment of the present disclosure. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the above-described method of listening for communication packets. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described method of listening for communication packets.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method of listening for communication packets is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner without contradiction, so as to avoid unnecessary repetition, and various possible combinations are not separately described in the present disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A method for monitoring communication packets, applied to a receiving end, includes:
monitoring a communication packet sent by a sending end in a packet sending time in a current monitoring period;
when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition;
when the first monitoring result meets the continuous monitoring triggering condition, continuing to monitor the communication packet in the packet sending time;
wherein the continuous listening trigger condition comprises: determining that the communication packet is not received in the current monitoring period according to the first monitoring result; or determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result;
the packet sending time comprises the starting time, the ending time and the packet sending duration of the communication packet sent by the sending end,
the method further comprises the following steps:
if the receiving end monitors a correct communication packet in the packet sending time, acquiring a target time when the receiving end monitors the correct communication packet, and updating the starting time and the ending time of the packet sending time according to the target time;
after receiving the correct communication packet, if the correct communication packet is a data packet, sending a first response message to the sending end, and after receiving a response feedback message sent by the sending end, entering a dormant state; and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
2. The method of claim 1, further comprising:
after continuing to monitor the communication packet in the packet sending time to obtain a second monitoring result, determining whether the second monitoring result meets a monitoring ending condition;
and when the second monitoring result meets the monitoring ending condition, ending monitoring the communication packet.
3. The method of claim 2, wherein the listening end condition comprises:
determining that a correct communication packet is received according to the second monitoring result; alternatively, the first and second electrodes may be,
and the total time for monitoring the communication packet is greater than or equal to the packet sending time.
4. An apparatus for monitoring a communication packet, applied to a receiving end, comprising:
the first monitoring module is configured to monitor a communication packet sent by a sending end in a packet sending time in a current monitoring period;
a first determining module configured to determine whether a first listening result satisfies a continuous listening triggering condition at the end of the current listening period;
the second monitoring module is configured to continue monitoring the communication packet in the packet sending time when the first monitoring result meets the continuous monitoring triggering condition;
wherein the continuous listening trigger condition comprises:
determining that the communication packet is not received in the current monitoring period according to the first monitoring result; or determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result;
the packet sending time includes a start time, an end time and a packet sending time for the sending end to send the communication packet, and the device further includes:
the updating module is configured to acquire a target time when the receiving end monitors a correct communication packet if the receiving end monitors the correct communication packet within the packet sending time, and update the starting time and the ending time of the packet sending time according to the target time;
the processing module is configured to send a first response message to the sending end after receiving the correct communication packet and if the correct communication packet is a data packet, and enter a dormant state after receiving a response feedback message sent by the sending end; and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
5. The apparatus of claim 4, further comprising:
the second determining module is configured to determine whether a second monitoring result meets a monitoring ending condition after the monitoring of the communication packet in the packet sending time is continued to obtain the second monitoring result;
and the ending module is configured to end the monitoring of the communication packet when the second monitoring result meets the monitoring ending condition.
6. The apparatus of claim 5, wherein the listening end condition comprises:
determining that a correct communication packet is received according to the second monitoring result; alternatively, the first and second electrodes may be,
and the total time for monitoring the communication packet is greater than or equal to the packet sending time.
7. An apparatus for listening for communication packets, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
monitoring a communication packet sent by a sending end in a packet sending time in a current monitoring period;
when the current monitoring period is finished, determining whether a first monitoring result meets a continuous monitoring triggering condition;
when the first monitoring result meets the continuous monitoring triggering condition, continuing to monitor the communication packet in the packet sending time;
wherein the continuous listening trigger condition comprises: determining that the communication packet is not received in the current monitoring period according to the first monitoring result; or determining that the communication packet received in the current monitoring period is an error packet according to the first monitoring result; the packet sending time includes a start time, an end time and a packet sending duration of sending the communication packet by the sending end, the packet sending time includes a plurality of monitoring periods, and the processor is further configured to:
if the receiving end monitors a correct communication packet in the packet sending time, acquiring a target time when the receiving end monitors the correct communication packet, and updating the starting time and the ending time of the packet sending time according to the target time;
after receiving the correct communication packet, if the correct communication packet is a data packet, sending a first response message to the sending end, and after receiving a response feedback message sent by the sending end, entering a dormant state; and if the correct communication packet is an empty packet, sending a second response message to the sending end, and entering a dormant state.
8. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 3.
CN201810108445.XA 2018-02-02 2018-02-02 Method, device and storage medium for monitoring communication packet Active CN108347718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810108445.XA CN108347718B (en) 2018-02-02 2018-02-02 Method, device and storage medium for monitoring communication packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810108445.XA CN108347718B (en) 2018-02-02 2018-02-02 Method, device and storage medium for monitoring communication packet

Publications (2)

Publication Number Publication Date
CN108347718A CN108347718A (en) 2018-07-31
CN108347718B true CN108347718B (en) 2021-07-30

Family

ID=62959897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810108445.XA Active CN108347718B (en) 2018-02-02 2018-02-02 Method, device and storage medium for monitoring communication packet

Country Status (1)

Country Link
CN (1) CN108347718B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109716850B (en) * 2018-12-05 2022-09-02 北京小米移动软件有限公司 Downlink channel monitoring method, terminal and storage medium
CN109525466B (en) * 2019-01-03 2020-09-29 杭州云毅网络科技有限公司 Data node monitoring method and device, electronic equipment and storage medium
WO2022032669A1 (en) * 2020-08-14 2022-02-17 华为技术有限公司 Data receiving method, apparatus, and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465170A (en) * 2001-05-29 2003-12-31 松下电器产业株式会社 Packet reception apparatus and packet reception method
JP2007235211A (en) * 2006-02-27 2007-09-13 Fujitsu Ltd Data transmitter-receiver, data transmission reception method, and data transmission reception program
CN103597877A (en) * 2011-04-07 2014-02-19 诺基亚公司 Method and apparatus for accommodating discontinuous reception in a handover determination
CN105050164A (en) * 2015-01-16 2015-11-11 中国矿业大学 Method for lowering wifi power consumption based on data importance
CN105120507A (en) * 2015-08-12 2015-12-02 深圳市江波龙科技有限公司 Data packet monitoring method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2341687B1 (en) * 2009-12-30 2016-03-23 BlackBerry Limited Method and system for allowing varied functionality based on multiple transmissions
US9271238B2 (en) * 2013-01-23 2016-02-23 Seven Networks, Llc Application or context aware fast dormancy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465170A (en) * 2001-05-29 2003-12-31 松下电器产业株式会社 Packet reception apparatus and packet reception method
JP2007235211A (en) * 2006-02-27 2007-09-13 Fujitsu Ltd Data transmitter-receiver, data transmission reception method, and data transmission reception program
CN103597877A (en) * 2011-04-07 2014-02-19 诺基亚公司 Method and apparatus for accommodating discontinuous reception in a handover determination
CN105050164A (en) * 2015-01-16 2015-11-11 中国矿业大学 Method for lowering wifi power consumption based on data importance
CN105120507A (en) * 2015-08-12 2015-12-02 深圳市江波龙科技有限公司 Data packet monitoring method and system

Also Published As

Publication number Publication date
CN108347718A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN106604376B (en) Channel monitoring control method, device and user terminal
EP3177042A1 (en) Method and apparatus for updating connection parameter of low-power bluetooth device
CN110622616B (en) Control method and device for inactivity timer
CN109451842B (en) Power saving method and device for user equipment, user equipment and base station
US11558494B2 (en) Method and apparatus for processing data, user equipment and computer-readable storage medium
CN109314913B (en) Access control limiting method and device
CN106792937B (en) Method and device for processing call request
WO2022021387A1 (en) Offset indication determination method and apparatus, and offset determination method and apparatus
US10009283B2 (en) Method and device for processing information
CN110383891B (en) Network switching resource determining method and network switching resource configuration method
CN108347718B (en) Method, device and storage medium for monitoring communication packet
WO2022193303A1 (en) Random access method, random access apparatus and storage medium
CN110875769A (en) Wireless communication device and antenna switching method
US20210314996A1 (en) Method and apparatus for configuring and determining transmission block scheduling interval, and base station
CN108521879B (en) Beam reporting and adjusting method and device, user equipment and base station
CN105978663B (en) Data transmission method and device
CN109922465B (en) Network configuration method and device
CN105578391B (en) Information processing method, device and system and terminal equipment
CN109155974B (en) Information sending and receiving method and device, base station and user equipment
EP3917116A1 (en) Detecting maximum transmission unit value
WO2019227318A1 (en) Physical downlink control channel monitoring configuration method and apparatus, physical downlink control channel monitoring method and apparatus, and base station
CN107087254B (en) Packet sending method and device and Bluetooth low-energy-consumption slave device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN107223360B (en) Method and device for sending cache state
CN110933773B (en) Link monitoring method and device

Legal Events

Date Code Title Description
PB01 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