CN105338551B - Channel monitoring method and device and electronic equipment - Google Patents

Channel monitoring method and device and electronic equipment Download PDF

Info

Publication number
CN105338551B
CN105338551B CN201510622813.9A CN201510622813A CN105338551B CN 105338551 B CN105338551 B CN 105338551B CN 201510622813 A CN201510622813 A CN 201510622813A CN 105338551 B CN105338551 B CN 105338551B
Authority
CN
China
Prior art keywords
time
target channel
monitoring
channel
duration
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
CN201510622813.9A
Other languages
Chinese (zh)
Other versions
CN105338551A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510622813.9A priority Critical patent/CN105338551B/en
Publication of CN105338551A publication Critical patent/CN105338551A/en
Application granted granted Critical
Publication of CN105338551B publication Critical patent/CN105338551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Abstract

The embodiment of the invention discloses a channel monitoring method, a device and electronic equipment, wherein when each channel is monitored, a preset information frame in the channel is monitored, the monitoring time of the channel is adjusted according to the monitoring result, and the effect of dynamically adjusting the channel monitoring time is achieved, so that most of the monitoring time can be distributed to the channel which is most likely to really send an effective multicast data frame, the efficiency of obtaining the effective multicast data frame by the electronic equipment is improved, and the efficiency of accessing the electronic equipment to a wireless network access point is improved.

Description

