Disclosure of Invention
The invention provides a scanning method, user equipment and a base station, aiming at saving scanning time and reducing power consumption of UE.
A first aspect of the present invention provides a scanning method, including:
acquiring synchronous information of a wireless fidelity WiFi access point AP and a base station;
acquiring the transmission time of a beacon frame of the WiFiAP according to the synchronization information;
and activating a WiFi function to scan the WiFiAP according to the transmission time of the beacon frame.
In a first possible implementation manner of the first aspect of the present invention, acquiring synchronization information of a WiFi access point AP and a base station includes:
and receiving the synchronization information of the WiFiAP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the obtaining, according to the synchronization information, a transmission time of a beacon frame of a WiFi AP includes:
if the synchronization information indicates that the WiFiAP and the base station are synchronized, or indicates a scanning mode, or indicates a deployment mode of the WiFiAP, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station and the target beacon frame transmission time TBTT;
and if the synchronization information is the time difference between the WiFi AP and the base station, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN and the target beacon frame transmission time TBTT of the base station includes:
calculating the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-10*(n+1)mod TBTT–delta;
wherein, Tread_beaconAnd (n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, and delta is a correction coefficient and is greater than or equal to 0.
With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner, the calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN, the time difference, and the target beacon frame transmission time TBTT of the base station includes:
calculating the transmission time of the beacon frame of the WiFiAP according to the following formula:
Tread beacon(n)=TBTT-(10*(n+1)-Tdiff)mod TBTT-delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, Tdiff is the time difference, and delta is a correction coefficient and is greater than or equal to 0.
With reference to the first aspect, or any one of the foregoing possible implementation manners, in a fifth possible implementation manner, the method further includes:
if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or,
if the base station indicates the deployment mode of the WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, determining that the current scanning mode is an active scanning mode, and when the deployment mode is that the base station is a macro base station and a plurality of WiFiAPs are configured under the macro base station, determining that the current scanning mode is a passive scanning mode;
activating a WiFi function to scan the WiFiAP according to the transmission time of the beacon frame, which specifically comprises the following steps:
and activating a WiFi function before the transmission time of the beacon frame, and scanning the WiFiAP according to the determined current scanning mode.
With reference to the first aspect, or any one of the foregoing possible implementation manners, in a sixth possible implementation manner, the method further includes:
if the beacon frame is received, initiating a process of establishing connection with the WiFi AP; or,
and if the beacon frame is not received within the specified time, closing the WiFi function and stopping scanning the WiFiAP.
A second aspect of the invention provides a method of scanning, the method comprising:
and sending synchronization information of the wireless fidelity WiFi access point AP and the base station to User Equipment (UE), wherein the synchronization information is used for the UE to obtain the transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFiAP according to the transmission time of the beacon frame.
In a first possible implementation manner of the second aspect, sending synchronization information of a WiFi access point AP and a base station to a user equipment UE includes:
and sending the synchronization information of the WiFiAP and the base station to the UE through a broadcast channel or a dedicated channel.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the method further includes:
the synchronization information is used for indicating that the WiFi AP and the base station are synchronized, or indicating a scanning mode, or indicating a deployment mode of the WiFi AP, and is used for the UE to calculate the transmission time of a beacon frame of the WiFi AP according to the system frame number SFN of the base station and the target beacon frame transmission time TBTT; or
The synchronization information is a time difference between the WiFi AP and the base station, and is used for the UE to calculate the transmission time of each beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
A third aspect of the present invention provides a UE, comprising:
the acquisition module is used for acquiring the synchronous information of the wireless fidelity WiFi access point AP and the base station;
the processing module is used for acquiring the transmitting time of the beacon frame of the WiFi AP according to the synchronization information acquired by the acquisition module;
and the scanning module is used for activating a WiFi function according to the transmission time of the beacon frame obtained by the processing module to scan the WiFiAP.
In a first possible implementation manner of the third aspect of the present invention, the obtaining module is configured to: and receiving the synchronization information of the WiFi AP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the processing module includes:
a first calculating unit, configured to calculate, if the synchronization information indicates that the WiFi AP and the base station are synchronized, or indicates a scanning manner, or indicates a deployment manner of the WiFi AP, a transmission time of a beacon frame of the WiFi AP according to a system frame number SFN and a target beacon frame transmission time TBTT of the base station;
and the second calculating unit is used for calculating the transmitting time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT if the synchronization information is the time difference between the WiFi AP and the base station.
With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner, the first calculating unit is configured to calculate a transmission time of a beacon frame of a WiFi AP according to the following formula:
Tread beacon(n)=TBTT-10*(n+1)mod TBTT–delta;
wherein, Tread beaconAnd (n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, and delta is a correction coefficient and is greater than or equal to 0.
With reference to the second possible implementation manner of the third aspect, in a fourth possible implementation manner, the second calculating unit is configured to calculate a transmission time of a beacon frame of a WiFi AP according to the following formula:
Tread beacon(n)=TBTT-(10*(n+1)–Tdiff)mod TBTT–delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, Tdiff is the time difference, and delta is a correction coefficient and is greater than or equal to 0.
With reference to the third aspect, or any one of the foregoing possible implementation manners of the third aspect, in a fifth possible implementation manner, the scanning module is further configured to:
before the WiFi function is activated to scan the WiFi AP before the emission time of the beacon frame, if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, determining that the current scanning mode is an active scanning mode, and when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station, determining that the current scanning mode is a passive scanning mode;
and scanning the WiFi AP according to the determined current scanning mode.
With reference to the third aspect, or any one of the foregoing possible implementation manners of the third aspect, in a sixth possible implementation manner, the UE further includes:
the establishing module is used for initiating a process of establishing connection with the WiFi AP if the beacon frame is received after the scanning module activates the WiFi function to scan the WiFi AP before the transmission time of the beacon frame;
or,
the scanning module is further configured to: and if the beacon frame is not received within the specified time, closing the WiFi function and stopping scanning the WiFi AP.
A fourth aspect of the present invention provides a base station, comprising:
the device comprises a sending module and a receiving module, wherein the sending module is used for sending synchronization information of a wireless fidelity WiFi access point AP and a base station to User Equipment (UE), and the synchronization information is used for the UE to obtain the transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
In a first possible implementation manner of the fourth aspect, the sending module is configured to send synchronization information of the WiFi AP and the base station to the UE through a broadcast channel or a dedicated channel.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the base station further includes:
an indication module, configured to indicate that the WiFi AP and the base station are synchronized, or indicate a scanning mode, or indicate a deployment mode of the WiFi AP, and configured to calculate, by the UE, transmission time of a beacon frame of the WiFi AP according to a system frame number SFN and a target beacon frame transmission time TBTT of the base station; or the time difference between the WiFi AP and the base station is used for calculating the transmission time of each beacon frame of the WiFi AP by the UE according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
A fifth aspect of the present invention provides a UE, comprising:
the system comprises a receiver, a wireless fidelity WiFi access point AP and a base station, wherein the receiver is used for acquiring synchronous information of the wireless fidelity WiFi access point AP and the base station;
and the processor is used for acquiring the transmission time of a beacon frame of the WiFi AP according to the synchronization information acquired by the receiver and activating a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
In a first possible implementation manner of the fifth aspect, the receiver is configured to receive synchronization information of the WiFi AP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the processor is specifically configured to:
if the synchronization information indicates that the WiFi AP and the base station are synchronized, or indicates a scanning mode, or indicates a deployment mode of the WiFi AP, calculating the emission time of a beacon frame of the WiFi AP according to a System Frame Number (SFN) of the base station and a target beacon frame transmission time (TBTT), and activating a WiFi function to scan the WiFi AP before the emission time of the beacon frame;
and if the synchronization information is the time difference between the WiFi AP and the base station, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT, and activating a WiFi function to scan the WiFi AP before the transmission time of the beacon frame.
With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a third possible implementation manner, the processor is specifically configured to: if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, determining that the current scanning mode is an active scanning mode, and when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station, determining that the current scanning mode is a passive scanning mode; acquiring the transmission time of a beacon frame of the WiFi AP according to the synchronization information acquired by the receiver; and scanning the WiFi AP according to the determined current scanning mode.
With reference to the fifth aspect or any one of the above possible implementation manners of the fifth aspect, in a fourth possible implementation manner, the processor is further configured to:
if the beacon frame is received, initiating a process of establishing connection with the WiFi AP; or if the beacon frame is not received within the specified time, the WiFi function is turned off and the WiFi AP is stopped being scanned.
A sixth aspect of the present invention provides a base station, comprising:
the device comprises a transmitter and a User Equipment (UE), wherein the transmitter is used for transmitting synchronization information of a wireless fidelity (WiFi) Access Point (AP) and a base station to the UE, and the synchronization information is used for the UE to obtain the transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
In a first possible implementation manner of the sixth aspect, the transmitter is configured to send synchronization information of the WiFi AP and the base station to the UE through a broadcast channel or a dedicated channel.
With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the transmitter is further configured to:
indicating an active scanning mode or a passive scanning mode and sending the active scanning mode or the passive scanning mode to the UE; or indicating the deployment mode of the WiFi AP in the base station to the UE, wherein the deployment mode is that the WiFi AP and the base station are co-located, or the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: the transmitting time of the beacon frame of the WiFiAP is calculated according to the synchronization information, and the WiFi function is activated according to the transmitting time to scan the WiFi AP, so that the scanning time is reduced, and the power consumption of the UE is reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention relates to a mobile network, and a WiFi AP is deployed in the mobile network. The mobile network includes but is not limited to: GSM (Global System for Mobile communications), UMTS (Universal Mobile Telecommunications System), LTE, and the like. The WiFi is a standard of WLAN (Wireless Local Access Network), and is a communication Network composed of a Wireless Network card and a WiFi AP. An AP, commonly referred to as a network bridge or access point, is a bridge between a traditional wired lan and a wireless lan and operates on the principle of a HUB or router with a built-in wireless transmitter. While the wireless network card is typically located in the user equipment UE responsible for receiving the signals transmitted by the AP. WiFi APs are access points for mobile users to access wired networks, mainly used in broadband homes, inside buildings and inside parks, typically covering distances from tens of meters to hundreds of meters. The deployment of WiFi APs within a mobile network includes, but is not limited to, the following two: the WiFi AP and the LTE small base station are co-sited, or a plurality of WiFi APs are deployed under the LTE macro base station. The LTE small base station comprises a Femto cell or a Pico cell, and the deployment of the plurality of WiFi APs under the macro base station means deployment of the plurality of WiFi APs under the coverage of the macro base station.
The UE in the embodiment of the present invention includes but is not limited to: notebook computers, mobile phone terminals, tablet computers, and the like. The UE may be a multi-mode terminal including a mobile network module and a WiFi transceiver. In general, the UE resides in the mobile network, and before the UE performs WiFi AP scanning, the WiFi function needs to be activated, that is, the WiFi transceiver is turned on, and after the scanning is finished, the WiFi transceiver is turned off to stop the WiFi AP scanning. The invention reduces the power consumption of the UE by shortening the activation time of the WiFi function and can effectively reduce the scanning time.
Referring to fig. 1, an embodiment of the present invention provides a scanning method, including:
101: acquiring synchronous information of a wireless fidelity WiFi access point AP and a base station;
102: acquiring the transmission time of a beacon frame of the WiFi AP according to the synchronization information;
103: and activating a WiFi function according to the transmission time of the beacon frame to scan the WiFi AP.
In this embodiment, the Beacon frame refers to a Beacon frame, and usually, the Transmission period of the Beacon frame is TBTT (TargetBeacon Transmission Times), and the base station periodically broadcasts and transmits the Beacon frame with TBTT as the period. The beacon frame includes, but is not limited to, the following information: MAC (media access Control) address of the AP, network name SSID (Service Set Identifier), supported rate, supported authentication method, encryption algorithm, beacon frame transmission interval, used channel, and the like.
Optionally, the beacon frame may be a next beacon frame of the current beacon frame of the WiFi AP, or may be a first beacon frame of the WiFi AP received by the UE before the WiFi AP communicates.
Optionally, the acquiring synchronization information of the WiFi access point AP and the base station includes:
and receiving the synchronization information of the WiFi AP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
In this embodiment, the synchronization information may be information for synchronizing the base station and the WiFi AP, and the synchronization may be one or any of the following: time synchronization, phase synchronization, frequency synchronization, signal synchronization, clock synchronization, frame synchronization. For example, the WiFi AP may detect a Preamble signal transmitted by a base station, determine a phase offset from the base station, determine a frequency offset from the base station according to the phase offset, perform time synchronization using the determined phase offset, and perform frequency synchronization using the frequency offset. The above process may be a processing procedure of underlying hardware, so-called frequency synchronization and time synchronization may also be collectively referred to as signal synchronization, and the time synchronization therein may be more specifically clock synchronization, and the mentioned time or clock may be year, month, hour, minute and second in the conventional sense, or may be a phase relationship in the signalology.
Optionally, obtaining the transmission time of the beacon frame of the WiFi AP according to the synchronization information includes:
if the synchronization information indicates that the WiFi AP and the base station are synchronized, or indicates a scanning mode, or indicates a deployment mode of the WiFi AP, calculating the transmission time of a beacon frame of the WiFi AP according to a System Frame Number (SFN) of the base station and target beacon frame transmission time (TBTT);
and if the synchronization information is the time difference between the WiFi AP and the base station, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
In this embodiment, the time difference may be one or any of the following: phase offset, frequency offset, signal offset, clock offset. In a broad sense, the above time can be understood as a concept of time in minutes and seconds; in a narrow sense, time difference can be understood as the notion of a phase, frequency, signal, frame, or clock in the signal.
Optionally, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN and the target beacon frame transmission time TBTT of the base station, including:
calculating the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-10*(n+1)mod TBTT–delta;
wherein, Tread beaconAnd (n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, and delta is a correction coefficient and is greater than or equal to 0.
Optionally, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN, the time difference, and the target beacon frame transmission time TBTT of the base station, including:
calculating the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-(10*(n+1)–Tdiff)mod TBTT–delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, n is the SFN of the base station, Tdiff is the time difference, and delta is a correction coefficient and is greater than or equal to 0.
Optionally, if the base station indicates that the scanning mode is the active scanning mode or the passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station.
Optionally, if the base station indicates a deployment mode of a WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, it is determined that the current scanning mode is an active scanning mode, and when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station, it is determined that the current scanning mode is a passive scanning mode.
Optionally, activating a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame specifically includes:
and activating the WiFi function before the transmission time of the beacon frame, and scanning the WiFi AP according to the determined current scanning mode.
In this embodiment, the UE does not need to monitor the transmission time of the beacon frame of the WiFi AP in multiple channels at the same time, that is, does not need to scan the WiFi AP for a long time to obtain the beacon frame of the WiFi AP, and does not need to generate a probe frame by itself to obtain the beacon frame of the WiFi AP. The UE only needs to acquire the synchronization information of the WiFi AP and the base station and calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information. And after the transmitting time is obtained, the UE activates the WiFi function according to the transmitting time and scans the WiFi AP, so that the electricity is saved and the scanning time is saved. For example, the UE may activate the WiFi function and scan the WiFi AP in a short time before the transmission time of the beacon frame, where the short time may be set according to an empirical value or a simulation result, which is not limited in the present invention.
Optionally, after activating the WiFi function to scan the WiFi AP according to the transmission time of the beacon frame, the method further includes:
if the beacon frame is received, initiating a process of establishing connection with the WiFi AP; or,
and if the beacon frame is not received within the specified time, closing the WiFi function and stopping scanning the WiFi AP.
The main body of the method provided by the embodiment is specifically UE, and the method can be applied to various wireless communication systems, such as LTE and the like.
According to the scanning method provided by the embodiment, the transmission time of the beacon frame of the WiFi AP is calculated according to the synchronization information, and the WiFi function is activated before the transmission time to scan the WiFi AP, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced. For example, when the frame boundaries of the WiFi AP and the base station are aligned according to the synchronization information, the transmission time of the beacon frame of the WiFi AP is calculated according to the SFN and the TBTT of the base station; when the frame boundaries of the WiFi AP and the base station are not aligned, the transmission time of the beacon frame of the WiFi AP is calculated according to the SFN, the time difference and the TBTT of the base station, and a complete solution is provided. Furthermore, the current scanning mode can be determined according to the indication of the base station, so that the scanning is carried out according to the mode, and the scanning efficiency is further improved. When the beacon frame is successfully received, connection is established, and the WiFi function is closed and the WiFi AP is stopped scanning if the beacon frame is not received within the specified time, so that the power consumption of the UE is further saved.
The present embodiment further provides another scanning method, including:
sending synchronization information of a wireless fidelity (WiFi) Access Point (AP) and a base station to User Equipment (UE), wherein the synchronization information is used for the UE to obtain the transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
The execution subject of the other scanning method is specifically a base station.
Optionally, sending synchronization information of the WiFi access point AP and the base station to the user equipment UE includes:
and sending the synchronization information of the WiFi AP and the base station to the UE through a broadcast channel or a dedicated channel.
Optionally, the another scanning method further includes:
indicating an active scanning mode or a passive scanning mode and sending the active scanning mode or the passive scanning mode to the UE; or,
and indicating the deployment mode of the WiFi AP in the base station to the UE, wherein the deployment mode is that the WiFi AP and the base station are co-located, or the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station.
In the another scanning method provided in this embodiment, synchronization information is sent to the UE so that the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information, and activates the WiFi function to scan the WiFi AP before the transmission time, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced.
Referring to fig. 2, another embodiment of the present invention provides a scanning method, including:
201: and the base station in the mobile network sends the synchronization information of the wireless fidelity WiFi access point AP and the base station to the user equipment UE.
Specifically, the base station may send WiFi AP information to the UE through a broadcast channel or a dedicated channel, where the WiFi AP information includes synchronization information of the WiFi AP and the base station. Wherein the WiFi AP information includes but is not limited to the following: SSID (WiFi access point identification), channel list, scanning mode, whether the WiFi AP and the LTE small base station are co-located or not, and the like.
202: and the UE receives the synchronization information of the WiFi AP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
Specifically, the base station may send WiFi AP information through a broadcast channel or a dedicated channel, where the WiFi AP information carries synchronization information of the WiFi AP and the base station, and accordingly, the UE may obtain the synchronization information of the WiFi AP and the base station from the received WiFi AP information.
203: the base station indicates an active scanning mode or a passive scanning mode and sends the active scanning mode or the passive scanning mode to the UE; or indicating the deployment mode of the WiFi AP in the base station to the UE, wherein the deployment mode is that the WiFi AP and the base station are co-located, or the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station.
In this embodiment, the active scanning mode refers to that the UE actively generates and sends a Probe Response Frame, and scans the WiFi AP by receiving a Probe Response Frame returned by the WiFi AP. The probe response frame includes, but is not limited to, the following information: MAC address of AP, network name SSID, supported rates, supported authentication methods, encryption algorithm, beacon frame transmission interval, used channel, etc. The passive scanning mode means that the WiFi AP periodically broadcasts Beacon frames, and the UE finishes scanning the WiFi AP by receiving the Beacon frames. Whether the mode is an active scanning mode or a passive scanning mode, after the scanning is successful, the Authentication and Association processes are executed between the UE and the base station, and then the UE and the WiFi AP establishing the Association relationship transmit data for communication.
204: if the base station indicates that the scanning mode is the active scanning mode or the passive scanning mode, determining that the scanning mode of the base station is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, determining that the scanning mode of the base station is an active scanning mode, and when the deployment mode is that a plurality of WiFi APs are configured under a macro base station, determining that the scanning mode of the base station is a passive scanning mode.
For a scene that the WiFi AP and the base station are co-located, the scanning mode is preferably configured to be an active scanning mode, so that interference can be reduced; for a scenario in which the WiFi APs and the base station do not share a station, that is, a scenario in which a plurality of WiFi APs are configured under the macro base station, the scanning mode is preferably configured as a passive scanning mode.
In this embodiment, the interaction processes of 201 and 202, and the interaction processes of 203 and 204 may not be sequential in time, or may be performed synchronously, and the specific order is not limited in the present invention.
205: and the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information.
The step may specifically include:
if the synchronization information indicates that the frame boundaries of the WiFi AP and the base station are aligned, or indicates a scanning mode, or indicates a deployment mode of the WiFi AP, determining that the WiFi AP and the base station are synchronized, and calculating the transmission time of a beacon frame of the WiFi AP according to the system frame number SFN of the base station and the target beacon frame transmission time TBTT;
and if the synchronization information is the time difference between the WiFi AP and the base station, determining that the frame boundaries of the WiFi AP and the base station are not aligned, and calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
Referring to fig. 3, a Frame of SFN (System Frame Number) =0 of the mobile cell where the UE is located is synchronized with the Beacon Frame of the WiFi AP, which represents time alignment. For example, the TBTTs of 1024 frames and 100 WiFi APs of the mobile cell are aligned end to end.
In this embodiment, in a scenario where it is determined that the WiFi AP and the base station are synchronized, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN and the target beacon frame transmission time TBTT of the base station may include:
calculating the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-10*(n+1)mod TBTT–delta;
wherein, Tread beaconAnd (n) is the transmission time of a beacon frame of the WiFi AP, TBTT is the transmission time of a target beacon frame, n is the SFN of the base station, and delta is a correction coefficient and is more than or equal to 0.
Referring to fig. 4, when a frame of SFN =0 of a mobile cell in which the UE is located and a Beacon frame of the WiFi AP are not aligned in time, it may be understood that frame boundaries of the WiFi AP and the base station are not aligned.
In this embodiment, in a scenario where frame boundaries of the WiFi AP and the base station are not aligned, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference, and the target beacon frame transmission time TBTT, may include:
calculating the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-(10*(n+1)-Tdiff)mod TBTT-delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, TBTT is the transmission time of the target beacon frame, n is the SFN of the base station, Tdiff is the time difference, and delta is a correction coefficient and is more than or equal to 0, and the unit ms.
In the above two scenarios, the value of delta can be set as required. When the value is 0, it represents that the WiFi function is activated at the transmission time of the beacon frame of the WiFi ap, in this embodiment, in view of the time for starting the WiFi receiver and switching, in order to improve the scanning efficiency and accuracy, preferably, the value of the delta may be set to a number greater than 0, such as 10ms, and the like, which is not specifically limited by the present invention.
206: the UE activates the WiFi function to scan for WiFi APs before the transmission time of the beacon frame.
207: if the UE receives the beacon frame, initiating a process of establishing connection with the WiFi AP; or, if the beacon frame is not received within the specified time, the WiFi function is turned off and the WiFi AP is stopped being scanned, and the process ends.
In the method provided by this embodiment, the base station sends the synchronization information, and the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information, and activates the WiFi function to scan the WiFi AP before the transmission time, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced. Calculating the transmission time of a beacon frame of the WiFi AP according to the SFN and the TBTT of the base station when the frame boundaries of the WiFi AP and the base station are aligned according to the synchronization information; when the frame boundaries of the WiFi AP and the base station are not aligned, the transmission time of the beacon frame of the WiFi AP is calculated according to the SFN, the time difference and the TBTT of the base station, and a complete solution is provided. Furthermore, the current scanning mode can be determined according to the indication of the base station, so that the scanning is carried out according to the mode, and the scanning efficiency is further improved. When the beacon frame is successfully received, connection is established, and the WiFi function is closed and the WiFi AP is stopped scanning if the beacon frame is not received within the specified time, so that the power consumption of the UE is further saved.
Referring to fig. 5, still another embodiment of the present invention provides a UE, including:
an obtaining module 501, configured to obtain synchronization information of an AP and a base station of a WiFi access point;
a processing module 502, configured to obtain the transmission time of the beacon frame of the WiFi AP according to the synchronization information obtained by the obtaining module 501;
a scanning module 503, configured to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame obtained by the processing module 502.
The obtaining module 501 may be configured to: and receiving the synchronization information of the WiFi AP and the base station, which is sent by the base station through a broadcast channel or a dedicated channel.
The processing module 502 may include:
a first calculating unit, configured to calculate, if the synchronization information indicates that the WiFi AP and the base station are synchronized, or indicates a scanning mode, or indicates a deployment mode of the WiFi AP, a transmission time of a beacon frame of the WiFi AP according to a system frame number SFN and a target beacon frame transmission time TBTT of the base station;
and the second calculating unit is used for calculating the transmitting time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT if the synchronization information is the time difference between the WiFi AP and the base station.
Further, in an embodiment, the first calculating unit is configured to calculate the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-10*(n+1)mod TBTT-delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, TBTT is the transmission time of the target beacon frame, n is the SFN of the base station, and delta is a correction coefficient and is greater than or equal toAt 0.
Further, in another embodiment, the second calculating unit is configured to calculate the transmission time of the beacon frame of the WiFi AP according to the following formula:
Tread beacon(n)=TBTT-(10*(n+1)–Tdiff)mod TBTT–delta;
wherein, Tread beacon(n) is the transmission time of the beacon frame of the WiFi AP, TBTT is the transmission time of the target beacon frame, n is the SFN of the base station, Tdiff is the time difference, and delta is a correction coefficient and is larger than or equal to 0.
In this embodiment, the scanning module 503 is specifically configured to:
before the WiFi function is activated to scan the WiFi AP before the emission time of the beacon frame, if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, determining that the current scanning mode is an active scanning mode when the deployment mode is that the WiFi AP and the base station are co-located, and determining that the current scanning mode is a passive scanning mode when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station;
and scanning the WiFi AP according to the determined current scanning mode.
In this embodiment, the UE may further include:
an establishing module, configured to initiate a connection establishment process with the WiFi AP if the scanning module 503 receives the beacon frame after activating the WiFi function to scan the WiFi AP before the transmission time of the beacon frame;
or,
the scanning module 503 is further configured to: and if the beacon frame is not received within the specified time, turning off the WiFi function and stopping scanning the WiFi AP.
The UE provided in this embodiment may perform the actions performed by the UE in the above method embodiments, such as the scanning method embodiment shown in fig. 1 and the scanning method embodiment shown in fig. 2, and the detailed processes are described in the method embodiments and are not described herein again.
In the UE provided in this embodiment, the transmission time of the beacon frame of the WiFi AP is calculated according to the synchronization information, and the WiFi function is activated before the transmission time to scan the WiFi AP, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced. Calculating the transmission time of a beacon frame of the WiFi AP according to the SFN and the TBTT of the base station when the frame boundaries of the WiFi AP and the base station are aligned according to the synchronization information; when the frame boundaries of the WiFi AP and the base station are not aligned, the transmission time of the beacon frame of the WiFi AP is calculated according to the SFN, the time difference and the TBTT of the base station, and a complete solution is provided. Furthermore, the current scanning mode can be determined according to the indication of the base station, so that the scanning is carried out according to the mode, and the scanning efficiency is further improved. When the beacon frame is successfully received, connection is established, and the WiFi function is closed and the WiFi AP is stopped scanning if the beacon frame is not received within the specified time, so that the power consumption of the UE is further saved.
Referring to fig. 6, another embodiment of the present invention further provides a base station, including:
a sending module 601, configured to send synchronization information of the WiFi access point AP and the base station to the user equipment UE, where the synchronization information is used for the UE to obtain the transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
The sending module 601 is configured to send synchronization information of the WiFi AP and the base station to the UE through a broadcast channel or a dedicated channel.
Further, the base station may further include:
an indicating module 602, configured to indicate an active scanning mode or a passive scanning mode and send the mode to the UE; or indicating the deployment mode of the WiFi AP in the base station to the UE, wherein the deployment mode is that the WiFi AP and the base station are co-located, or the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station.
The indicating module 602 may further be configured to indicate:
the WiFi AP and the base station are synchronous, or a scanning mode is indicated, or a deployment mode of the WiFi AP is indicated, and the WiFi AP and the base station are used for the UE to calculate the transmission time of a beacon frame of the WiFiAP according to the system frame number SFN of the base station and the target beacon frame transmission time TBTT; or
And the time difference between the WiFi AP and the base station is used for calculating the transmission time of each beacon frame of the WiFi AP by the UE according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT.
The base station in this embodiment may be a base station in any base station, including but not limited to a base station in GSM, UMTS, LTE, and so on.
The base station provided in this embodiment may perform the actions performed by the base station in the above method embodiments, and the detailed process is described in the method embodiments and is not described herein again.
In the base station provided by this embodiment, the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information by sending the synchronization information to the UE, and activates the WiFi function to scan the WiFi AP before the transmission time, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced.
Referring to fig. 7, still another embodiment of the present invention further provides a user equipment UE, including:
a receiver 701, configured to obtain synchronization information of a WiFi access point AP and a base station;
the processor 702 is configured to obtain the transmission time of the beacon frame of the WiFi AP according to the synchronization information obtained by the receiver 701, and activate the WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
The receiver 701 is specifically configured to receive WiFi AP information sent by the base station through a broadcast channel or a dedicated channel, and acquire synchronization information of the WiFi AP and the base station from the WiFi AP information.
Wherein, the processor 702 is specifically configured to:
if the synchronization information indicates that the WiFi AP and the base station are synchronized, or indicates a scanning mode, or indicates a deployment mode of the WiFi AP, calculating the transmission time of a beacon frame of the WiFi AP according to a system frame number SFN of the base station and a target beacon frame transmission time TBTT, and activating a WiFi function to scan the WiFi AP before the transmission time of the beacon frame; or
And if the synchronization information is the time difference between the WiFi AP and the base station, calculating the transmission time of the beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT, and activating a WiFi function to scan the WiFi AP before the transmission time of the beacon frame.
Wherein the processor 702 is further configured to:
before the WiFi function is activated to scan the WiFi AP before the emission time of the beacon frame, if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, determining that the current scanning mode is an active scanning mode when the deployment mode is that the WiFi AP and the base station are co-located, and determining that the current scanning mode is a passive scanning mode when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station;
accordingly, the processor 702 scans the WiFi AP specifically according to the determined current scanning manner.
Wherein the processor 702 is further configured to:
if the base station indicates that the scanning mode is an active scanning mode or a passive scanning mode, determining that the current scanning mode is the scanning mode indicated by the base station; or if the base station indicates the deployment mode of the WiFi AP, when the deployment mode is that the WiFi AP and the base station are co-located, determining that the current scanning mode is an active scanning mode, and when the deployment mode is that the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station, determining that the current scanning mode is a passive scanning mode;
acquiring the transmission time of a beacon frame of the WiFi AP according to the synchronization information acquired by the receiver;
and scanning the WiFi AP according to the determined current scanning mode.
The UE provided in this embodiment may perform the actions performed by the UE in the foregoing method embodiments, and details of the process are described in the method embodiments and are not described herein again.
In the UE provided in this embodiment, the transmission time of the beacon frame of the WiFi AP is calculated according to the synchronization information, and the WiFi function is activated before the transmission time to scan the WiFi AP, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced. Calculating the transmission time of a beacon frame of the WiFi AP according to the SFN and the TBTT of the base station when the frame boundaries of the WiFi AP and the base station are aligned according to the synchronization information; when the frame boundaries of the WiFi AP and the base station are not aligned, the transmission time of the beacon frame of the WiFi AP is calculated according to the SFN, the time difference and the TBTT of the base station, and a complete solution is provided. Furthermore, the current scanning mode can be determined according to the indication of the base station, so that the scanning is carried out according to the mode, and the scanning efficiency is further improved. When the beacon frame is successfully received, connection is established, and the WiFi function is closed and the WiFi AP is stopped scanning if the beacon frame is not received within the specified time, so that the power consumption of the UE is further saved.
Referring to fig. 8, still another embodiment of the present invention further provides a base station, including:
a transmitter 801, configured to send synchronization information of the WiFi access point AP and the base station to the user equipment UE, where the synchronization information is used for the UE to obtain a transmission time of a beacon frame of the WiFi AP so as to activate a WiFi function to scan the WiFi AP according to the transmission time of the beacon frame.
The transmitter 801 is specifically configured to transmit synchronization information of the WiFi AP and the base station to the UE through a broadcast channel or a dedicated channel.
Further, the transmitter 801 is further configured to:
indicating an active scanning mode or a passive scanning mode and sending the active scanning mode or the passive scanning mode to the UE; or indicating the deployment mode of the WiFi AP in the base station to the UE, wherein the deployment mode is that the WiFi AP and the base station are co-located, or the base station is a macro base station and a plurality of WiFi APs are configured under the macro base station.
Further, the base station includes a processor:
the system comprises a base station and a UE (user equipment), wherein the base station is used for indicating the WiFi AP and the base station to be synchronous, or indicating a scanning mode, or indicating a deployment mode of the WiFi AP, and the UE is used for calculating the transmission time of a beacon frame of the WiFi AP according to a system frame number SFN (single frame number) of the base station and a target beacon frame transmission time TBTT (time transfer time transport table); or
The time difference is used for indicating the time difference between the WiFi AP and the base station, and the UE is used for calculating the emission time of each beacon frame of the WiFi AP according to the system frame number SFN of the base station, the time difference and the target beacon frame transmission time TBTT
The base station in this embodiment may be a base station in any base station, including but not limited to a base station in GSM, UMTS, LTE, and so on.
The base station provided in this embodiment may execute the method provided in the foregoing method embodiment, and the detailed process is described in the method embodiment and is not described herein again.
In the base station provided by this embodiment, the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information by sending the synchronization information to the UE, and activates the WiFi function to scan the WiFi AP before the transmission time, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced.
Referring to fig. 9, another embodiment of the present invention also provides a scanning system including: UE 901 and base station 902.
The UE 901 may be a UE provided in any of the embodiments described above, and the base station 902 may be a base station provided in any of the embodiments described above, for details, see the embodiments described above, and are not described herein again.
The system provided by this embodiment may execute the method provided by any of the above method embodiments, and the detailed process is described in the method embodiments and is not described herein again.
In the system provided by this embodiment, the base station sends the synchronization information to the UE, and the UE calculates the transmission time of the beacon frame of the WiFi AP according to the synchronization information, and activates the WiFi function to scan the WiFi AP before the transmission time, so that the scanning time is effectively reduced, and the power consumption of the UE is reduced.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.