Channel monitoring method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a channel monitoring method and apparatus, and an electronic device.
Background
For some electronic devices that cannot interact with the user (e.g., electronic devices without a display and a keyboard), a common method for accessing a wireless network access point (also known as a "hot spot") is to send a multicast data frame containing a Service Set Identifier (SSID) and a password of the first wireless network access point by a first electronic device that has accessed the first wireless network access point, where the first wireless network access point multicasts the multicast data frame through a channel used by the first wireless network access point. And the second electronic equipment with the wireless network access module scans channels, receives the multicast data frame in the channels after scanning the channels used by the first wireless network access point, and analyzes the service set identification and the password of the first wireless network access point from the multicast data frame so as to access the first wireless network access point.
And because the wireless network access point can use very abundant radio channels, for example, in the 2.4GHz band, there are 13 available radio channels provided by our country. Each wireless network access point fixedly uses one of the channels after being turned on. Therefore, in order to know which channel the multicast data frame sent by the first electronic device is transmitted through, the second electronic device needs to scan the available channels, that is, monitor the available channels one by one, and if the multicast data frame is not received from the channel being monitored within a certain time period, monitor the next channel until the multicast data frame is obtained from the monitored channel.
The inventor finds that, in the process of implementing the present invention, when the second electronic device scans channels, each channel is monitored using a fixed and same monitoring time, and this channel monitoring method makes the efficiency of the second electronic device acquiring an effective multicast data frame (i.e. a multicast data frame carrying a service set identifier and a password of the first wireless network access point) lower, which results in the efficiency of the second electronic device accessing the wireless access point being lower.
Disclosure of Invention
The invention aims to provide a channel monitoring method, a channel monitoring device and electronic equipment, so as to improve the efficiency of accessing the electronic equipment to a wireless network access point.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of channel sensing, comprising:
determining a target channel from at least two channels;
determining a first time length for monitoring the target channel, wherein the first time length is used for determining a stop time for monitoring the target channel;
monitoring the target channel from the first moment, and judging whether a monitoring result comprises a preset information frame;
when the preset information frame is monitored at a second moment, determining a second stopping moment corresponding to the preset information frame according to the duration corresponding to the preset information frame, wherein the second moment is earlier than a first stopping moment, and the first stopping moment is a moment if the first moment is subjected to the first duration;
and when the second stop time is later than the first stop time, determining the stop time for monitoring the target channel as the second stop time, and monitoring the target channel before the second stop time is not reached.
In the method, preferably, the second stop time is a time when the first time has elapsed by a duration corresponding to the preset information frame.
The above method, preferably, further comprises:
after each of the at least two channels is monitored once, if the configuration information is not obtained, each of the at least two channels is monitored again in sequence.
In the above method, preferably, the determining a first time period for monitoring the target channel includes:
if the target channel is monitored for the first time, determining a first time length for monitoring the target channel as follows: a default duration;
if the target channel is not monitored for the first time, determining a first time length for monitoring the target channel as follows: and determining the time length after the target channel is monitored for the last time.
The above method, preferably, further comprises:
if the target channel is not monitored for the first time, when the stop time of monitoring the target channel is reached, if the preset information frame is not monitored from the target channel and the stop time of monitoring the target channel for the previous time is a second stop time corresponding to the preset information frame, marking the target channel as not monitoring the preset information frame.
In the above method, preferably, the determining a first time period for monitoring the target channel includes:
determining a first duration for monitoring the target channel as: a default duration.
The above method, preferably, further comprises:
and if the second stopping time is the same as the first stopping time, or the second stopping time is earlier than the first stopping time, keeping the monitoring duration of the target channel determined this time unchanged.
In the above method, preferably, the preset information frame includes: beacon frames, and/or multicast data frames; wherein the content of the first and second substances,
the multicast data frame is as follows: the first type multicast data frame and/or the second type multicast data frame; the second type multicast data frame carries configuration information, and the configuration information comprises a service set identifier and a password corresponding to the service set identifier;
the duration corresponding to the beacon frame is greater than the default duration, and the duration corresponding to the beacon frame is less than the duration corresponding to the first multicast data frame;
the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
In the above method, preferably, if the target channel is not monitored for the first time, when it is determined that the first duration for monitoring the target channel is: when the time length determined after the last monitoring is performed on the target channel, the first time length for determining to monitor the target channel is as follows: the time length determined after the target channel is monitored for the last time comprises the following steps:
if the target channel is marked as not monitoring the beacon frame, determining a first time length for monitoring the target channel as follows: a default duration;
if the target channel is marked as not monitoring the first multicast data frame, determining a first time length for monitoring the target channel as: a duration corresponding to the beacon frame;
if the target channel is marked as not monitoring the second multicast data frame, determining a first time length for monitoring the target channel as: a duration corresponding to the first type of multicast data frame;
if the target channel is not marked, determining a first time duration for monitoring the target channel as follows: and determining the time length after the target channel is monitored for the last time.
The method above, preferably, the determining the target channel from the at least two channels includes:
if the first monitored channel is determined from the at least two channels, randomly determining one channel from the at least two channels as a target channel;
if the non-first monitored channel is determined from the at least two channels, when the stop time of the currently monitored channel is reached, if the configuration information is not acquired from the currently monitored channel, determining one channel as a target channel from the non-monitored channels of the at least two channels.
The above method, preferably, further comprises:
and if the configuration information is acquired from the currently monitored channel, determining a target channel from the at least two channels is forbidden.
The above method, preferably, further comprises:
and if the configuration information is acquired before the second stop time is reached, stopping monitoring the target channel.
A channel sensing apparatus, comprising:
a first determining module, configured to determine a target channel from at least two channels;
a second determining module, configured to determine a first time duration for monitoring the target channel, where the first time duration is used to determine a stop time for monitoring the target channel;
the monitoring module is used for monitoring the target channel from a first moment until a stop moment of monitoring the target channel is reached;
the judging module is used for judging whether the monitoring result of the monitoring module comprises a preset information frame or not;
a third determining module, configured to determine, when the preset information frame is monitored at a second time, a second stop time corresponding to the preset information frame according to a duration corresponding to the preset information frame, where the second time is earlier than a first stop time, and the first stop time is a time when the first time is the first duration;
and the adjusting module is used for determining the stop time for monitoring the target channel as the second stop time when the second stop time is later than the first stop time.
In the above apparatus, preferably, the second stop time is a time when the first time has elapsed by a duration corresponding to the preset information frame.
The above apparatus, preferably, the second determining module includes:
a first determining unit, configured to determine, if the target channel is monitored for the first time, that a first duration for monitoring the target channel is: a default duration;
a second determining unit, configured to determine, if the target channel is not monitored for the first time, that a first duration for monitoring the target channel is: and determining the time length after the target channel is monitored for the last time.
The above apparatus, preferably, further comprises:
and the marking module is used for marking the target channel as not monitored in the preset information frame if the target channel is monitored for the non-first time and the monitoring module does not monitor the preset information frame from the target channel when the stopping time of monitoring the target channel is reached, and the stopping time of monitoring the target channel for the previous time is the second stopping time corresponding to the preset information frame.
The above apparatus, preferably, the second determining module includes:
a third determining unit, configured to determine that a first duration for monitoring the target channel is: a default duration.
In the above apparatus, preferably, the adjusting module is further configured to, if the second stop time is the same as the first stop time, or the second stop time is earlier than the first stop time, keep a duration of monitoring the target channel determined this time unchanged.
Preferably, in the apparatus, the preset information frame includes: beacon frames, and/or multicast data frames; wherein the content of the first and second substances,
the multicast data frame is as follows: the first type multicast data frame and/or the second type multicast data frame; the second type multicast data frame carries configuration information, and the configuration information comprises a service set identifier and a password corresponding to the service set identifier;
the duration corresponding to the beacon frame is greater than the default duration, and the duration corresponding to the beacon frame is less than the duration corresponding to the first multicast data frame;
the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
Preferably, if the second determining module includes a module configured to determine that the first duration for monitoring the target channel is: a second determining unit configured to determine a duration of the target channel after the last listening, where the second determining unit includes:
a first determining subunit, configured to determine, if the target channel is marked as not monitoring the beacon frame, that a first duration for monitoring the target channel is: a default duration;
a second determining subunit, configured to determine, if the target channel is marked as not monitoring the first-class multicast data frame, that a first duration for monitoring the target channel is: a duration corresponding to the beacon frame;
a third determining subunit, configured to determine, if the target channel is marked as not monitoring the second type of multicast data frame, that a first duration for monitoring the target channel is: a duration corresponding to the first type of multicast data frame;
a fourth determining subunit, configured to determine, if the target channel is not marked, that a first duration for monitoring the target channel is: and determining the time length after the target channel is monitored for the last time.
The above apparatus, preferably, the first determining module includes:
a fourth determining unit, configured to randomly determine, if a first monitored channel is determined from the at least two channels, one channel from the at least two channels as a target channel;
a fifth determining unit, configured to, if it is determined that the channel that is not monitored first is a channel that is monitored from the at least two channels, determine, if the configuration information is not acquired from the currently monitored channel when a stop time of the currently monitored channel is reached, that one channel is a target channel from among the channels that are not monitored.
An electronic device comprising a channel listening apparatus as claimed in any one of the above.
According to the scheme, the channel monitoring method, the device and the electronic equipment provided by the application monitor the preset information frame in each channel when each channel is monitored, the monitoring duration of the channel is adjusted according to the monitoring result, and the effect of dynamically adjusting the channel monitoring time is achieved, so that most of the monitoring time can be distributed to the channel which most probably really sends the effective multicast data frame, the efficiency of acquiring the effective multicast data frame by the electronic equipment is improved, and the efficiency of accessing the electronic equipment to the wireless network access point is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a channel monitoring method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a channel monitoring apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a second determining module according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a channel monitoring apparatus according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a second determining module provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of a second determining unit provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a first determining module according to an embodiment of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a channel monitoring method according to an embodiment of the present application, where the method includes:
step S11: determining a target channel from at least two channels;
generally, there are a plurality of radio channels that can be used by the wireless network access point, and thus, at least two channels refer to all the radio channels that can be used by the wireless network access point.
The determined target channel is the channel to be monitored.
Step S12: determining a first time length of monitoring a target channel, wherein the first time length is used for determining the stop time of monitoring the target channel;
the first time duration for monitoring the target channel may be a preset value, or may be determined in real time according to the monitoring condition of the target channel. The first time duration is the initial time duration for listening to the target channel.
Step S13: monitoring a target channel from a first moment, and judging whether a monitoring result comprises a preset information frame;
after the first time length is determined, the target channel can be monitored in the on-time mode.
Step S14: when the preset information frame is monitored at a second moment, determining a second stopping moment corresponding to the preset information frame according to the duration corresponding to the preset information frame, wherein the second moment is earlier than the first stopping moment, and the first stopping moment is a moment if the first moment is subjected to the first duration;
the predetermined information frame is a certain information frame that can be transmitted in the channel.
The preset information frame may be only one type or may be multiple types.
When there are multiple kinds, different kinds of information frames correspond to different durations. That is, the second stop time corresponding to the first preset information frame determined when the first preset information frame is monitored is different from the second stop time corresponding to the second preset information frame determined when the second preset information frame is monitored, and if the duration corresponding to the first preset information frame is longer than the duration corresponding to the second preset information frame, the second stop time corresponding to the first preset information frame is later than the second stop time corresponding to the second preset information frame.
And from the first moment, if the preset information frame is monitored before the time length for monitoring the target channel reaches the first time length, determining a second stop moment corresponding to the preset information frame according to the time length corresponding to the preset information frame. In the embodiment of the invention, the moment when the preset information frame is monitored is recorded as the second moment.
Step S15: and when the second stop time is later than the first stop time, determining the stop time for monitoring the target channel as the second stop time, and monitoring the target channel before the second stop time is not reached.
If the second stop time is later than the first stop time, it is indicated that the possibility of obtaining the configuration information from the target channel is relatively high, and the monitoring duration of the target channel is prolonged, that is, the stop time of monitoring the target channel is delayed to the second stop time.
And if the monitoring time of the target channel reaches the second stop time and the configuration information is not acquired, determining the next channel which is not monitored from the at least two channels as the target channel.
According to the channel monitoring method provided by the embodiment of the invention, when each channel is monitored, the preset information frame in the channel is monitored, the monitoring duration of the channel is adjusted according to the monitoring result, and the effect of dynamically adjusting the channel monitoring time is achieved, so that most of the monitoring time can be distributed to the channel which is most likely to really send the effective multicast data frame, the efficiency of acquiring the effective multicast data frame by the electronic equipment is improved, and the efficiency of accessing the electronic equipment to the wireless network access point is improved.
Optionally, the second stop time may be: and if the first time passes the time corresponding to the monitored preset information frame.
For example, if the first time is T1 and the monitored duration corresponding to the preset information frame is T, the second stop time T2 is: from time T1, a time at time T elapses.
That is to say, in the embodiment of the present invention, if the monitoring duration corresponding to the preset information frame is longer than the monitoring duration currently corresponding to the target channel, the duration for monitoring the target channel is extended to the duration corresponding to the preset information frame.
Optionally, if the required configuration information is not obtained after monitoring each of the at least two channels once, each of the at least two channels is monitored again in sequence, that is, if the required configuration information is not obtained after monitoring each of the at least two channels once, the at least two channels are scanned again. The process of listening to each channel again may be according to the embodiment shown in fig. 1, and is not described herein again.
Optionally, one implementation manner of determining the first duration of monitoring the target channel may be:
if the target channel is monitored for the first time, determining that the first time length for monitoring the target channel is as follows: a default duration;
the default duration is the shortest duration for monitoring the channel. In other words, if the target channel is monitored for the first time, the shortest time for monitoring the channel is determined as the first time for monitoring the target channel.
If the target channel is not monitored for the first time, determining that the first time length for monitoring the target channel is as follows: and the time length determined after the target channel is monitored for the last time.
If the target channel is not monitored for the first time, that is, the target channel has been monitored at least once, when the channel is monitored again, the time length determined after the channel is monitored for the last time is determined as the first time length. That is, if the target channel is not monitored for the first time, the time duration consumed for monitoring the channel for the last time is determined as the first time duration for monitoring the channel. For example, if the last time the channel is monitored is T1, the first time for monitoring the channel is determined as T1, where T1 may be a default time or may be longer than the default time.
Further, if the target channel is not monitored for the first time, when the stop time of monitoring the target channel is reached, if the preset information frame is not monitored from the target channel, and the stop time of monitoring the target channel for the previous time is a second stop time corresponding to the preset information frame, the target channel is marked as not monitoring the preset information frame.
That is, if the target channel is monitored again after being monitored at least once, then, if the preset information frame is not monitored from the target channel this time, and the preset information frame was monitored when the channel was monitored last time, and the duration of monitoring the channel last time is the second stop time corresponding to the preset information frame, the channel is marked to indicate that the possibility that the channel acquires the configuration information is reduced. If the channel is monitored for the next time, determining the third time length as the first time length for monitoring the channel when the channel is monitored for the next time and the channel is marked not to monitor the preset information frame; and the third time length is less than the last time length for monitoring the channel. The third time length may be a default time length, or may not be, as long as the third time length is less than the last time length for monitoring the channel.
That is, if the target channel is not monitored for the first time, determining the time length consumed for monitoring the channel for the last time as the first time length for monitoring the channel only when the target channel is not marked as not monitored for the preset information frame; if the target channel is marked as not monitoring the preset information frame, the time length consumed for monitoring the channel last time is not determined as the first time length for monitoring the channel, but a third time length which is less than the time length consumed for monitoring the channel last time is determined as the first time length for monitoring the channel.
Optionally, another implementation manner of determining the first duration of the monitored target channel is as follows:
determining a first duration of monitoring a target channel as: a default duration.
In the embodiment of the invention, the initial time for monitoring the target channel is the default time regardless of whether the target channel is monitored for the first time. And subsequently, adjusting the monitoring time length according to the monitoring result.
Optionally, if the second stop time is the same as the first stop time, or the second stop time is earlier than the first stop time, the duration of monitoring the target channel determined this time remains unchanged.
If the second stop time is the same as the first stop time, or the second stop time is earlier than the first stop time, it indicates that the possibility of acquiring the configuration information from the target channel is not increased, and at this time, the duration of monitoring the target channel is not extended, so that time is reserved for a channel more likely to acquire the configuration information.
Optionally, the preset information frame may include: beacon frames (beacon frames) and/or multicast data frames, wherein the multicast data frames comprise first type multicast data frames and/or second type multicast data frames, and the second type multicast data frames carry configuration information, and the configuration information comprises service set identifiers and passwords corresponding to the service set identifiers;
the time length corresponding to the beacon frame is greater than the default time length, and the time length corresponding to the beacon frame is less than the time length corresponding to the first multicast data frame; the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
The complete configuration information can be acquired within the duration corresponding to the second type multicast data frame, and the complete configuration information cannot be acquired within the durations corresponding to other information frames or within a default duration.
That is, within the duration corresponding to the second type multicast data frame, all the second type multicast data frames carrying the configuration information can be obtained (generally, the configuration information is not transmitted by one second type multicast data frame, but by a plurality of second type multicast data frames).
Optionally, if the target channel is not monitored for the first time, determining the first time duration for monitoring the target channel includes:
if the target channel is marked as not monitoring the beacon frame, determining a first time length for monitoring the target channel as: a default duration;
and if the beacon frame is not monitored last time, determining the default time length as the first time length of the monitoring target channel.
If the target channel is marked as not monitoring the first multicast data frame, determining a first time length for monitoring the target channel as follows: a duration corresponding to the beacon frame;
and if the first multicast data frame is not monitored last time, determining the time length corresponding to the beacon frame as the first time length of the monitored target channel.
If the target channel is marked as not monitoring the second type of multicast data frame, determining a first time length for monitoring the target channel as follows: a duration corresponding to the first type of multicast data frame;
and if the second type multicast data frame is not monitored last time, determining the time length corresponding to the first type multicast data frame as the first time length of the monitored target channel.
If the target channel is not marked, determining a first time length for monitoring the target channel as follows: and the time length determined after the target channel is monitored for the last time.
And if the target channel is not marked, determining the time length determined after the last monitoring of the target channel as the first time length for monitoring the target channel.
Optionally, one implementation manner of determining the target channel from the at least two channels may be:
if the first monitored channel is determined from the at least two channels, randomly determining one channel from the at least two channels as a target channel;
if the channel which is not monitored first is determined from the at least two channels, when the stop time of the currently monitored channel is reached, if the configuration information is not obtained from the currently monitored channel, one channel is determined as a target channel from the channels which are not monitored in the at least two channels.
That is, the initially determined channel is a randomly selected channel, so that the hit rate of the channel for transmitting the second type multicast data frame is increased, and the probability of occurrence of the longest scanning time is reduced.
And if the configuration information is acquired from the currently monitored channel, determining a target channel from at least two channels is forbidden.
That is, if the configuration information is acquired from the currently monitored channel, the other channels are not monitored, that is, the channel scanning is stopped.
And stopping monitoring the target channel and not monitoring other channels when the configuration information is acquired before the time for monitoring the target channel reaches the second stop time.
The following describes embodiments of the present invention with reference to specific application scenarios. Suppose that the frames of the information to be monitored are: beacon frames, first type multicast data frames and second type multicast data frames. And the initial scanning duration of each channel is set as a default duration.
In the process of monitoring the target channel, if a beacon frame is monitored at first before the monitoring time length reaches the default time length, the monitoring time length of the channel is prolonged to the time length corresponding to the beacon frame from the default time length; if the first type of multicast data frame is monitored firstly, the monitoring duration of the channel is prolonged to the duration corresponding to the first type of multicast data frame from the default duration; if the second type of multicast data frame is monitored first, the monitoring duration of the channel is prolonged from the default duration to the duration corresponding to the second type of multicast data frame. After the monitoring duration of the target channel is prolonged to the duration corresponding to the beacon frame, if the first type of multicast data frame is monitored before the monitoring duration reaches the duration corresponding to the beacon frame, the monitoring duration of the channel is prolonged from the duration corresponding to the beacon frame to the duration corresponding to the first type of multicast data frame; if the second type of multicast data frame is monitored first, the monitoring duration of the channel is prolonged from the duration corresponding to the beacon frame to the duration corresponding to the second type of multicast data frame.
After the monitoring duration of the target channel is prolonged to the duration corresponding to the first type multicast data frame, if the second type multicast data frame is monitored before the monitoring duration reaches the duration corresponding to the first type multicast data frame, the monitoring duration of the channel is prolonged from the duration corresponding to the first type multicast data frame to the duration corresponding to the second type multicast data frame.
Corresponding to the method embodiment, an embodiment of the present invention further provides a channel monitoring device, and a schematic structural diagram of the channel monitoring device provided in the embodiment of the present invention is shown in fig. 2, and may include:
a first determining module 21, a second determining module 22, a monitoring module 23, a judging module 24, a third determining module 25 and an adjusting module 26; wherein the content of the first and second substances,
the first determining module 21 is configured to determine a target channel from at least two channels;
generally, there are a plurality of radio channels that can be used by the wireless network access point, and thus, at least two channels refer to all the radio channels that can be used by the wireless network access point.
The determined target channel is the channel to be monitored.
The second determining module 22 is configured to determine a first time duration for monitoring the target channel, where the first time duration is used to determine a stop time for monitoring the target channel;
the first time duration for monitoring the target channel may be a preset value, or may be determined in real time according to the monitoring condition of the target channel. The first time duration is the initial time duration for listening to the target channel.
The monitoring module 23 is configured to monitor the target channel from a first time until a stop time of monitoring the target channel is reached;
after the second determining module 22 determines the first time length, the monitoring module 23 may start to monitor the target channel, and in the embodiment of the present invention, the time when monitoring the target channel starts is recorded as the first time.
The judging module 24 is configured to judge whether a monitoring result of the monitoring module includes a preset information frame;
the third determining module 25 is configured to determine, when the preset information frame is monitored at a second time, a second stopping time corresponding to the preset information frame according to a duration corresponding to the preset information frame, where the second time is earlier than a first stopping time, and the first stopping time is a time when the first time is the first duration;
the predetermined information frame is a certain information frame that can be transmitted in the channel.
The preset information frame may be only one type or may be multiple types.
When there are multiple kinds, different kinds of information frames correspond to different durations. That is, the second stop time corresponding to the first preset information frame determined when the first preset information frame is monitored is different from the second stop time corresponding to the second preset information frame determined when the second preset information frame is monitored, and if the duration corresponding to the first preset information frame is longer than the duration corresponding to the second preset information frame, the second stop time corresponding to the first preset information frame is later than the second stop time corresponding to the second preset information frame.
In the embodiment of the invention, from the first moment, if the preset information frame is monitored before the time length for monitoring the target channel reaches the first time length, the second stop moment corresponding to the preset information frame is determined according to the time length corresponding to the preset information frame. In the embodiment of the invention, the moment when the preset information frame is monitored is recorded as the second moment.
The adjusting module 26 is configured to determine the stop time for monitoring the target channel as the second stop time when the second stop time is later than the first stop time.
If the second stop time is later than the first stop time, it is indicated that the possibility of obtaining the configuration information from the target channel is relatively high, and the monitoring duration of the target channel is prolonged, that is, the stop time of monitoring the target channel is delayed to the second stop time.
If the monitoring time of the target channel reaches the second stop time and the configuration information is not acquired, the first determining module 21 is triggered to determine that the next channel which is not monitored is the target channel from the at least two channels.
The channel monitoring device provided by the embodiment of the invention monitors the preset information frame in each channel when monitoring each channel, and adjusts the monitoring duration of the channel according to the monitoring result, so as to achieve the effect of dynamically adjusting the channel monitoring time, thereby distributing most of the monitoring time to the channel which is most likely to really send the effective multicast data frame, improving the efficiency of acquiring the effective multicast data frame by the electronic equipment, and improving the efficiency of accessing the electronic equipment to the wireless network access point.
Optionally, the second stop time may be: and if the first time passes the time corresponding to the monitored preset information frame.
Optionally, if the required configuration information is not obtained after monitoring each of the at least two channels once, the first determining module 21 is triggered to determine the target channel from the at least two channels.
That is, if the required configuration information is not obtained after monitoring each of the at least two channels once, each of the at least two channels is monitored again, that is, if the required configuration information is not obtained after monitoring each of the at least two channels once, the at least two channels are scanned again.
Optionally, a schematic structural diagram of the second determining module 22 provided in the embodiment of the present invention is shown in fig. 3, and may include:
a first determining unit 31, configured to determine, if the target channel is monitored for the first time, that a first time duration for monitoring the target channel is: a default duration;
a second determining unit 32, configured to determine, if the target channel is not monitored for the first time, that a first duration for monitoring the target channel is: and the time length determined after the target channel is monitored for the last time.
Optionally, another schematic structural diagram of the channel monitoring apparatus provided in the embodiment of the present invention is shown in fig. 4, and may further include:
the marking module 41 is configured to mark the target channel as not monitoring the preset information frame if the target channel is not monitored for the first time, and if the monitoring module does not monitor the preset information frame from the target channel and the stop time of monitoring the target channel for the previous time is a second stop time corresponding to the preset information frame when the stop time of monitoring the target channel is reached.
Optionally, another schematic structural diagram of the second determining module 22 provided in the embodiment of the present invention is shown in fig. 5, and may include:
a third determining unit 51, configured to determine that the first duration of the listening target channel is: a default duration.
Optionally, the adjusting module 26 may be further configured to, if the second stopping time is the same as the first stopping time, or the second stopping time is earlier than the first stopping time, keep the duration of monitoring the target channel determined this time unchanged.
Optionally, the preset information frame may include: beacon frames (beacon frames) and/or multicast data frames, wherein the multicast data frames comprise first type multicast data frames and/or second type multicast data frames, and the second type multicast data frames carry configuration information, and the configuration information comprises service set identifiers and passwords corresponding to the service set identifiers;
the time length corresponding to the beacon frame is greater than the default time length, and the time length corresponding to the beacon frame is less than the time length corresponding to the first multicast data frame; the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
The complete configuration information can be acquired within the duration corresponding to the second type multicast data frame, and the complete configuration information cannot be acquired within the durations corresponding to other information frames or within a default duration.
That is, within the duration corresponding to the second type multicast data frame, all the second type multicast data frames carrying the configuration information can be obtained (generally, the configuration information is not transmitted by one second type multicast data frame, but by a plurality of second type multicast data frames).
Optionally, a schematic structural diagram of the second determining unit 32 is shown in fig. 6, and may include:
a first determining subunit 61, configured to determine, if the target channel is marked as not monitoring the beacon frame, that a first duration of monitoring the target channel is: a default duration;
a second determining subunit 62, configured to determine, if the target channel is marked as not monitoring the first-type multicast data frame, that a first duration for monitoring the target channel is: a duration corresponding to the beacon frame;
a third determining subunit 63, configured to determine, if the target channel is marked as not monitoring the second type of multicast data frame, that the first time duration for monitoring the target channel is: a duration corresponding to the first type of multicast data frame;
a fourth determining subunit 64, configured to, if the target channel is not marked, determine that the first duration for monitoring the target channel is: and the time length determined after the target channel is monitored for the last time.
Optionally, a schematic structural diagram of the first determining module 21 is shown in fig. 7, and may include:
a fourth determining unit 71, configured to randomly determine, if the first monitored channel is determined from the at least two channels, one channel from the at least two channels as a target channel;
a fifth determining unit 72, configured to, if it is determined that the channel that is not monitored first is a channel that is monitored from among the at least two channels, when a stop time of the currently monitored channel is reached, if the configuration information is not obtained from the currently monitored channel, determine, as the target channel, one channel from among the channels that are not monitored.
The embodiment of the invention also provides electronic equipment, which comprises the channel monitoring device disclosed by the embodiment of the device.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the electronic equipment disclosed by the embodiment, the description is relatively simple because the electronic equipment corresponds to the method disclosed by the embodiment, and the relevant part can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (18)

1. A method for channel sensing, comprising:
determining a target channel from at least two channels;
determining a first time length for monitoring the target channel, wherein the first time length is used for determining a stop time for monitoring the target channel;
monitoring the target channel from the first moment, and judging whether a monitoring result comprises a preset information frame;
when the preset information frame is monitored at a second moment, determining a second stopping moment corresponding to the preset information frame according to the duration corresponding to the preset information frame, wherein the second moment is earlier than a first stopping moment, and the first stopping moment is a moment if the first moment is subjected to the first duration;
when the second stopping time is later than the first stopping time, determining the stopping time for monitoring the target channel as the second stopping time, and monitoring the target channel before the second stopping time is not reached;
wherein the determining a first time period to listen to the target channel comprises:
if the target channel is monitored for the first time, determining a first time length for monitoring the target channel as follows: a default duration; the default time length is the shortest time length for monitoring the channel;
if the target channel is not monitored for the first time, if the target channel is marked as not monitoring the preset information frame, determining a third time length as a first time length for monitoring the target channel; wherein the third time length is less than the last time length for monitoring the target channel; if the target channel is not marked, determining a first time duration for monitoring the target channel as: and determining the time length after the target channel is monitored for the last time.
2. The method of claim 1, wherein the second stop time is a time when the first time is over a duration corresponding to the predetermined information frame.
3. The method of claim 1, further comprising:
after each of the at least two channels is monitored once, if the configuration information is not obtained, each of the at least two channels is monitored again in sequence.
4. The method of claim 1, further comprising:
if the target channel is not monitored for the first time, when the stop time of monitoring the target channel is reached, if the preset information frame is not monitored from the target channel and the stop time of monitoring the target channel for the previous time is a second stop time corresponding to the preset information frame, marking the target channel as not monitoring the preset information frame.
5. The method of claim 1, further comprising:
and if the second stopping time is the same as the first stopping time, or the second stopping time is earlier than the first stopping time, keeping the monitoring duration of the target channel determined this time unchanged.
6. The method according to any one of claims 1 to 5, wherein the predetermined information frame comprises: beacon frames, and/or multicast data frames; wherein the content of the first and second substances,
the multicast data frame is as follows: the first type multicast data frame and/or the second type multicast data frame; the second type multicast data frame carries configuration information, and the configuration information comprises a service set identifier and a password corresponding to the service set identifier;
the duration corresponding to the beacon frame is greater than the default duration, and the duration corresponding to the beacon frame is less than the duration corresponding to the first multicast data frame;
the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
7. The method of claim 6, wherein if the target channel is marked as not listening to the preset information frame, determining that the third duration is the first duration for listening to the channel comprises:
if the target channel is marked as not monitoring the beacon frame, determining a first time length for monitoring the target channel as follows: the default duration;
if the target channel is marked as not monitoring the first multicast data frame, determining a first time length for monitoring the target channel as: a duration corresponding to the beacon frame;
if the target channel is marked as not monitoring the second multicast data frame, determining a first time length for monitoring the target channel as: a duration corresponding to the first type of multicast data frame.
8. The method of claim 1, wherein determining the target channel from the at least two channels comprises:
if the first monitored channel is determined from the at least two channels, randomly determining one channel from the at least two channels as a target channel;
if the non-first monitored channel is determined from the at least two channels, when the stop time of the currently monitored channel is reached, if the configuration information is not acquired from the currently monitored channel, determining one channel as a target channel from the non-monitored channels of the at least two channels.
9. The method of claim 8, further comprising:
and if the configuration information is acquired from the currently monitored channel, determining a target channel from the at least two channels is forbidden.
10. The method of claim 1, further comprising:
and if the configuration information is acquired before the second stop time is reached, stopping monitoring the target channel.
11. An apparatus for channel sensing, comprising:
a first determining module, configured to determine a target channel from at least two channels;
a second determining module, configured to determine a first time duration for monitoring the target channel, where the first time duration is used to determine a stop time for monitoring the target channel, and the second determining module includes: a first determining unit, configured to determine, if the target channel is monitored for the first time, that a first duration for monitoring the target channel is: a default duration; the default time length is the shortest time length for monitoring the channel; a second determining unit, configured to determine, if the target channel is not monitored for the first time, that a third duration is a first duration for monitoring the target channel if the target channel is marked as not monitored for a preset information frame; wherein the third time length is less than the last time length for monitoring the target channel; if the target channel is not marked, determining a first time duration for monitoring the target channel as: the time length determined after the last monitoring of the target channel
The monitoring module is used for monitoring the target channel from a first moment until a stop moment of monitoring the target channel is reached;
the judging module is used for judging whether the monitoring result of the monitoring module comprises the preset information frame or not;
a third determining module, configured to determine, when the preset information frame is monitored at a second time, a second stop time corresponding to the preset information frame according to a duration corresponding to the preset information frame, where the second time is earlier than a first stop time, and the first stop time is a time when the first time is the first duration;
and the adjusting module is used for determining the stop time for monitoring the target channel as the second stop time when the second stop time is later than the first stop time.
12. The apparatus according to claim 11, wherein the second stop time is a time when the first time is over a duration corresponding to the predetermined information frame.
13. The apparatus of claim 11, further comprising:
and the marking module is used for marking the target channel as not monitored in the preset information frame if the target channel is monitored for the non-first time and the monitoring module does not monitor the preset information frame from the target channel when the stopping time of monitoring the target channel is reached, and the stopping time of monitoring the target channel for the previous time is the second stopping time corresponding to the preset information frame.
14. The apparatus of claim 11, wherein the adjusting module is further configured to, if the second stop time is the same as the first stop time, or the second stop time is earlier than the first stop time, keep a duration of listening to the target channel determined this time unchanged.
15. The apparatus according to any one of claims 11-14, wherein the predetermined information frame comprises: beacon frames, and/or multicast data frames; wherein the content of the first and second substances,
the multicast data frame is as follows: the first type multicast data frame and/or the second type multicast data frame; the second type multicast data frame carries configuration information, and the configuration information comprises a service set identifier and a password corresponding to the service set identifier;
the duration corresponding to the beacon frame is greater than the default duration, and the duration corresponding to the beacon frame is less than the duration corresponding to the first multicast data frame;
the time length corresponding to the first type multicast data frame is less than the time length corresponding to the second type multicast data frame.
16. The apparatus of claim 15, wherein the second determining unit comprises:
a first determining subunit, configured to determine, if the target channel is marked as not monitoring the beacon frame, that a first duration for monitoring the target channel is: the default duration;
a second determining subunit, configured to determine, if the target channel is marked as not monitoring the first-class multicast data frame, that a first duration for monitoring the target channel is: a duration corresponding to the beacon frame;
a third determining subunit, configured to determine, if the target channel is marked as not monitoring the second type of multicast data frame, that a first duration for monitoring the target channel is: a duration corresponding to the first type of multicast data frame;
a fourth determining subunit, configured to determine, if the target channel is not marked, that a first duration for monitoring the target channel is: and determining the time length after the target channel is monitored for the last time.
17. The apparatus of claim 11, wherein the first determining module comprises:
a fourth determining unit, configured to randomly determine, if a first monitored channel is determined from the at least two channels, one channel from the at least two channels as a target channel;
a fifth determining unit, configured to, if it is determined that the channel that is not monitored first is a channel that is monitored from the at least two channels, determine, if the configuration information is not acquired from the currently monitored channel when a stop time of the currently monitored channel is reached, that one channel is a target channel from among the channels that are not monitored.
18. An electronic device, characterized in that it comprises a channel listening device according to any one of claims 11-17.
CN201510622813.9A 2015-09-25 2015-09-25 Channel monitoring method and device and electronic equipment Active CN105338551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510622813.9A CN105338551B (en) 2015-09-25 2015-09-25 Channel monitoring method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510622813.9A CN105338551B (en) 2015-09-25 2015-09-25 Channel monitoring method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105338551A CN105338551A (en) 2016-02-17
CN105338551B true CN105338551B (en) 2020-03-24

Family

ID=55288749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510622813.9A Active CN105338551B (en) 2015-09-25 2015-09-25 Channel monitoring method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105338551B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162647B (en) * 2016-08-31 2019-12-10 海尔优家智能科技(北京)有限公司 Intelligent equipment configuration network access method and device
CN106714258B (en) * 2016-12-20 2020-05-26 浙江大华技术股份有限公司 Channel switching method and device
CN113114395B (en) * 2019-04-29 2023-05-30 创新先进技术有限公司 Channel determination method and device
WO2021003713A1 (en) * 2019-07-10 2021-01-14 北京小米移动软件有限公司 Data transmission method and apparatus based on unlicensed uplink scheduling, and storage medium
CN114650587B (en) * 2020-12-21 2023-09-08 Oppo广东移动通信有限公司 Method and device for monitoring wireless link, wireless terminal and storage medium
CN113676932B (en) * 2021-08-12 2023-08-11 珠海格力电器股份有限公司 Automatic network allocation method, system, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662796A (en) * 2009-09-08 2010-03-03 杭州华三通信技术有限公司 Method and device for scanning wireless local area network (LAN) channels
CN103916879A (en) * 2012-12-31 2014-07-09 华为终端有限公司 Equipment discovery method, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7583643B2 (en) * 2003-09-30 2009-09-01 Motorola, Inc. Enhanced passive scanning
CN102238694B (en) * 2010-04-23 2014-08-06 启碁科技股份有限公司 Wireless network scanning method and system
US8451733B2 (en) * 2011-08-08 2013-05-28 Amtran Technology Co., Ltd Methods of optimizing scanning parameters for a plurality of channels in a wireless band
US9204375B2 (en) * 2013-02-21 2015-12-01 Apple Inc. Determining parameters of an access point
CN104023375B (en) * 2013-02-28 2017-06-23 株式会社理光 Network node finds method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662796A (en) * 2009-09-08 2010-03-03 杭州华三通信技术有限公司 Method and device for scanning wireless local area network (LAN) channels
CN103916879A (en) * 2012-12-31 2014-07-09 华为终端有限公司 Equipment discovery method, apparatus and system

Also Published As

Publication number Publication date
CN105338551A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105338551B (en) Channel monitoring method and device and electronic equipment
JP6411527B2 (en) User apparatus and control channel receiving method
US20200178159A1 (en) Method and Apparatus for Transmitting D2D Discovery Signal and Communication System
EP2524564B1 (en) Apparatus and method for accessing random access channel in a wireless communication system
EP3402281B1 (en) Uplink laa channel access detaction
US20230292369A1 (en) Method and apparatus for reporting ai network model support capability, method and apparatus for receiving ai network model support capability, and storage medium, user equipment and base station
US11025400B2 (en) Information transmission method, user equipment, and base station
US11039439B2 (en) Method for selecting carrier set for device-to-device multi-carrier aggregation and related devices
JP2018514097A5 (en)
WO2017162004A1 (en) Contention-based random access method and apparatus
US20130165077A1 (en) Method and apparatus for identifying fake networks
WO2017185304A1 (en) Ra-rnti determining device, rar transmission device and method, and communication system
EP2873275B1 (en) Rapid scanning for fast initial link setup
EP3198919B1 (en) Methods and apparatus for minimization of drive testing
CN105874862A (en) Data transmission method and device
CN105407531A (en) Communication method and communication device in wireless local area network, access point and site
US20190182633A1 (en) Method for indicating and discovering service, base station and user equipment
CN107409376B (en) System and method for traffic control for machine type communication in a wireless communication system
CN105813220B (en) Data transmission method and station
US10291421B2 (en) Method for monitoring licensed-assisted access cell, device, and base station
US10757734B2 (en) Method for facilitating clear channel assessment and radio unit
WO2019192582A1 (en) Method and apparatus for monitoring pdcch, and base station and user equipment
EP3629663B1 (en) Resource reuse apparatus, user equipment, and resource reuse method
CN114339616B (en) Congestion control method, device and equipment for broadcast multicast service
CN109155686B (en) Method and device for transmitting aperiodic SRS

Legal Events

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