WO2022002156A1 - 用于用户设备的网络接入设备切换方法 - Google Patents

用于用户设备的网络接入设备切换方法 Download PDF

Info

Publication number
WO2022002156A1
WO2022002156A1 PCT/CN2021/103743 CN2021103743W WO2022002156A1 WO 2022002156 A1 WO2022002156 A1 WO 2022002156A1 CN 2021103743 W CN2021103743 W CN 2021103743W WO 2022002156 A1 WO2022002156 A1 WO 2022002156A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
signal strength
user equipment
network access
access device
Prior art date
Application number
PCT/CN2021/103743
Other languages
English (en)
French (fr)
Inventor
孔繁华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022002156A1 publication Critical patent/WO2022002156A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/302Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • H04W36/322Reselection being triggered by specific parameters by location or mobility data, e.g. speed data by location data

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a method for switching network access equipment for user equipment.
  • Wireless access point is the access point for wireless devices (such as user equipment) to enter the wired network, which is equivalent to the communication bridge between the wireless network and the wired network. It is the core device for forming a wireless local area network (WLAN).
  • WLAN wireless local area network
  • AP mainly provides mutual access between wireless workstations and wired LAN. Wireless workstations within the coverage of AP signals can communicate with each other through it. It is mainly used in broadband homes, inside buildings, campuses, campuses, warehouses, factories and other places where wireless monitoring is required. Typical distances cover tens of meters to hundreds of meters, and some can also be used for long-distance transmission.
  • the main technology is the IEEE802.11 standard common to WLAN.
  • the network access device is used to connect a device to the network, which not only includes a simple wireless access point AP, but also is a general term for devices such as wireless routers (including wireless gateways and wireless bridges).
  • the network access device scan is performed only when the signal strength of the network access device AP received by the user equipment is less than a predetermined threshold and toggle.
  • the above-mentioned network access device switching method mainly has the following problems:
  • a network access device switching method for an indoor area includes at least two network access devices, the at least two network access devices include a first network access device and a second network access device, and the user equipment is connected to the first network access device.
  • the method includes acquiring the current position of the user equipment in the indoor area; judging whether the current position is located in a second area in the indoor area, where the second signal strength of the second network access device in the second area is higher than that of the first network access device If the current location is located in the second area, switch the user equipment from connecting with the first network access device to connecting with the second network access device.
  • the network access device switching method proposed in the present application determines whether to switch the user equipment from the first network access device to Connect to the second network access device to ensure that the user equipment is connected to the network access device with the strongest signal strength in a timely manner to improve user experience.
  • a solution can simplify the judgment of network access device handover. In the process of use, it is not necessary to measure the received signal strength between the user equipment and each network access device. Yes, so that the efficiency of network access device handover can be improved, thereby improving user experience.
  • the second signal strength detected by the user equipment is higher than the signal strength of other network access devices except the second network access device in the at least two network access devices; And/or, in the first area, the first signal strength detected by the user equipment is higher than that of other network access devices except the first network access device among the at least two network access devices detected by the user equipment. signal strength. Therefore, it is ensured that the user equipment can connect to the network access device with the strongest signal strength in time.
  • the method before acquiring the current position of the user equipment in the indoor area, the method further includes: detecting the signal strength of each area in the indoor area; dividing the indoor area into at least a first area and a first area based on the signal strength of each area Second area.
  • dividing the indoor area into at least a first area and a second area based on the signal strength of each area includes: dividing the area with the first signal strength higher than the second signal strength into the first area; dividing the second area into a first area; A region with a signal strength higher than the first signal strength is divided into a second region. Therefore, by judging the first area or the second area of the indoor area where the user equipment is located, it is ensured in time that the user equipment is connected to the network access device with the strongest signal strength, and the user experience is improved.
  • dividing the indoor area into at least a first area and a second area based on the signal strength of each area includes: dividing the area where the first signal strength is higher than the second signal strength and the first signal strength and the second signal strength The area where the difference between the strengths is greater than the first threshold is divided into a first area; the area where the second signal strength is higher than the first signal strength and the difference between the second signal strength and the first signal strength is greater than the second threshold is divided into the second area.
  • dividing the indoor area into at least a first area and a second area based on the signal strength of each area further comprising: determining that the absolute value of the difference between the first signal strength and the second signal strength is not greater than the first area
  • the three-threshold area is set as the first pre-handover sub-area.
  • the setting of the pre-switching sub-area can avoid errors caused by WiFi positioning and frequent switching caused by user movement.
  • the first threshold, the second threshold, and the third threshold are the same; or, the first threshold and the second threshold are different.
  • the threshold can be set according to the specific situation of the indoor room type, so as to avoid that in the same area, for example, in the same room, there are both the first area, the pre-switching sub-area, and the second area, which will lead to network failure. Switch frequently.
  • the method further includes: judging whether the current location is located in the first pre-handover sub-area; and in the case that the current location is located in the first pre-handover sub-area, maintaining the connection between the user equipment and the first network access device . Thus, frequent handover of the user equipment network is avoided.
  • the at least two network access devices include a third network access device, the detected signal strength of the third network access device is the third signal strength, and the indoor area is at least divided based on the signal strength of each area are the first area and the second area, further comprising: setting the area where the third signal strength is the highest signal strength and the difference between the third signal strength and the next highest signal strength is greater than the fourth threshold as the third area; In one area, the first signal strength detected by the user equipment is the highest signal strength, and the difference between the first signal strength and the next highest signal strength is greater than the first threshold; in the second area, the second signal strength detected by the user equipment The strength is the highest signal strength, and the difference between the second signal strength and the second highest signal strength is greater than the second threshold; the area where the absolute value of the difference between the third signal strength and the first signal strength is less than the fifth threshold is set as the first Two pre-switching sub-areas, the third signal strength and the first signal strength detected in the second pre-switching sub-area are the signal strengths with the
  • the first two signal strengths are sorted; in the first pre-switching sub-region, the detected first signal strength and the second signal strength are the signal strengths located at the top two positions in descending order of the signal strength. Therefore, by judging different areas of the indoor area where the user equipment is located (for example, the first area, the second area, the third area, the first pre-handover sub-area, the second pre-handover sub-area, or the third pre-handover sub-area), timely Ensure that the user device is connected to the network access device with the strongest signal strength to improve the user experience.
  • the setting of the pre-switching sub-area can avoid errors caused by WiFi positioning and frequent switching caused by user movement.
  • the method further includes: determining whether the current location is located in the second area In the pre-handover sub-area; if the current location is in the second pre-handover sub-area, switch the user equipment from connecting with the second network access device to connecting with the first network access device or connecting with the third network access device.
  • the method further includes: judging whether the current position is located in the first pre-switching sub-area or the third pre-switching sub-area; when the current position is located in the first pre-switching sub-area or the third pre-switching sub-area Next, maintain the connection between the user equipment and the second network access device. Thus, frequent switching caused by user movement is avoided.
  • switching the user equipment from connecting with the first network access device to connecting with the second network access device includes: in response to the user equipment moving from the fourth area to the second network access device. an area, switching the user equipment from being connected to the first network access device to being connected to the second network access device; or, in response to the user equipment being located in the first area for a duration longer than the first preset time period, switching the user equipment from being connected to the second network access device.
  • connection of the first network access device is switched to the connection with the second network access device; or, in response to the user equipment being located in the first area and the user equipment being in a static state for a duration longer than the second preset duration, switching the user equipment from being connected to the second network access device.
  • a network access device connection is switched to be connected to a second network access device.
  • the method further includes: displaying a network access device layout diagram on the display unit of the user equipment, where the network access device layout diagram at least includes: a first area, a second area, a first network access device at least one of the identifier of the user equipment, the identifier of the second network access device, and the current location of the user equipment.
  • the method before displaying the network access device layout diagram on the display unit of the user equipment, the method further includes: receiving a network access device layout diagram sent by another electronic device.
  • acquiring the current location of the user equipment in the indoor area includes: acquiring the current location of the user equipment in the indoor area every preset time interval. Therefore, it is avoided that the constant positioning affects the normal Internet access of the user, and the power consumption is saved at the same time.
  • an apparatus for switching network access equipment in an indoor area includes at least two network access devices, the at least two network access devices include a first network access device and a second network access device, and the user equipment is connected to the first network access device.
  • the device for switching network access equipment includes: a location acquisition module for acquiring the current location of the user equipment in the indoor area; a second area determination module for judging whether the current location is located in a second area in the indoor area, and in the second area the user equipment detects The second signal strength of the received second network access device is higher than the first signal strength of the first network access device; the switching module, if the current location is located in the second area, connects the user equipment from the first network access device to Switch to connecting with the second network access device.
  • the network access device switching device proposed in this application determines whether to switch the user equipment from the first network access device to Connect to the second network access device to ensure that the user equipment is connected to the network access device with the strongest signal strength in a timely manner to improve user experience.
  • a solution can simplify the judgment of network access device handover. In the process of use, it is not necessary to measure the received signal strength between the user equipment and each network access device. Yes, so that the efficiency of network access device handover can be improved, thereby improving user experience.
  • the second signal strength detected by the user equipment is higher than the signal strength of other network access devices except the second network access device in the at least two network access devices; And/or, in the first area, the first signal strength detected by the user equipment is higher than that of other network access devices except the first network access device among the at least two network access devices detected by the user equipment. signal strength. Therefore, it is ensured that the user equipment can connect to the network access device with the strongest signal strength in time.
  • the apparatus for switching network access equipment further includes: a signal strength detection module, which detects the signal strength of each area in the indoor area; and an area division module, which divides the indoor area into at least the first area based on the signal strength of each area and the second area.
  • the area dividing module of the network access device switching apparatus divides the area where the first signal strength is higher than the second signal strength into the first area; and divides the area where the second signal strength is higher than the first signal strength for the second area. Therefore, by judging the first area or the second area of the indoor area where the user equipment is located, it is ensured in time that the user equipment is connected to the network access device with the strongest signal strength, and the user experience is improved.
  • the area division module of the network access device switching apparatus divides the area where the first signal strength is higher than the second signal strength and the difference between the first signal strength and the second signal strength is greater than the first threshold into areas.
  • the first area; the area where the second signal strength is higher than the first signal strength and the difference between the second signal strength and the first signal strength is greater than the second threshold is divided into a second area.
  • the area dividing module of the network access device switching apparatus sets the area where the absolute value of the difference between the first signal strength and the second signal strength is not greater than the third threshold as the first pre-handover sub-area .
  • the setting of the pre-switching sub-area can avoid errors caused by WiFi positioning and frequent switching caused by user movement.
  • the area division module of the network access device switching apparatus determines whether the current location is located in the first pre-handover sub-area; Connection of network access devices. Thus, frequent handover of the user equipment network is avoided.
  • a network access device switching apparatus for an indoor area wherein the indoor area includes at least two network access devices, and the at least two network access devices include a first network access device.
  • a network access device, a second network access device, and a third network access device, and the user equipment is connected to the first network access device.
  • the apparatus for switching network access equipment includes: a location acquisition module, which acquires the current location of the user equipment in the indoor area; a second area determination module, which determines whether the current location is located in a second area in the indoor area, and the user equipment detects that in the second area The second signal strength of the second network access device is higher than the first signal strength of the first network access device; the switching module, if the current location is located in the second area, switches the user equipment from connecting with the first network access device. to connect with the second network access device; the area division module sets the area where the third signal strength detected by the user equipment is the highest signal strength, and the difference between the third signal strength and the next highest signal strength is greater than the fourth threshold. is determined as the third area; the detected signal strength of the third network access device is the third signal strength.
  • the first signal strength detected by the electronic device is the highest signal strength, and the difference between the first signal strength and the next highest signal strength is greater than the first threshold; in the second area, the first signal strength detected by the electronic device The second signal strength is the highest signal strength, and the difference between the second signal strength and the second highest signal strength is greater than the second threshold; the absolute value of the difference between the third signal strength and the first signal strength detected by the user equipment is smaller than the fifth
  • the area of the threshold is set as the second pre-switching sub-area, and the third signal strength and the first signal strength detected in the second pre-switching sub-area are the signal strengths of the first two positions in the order of signal strength from high to low;
  • the area where the absolute value of the difference between the third signal strength and the second signal strength detected by the user equipment is smaller than the sixth threshold is set as the third pre-handover sub-area, and the detected third signal strength in the third pre-handover sub-area , the second signal strength is the signal strength in the first two positions in the order of signal strength from high
  • a user equipment comprising: a processor and a storage medium, the storage medium is coupled to the processor, the storage medium is used for storing program codes, and when the processor is stored from the storage medium The program code is read in the user equipment to cause the user equipment to perform any of the methods described above.
  • a machine-readable storage medium where program codes are stored on the machine-readable storage medium, and when the program codes are executed on a machine, the machine can execute any one of the above method.
  • a computer program product includes instructions, when the instructions are executed on a computer, the computer is made to implement any one of the above methods.
  • a chip in a seventh aspect, according to some embodiments of the present application, includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute any of the above methods.
  • FIG. 1(a) shows a schematic diagram of an application scenario in which an indoor area includes 2 AP handover provided according to some embodiments of the present application;
  • FIG. 1(b) shows a schematic diagram of an application scenario in which an indoor area includes 3 AP handover provided according to some embodiments of the present application;
  • FIG. 2(a) shows that the indoor area provided according to some embodiments of the present application includes an AP-side area and a pre-handover area of 2 APs;
  • FIG. 2(b) shows that the indoor area provided according to some embodiments of the present application includes an AP side area and a pre-handover area of 3 APs;
  • FIG. 3 shows a block diagram of user equipment provided according to some embodiments of the present application.
  • Fig. 4(a) is a schematic diagram showing the working principle of acoustic wave detection provided according to some embodiments of the present application.
  • FIG. 4(b) is a schematic diagram showing the working principle of the depth camera provided according to some embodiments of the present application.
  • FIG. 5(a) shows obtaining the location of the user equipment according to the fingerprint library method provided by some embodiments of the present application
  • Fig. 5(b) shows the obtaining of the position of the user equipment according to the ranging and angle measuring method provided by some embodiments of the present application
  • FIG. 6(a) shows a schematic diagram 1 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 6(b) shows a second schematic diagram of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 6(c) shows a schematic diagram 3 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 6(d) shows a schematic diagram 4 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 6(e) shows a schematic diagram V of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 6(f) shows a schematic diagram 6 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 7(a) shows a schematic diagram 1 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 7(b) shows a second schematic diagram of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 7(c) shows a schematic diagram 3 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 7(d) shows a schematic diagram 4 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • Fig. 7(e) shows schematic diagram 5 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • Fig. 7(f) shows a schematic diagram 6 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 7(g) shows a schematic diagram 7 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 7(h) shows a schematic diagram 7 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application;
  • FIG. 8 shows a schematic diagram of a handover method in which an indoor area includes 2 APs provided according to some embodiments of the present application;
  • FIG. 9 shows a schematic diagram of a handover method in which an indoor area includes at least 3 APs provided according to some embodiments of the present application.
  • FIG. 10 shows a layout diagram of user equipment provided according to some embodiments of the present application.
  • FIG. 11 shows a schematic structural diagram of an electronic device provided according to some embodiments of the present application.
  • module may refer to, may refer to, or include an application specific integrated circuit (ASIC), an electronic circuit, a processor (shared) executing one or more software or firmware programs (shared, dedicated, or group) and/or memory (shared, dedicated, or group), combinational logic, and/or other suitable components that provide the described functionality, or may be an application specific integrated circuit (ASIC), electronic circuits, processors (shared, dedicated, or group) and/or memory (shared, dedicated, or group) executing one or more software or firmware programs, combinational logic circuits, and/or devices that provide the functions described part of other suitable components.
  • ASIC application specific integrated circuit
  • ASIC application specific integrated circuit
  • FIG. 1( a ) shows a schematic diagram of an application scenario in which an indoor area includes 2 AP handover provided according to some embodiments of the present application.
  • FIG. 1( b ) shows a schematic diagram of an application scenario in which an indoor area includes 3 AP handover provided according to some embodiments of the present application.
  • the communication system 10 shown in FIG. 1(a) and FIG. 1(b) includes a user equipment 100, an AP 200 and/or other electronic devices.
  • FIG. 1(a) and FIG. 1(b) only show 2 APs and 3 APs respectively, those skilled in the art can understand that the communication system may also include scenarios with more than 3 APs, for example, 4 APs , 5, etc.
  • User equipment 100 may be for portable or mobile electronic devices, cell phones, personal digital assistants, cellular phones, handheld PCs, wearable devices (eg, smart watches, smart bracelets, etc.), portable media players, handheld devices, navigation devices , servers, network access devices, graphics devices, video game devices, set-top boxes, laptop devices, virtual reality and/or augmented reality devices, IoT devices, industrial control devices, in-vehicle infotainment devices, streaming client devices, E-books, reading devices, POS machines or other devices.
  • portable or mobile electronic devices cell phones, personal digital assistants, cellular phones, handheld PCs, wearable devices (eg, smart watches, smart bracelets, etc.), portable media players, handheld devices, navigation devices , servers, network access devices, graphics devices, video game devices, set-top boxes, laptop devices, virtual reality and/or augmented reality devices, IoT devices, industrial control devices, in-vehicle infotainment devices, streaming client devices, E-books, reading devices, POS machines or other devices.
  • the AP 200 is an access point for a wireless device (such as the user equipment 100) to enter the wired network, which is equivalent to a bridge for communication between the wireless network and the wired network, and is the core device for forming a wireless local area network (WLAN).
  • WLAN wireless local area network
  • AP 200 mainly provides mutual access between wireless workstations and wired LAN. Wireless workstations within the AP 200 signal coverage can communicate with each other through it. It is mainly used in homes, buildings, campuses, campuses, warehouses, Factory and other places that need wireless monitoring. Typical distances cover tens of meters to hundreds of meters, and can also be used for long-distance transmission.
  • the main technology is the IEEE802.11 standard common to WLAN.
  • the AP 200 is used as an example of a network access device.
  • the network access device may also include one or more of a modem, a wireless router (for example, a wireless gateway, a wireless bridge, etc.), and a wireless customer premise equipment (Customer Premise Equipment, CPE).
  • a wireless router for example, a wireless gateway, a wireless bridge, etc.
  • a wireless customer premise equipment Customer Premise Equipment, CPE
  • the user equipment 100 can connect with the AP in a manual or automatic manner.
  • the user equipment 100 starts to scan the AP, and the user manually selects the AP to be connected in the list of scanned APs, and then establishes a connection with the AP.
  • the user equipment 100 connects with the AP in an automatic manner, the user equipment 100 can connect with the AP with the strongest signal strength.
  • the user equipment 100 determines whether to perform AP switching according to the current location of the user equipment 100 and the AP connected to the user equipment 100 The user equipment 100 can switch to the AP with the strongest signal strength in time, thereby improving user experience. How to perform AP handover will be specifically described below.
  • the AP scan and handover are usually performed only when the AP signal strength received by the user equipment 100 is less than a predetermined threshold.
  • the user equipment cannot access the Internet normally; at the same time, before the predetermined threshold is reached, even if there is an AP with stronger signal strength, the user equipment 100 will not automatically scan and switch to on the AP.
  • the communication system 10 proposed in the present application divides the indoor area into different virtual areas, such as the AP side area and the pre-handover area, according to the strength of the signals from different APs, and then divides the indoor area into different virtual areas, such as the AP side area and the pre-handover area.
  • AP side area and pre-handover area and the AP connected to the user equipment 100, and determine whether to perform AP handover.
  • the signal strength of the AP is the strongest, and the signal strength difference between the AP and the AP with the second strongest signal strength is greater than a threshold (for example, the threshold may be 10dB, 8dB, etc.).
  • the threshold may be 10dB, 8dB, etc.
  • the thresholds in the AP-side region and the pre-handover region may not be equal.
  • the threshold in the AP-side area is the first threshold
  • the threshold in the pre-handover area is the second threshold
  • the first threshold and the second threshold are not equal
  • the AP and the signal strength are the first
  • the signal strength difference of the AP with the second strongest signal strength is greater than the first threshold.
  • the signal strength difference between the AP with the strongest signal strength and the AP with the second strongest signal strength is less than the second threshold value.
  • the following describes the acquisition of the pre-handover area and the AP side area.
  • obtain the signal strengths from different APs received at each position point in the indoor area and obtain an iso-signal strength curve according to the above signal strength, wherein the strengths of the two strongest signals obtained at each position point of the iso-signal strength curve are equal.
  • the two strongest signals obtained at some point on the signal strength curves are from AP1 and AP2, respectively, and the signal strengths from AP1 and AP2 are equal (eg -55dBm or other); then, at the signal strengths Move either side of the curve by one-half of the threshold (e.g.
  • the closed-loop area enclosed by the position curve and the edge of the indoor area is the pre-switching area.
  • the area other than the pre-handover area in the indoor area is the AP side area including different APs.
  • FIG. 2( a ) and FIG. 2( b ) show that an indoor area provided according to some embodiments of the present application includes an AP-side area and a pre-handover area of two APs.
  • the indoor area 300 includes three areas, the AP1 side area located on the AP1 side, the pre-handover areas AP1-AP2 located within the two dotted lines, and the AP2 side area located on the AP2 side.
  • the signal strength received by the user equipment 100 from AP1 is the strongest, and the difference between the signal strengths from AP1 and AP2 is greater than the threshold; in the area on the side of AP2, the user equipment 100 receives the signal from AP2 The strength is the strongest, and the signal strength difference from AP2 and AP1 is greater than the threshold; in the pre-handover area AP1-AP2, the absolute value of the signal strength difference from AP1 and AP2 is less than the threshold.
  • the pre-handover area is named after the AP pair with the strongest signal strength and the second strongest signal strength in the area. For example, in the pre-handover area AP1-AP2, the AP pair with the strongest signal strength and the second strongest signal strength includes AP1 and AP2.
  • the AP1 side area located on the AP1 side is an example of the first area.
  • the signal strength from AP1 detected by the user equipment is higher than the signal from AP2 detected by the user equipment strength.
  • the AP2 side area located on the AP2 side is used as an example of the second area.
  • the second signal strength from AP2 detected by the user equipment is higher than the first signal strength from AP1.
  • the pre-handover areas AP1-AP2 located within the two dotted lines are used as examples of the first pre-handover sub-areas.
  • the absolute values of the signal strength differences from AP1 and AP2, respectively, are smaller than the threshold.
  • the signal strength from AP1 and the signal strength from AP2 may be detected by the user equipment itself, or after the signal strength is collected and detected by other equipment with the function of measuring signal strength, the sent to the user device.
  • the thresholds in the AP1 side area, the AP2 side area and the pre-handover area may be equal, for example, the AP1 side area, the pre-handover area and the AP2 side area are connected in succession.
  • the thresholds in the AP1-side area, the AP2-side area, and the pre-handover area may not be equal, for example, the AP1-side area, the pre-handover area, and the AP2-side area are not connected in succession.
  • the signal strength of the first AP for example, AP1
  • the signal strength of the second AP is greater than the signal strength of the first AP by a second threshold
  • the two thresholds may be different.
  • the threshold can be set according to the specific situation of the indoor room type, so as to avoid that in the same area, such as the same room, there are both the first AP area, the pre-switching area, and the second AP side area, resulting in Frequent switching of the network.
  • the absolute values of the signal strength differences from AP1 and AP2, respectively, in the pre-handover area are smaller than the third threshold.
  • the third threshold may be different from the first threshold or the second threshold, and may not be greater than the smallest of the first threshold and the above-mentioned second threshold.
  • the signal strength of the first AP is greater than that of the second AP by 1db (the first threshold); and in the second AP side area, the signal strength of the second AP is greater than that of the second AP.
  • the signal strength of an AP reaches 2.5db (the second threshold); when setting the pre-handover area, the third threshold can be set to a maximum of 1.5db.
  • each AP side area and pre-handover area can be correspondingly set according to the indoor layout and facility conditions.
  • the second threshold is 2.5db and the third threshold is 1.5db
  • a "vacuum" area with a width of 1db will appear on the side of the iso-intensity line close to AP2.
  • This "vacuum” area is It does not belong to the pre-handover area, nor does it belong to the second AP side area.
  • the user can make the "vacuum” area cover the indoor wall or furniture and other areas that do not need to consider AP switching.
  • the AP1-side area, the AP2-side area, and the pre-handover sub-areas AP1-AP2 may be obtained by measuring the signal strength of the user equipment itself. In some other embodiments, these areas may also be sent to the user equipment after the signal strength is detected by the device having the function of measuring the signal strength and the calculation function, and each area is obtained through calculation.
  • AP1 and AP2 are devices that the user equipment can detect/discover indoors. In some other embodiments, more than two APs can be discovered indoors, but AP1 and AP2 are network access devices authorized to access the user equipment.
  • the pre-handover area may also be omitted.
  • the pre-handover area in an indoor environment, if the difference between the received signal strengths of the two APs is relatively small, for example, 1db, then the pre-handover area can be omitted.
  • each AP side area after the indoor area if the user equipment 100 is currently connected to AP1, and the user equipment 100 enters other AP side areas other than the AP1 side area, for example, the AP2 side area, then it can be determined that the user equipment 100 is connected to the AP2 side area.
  • the AP1 connection switches to connect with other APs, for example with AP2.
  • the boundary (two dashed lines) between the pre-handover area and the AP side area in FIG. 2( a ) will be specifically described below.
  • the signal strengths of APs received by each location in the indoor area 300 can be calculated and obtained based on the following WiFi signal attenuation formula:
  • PL represents the transmission loss, and the unit is calculated in dB;
  • f c represents the frequency of the wireless signal, the unit is calculated in MHz;
  • d represents the transmission distance (for example, the distance between the AP 200 and the user equipment 100), and the unit is calculated in km.
  • the initial transmit power of the AP before transmission is the inherent transmit power of the factory.
  • the signal strength of the AP received by each location point in the indoor area 300 is equal to the inherent transmit power of the AP minus the transmission loss, and the unit is dBm.
  • the wall in the indoor area 300 also affects signal attenuation.
  • the attenuation of the signal by the wall is 20dB. In some other embodiments, the attenuation of the signal by the wall may be determined by the thickness and material of the wall.
  • the solid circle 303 receives the signal strength difference from AP1 and AP2 equal to zero or close to zero; then on both sides of these signal strength curves are shifted by one-half of the threshold (for example, the threshold is 10 dB, and the threshold is 5dB, etc.) (the specific distance can be calculated according to the above formula 1, for example, substitute PL equal to 5dB into formula 1, find d, d is the distance corresponding to 5dB, the unit is km), and in the indoor area
  • the position curve is drawn on 300, namely the two dotted lines shown in Fig. 2(a).
  • AP1's signal strength is stronger than AP2
  • AP2's signal strength is stronger than AP1.
  • the absolute value of the signal strength difference received from AP1 and AP2 by each point on each position curve is equal to the threshold, for example, the absolute value of the signal strength difference received from AP1 and AP2 by the solid circle 302 is equal to 10dB, 12dB or other.
  • Each point on the left position curve in the area close to the AP1 side receives the signal strength difference from AP1 and AP2 greater than the threshold, for example, the solid circle 301 receives the signal strength difference from AP1 and AP2 greater than 10dB, 12dB or other.
  • Each point on the right side of the curve near AP2 receives a signal strength difference from AP2 and AP1 greater than the threshold, for example, the solid circle 304 receives a signal strength difference from AP2 and AP1 greater than 10dB, 12dB or others.
  • the absolute value of the signal strength difference received by each point in the two position curves (two dashed lines) from AP1 and AP2 is less than the threshold, for example, the absolute value of the signal strength difference received from AP1 and AP2 by the solid circle 305 is less than 10dB, 12dB or others.
  • the three areas in the indoor area 300 are also determined accordingly.
  • the closed-loop area enclosed by the position curve (two dashed lines) and the edge of the indoor area 300 is the pre-switching area AP1-AP2;
  • the closed-loop area enclosed by the left position curve (left dashed line) and the edge of the indoor area 300 is AP1 side area;
  • the closed-loop area enclosed by the right position curve (right dashed line) and the edge of the indoor area 300 is the AP2 side area.
  • the absolute value of the received signal strength difference from AP1 and AP2 is less than the threshold (eg 10dB, 12dB or others); in the AP1 side area, the received signal strength difference from AP1 and AP2 is greater than Threshold value (eg 10dB, 12dB or others); in the AP2 side area, received signal strength difference from AP2 and AP1 is greater than the threshold value (eg 10dB, 12dB or others); on the two position curves (two dashed lines), received The difference in signal strength to AP1 and AP2 is equal to a threshold (eg, 10dB, 12dB, or other).
  • a threshold eg, 10dB, 12dB, or other
  • FIG. 2(b) shows that the indoor area provided according to some embodiments of the present application includes an AP-side area and a pre-handover area of 3 APs.
  • the indoor area 300 includes four areas, the AP1 side area on the AP1 side, the AP2 side area on the AP2 side, the AP3 side area on the AP3 side, and the Y-shaped pre-handover area in the middle.
  • the pre-handover area includes three pre-handover sub-areas AP1-AP2, pre-handover sub-areas AP2-AP3 and pre-handover sub-areas AP1-AP3.
  • the pre-handover sub-region is named after the AP pair with the strongest signal strength and the second strongest signal strength in the region.
  • the AP pair with the strongest signal strength and the second strongest signal strength includes AP1 and AP2; in the pre-handover sub-area AP2-AP3, the signal strength is the strongest and the signal strength is the second strongest.
  • the AP pair includes AP2 and AP3; in the pre-handover sub-area AP1-AP3, the AP pair with the strongest signal strength and the second strongest signal strength includes AP1 and AP3.
  • the AP1 side area located on the AP1 side is an example of the first area.
  • the signal strength from AP1 detected by the user equipment is higher than that of AP1 to AP3 detected by the user equipment
  • the AP2 side area located on the AP2 side is used as an example of the second area.
  • the second signal strength from AP2 detected by the user equipment is higher than the first signal strengths from AP1 to AP3 other than AP2 detected by the user equipment, eg, AP1, AP3.
  • the AP3 side area located on the AP3 side is used as an example of the third area.
  • the second signal strength from AP3 detected by the user equipment is higher than the first signal strengths from AP1 to AP3 other than AP3, such as AP1 and AP2, detected by the user equipment.
  • the signal strengths from AP1, AP2, and AP3 may be detected by the user equipment itself, or may be collected and detected by other equipment with the function of measuring signal strength, and then sent to user equipment.
  • AP1, AP2 and AP3 are devices that a user can detect/discover indoors. In some other embodiments, more than three APs can be discovered indoors, but AP1 and AP2 are network access devices authorized to access the user equipment.
  • the pre-handover sub-areas AP1-AP2 are used as examples of the first pre-handover sub-area.
  • the absolute values of the signal strength differences from AP1 and AP2, respectively, are smaller than the threshold.
  • the pre-handover sub-areas AP1-AP3 serve as examples of the second pre-handover sub-area.
  • the AP pair with the strongest signal strength and the second strongest signal strength includes AP2 and AP3, and the absolute value of the signal strength difference from AP1 and AP3, respectively, is smaller than the threshold.
  • the pre-handover sub-areas AP2-AP3 serve as examples of the third pre-handover sub-area.
  • the AP pair with the strongest signal strength and the second strongest signal strength includes AP2 and AP3, and the absolute value of the signal strength difference from AP2 and AP3, respectively, is less than the threshold.
  • the AP1 side area, the AP2 side area, the AP3 side area, the pre-handover sub-area AP1-AP2, the pre-handover sub-area AP1-AP3, and the pre-handover sub-area AP2-AP3 may be measured by the user equipment itself. signal strength and calculated. In some other embodiments, these areas may also be sent to the user equipment after the signal strength is detected by the device having the function of measuring the signal strength and the calculation function, and each area is obtained through calculation.
  • the number of pre-handover sub-areas is related to the location setting of the AP in the indoor area 300 .
  • the indoor area 300 includes at least 3 APs
  • at least two pre-handover sub-areas can be formed.
  • the positions of the three APs AP1 , AP2 , AP3 ) in FIG. 2( b ) are set in a triangular shape, three pre-switching sub-regions (pre-switching sub-regions) can be formed.
  • the positions of the three APs may also be set on the same straight line, so that two pre-handover sub-regions can be formed.
  • part of the pre-handover sub-region may also be omitted.
  • the pre-handover sub-region can be omitted.
  • the signal strength received by the user equipment 100 from the AP is the strongest, and the difference between the signal strengths from the AP and the AP with the second strongest signal strength is greater than the threshold.
  • the user equipment 100 receives the strongest signal strength of AP1
  • the difference between the signal strengths from AP1 and AP2 is greater than the threshold
  • the signal strength of AP1 and AP2 is greater than the signal strength of AP3, or the signal strength from AP1
  • the signal strength difference with AP3 is greater than the threshold, and the signal strengths of AP1 and AP3 are greater than the signal strength of AP2.
  • the AP2 side area and the AP3 side area please refer to the above analogy for the AP1 side area, which will not be repeated here.
  • the signal strength difference from two APs in the corresponding AP pair is less than a threshold, wherein the signal strength from two APs in the corresponding AP pair is greater than that from the three APs except the two APs.
  • Signal strength of APs other than the AP For example, in the pre-handover sub-area AP1-AP2, the corresponding AP pairs are AP1 and AP2, the absolute value of the difference between the two signal strengths from AP1 and AP2 is less than the threshold, where the signal strengths from AP1 and AP2 in the AP pair are Signal strength greater than AP3.
  • the pre-handover sub-areas AP2-AP3 and the pre-handover sub-areas AP1-AP3 please refer to the pre-handover sub-areas AP1-AP2 and so on, which will not be repeated here.
  • the thresholds of the AP1 side area, the AP2 side area, the AP3 side area and the pre-handover area can be equal, for example, the AP1 side area, the AP2 side area, the AP3 side area and the pre-handover area are connected one after another.
  • the thresholds of the AP1-side area, the AP2-side area, the AP3-side area, and each pre-handover area may also be unequal, for example, the AP1-side area, the AP2-side area, the AP3-side area, and the pre-handover area are not connected in succession.
  • the setting method is similar to that of the embodiment shown in FIG. 2(a), and will not be repeated here. With this setting, flexible AP settings can be made according to the indoor layout and facility conditions.
  • Each point on each location curve receives a difference in signal strength from the AP with the strongest signal strength and the AP with the second strongest signal strength equal to a threshold (eg, 10dB, 12dB, or other), eg, filled circle 314 , the APs with the strongest signal strength and the second strongest signal strength at this point include AP1 and AP2, then the signal strength difference from AP1 and AP2 at this point is equal to 10dB, 12dB or other, the six position curves (solid lines) on the Each point receives the signal strength difference from the AP with the strongest signal strength and the AP with the second strongest signal strength is less than a threshold, such as the solid circle 313, the AP with the strongest signal strength and the second strongest signal strength at this point includes AP1 and AP2, then the absolute value of the difference in signal strength from AP1 and AP2 at that point is less than 10dB, 12dB or otherwise.
  • a threshold eg, 10dB, 12dB, or other
  • the signal strength difference between the AP and the AP with the second strongest signal strength is greater than the threshold, for example, the signal strength from AP1 and the AP with the second strongest signal strength on the solid circle 311
  • the signal strength difference is greater than 10 dB; the signal strength difference from AP2 and the AP with the second strongest signal strength on the solid circle 315 is greater than 10 dB.
  • the four areas in the indoor area 300 are also determined accordingly.
  • the Y-shaped pre-handover area in order to further divide each pre-handover sub-area (for example, the pre-handover sub-area AP1-AP2, the pre-handover sub-area AP2-AP3, the pre-handover sub-area AP1-AP3), in the pre-handover sub-area AP1-AP3 In the area, the area is divided according to the two APs with the strongest signal strength and the second strongest signal strength received at each point.
  • the pre-handover area find the point where the number of APs with the second strongest signal strength is 2.
  • the three solid lines formed by these points further divide the pre-handover area into three pre-handover sub-areas AP1-AP2, pre-handover sub-areas AP2-AP3, and pre-handover sub-areas AP1-AP3.
  • APs from the strongest signal strength and the second strongest signal strength include AP1 and AP2.
  • the closed-loop area enclosed by each two adjacent non-parallel solid lines and the edge of the indoor area among the six boundary lines of the Y-type pre-switching area is the AP side area.
  • Each two of the three solid lines in the pre-switching area, and each two of the six boundary lines of the Y-shaped pre-switching area are parallel to each other, and the closed-loop area enclosed by the edge of the indoor area is each Pre-switch sub-regions.
  • the absolute value of the signal strength difference received from AP1 and AP2 is less than a threshold (eg 10dB, 12dB or other); in the pre-handover sub-areas AP1-AP3, the received signals from AP1 and AP3 The absolute value of the signal strength difference is less than the threshold value (such as 10dB, 12dB or other); in the pre-handover sub-region AP2-AP3, the absolute value of the signal strength difference received from AP2 and AP3 is less than the threshold value (such as 10dB, 12dB or other) ); in the AP1 side area, the signal strength difference between AP1 and the AP with the second strongest signal strength is greater than a threshold (for example, 10dB, 12dB or other); in the AP2 side area, the received signal strength difference from AP2 and the second signal strength The signal strength difference of the strong AP is greater than the threshold (eg 10dB, 12dB or other); in the threshold (eg 10dB, 12dB or other); in
  • the area where the user equipment 100 is currently located (for example, the AP side area or the pre-handover area) is obtained based on the WiFi positioning of the user equipment 100 to determine whether to perform AP handover.
  • the rule of AP handover judgment is, based on the current location of the user equipment, to judge whether it is located in the area related to the connected AP, so as to judge whether to perform AP handover. If the current location of the user equipment is in the area related to the connected AP, then do not perform AP handover; if the current location of the user equipment is not in the area related to the connected AP, then perform AP handover and switch it to on the AP associated with the current location.
  • the "area related to the connected AP" includes the AP side area corresponding to the AP and the pre-handover area corresponding to the AP pair including the AP.
  • the AP side area corresponding to the AP it can be understood that in the AP side area, the signal strength received by the user equipment from the AP is the strongest, and the signal strength difference between the AP and the AP with the second strongest signal strength is greater than the threshold ;
  • the pre-handover area corresponding to the AP pair including the AP it can be understood that in the pre-handover area, the AP is included in the two APs with the strongest signal strength and the second strongest signal strength received by the user equipment, and The signal strength difference between the AP with the strongest signal strength and the AP with the second strongest signal strength is less than the threshold.
  • AP related to the current location it can be understood that if the current location is in an AP side area, then the AP related to the current location is the AP corresponding to the AP side area; if the current location is in a pre-handover area , then the APs related to the current location are two APs in the AP pair corresponding to the pre-handover area.
  • the "area related to the connected AP" includes the AP-side area corresponding to the AP and the pre-handover sub-area corresponding to the AP pair combination including the AP.
  • the AP side area corresponding to the AP it can be understood that in the AP side area, the signal strength received by the user equipment from the AP is the strongest, and the signal strength difference between the AP and the AP with the second strongest signal strength is greater than the threshold ;
  • the pre-handover sub-area corresponding to the combination of AP pairs including the AP it can be understood that in this pre-handover sub-area, the two APs with the strongest signal strength and the second strongest signal strength received by the user equipment include this pre-handover sub-area.
  • the AP pair combination corresponding to the AP includes at least two AP pairs, and each AP pair includes the AP.
  • AP related to the current location it can be understood that if the current location is in an AP side area, then the AP related to the current location is the AP corresponding to the AP side area; if the current location is in a pre-handover sub-area then, the APs related to the current location are two APs in the AP pair corresponding to the pre-handover sub-area.
  • the indoor area includes two APs
  • the AP side area corresponding to AP1 is the AP1 side area
  • the AP1 pair combination is AP1-AP2
  • the pre-handover area corresponding to the AP1 pair combination is the pre-handover area AP1-AP2.
  • the area related to the connected AP1 includes the AP1 side area corresponding to AP1 and the pre-handover areas AP1-AP2 corresponding to the AP pair including AP1.
  • the AP will not be switched; if the current position of the user equipment is in the AP2 side area, then , since the current location of the user equipment is not in the area related to AP1, switch the AP from AP1 to AP2 related to the current location (AP2 side area), where the current location is the AP2 side area, then The related AP is AP2, and in the area on the side of AP2, the signal strength received by the user equipment from AP2 is the strongest.
  • the area related to the connected AP1 includes the AP1 side area corresponding to AP1 and the first pre-handover sub-area corresponding to the combination of AP pairs including AP1, including the AP pair of AP1 Including AP1 and AP2, AP1 and AP3, then, the AP pair combination including AP1 includes the AP1 and AP2 pair, and the AP1 and AP3 pair, and the first pre-handover sub-area corresponding to the AP pair combination including AP1 includes the pre-handover sub-area AP1-AP2, pre-handover sub-areas AP1-AP3.
  • the AP is not switched.
  • the current location of the user equipment is located in the area on the side of AP2
  • switch the AP since the current location of the user equipment is not located in the area related to AP1, switch the AP, and switch the AP from AP1 to the AP2 related to the current location (the area on the side of AP2), where , when the current position is the AP2 side area, then the AP related to it is AP2, and in the AP2 side area, the user equipment receives the strongest signal strength of AP2.
  • the current location of the user equipment is located in the area on the side of AP3, then, since the current location of the user equipment is not located in the area related to AP1, switch the AP, and switch the AP from AP1 to AP3 related to the current location (the area on the side of AP3), where , when the current location is in the area on the side of AP3, then the AP related to it is AP3, and in the area on the side of AP3, the signal strength received by the user equipment from AP3 is the strongest.
  • the AP is switched, and the AP is randomly switched from AP1 to the current position (pre-handover sub-area).
  • AP2-AP3 related AP2 or AP3, wherein, when the current location is the pre-handover sub-area AP2-AP3, then the associated AP is AP2 or AP3, and in the pre-handover sub-area AP2-AP3, the user equipment
  • the received signal strength of AP2 or AP3 is stronger than that of AP1.
  • FIG. 2( a ) and FIG. 2( b ) describe the AP switching rules in the case where the indoor area includes 2 APs and 3 APs, respectively.
  • the area on the left side of the pre-handover area AP1-AP2 is the area on the AP1 side corresponding to AP1
  • the area on the right side of the pre-handover area AP1-AP2 is the area on the AP2 side corresponding to AP2.
  • the areas related to the connected AP1 are the AP1 side area and the pre-handover area AP1-AP2.
  • the user equipment 100 switches from connecting with AP1 to connecting with AP1.
  • the area between the pre-handover sub-area AP1-AP2 and the pre-handover sub-area AP1-AP3 is the area on the AP1 side
  • the area between the pre-handover sub-area AP1-AP2 and the pre-handover sub-area AP2-AP3 The area on the AP2 side is the area on the AP2 side
  • the area between the pre-handover sub-handover areas AP1-AP3 and the pre-handover sub-handover areas AP2-AP3 is the AP3 side area.
  • the areas related to the connected AP1 are the AP1 side area, the pre-handover sub-areas AP1-AP2, and the pre-handover sub-areas AP1-AP3.
  • the user equipment 100 is not located in the area related to the connected AP1.
  • the connection is switched to the AP2 connection related to the current location (related to the AP2 side area). In the AP2 side area, the signal strength received by the user equipment from AP2 is the strongest.
  • the user equipment 100 switches from the connection with AP1 to the connection with AP3 related to the current location (related to the AP3 side area).
  • the signal strength received by the user equipment from AP3 is the strongest.
  • the user equipment 100 randomly switches from the connection with AP1 to the connection with AP2 or AP3 related to the current location (pre-handover sub-area AP2-AP3).
  • the user equipment receives AP2 or AP3 The signal strength is stronger than that of AP1.
  • the current location of the user equipment 100 is in the AP1 side area or the pre-handover sub-area AP1-AP2 or the pre-handover sub-area AP1-AP3, then, since the current location is in the area related to the connected AP1 (the AP1 side area and the pre-handover sub-area AP1-AP3 Area AP1-AP2, pre-handover sub-area AP1-AP3), do not switch AP.
  • the user equipment 100 can actively perform AP switching during the moving process or after moving for a period of time, so that the user equipment 100 can switch to the AP with the strongest signal strength in time, the user experience is good, and the resource utilization rate is good. high.
  • the user equipment 100 connected to AP1 as an example, as mentioned above, when the user equipment 100 moves from the AP1 side area to the AP2 side area, the user equipment 100 actively switches from the connection with AP1 to the AP2 connection, and in the AP2 side area, The signal strength received by the user equipment 100 from AP2 is the strongest.
  • the setting of the pre-switching area can avoid errors caused by WiFi positioning and frequent switching caused by user movement.
  • the above embodiments describe the solution for determining whether to switch the AP mainly based on the location of the user equipment 100 (relative to the AP). Such a solution can simplify the judgment of AP handover. In the process of use, it is not necessary to measure the received signal strength between the user equipment and each AP, but only to determine which area the current position of the user equipment is located in, thereby improving the AP handover. efficiency to improve user experience.
  • FIG. 3 shows a block diagram of a user equipment 100 provided according to some embodiments of the present application.
  • the user equipment 100 may include one or more processors 102 , a system control logic 108 connected to at least one of the processors 102 , a system memory 104 connected to the system control logic 108 , and the system control logic 108
  • a non-volatile memory (NVM) 106 is connected, and a network interface 110 is connected to the system control logic 108 .
  • the network interface 110 may include a Wi-Fi module.
  • Processor 102 may include one or more single-core or multi-core processors.
  • Processor 102 may include any combination of general-purpose processors and special-purpose processors (eg, graphics processors, application processors, baseband processors, etc.).
  • system control logic 108 may include any suitable interface controller to provide any suitable interface to at least one of processors 102 and/or any suitable device or component in communication with system control logic 108 .
  • system control logic 108 may include one or more memory controllers to provide an interface to system memory 104 .
  • System memory 104 may be used to load as well as store data and/or instructions.
  • memory 104 of device 100 may comprise any suitable volatile memory, such as suitable dynamic random access memory (DRAM).
  • DRAM dynamic random access memory
  • NVM/memory 106 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • NVM/memory 106 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as HDD (Hard Disk Drive, hard disk drive), CD (Compact Disc) , CD-ROM) drive, at least one of DVD (Digital Versatile Disc, Digital Versatile Disc) drive.
  • the NVM/memory 106 may comprise a portion of storage resources installed on the device of the device 100, or it may be accessed by the device, but not necessarily part of the device. For example, NVM/storage 106 may be accessed over the network via network interface 110 .
  • system memory 104 and NVM/memory 106 may include temporary and permanent copies of instructions 120, respectively.
  • the instructions 120 , hardware, firmware, and/or software components thereof may additionally/alternatively reside in the system control logic 708 , the network interface 710 , and/or the processor 702 .
  • the system memory 104 may include an indoor area acquisition module 121 , an AP location acquisition module 122 , a user equipment location acquisition module 123 , an AP side area acquisition module 124 , a pre-handover area acquisition 125 , and an AP handover judgment module 126 . It should be noted that the "acquisition" may be obtained through the calculation of the module itself, or obtained through input from another party, such as input from the cloud or another user device.
  • the indoor area acquisition module 121 is used to acquire the specific structure of the indoor area, such as a floor plan.
  • Indoor areas can be acquired by acoustic detection and sensors, as well as depth cameras or other means. In other embodiments, the indoor area may also be obtained according to an existing floor plan.
  • the indoor area can be acquired by sonic detection combined with sensors.
  • the sensor of the user equipment 100 includes an acceleration sensor, a gyroscope sensor or others. Among them, the acceleration sensor can determine the acceleration direction through three dimensions; the gyroscope sensor can measure the direction and movement trajectory.
  • the indoor area is to be acquired, the user holds the user equipment 100 and walks around the boundary of the indoor area, obtains the rough boundary contour of the indoor area through the sensor of the user equipment 100, and then obtains the distance between the user and the wall through sound wave detection, The obtained rough boundary contour of the indoor area is corrected to obtain the final specific structure of the indoor area, such as a floor plan.
  • the architecture shown in FIG. 3 may also be implemented as a SoC (System on Chip, system on chip), an integrated circuit (IC), or a collection of ICs (eg, a chip set), or the like.
  • SoC System on Chip, system on chip
  • IC integrated circuit
  • collection of ICs eg, a chip set
  • FIG. 4( a ) shows the working principle of acoustic detection provided according to some embodiments of the present application.
  • the ultrasonic transmitter emits sound waves in a certain direction and starts timing at the same time.
  • the ultrasonic wave propagates in the air medium and returns after encountering obstacles.
  • the ultrasonic receiver stops timing immediately after receiving the reflected wave, and then according to The propagation speed of the sound wave and the time recorded by the timer are calculated to obtain the distance between the launch point and the obstacle, such as the distance between the user and the wall.
  • the indoor area can be acquired by a depth camera. Please refer to Fig. 4(b) below to illustrate the acquisition of the indoor area through the depth camera.
  • FIG. 4( b ) illustrates acquiring an indoor area by means of a depth camera provided according to some embodiments of the present application.
  • the user equipment 100 uses dual cameras to photograph the indoor area, and then calculates the distance of the object through the triangle principle.
  • the straight line B in Figure 4(b) the angle between the straight line B and the other two sides (such as ⁇ angle) are known angles, then the length and angle of any side in each triangle can be calculated by the triangle principle, and then Get indoor area by side length.
  • FIG. 3 Please continue to refer to FIG. 3 to illustrate other commands of the system memory 104 , such as obtaining AP location 122 , obtaining UE location 123 , obtaining AP side area 124 , obtaining pre-handover area 125 , and AP handover determination 126 .
  • the AP location acquisition module 122 is used to acquire the corresponding location of each AP in the indoor area. Obtaining the AP location 122 may be by manually inputting the location and number of the corresponding AP in the obtained indoor area by the user. In other embodiments, obtaining AP location 122 may also be automatically generated by an application. For example, enter the indoor area in the application, the application will output the location and number of APs according to the optimal situation.
  • the user equipment location acquisition module 123 is configured to acquire the specific location of the user equipment in the indoor area.
  • the location of the user equipment can be obtained through WiFi positioning, such as a fingerprint library method or a ranging method.
  • the location of the user equipment may also be obtained according to multi-scheme fusion positioning.
  • WiFi positioning may be combined with other positioning technologies (eg, Bluetooth, infrared, acoustic waves, sensors, etc.) to perform fusion positioning to improve positioning accuracy.
  • the location of the user equipment may be obtained through a fingerprint library method. Please refer to FIG. 5( a ) below to illustrate obtaining the location of the user equipment through the fingerprint library method.
  • FIG. 5( a ) shows the acquisition of the location of the user equipment according to the fingerprint library method provided by some embodiments of the present application.
  • FIG. 5(a) shows the acquisition of the location of the user equipment according to the fingerprint library method provided by some embodiments of the present application.
  • FIG. 5(a) shows the acquisition of the location of the user equipment according to the fingerprint library method provided by some embodiments of the present application.
  • uniformly select location points for the indoor area (refer to the small solid squares in Figure 5(a) ) ) to obtain the signal strengths of the two APs received at the selected location to establish a fingerprint database.
  • the location of the user equipment can then be determined according to the signal strengths of the two APs received by the user.
  • FIG. 5( a ) only shows the case of two APs, but those skilled in the art can understand that the case of three or more APs such as three may also be included.
  • the number of selected location points for the indoor area can be determined by the user. The selected location points can also be selected non-uniformly.
  • the location of the user equipment may be obtained by a ranging method.
  • FIG. 5( b ) shows the acquisition of the position of the user equipment according to the ranging and goniometric method provided by some embodiments of the present application.
  • the distance between the AP and the user equipment is determined according to the round-trip propagation time of the WiFi signal, for example, the distance between the AP and the user equipment is determined by multiplying the propagation time by the speed of light.
  • the relative angle between the AP and the user equipment is determined according to the multiple antennas, and then the position of the user equipment is determined based on the distance and the relative angle.
  • the present application determines whether to switch the AP scheme by acquiring the location of the user equipment and judging the location of the user equipment 100 relative to the AP. Compared with using the signal measurement method to determine whether to perform AP handover, this solution can simplify the determination of AP handover, and improve handover efficiency and user experience.
  • the AP-side area acquisition module 124 and the pre-handover area acquisition module 125 are respectively configured to divide the indoor area into an AP-side area and a pre-handover area according to the signal strengths of different APs in the indoor area.
  • the following describes acquiring the pre-handover area and acquiring the AP side area.
  • draw an iso-signal strength curve such as -55dBm or other
  • shift the threshold by half such as Threshold is 10dB or other
  • draw the position curve on the indoor area draw the position curve on the indoor area.
  • the closed-loop area enclosed by the position curve and the edge of the indoor area is the pre-switching area.
  • the area other than the pre-handover area in the indoor area is the AP side area including different APs.
  • the AP side area including different APs.
  • the AP handover judgment module 126 is configured to perform AP handover judgment according to the situation of the APs connected to the user equipment in different areas of the indoor area where the user equipment is currently located.
  • the AP handover judgment rule is to judge whether the user equipment is located in an area related to the connected AP based on the current location of the user equipment, so as to judge whether to perform the AP handover. If the current location of the user equipment is located in the area related to the connected AP, then do not switch the AP; if the current location of the user equipment is not located in the area related to the connected AP, then switch the AP to switch it to the current location related to the connected AP location-related APs.
  • the area related to the connected AP1 includes the AP1 side area corresponding to AP1 and the pre-handover areas AP1-AP2 corresponding to the AP pair including AP1.
  • the AP will not be switched; if the current position of the user equipment is in the AP2 side area, then , since the current location of the user equipment is not located in the area related to AP1, switch the AP, and switch the AP from AP1 to AP2 related to the current location (AP2 side area).
  • the area related to the connected AP1 includes the AP1 side area corresponding to AP1 and the pre-handover sub area corresponding to the combination of AP pairs including AP1, where the AP pair including AP1 includes AP1 and AP2 pair, AP1 and AP3 pair, then, the AP pair combination including AP1 includes the AP1 and AP2 pair, and the AP1 and AP3 pair, and the pre-handover sub-area corresponding to the AP pair combination including AP1 is the pre-handover sub-area AP1- AP1, pre-handover sub-areas AP1 and AP3.
  • the pre-handover sub-areas AP1 and AP3 then, since the current position of the user equipment is in the area related to AP1, the AP will not be switched; if the user equipment The current location of the user equipment is located in the area on the side of AP2, then, since the current location of the user equipment is not located in the area related to AP1, switch the AP from AP1 to the AP2 related to the current location (the area on the side of AP2); The current location is located in the AP3 side area, then, since the current location of the user equipment is not located in the area related to AP1, switch the AP from AP1 to the AP3 related to the current location (AP3 side area); if the current location of the user equipment The location is located in the pre-handover sub-area AP2-AP3, then, since the current location of the user equipment is not located in the area related to AP1,
  • FIG. 6( a ) shows schematic diagram 1 of a handover situation in which an indoor area includes two APs according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 6(a)) moves from the AP1 side area to the AP2 side area. Since the current position of the user equipment is located in the AP2 side area, it is not located in the connected area.
  • the user equipment switches from the connection with AP1 to the connection with AP2 related to the current location (AP2 side area).
  • AP2 side area the user equipment receives the strongest signal strength of AP2.
  • the user equipment automatically switches to the AP2 with the strongest signal, and the user experience is good.
  • FIG. 6( b ) shows a second schematic diagram of a handover situation in which an indoor area includes two APs according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 6(b)) moves from the pre-handover area AP1-AP2 to the AP2 side area. Since the current position of the user equipment is located in the AP2 side area, not in the AP2 side area. Within the associated area of the connected AP1 (AP1 side area and pre-handover area AP1-AP2), then the user equipment switches from the connection with AP1 to the connection with AP2 associated with the current location (AP2 side area). In the AP2 side area, the user equipment receives the strongest signal strength of AP2. When the user moves to the AP2 side area, the user equipment automatically switches to the AP2 with the strongest signal, and the user experience is good.
  • FIG. 6( c ) shows a schematic diagram 3 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 6(c) ) moves in the AP1 side area. Since the current position of the user equipment is located in the AP1 side area, it is located in the area related to the connected AP1. (AP1 side area and pre-handover area AP1-AP2), then the user equipment does not switch APs.
  • FIG. 6(d) shows schematic diagram 4 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 6(d) ) moves in the pre-handover area AP1-AP2. Since the current position of the user equipment is located in the pre-handover area AP1-AP2, it is located in the same area as the pre-handover area AP1-AP2. In the related area of the connected AP1 (the AP1 side area and the pre-handover area AP1-AP2), then the user equipment does not switch APs.
  • FIG. 6(e) shows schematic diagram 5 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 6(e)) moves from the AP1 side area to the pre-handover area AP1-AP2, since the current position of the user equipment is located in the pre-handover area AP1-AP2 , is located in the area related to the connected AP1 (the AP1 side area and the pre-handover area AP1-AP2), then the user equipment does not switch APs.
  • FIG. 6( f ) shows a schematic diagram 6 of a handover situation in which an indoor area includes 2 APs provided according to some embodiments of the present application.
  • the user equipment moves from the pre-handover area AP1-AP2 to the AP1 side area.
  • the user equipment does not switch APs.
  • WiFi positioning in order to prevent the constant WiFi positioning from affecting the user's normal Internet access and power consumption, WiFi positioning can be performed every n seconds, where the value of n ranges from 2 to 4 seconds, including 2 seconds and 4 seconds. It can be understood by those skilled in the art that the specific value of n can be optimized and determined according to factors such as the influence of WiFi positioning on the user's online experience, the timeliness of AP switching, and the like.
  • a static period can be set to avoid ping-pong switching of the user equipment.
  • the user equipment When there is no displacement change after the user equipment is stationary for m seconds (for example, after the user equipment moves to a certain area and is stationary for m seconds), the user equipment immediately performs AP handover.
  • the user equipment When the user equipment is stationary for m seconds and then moves again (for example, the user equipment has been moving or the user equipment moves to a certain area and is stationary for m seconds and then moves again), then the user equipment does not perform AP switching immediately.
  • the value range of m is 2 to 4 seconds, including 2 seconds and 4 seconds.
  • the switch can be performed for more than a preset second, regardless of whether the user equipment is moving or still in the area.
  • m can be optimized and determined according to factors such as the influence of the AP switching frequency on the user's online experience, the timeliness of the AP switching, and the like.
  • the user equipment does not perform WiFi positioning during the stationary period, because the currently automatically connected AP is already the AP with the best signal, so there is no need to perform WiFi positioning and AP switching operations.
  • FIG. 7( a ) shows a schematic diagram 1 of a handover situation in which an indoor area includes 3 APs according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 7(a)) moves from the AP1 side area to the AP2 side area. Since the current position of the user equipment is in the AP2 side area, it is not located in the area connected to the AP2 side.
  • the user equipment switches from the connection with AP1 to the connection with AP2 related to the current location (the area on the AP2 side).
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • the user equipment receives the strongest signal strength of AP2.
  • the user equipment automatically switches to the AP2 with the strongest signal, and the user experience is good.
  • FIG. 7( b ) shows a second schematic diagram of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 7(b)) moves from the pre-handover sub-area AP1-AP2 to the AP2 side area. Since the current position of the user equipment is in the AP2 side area, it is not If it is located in the relevant area of the connected AP1 (the pre-handover sub-area corresponding to the AP1 side area and the AP1 pair combination), the user equipment switches from the AP1 connection to the AP2 connection associated with the current location (AP2 side area).
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • the user equipment receives the strongest signal strength of AP2.
  • the user equipment automatically switches to the AP2 with the strongest signal, and the user experience is good.
  • FIG. 7( c ) shows a schematic diagram 3 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 7(c) ) moves in the AP1 side area, since the current position of the user equipment is located in the AP1 side area, and is located in the area related to the connected AP1.
  • the pre-handover sub-area corresponding to the AP1 side area and the AP1 pair combination then the user equipment does not switch APs.
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • FIG. 7(d) shows a fourth schematic diagram of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 7(d)) moves in the pre-handover sub-area AP1-AP2. Since the current position of the user equipment is in the pre-handover sub-area AP1-AP2, If it is located in the related area of the connected AP1 (the AP1 side area and the pre-handover sub-area corresponding to the AP1 pair combination), then the user equipment does not switch the AP.
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • FIG. 7(e) shows a schematic diagram V of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application.
  • the user equipment (refer to the diagonal triangle in Fig. 7(e)) moves from the AP1 side area to the pre-handover sub-area AP1-AP2, since the current position of the user equipment is in the pre-handover sub-area AP1 -AP2 is located in the related area of the connected AP1 (the AP1 side area and the pre-handover sub-area corresponding to the combination of the AP1 pair), then the user equipment does not switch APs.
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • FIG. 7( f ) shows a schematic diagram 6 of a handover situation in which an indoor area includes 3 APs provided according to some embodiments of the present application.
  • the user equipment moves from the pre-handover sub-area AP1-AP2 to the AP1 side area.
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover sub-areas AP1-AP2 and AP1-AP3.
  • FIG. 7( g ) shows a schematic diagram 7 of a handover situation in which an indoor area includes 3 APs according to some embodiments of the present application.
  • the user equipment (refer to the diagonal triangle in Fig.
  • the AP1 pair combination includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • the user equipment receives the APs with the strongest signal strength and the second strongest signal strength including AP2 and AP3.
  • the user equipment randomly switches to this AP.
  • the signal strength of AP2 or AP3 is better than that of AP1, and the user experience is good.
  • FIG. 7(h) shows a schematic diagram 7 of a handover situation in which an indoor area includes 3 APs according to some embodiments of the present application.
  • the user equipment (refer to the oblique triangle in Fig. 7(g)) switches from the pre-handover sub-area AP1-AP2 to the pre-handover sub-area AP2-AP3.
  • the handover sub-areas AP2-AP3 are not located in the area related to the connected AP1 (the pre-handover sub-area corresponding to the AP1 side area and the AP1 pair combination), then, the user equipment switches from being connected with AP1 to being connected to the current location (pre-handover sub-area).
  • the AP1 pair combination includes AP1-AP2 and AP1-AP3
  • the pre-handover sub-areas corresponding to the AP1 pair combination include the pre-handover areas AP1-AP2 and AP1-AP3.
  • the user equipment receives the APs with the strongest signal strength and the second strongest signal strength including AP2 and AP3.
  • the user equipment randomly switches to this AP.
  • the signal strength of AP2 or AP3 is better than that of AP1, and the user experience is good.
  • the location of the user equipment 100 (relative to the AP), it is judged whether to switch the AP scheme, which can simplify the judgment of AP switching. It is only necessary to determine which area the current location of the user equipment is located in, so as to improve the efficiency of AP switching and thus improve the user experience.
  • WiFi positioning in order to prevent the constant WiFi positioning from affecting the user's normal Internet access and power consumption, WiFi positioning can be performed every n seconds, and the value of n ranges from 2 to 4 seconds, including 2 seconds and 4 seconds. It can be understood by those skilled in the art that the specific value of n can be optimized and determined according to factors such as the influence of WiFi positioning on the user's online experience, the timeliness of AP switching, and the like.
  • a static period can be set to avoid ping-pong switching of the user equipment.
  • the user equipment When there is no displacement change after the user equipment is stationary for m seconds (for example, after the user moves to a certain area and is stationary for m), the user equipment immediately performs AP switching.
  • the user equipment When the user equipment is stationary for m seconds and then moves again (for example, the user equipment has been moving or the user equipment moves to a certain area and is stationary for m seconds and then moves again), then the user equipment does not perform AP switching immediately.
  • the value range of m is 2 to 4 seconds, including 2 seconds and 4 seconds.
  • m can be optimized and determined according to factors such as the influence of the AP switching frequency on the user's online experience, the timeliness of the AP switching, and the like.
  • the user equipment does not perform WiFi positioning during the stationary period, because the currently automatically connected AP is already the AP with the best signal, so there is no need to perform WiFi positioning and AP switching operations.
  • Network interface 110 may include a transceiver for providing a radio interface for device 100 to communicate with any other suitable devices (eg, front-end modules, antennas, etc.) over one or more networks.
  • network interface 110 may be integrated with other components of device 100 .
  • network interface 110 may be integrated into at least one of processor 102, system memory 104, NVM/memory 106, and a firmware device (not shown) having instructions when at least one of processors 102 executes the When instructed, device 100 implements one or more of the various embodiments shown in Figures 3-6.
  • the network interface 110 may further include any suitable hardware and/or firmware to provide a multiple-input multiple-output radio interface.
  • network interface 110 may be a network adapter, wireless network adapter, telephone modem and/or wireless modem.
  • At least one of the processors 102 may be packaged with logic for one or more controllers of the system control logic 108 to form a system-in-package (SiP). In one embodiment, at least one of the processors 102 may be integrated on the same die with logic for one or more controllers of the system control logic 108 to form a system on a chip (SoC).
  • SiP system-in-package
  • SoC system on a chip
  • Device 100 may further include an input/output (I/O) device 112 .
  • I/O device 112 may include a user interface that enables a user to interact with device 100 ; the peripheral component interface is designed to enable peripheral components to interact with device 100 as well.
  • device 100 further includes sensors for determining at least one of environmental conditions and location information related to device 100 .
  • the user interface may include, but is not limited to, a display (eg, a liquid crystal display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (eg, a still image camera and/or video camera), a flashlight (eg, a LED flash) and keyboard.
  • a display eg, a liquid crystal display, a touch screen display, etc.
  • a speaker e.g., a speaker
  • a microphone e.g, a microphone
  • one or more cameras eg, a still image camera and/or video camera
  • a flashlight eg, a LED flash
  • peripheral component interfaces may include, but are not limited to, non-volatile memory ports, audio jacks, and power connectors.
  • sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units.
  • the positioning unit may also be part of or interact with the network interface 910 to communicate with components of the positioning network (eg, global positioning system (GPS) satellites).
  • GPS global positioning system
  • FIG. 8 shows a schematic diagram of a handover method in which an indoor area includes 2 APs provided according to some embodiments of the present application.
  • an indoor area such as a floor plan
  • Acquiring the indoor area can be acquired by acoustic detection and sensors, as well as depth cameras or other means.
  • obtaining the indoor area may also be obtained according to an existing floor plan.
  • an outdoor area may also be acquired, which is not limited in this embodiment of the present invention. For details on how to acquire the indoor area, please refer to the relevant description in FIG. 3 above, and details are not repeated here.
  • the locations of AP1 and AP2 in the indoor area are obtained.
  • the acquisition of the positions of AP1 and AP2 may be performed by the user manually inputting the positions and quantities of the corresponding APs in the acquired indoor area.
  • the locations of AP1 and AP2 may also be automatically generated by the application. For example, enter the indoor area in the application, the application will output the location and number of APs according to the optimal situation.
  • the AP1 side area and the AP2 side area in the indoor area are acquired.
  • the AP1 side area and the AP2 side area please refer to FIG. 2( a ) and related descriptions above, which will not be repeated here.
  • a pre-handover area in the indoor area is acquired. It can be seen from the above block 803 that when the thresholds of the AP1 and AP2 side areas and the pre-handover area are equal, the acquisition of the AP1 and AP2 side areas and the acquisition of the pre-handover area are in no order, and the AP1, AP2 side areas are also acquired while the pre-handover area is acquired. The AP2 side area, similarly, the pre-handover area is also acquired when the AP1 and AP2 side areas are acquired, which will not be repeated here.
  • the user equipment is manually or automatically connected to an AP, eg, AP1.
  • an AP eg, AP1.
  • the user equipment 100 starts to scan for APs, and the user manually selects the AP1 to be connected in the list of scanned APs, and then communicates with the AP1.
  • AP1 establishes a connection.
  • the user equipment 100 connects with the AP1 in an automatic manner, the user equipment 100 automatically connects with the AP1 with the strongest signal strength (assuming that the signal strength of the AP1 is the strongest at this time).
  • the current location of the user equipment in the indoor area is obtained.
  • the current position of the user equipment in the indoor area can be obtained through WiFi positioning such as a fingerprint library method or a ranging method.
  • WiFi positioning such as a fingerprint library method or a ranging method.
  • the location of the user equipment may also be obtained according to multi-scheme fusion positioning.
  • WiFi positioning may be combined with other positioning technologies (eg, Bluetooth, infrared, acoustic waves, sensors, etc.) to perform fusion positioning to improve positioning accuracy.
  • the user equipment determines whether the user equipment remains stationary for m seconds.
  • the user equipment does not perform WiFi positioning while remaining stationary. If there is no displacement change after the user equipment is stationary for m seconds (for example, after the user moves to a certain area and is stationary for m), the user equipment immediately performs AP switching according to the judgment in block 809 . If the user equipment moves again within m seconds after being stationary, the user equipment does not perform AP switching immediately, but returns to block 807 to obtain the current position of the user equipment in the indoor area again. By setting the static period, the user equipment can be prevented from switching back and forth between APs, thereby avoiding ping-pong switching.
  • the value range of m is 2 to 4 seconds, including 2 seconds and 4 seconds.
  • m can be optimized and determined according to factors such as the influence of the AP switching frequency on the user's online experience, the timeliness of the AP switching, and the like. In other embodiments, the determination step of block 808 may not be included.
  • the current location of the user equipment is located in the AP1 side area, the pre-handover area AP1-AP2 or the AP2 side area, so as to determine whether to perform AP handover. If the current location of the user equipment is located in the area related to the connected AP1, then do not perform AP handover and continue to obtain the current location of the user equipment in the indoor area; if the current location of the user equipment is not located in the area related to the connected AP1 , then perform AP handover to switch the user equipment from the connected AP1 to the AP related to the current location.
  • the area related to the connected AP1 includes the AP1 side area corresponding to the AP1 and the pre-handover areas AP1-AP2 corresponding to the AP1.
  • the AP handover will be described in detail below with reference to FIG. 2( a ). If the current location of the user equipment is located in an area related to the connected AP1, for example, the current location of the user equipment is located in the AP1 side area or the pre-handover area AP1-AP2, then, as shown in block 809 in FIG. 8, it is determined not to perform AP Switch, and then continue to acquire the current location of the user equipment in the indoor area as shown in block 806 in FIG. 8 . If the current location of the user equipment is not located in the area related to the connected AP1, for example, the current location of the user equipment is located in the area on the side of AP2, then, as shown in block 810 in FIG. Switch to AP2 related to the current location (AP2 side area), and then continue to acquire the next current location of the indoor area as shown in block 811 in FIG. 8 .
  • the user equipment determines whether the user equipment remains stationary for m seconds.
  • the user equipment does not perform WiFi positioning while remaining stationary. If there is no displacement change after the user equipment is stationary for m seconds (for example, after the user moves to a certain area and is stationary for m), the user equipment immediately performs AP switching according to the judgment in block 809 . If the user equipment does not move again for m seconds (for example, the user equipment has been moving or the user equipment moves to a certain area and does not move again for m seconds), then the user equipment does not perform AP switching immediately, but returns to the Block 806 again obtains the current location of the user equipment in the indoor area.
  • the value range of m is 2 to 4 seconds, including 2 seconds and 4 seconds.
  • m can be optimized and determined according to factors such as the influence of the AP switching frequency on the user's online experience, the timeliness of the AP switching, and the like.
  • the determination step of block 808 may not be included.
  • the current location of the user equipment is located in the AP1 side area, the pre-handover area, or the AP2 side area. If the current location of the user equipment is located in the area related to the connected AP2, then do not perform AP handover and continue to obtain the current location of the user equipment in the indoor area; if the current location of the user equipment is not located in the area related to the connected AP2 , then perform AP handover to switch the user equipment from the connected AP1 to the AP related to the current location.
  • the area related to the connected AP2 includes the AP2 side area corresponding to AP2 and the pre-handover area AP1-AP2 corresponding to the AP2 pair combination.
  • the current location of the user equipment is located in the area related to the connected AP2, for example, the current location of the user equipment is located in the AP2 side area or the pre-handover area AP1-AP2, then, as shown in block 814 in FIG. 8, it is determined not to perform AP Switch, and then continue to acquire the current position of the user equipment in the indoor area as shown in block 811 in FIG. 8 . If the current location of the user equipment is not in the area related to the connected AP2, for example, the current location of the user equipment is located in the area on the side of AP1, then, as shown in block 815 in FIG. Switch to AP1 related to the current location (AP1 side area), and then continue to acquire the next current location of the indoor area as shown in block 806 in FIG. 8 to repeat the above steps.
  • the user equipment 100 can actively perform AP switching during the moving process or after moving for a period of time, so that the user equipment 100 can switch to the AP with the strongest signal strength in time, the user experience is good, and the resource utilization rate is good. high. For example, taking the user equipment 100 already connected to AP1 as an example, as mentioned above, when the user equipment 100 moves from the AP1 side area to the AP2 side area, the user equipment 100 switches from the connection with AP1 to the AP2 connection, and in the AP1 side area , the signal strength received by the user equipment 100 from AP1 is the strongest, and in the area on the side of AP2, the signal strength received by the user equipment 100 from AP2 is the strongest. At the same time, the setting of the pre-handover area can avoid errors caused by WiFi positioning.
  • the above embodiments describe the solution of determining whether to switch the AP based on the location of the user equipment 100 (relative to the AP). Such a solution can simplify the judgment of AP handover. In the process of use, there is no need to measure the received signal strength between the user equipment and each AP. It is only necessary to determine which area the current position of the user equipment is located in, thereby improving the AP handover. efficiency to improve user experience.
  • FIG. 9 shows a schematic diagram of a handover method in which an indoor area includes at least 3 APs provided according to some embodiments of the present application. The following is an example of switching the user equipment from connecting with AP1 to connecting with AP2.
  • an indoor area such as a floor plan is obtained.
  • Acquiring the indoor area can be acquired by acoustic detection and sensors, as well as depth cameras or other means.
  • obtaining the indoor area may also be obtained according to an existing floor plan.
  • obtaining the indoor area please refer to the relevant description in FIG. 3 above, which will not be repeated here.
  • the location of each of the at least three APs in the indoor area is obtained, and the location of each AP includes the locations of AP1 and AP2.
  • the location acquisition of each AP may be performed by the user manually inputting the location and quantity of the corresponding AP in the acquired indoor area.
  • the location of each AP may also be automatically generated by the application. For example, enter the indoor area in the application, the application will output the location and number of APs according to the optimal situation.
  • the AP-side area of each AP in the indoor area is acquired, including the AP1-side area corresponding to AP1 and the AP2-side area corresponding to AP2.
  • obtaining the AP-side area is the acquisition of the pre-handover area.
  • the pre-handover area in the indoor area is acquired.
  • the pre-handover area may be divided into a first pre-handover sub-area related to AP1 and a second pre-handover sub-area not related to AP1. It can be seen from the above block 903 that when the thresholds of each AP side area and the pre-handover area are equal, the acquisition of each AP side area and the acquisition of the pre-handover area are in no order, and each AP side area is acquired at the same time as the pre-handover area.
  • the AP side area similarly, the pre-handover area is also acquired when each AP side area is acquired, which will not be repeated here.
  • the pre-handover sub-area related to AP1 includes the pre-handover sub-area corresponding to the combination of AP pairs including AP1.
  • the pre-handover sub-areas unrelated to AP1 include pre-handover sub-areas corresponding to AP pairs other than the AP pair combination including AP1.
  • each AP pair includes 2 APs out of at least 3 APs and includes the AP.
  • the combination of AP pairs including AP1 is a combination of AP pairs including AP1 from at least two AP pairs. In the following, please refer to FIG.
  • an AP pair including AP1 includes a pair of AP1 and AP2, or a pair of AP1 and AP3.
  • the AP pair combination including AP1 includes the AP1 and AP2 pair, and the AP1 and AP3 pair.
  • AP pairs other than those combined with AP pairs including AP1 include AP2-AP3.
  • the first pre-handover sub-areas related to AP1 include pre-handover sub-areas AP1-AP2 and pre-handover sub-areas A1-AP3; the second pre-handover sub-areas unrelated to AP1 include pre-handover sub-areas AP2-AP3.
  • the user equipment is manually or automatically connected with an AP, eg, AP1.
  • an AP eg, AP1.
  • the user equipment 100 starts to scan for APs, and the user manually selects the AP1 to be connected in the list of scanned APs, and then communicates with the AP1.
  • AP1 establishes a connection.
  • the user equipment 100 may connect to the AP1 with the strongest signal strength.
  • the current location of the user equipment in the indoor area is obtained.
  • the current position of the user equipment in the indoor area may be obtained through WiFi positioning, for example, a fingerprint library method or a ranging method.
  • WiFi positioning may be combined with other positioning technologies (eg, Bluetooth, infrared, acoustic waves, sensors, etc.) to perform fusion positioning to improve positioning accuracy.
  • the user equipment it is determined whether the user equipment remains stationary for m seconds.
  • the user equipment does not perform WiFi positioning while remaining stationary. If there is no displacement change after the user equipment is stationary for m seconds (for example, after the user moves to a certain area and is stationary for m), the user equipment immediately performs AP switching according to the judgment in block 909 . If the user equipment moves again within m seconds after being stationary, the user equipment does not perform AP switching immediately, but returns to block 907 to obtain the current position of the user equipment in the indoor area again. By setting the static period, the user equipment can be prevented from switching back and forth between APs, thereby avoiding ping-pong switching.
  • the value range of m is 2 to 4 seconds, including 2 seconds and 4 seconds.
  • m can be optimized and determined according to factors such as the influence of the AP switching frequency on the user's online experience, the timeliness of the AP switching, and the like. In other embodiments, the determination step of block 808 may not be included.
  • the first pre-handover sub-area is a pre-handover sub-area corresponding to the combination of AP pairs including AP1;
  • the second pre-handover sub-area is a pre-handover sub-area corresponding to AP pairs other than the combination of AP pairs including AP1.
  • Toggle subregions If the user equipment is located in the area related to the connected AP1, then the AP is not switched; if the user equipment is not located in the area related to the connected AP1, then the AP is switched.
  • the area related to the connected AP1 includes the AP1 side corresponding to the AP1 and the first pre-handover sub-area.
  • the AP is not switched; if the user equipment is located in AP2 side area, then, as shown in block 911, since the user equipment is not located in the area associated with the connected AP1, switch the AP to switch the user equipment from the connected AP1 to the AP2 associated with the current location (AP2 side area) ; if the user equipment is located in the second pre-handover sub-area, then, as shown in block 910, since the user equipment is not located in the area associated with the connected AP1, then switch the AP, randomly switching the user equipment from the connected AP1 to the connected AP1 on the AP related to the current location (such as AP2 or AP3).
  • the area related to the connected AP1 includes the AP1 side area corresponding to the AP1 and the first pre-handover sub-area corresponding to the AP pair combination including the AP1.
  • the AP pair including AP1 includes the AP1 and AP2 pair, or the AP1 and AP3 pair, then the AP pair including AP1 includes the AP and -AP2 pair, and the AP1 and AP3 pair, combined with the AP pair including AP1
  • the corresponding first pre-handover sub-areas include pre-handover sub-areas AP1-AP2 and pre-handover sub-areas AP1-AP3.
  • the current position of the user equipment is located in the AP1 side area or the first pre-handover sub-area (pre-handover sub-areas AP1-AP2, pre-handover sub-areas AP1-AP3), then, since the current position of the user equipment is located in the connected AP1 in the indoor area, do not switch APs, and then re-acquire the current location of the user equipment in the indoor area. If the current location of the user equipment is located in the AP2 side area, then, since the current location of the user equipment is not located in the area related to the connected AP1, switch the AP, and switch the user equipment from the connected AP1 to the current location (AP2 side area) ) on the associated AP2.
  • pre-handover sub-area AP2-AP3 If the current position of the user equipment is located in the second pre-handover sub-area (pre-handover sub-area AP2-AP3), then, since the current position of the user equipment is not located in the area related to the connected AP1, the AP is switched to change the user equipment from The connected AP1 is handed over to the AP associated with the current location (pre-handover sub-area AP2-AP3), eg AP2 or AP3.
  • pre-handover sub-area AP1-AP2, pre-handover sub-area AP1-AP3 when the user equipment is located on the AP1 side or the first pre-handover sub-area (pre-handover sub-area AP1-AP2, pre-handover sub-area AP1-AP3), then, since the user equipment is located in the connected AP1 In the indoor area, the AP is not switched. As shown in block 906 , the current location of the user equipment in the indoor area is re-acquired, and subsequent judgments shown in blocks 907 and 908 are performed.
  • the user equipment when the user equipment is located in the area on the side of AP2 and is not located in the area related to the connected AP1, then the user equipment switches from AP1 to AP2, and then re-acquires the current indoor area of the user equipment as shown in block 906. position, and then perform the determination as in block 907. If the user equipment remains stationary for m seconds, then it is determined whether the current location of the user equipment is in the AP2 side area or the first pre-handover sub-area, the AP1-side area, or the second pre-handover sub-area.
  • the first pre-handover sub-areas include pre-handover sub-areas AP1-AP2 and pre-handover sub-areas AP2-AP3.
  • the second pre-handover sub-area includes handover sub-areas AP1-AP3. If the current position of the user equipment is located in the AP2 side area or the first pre-handover sub-area (pre-handover sub-area AP1-AP2, pre-handover sub-area AP2-AP3), then, since the current position set by the user is located in the connected AP2 If the current location of the user equipment is in the area on the side of AP1, then, because the user equipment is not located in the area related to the connected AP2, switch the AP, and the user equipment switches from connecting with AP2 to connecting with AP1 If the current position of the user equipment is located in the second pre-handover sub-area (switching sub-area AP1-AP3), then, because the user equipment is not located in the area relevant to the connected AP2, the AP is switched, and the user equipment is randomly switched from being connected with AP2 to connect with AP1 or AP3.
  • the AP is switched to randomly switch the user equipment from the connected AP1 to the current Location-related APs (such as AP2 or AP3).
  • the user equipment switches from connecting with AP1 to connecting with AP2, please refer to the above description of switching to AP2.
  • the indoor area includes at least 3 APs
  • the above takes the user equipment switching from AP1 to connecting with AP2 as an example, those skilled in the art can understand that the user equipment switches from connecting with AP1 to connecting with AP3,
  • the principle that the user equipment switches from connecting with AP2 to connecting with AP3 is the same as the principle that the user equipment switches from connecting with AP1 to connecting with AP2.
  • the user equipment 100 can actively perform AP switching during the moving process or after moving for a period of time, so that the user equipment 100 can switch to the AP with the strongest signal strength in time, the user experience is good, and the resource utilization rate is good. high. For example, taking the user equipment 100 already connected to AP1 as an example, as mentioned above, when the user equipment 100 moves from the AP1 side area to the AP2 side area, the user equipment 100 switches from the connection with AP1 to the AP2 connection, and in the AP1 side area , the signal strength received by the user equipment 100 from AP1 is the strongest, and in the area on the side of AP2, the signal strength received by the user equipment 100 from AP2 is the strongest. At the same time, the setting of the pre-handover area can avoid errors caused by WiFi positioning.
  • Figure 10 shows a layout diagram of a user equipment.
  • the user equipment is in an indoor environment, and two APs, ie, AP1 and AP2, are set in the indoor environment.
  • two APs ie, AP1 and AP2
  • the UE determines the AP1 side area, the AP2 side area and the pre-handover area AP1-AP2 according to the method as described above.
  • the AP device layout diagram shown in Figure 10 will be displayed on the mobile phone interface to show the calculation result of each indoor AP area to the user of the user equipment.
  • the AP device layout diagram shows the layout of the room and the positions of AP1 and AP2.
  • the calculated iso-signal strength lines are also shown in the layout diagram, and the AP1-side area and the AP2-side area are respectively distinguished by dashed lines on both sides of the iso-signal strength lines.
  • the part sandwiched between the two curved curves is the pre-switching area AP1-AP2.
  • the AP1 side area, the AP2 side area and the pre-handover areas AP1-AP2 can be displayed to the user in different colors.
  • a point 301 indicates where the user equipment is located indoors.
  • the location of the user equipment may be acquired by the user equipment at preset time intervals (eg, 1 second, 2 seconds, 5 seconds, etc.) and displayed in the layout diagram.
  • the layout diagram shown in Figure 10 can be measured by the user equipment and generated after calculation, or it can be sent to the user equipment for calculation and calculation of each area after other equipment with the AP signal strength measurement function detects the signal strength.
  • AP signal strength measurement function For interface generation, other devices with AP signal strength measurement function and calculation can also draw the interface and send it to the user equipment for use.
  • the above embodiments describe the solution of determining whether to switch the AP based on the location of the user equipment 100 (relative to the AP). Such a solution can simplify the judgment of AP handover. In the process of use, there is no need to measure the received signal strength between the user equipment and each AP. It is only necessary to determine which area the current position of the user equipment is located in, thereby improving the AP handover. efficiency to improve user experience.
  • FIG. 11 shows a schematic structural diagram of the electronic device 100 .
  • the electronic device is the user equipment 100 in this embodiment.
  • the electronic device 100 shown in FIG. 11 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 11 , two or more components may be combined, or Different component configurations are possible.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • CN201910430270.9 For a detailed structural introduction of the electronic device 100, please refer to the prior patent application: CN201910430270.9.
  • the above-mentioned electronic devices and the like include corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation. The following is an example of dividing each function module corresponding to each function to illustrate:
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, network device, electronic device, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVDs)), or semiconductor media (eg, SSDs), and the like.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • Example 1 may include a network access device switching method for an indoor area, wherein the indoor area includes two network access devices, the two network access devices It includes a first network access device and a second network access device, wherein the method includes: acquiring the current location of the user equipment in the indoor area; and when the user equipment has connected to the first network when the user equipment is connected, at least in part based on the current location of the user equipment, the first network access device side area and the second network access device side area, to determine whether to connect the user equipment Switching from connecting with the first network access device to connecting with the second network access device, wherein the first network access device side area corresponds to the first network access device and in the In the first network access device side area, the first signal strength from the first network access device is greater than the second signal strength from the second network access device, and the first signal strength is the same as the first signal strength from the first network access device.
  • the difference between the two signal strengths is greater than a first threshold; and, the second network access device side area corresponds to the second network access device and the second network access device side area is within the second network access device side area.
  • the second signal strength is greater than the first signal strength, and the difference between the second signal strength and the first signal strength is greater than a second threshold.
  • Example 2 may include the method of example 1, and wherein the first threshold and the second threshold are the same or different.
  • Example 3 may include the method of example 1 or 2, and wherein the method is based at least in part on the current location of the user equipment, the first network access device side area, and the second network access entering the device side area, and judging whether to switch the user equipment from being connected to the first network access device to being connected to the second network access device, further comprising: being located in the second network at the current location In the case of accessing the device-side area, it is determined to switch the user equipment from being connected to the first network access device to being connected to the second network access device; or, at the current location in the first network access device When the second network access device side area is maintained and the current position is kept for a stationary period, it is determined to switch the user equipment from being connected with the first network access device to being connected with the second network access device.
  • Example 4 may include the method of any of Examples 1-3, and wherein the said is based at least in part on the current location of the user equipment, the first network access device side area, and the In the second network access device side area, judging whether to switch the user equipment from being connected to the first network access device to being connected to the second network access device, further comprising: at the current location where the user equipment is located In the case of the first network access device side area, it is determined that it is not necessary to switch the user equipment from being connected to the first network access device to being connected to the second network access device; at the current location In the case where the first network access device side area is maintained and the current position is kept for a stationary period, it is determined that it is not necessary to switch the user equipment from being connected to the first network access device to being connected to the first network access device. Two network access equipment connection.
  • Example 5 may include the method of example 1 or 2, and wherein the method is based at least in part on the current location of the user equipment, the first network access device-side area, and the second network access. entering the device side area, and judging whether to switch the user equipment from being connected to the first network access device to being connected to the second network access device, further comprising: said at least partially based on the user equipment's the current location, the first network access device side area, the second network access device side area, and the pre-handover area, to determine whether to switch the user equipment from being connected to the first network access device to connect with the second network access device, wherein the absolute value of the difference between the first signal strength and the second signal strength in the pre-handover area is less than a first threshold or a second threshold .
  • Example 6 may include the method of Example 5, and wherein the method is based at least in part on the current location of the user equipment, the first network access device side area, the second network access device a side area and a pre-handover area, and judging whether to switch the user equipment from being connected to the first network access device to being connected to the second network access device, further comprising: being located in the first network access device at the current location In the case of a second network access device side area, it is determined to switch the user equipment from being connected to the first network access device to being connected to the second network access device; In the case where the second network access device side area is maintained and the current position is kept for a stationary period, it is determined to switch the user equipment from connecting with the first network access device to connecting with the second network access device connect.
  • Example 7 may include the method of any of Examples 5 or 6, and wherein the said is based at least in part on the current location of the user equipment, the first network access device side area, the In the second network access device side area and the pre-handover area, judging whether to switch the user equipment from being connected to the first network access device to being connected to the second network access device, further comprising: in the When the current location is in the area on the side of the first network access device or the pre-handover area, it is determined that it is not necessary to switch the user equipment from being connected to the first network access device to being connected to the second network The access device is connected; in the case that the current position is in the first network access device side area or the pre-handover area, and the unit position is reserved for a static period, it is determined that the user equipment does not need to be moved from The connection with the first network access device is switched to the connection with the second network access device.
  • Example 8 may include a network access device switching method for an indoor area, and wherein the indoor area includes at least three network access devices, the at least three network access devices including a first network access device and a second network access device, wherein the method includes: acquiring the current location of the user equipment in the indoor area; and, in the case that the user equipment has been connected to the first network access device , based at least in part on the current location, the first network access device side area and the second network access device side area, to determine whether to switch the user equipment from being connected to the first AP to being connected to the second AP connection, wherein the first network access device side area corresponds to the first network access device, and within the first network access device side area, the The first signal strength is greater than the signal strength from other network access devices in the at least three network access devices except the first network access device, and the first signal strength is connected to the other network access devices.
  • the difference between the signal strengths of the incoming devices is greater than the first threshold; and the second network access device side area corresponds to the second network access device and is on the second network access device side In the area, the second signal strength from the second network access device is greater than the signal strength from other network access devices in the at least three network access devices except the second network access device, And the difference between the second signal strength and the signal strengths of the other network access devices is greater than a second threshold.

Landscapes

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

Abstract

本发明涉及一种用于室内区域的网络接入设备切换方法、用户设备和机器可读存储介质。其中,室内区域包括至少两个网络接入设备,至少两个网络接入设备包括第一网络接入设备和第二网络接入设备,用户设备与第一网络接入设备连接。用于室内区域的网络接入设备切换方法:包括获取用户设备在室内区域的当前位置;判断当前位置是否位于室内区域中的第二区域,在第二区域中第二网络接入设备的第二信号强度高于第一网络接入设备的第一信号强度;如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接。上述方案能够及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。

Description

用于用户设备的网络接入设备切换方法
申请要求于2020年07月01日提交中国专利局、申请号为202010630343.1、申请名称为“用于用户设备的网络接入设备切换方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,特别涉及用于用户设备的网络接入设备切换方法。
背景技术
无线接入点(Acess Point,AP),作为网络接入设备的其中一种,是无线设备(例如用户设备)进入有线网络的接入点,相当于无线网和有线网之间沟通的桥梁,是组建无线局域网(WLAN)的核心设备。AP主要是提供无线工作站和有线局域网之间的互相访问,在AP信号覆盖范围内的无线工作站可以通过它进行相互通信,其主要用于宽带家庭、大楼内部、校园内部、园区内部以及仓库、工厂等需要无线监控的地方。典型距离覆盖几十米至上百米,也有可以用于远距离传送。主要技术为WLAN通用的IEEE802.11标准。
网络接入设备用于将一个设备连接至网络,其不仅包含单纯性的无线接入点AP,也同样是无线路由器(含无线网关、无线网桥)等类设备的统称。
当在用户设备的一定范围内存在两个或两个以上的网络接入设备时,那么,只有当用户设备接收到网络接入设备AP的信号强度小于预定阈值时才进行网络接入设备的扫描和切换。
然而,上述的网络接入设备切换方式主要存在如下问题:
(1)当用户设备接收到网络接入设备的信号强度小于预定阈值时,用户已不能正常上网,用户体验感较差;
(2)在达到预定阈值之前,即便存在信号强度更强的网络接入设备,用户设备也不能及时切换到该网络接入设备上,资源利用率较差。
发明内容
在第一方面,根据本申请的一些实施例提供的一种用于室内区域的网络接入设备切换方法。其中,室内区域包括至少两个网络接入设备,至少两个网络接入设备包括第一网络接入设备和第二网络接入设备,用户设备与第一网络接入设备连接。该方法包括获取用户设备在室内区域的当前位置;判断当前位置是否位于室内区域中的第二区域,在第二区域中第二网络接入设备的第二信号强度高于第一网络接入设备的第一信号强度;如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接。
本申请提出的网络接入设备切换方法,通过判断用户设备所处于室内区域的不同区域内(例如第一区域或第二区域),从而确定是否将用户设备从与第一网络接入设备切换到与第二网络接入设备连接,及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。同时,这样的方案可以简化网络接入设备切换的判断,在使用的过程中,不需要测量用户设备与各网络接入设备之间的接收信号强度,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高网络接入设备切换的效率从而提高用户体验。
在一些实施例中,在第二区域中,用户设备检测到的第二信号强度高于至少两个网络接入设备中除了第二网络接入设备之外的其他网络接入设备的信号强度;和/或,在第一区域中,用户设备检测到的第一信号强度高于用户设备检测到的至少两个网络接入设备中除了第一网络接入设备之外的其他网络接入设备的信号强度。从而,确保用户设备能够及时地与信号强度最强的网络接入设备连接。
在一些实施例中,在获取用户设备在室内区域的当前位置之前,该方法还包括:检测室内区域中各个区域的信号强度;基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域。
在一些实施例中,基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域,包括:将第一信号强度高于第二信号强度的区域划分为第一区域;将第二信号强度高于第一信号强度的区域划分为第二区域。从而,通过判断用户设备所处于室内区域的第一区域或第二区域,及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。
在一些实施例中,基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域,包括:将第一信号强度高于第二信号强度的区域且第一信号强度与第二信号强度之差大于第一阈值的区域划分为第一区域;将第二信号强度高于第一信号强度且第二信号强度与第一信号强度之差大于第二阈值的区域划分为第二区域。
在一些实施例中,基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域,还包括:将第一信号强度与第二信号强度之间的差值的绝对值不大于第三阈值的区域设置为第一预切换子区域。预切换子区域的设置,能够避免由于WiFi定位所造成的误差,以及用户移动所导致的频繁切换。
在一些实施例中,第一阈值、第二阈值、第三阈值相同;或者,第一阈值与第二阈值不同。这样的方案对于室内环境,可以避免网络的频繁切换。也就是说,可以根据室内房型的具体情况来设置阈值,从而避免在同一区域,例如同一个房间内,既有第一区域,又有预切换子区域,还有第二区域,从而导致网络的频繁切换。
在一些实施例中,该方法还包括:判断当前位置是否位于第一预切换子区域;和在当前位置位于第一预切换子区域的情况下,保持用户设备与第一网络接入设备的连接。从而,避免用户设备网络的频繁切换。
在一些实施例中,至少两个网络接入设备包括第三网络接入设备,检测到的第三网络接入设备的信号强度为第三信号强度,基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域,还包括:将第三信号强度为最高的信号强度,且第三信号强度与次高的信号强度之差大于第四阈值的区域设定为第三区域;第一区域中,用户设备检测到的第一信号强度为最高的信号强度,且第一信号强度与次高的信号强度之差大于第一阈值;第二区域中,用户设备检测到的第二信号强度为最高的信号强度,且第二信号强度与次高的信号强度之差大于第二阈值;将第三信号强度与第一信号强度之差的绝对值小于第五阈值的区域设定为第二预切换子区域,第二预切换子区域中所检测到的第三信号强度、第一信号强度为信号强度从高到低排序位于前两位的信号强度;将第三信号强度与第二信号强度之差的绝对值小于第六阈值的区域设定为第三预切换子区域,第三预切换子区域中所检测到的第三信号强度、第二信号强度为信号强度从高到低排序位于前两位的信号强度;第一预切换子区域中,所检测到的第一信号强度、第二信号强度为信号强度从高到低排序位于前两位的信号强度。从而,通过判断用户设备所处于室内区域的不同区域(例如第一区域、第二区域、第三区域、第一预切换子区域、第二预切换子区域或第三预切换子区域),及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。同时,预切换子区域的设置,能够避免由于WiFi定位所造成的误差,以及用户移动所导致的频繁切换。
在一些实施例中,在如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与 第二网络接入设备连接之后,方法还包括:判断当前位置是否位于第二预切换子区域内;如果当前位置位于第二预切换子区域,将用户设备从与第二网络接入设备连接切换至与第一网络接入设备或者与第三网络接入设备连接。
在一些实施例中,该方法还包括:判断当前位置是否位于第一预切换子区域或者第三预切换子区域内;在当前位置位于第一预切换子区域或者第三预切换子区域的情况下,保持用户设备与第二网络接入设备的连接。从而,避免用户移动导致的频繁切换。
在一些实施例中,如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接,包括:响应于用户设备从第四区域移动到第一区域,将用户设备从第一网络接入设备连接切换至与第二网络接入设备连接;或者,响应于用户设备位于第一区域的持续时长大于第一预设时长,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接;或者,响应于用户设备位于第一区域且用户设备处于静止状态的持续时长大于第二预设时长,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接。从而,避免用户设备的乒乓切换。
在一些实施例中,该方法还包括:在用户设备的显示单元上显示网络接入设备布局图,网络接入设备布局图中至少包含:第一区域、第二区域、第一网络接入设备的标识、第二网络接入设备的标识、用户设备的当前位置中的至少一种。
在一些实施例中,在用户设备的显示单元上显示网络接入设备布局图之前,该方法还包括:接收另一电子设备发送的网络接入设备布局图。
在一些实施例中,获取用户设备在室内区域的当前位置,包括:每隔预设时间间隔获取用户设备在室内区域的当前位置。从而,避免一直定位影响用户的正常上网,同时节省耗电。在第二方面,根据本申请的一些实施例提供的一种用于室内区域的网络接入设备切换装置。其中室内区域包括至少两个网络接入设备,至少两个网络接入设备包括第一网络接入设备和第二网络接入设备,用户设备与第一网络接入设备连接。该网络接入设备切换装置包括:位置获取模块,获取用户设备在室内区域的当前位置;第二区域判断模块,判断当前位置是否位于室内区域中的第二区域,在第二区域中用户设备检测到的第二网络接入设备的第二信号强度高于第一网络接入设备的第一信号强度;切换模块,如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接。
本申请提出的网络接入设备切换装置,通过判断用户设备所处于室内区域的不同区域内(例如第一区域或第二区域),从而确定是否将用户设备从与第一网络接入设备切换到与第二网络接入设备连接,及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。同时,这样的方案可以简化网络接入设备切换的判断,在使用的过程中,不需要测量用户设备与各网络接入设备之间的接收信号强度,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高网络接入设备切换的效率从而提高用户体验。
在一些实施例中,在第二区域中,用户设备检测到的第二信号强度高于至少两个网络接入设备中除了第二网络接入设备之外的其他网络接入设备的信号强度;和/或,在第一区域中,用户设备检测到的第一信号强度高于用户设备检测到的至少两个网络接入设备中除了第一网络接入设备之外的其他网络接入设备的信号强度。从而,从而确保用户设备能够及时地与信号强度最强的网络接入设备连接。
在一些实施例中,网络接入设备切换装置还包括:信号强度检测模块,检测室内区域中各个区域的信号强度;以及区域划分模块,基于各个区域的信号强度将室内区域至少划分为第一区域和第二区域。
在一些实施例中,网络接入设备切换装置的区域划分模块,将第一信号强度高于第二信号强度的区域划分为第一区域;将第二信号强度高于第一信号强度的区域划分为第二区域。从而,通过判断用户设 备所处于室内区域的第一区域或第二区域,及时确保用户设备与信号强度最强的网络接入设备连接,提升用户体验。
在一些实施例中,网络接入设备切换装置的区域划分模块,将第一信号强度高于第二信号强度的区域且第一信号强度与第二信号强度之差大于第一阈值的区域划分为第一区域;将第二信号强度高于第一信号强度且第二信号强度与第一信号强度之差大于第二阈值的区域划分为第二区域。
在一些实施例中,网络接入设备切换装置的区域划分模块,将第一信号强度与第二信号强度之间的差值的绝对值不大于第三阈值的区域设置为第一预切换子区域。预切换子区域的设置,能够避免由于WiFi定位所造成的误差,以及用户移动所导致的频繁切换。
在一些实施例中,网络接入设备切换装置的区域划分模块,判断当前位置是否位于第一预切换子区域;和在当前位置位于第一预切换子区域的情况下,保持用户设备与第一网络接入设备的连接。从而,避免用户设备网络的频繁切换。
在第三方面,根据本申请的一些实施例提供了一种用于室内区域的网络接入设备切换装置,其中室内区域包括至少两个网络接入设备,至少两个网络接入设备包括第一网络接入设备,第二网络接入设备,和第三网络接入设备,用户设备与第一网络接入设备连接。网络接入设备切换装置包括:位置获取模块,获取用户设备在室内区域的当前位置;第二区域判断模块,判断当前位置是否位于室内区域中的第二区域,在第二区域中用户设备检测到的第二网络接入设备的第二信号强度高于第一网络接入设备的第一信号强度;切换模块,如果当前位置位于第二区域,将用户设备从与第一网络接入设备连接切换至与第二网络接入设备连接;区域划分模块,将用户设备检测到的第三信号强度为最高的信号强度,且第三信号强度与次高的信号强度之差大于第四阈值的区域设定为第三区域;其中检测到的第三网络接入设备的信号强度为第三信号强度。
在第一区域中,电子设备检测到的第一信号强度为最高的信号强度,且第一信号强度与次高的信号强度之差大于第一阈值;第二区域中,电子设备检测到的第二信号强度为最高的信号强度,且第二信号强度与次高的信号强度之差大于第二阈值;将用户设备检测到的第三信号强度与第一信号强度之差的绝对值小于第五阈值的区域设定为第二预切换子区域,第二预切换子区域中所检测到的第三信号强度、第一信号强度为信号强度从高到低排序位于前两位的信号强度;将用户设备检测到的第三信号强度与第二信号强度之差的绝对值小于第六阈值的区域设定为第三预切换子区域,第三预切换子区域中所检测到的第三信号强度、第二信号强度为信号强度从高到低排序位于前两位的信号强度;第一预切换子区域中,所检测到的第一信号强度、第二信号强度为信号强度从高到低排序位于前两位的信号强度。上述方案中,第一阈值、第二阈值、第三阈值可以相同;或者,所述第一阈值与所述第二阈值、第三阈值可以不同。
在第四方面,根据本申请的一些实施例提供了一种用户设备,该设备包括:处理器和存储介质,存储介质与处理器耦合,存储介质用于存储程序代码,当处理器从存储介质中读取程序代码,以使得用户设备执行如上述中任一的方法。
在第五方面,根据本申请的一些实施例提供了一种机器可读存储介质,机器可读存储介质上存储有程序代码,程序代码在机器上执行时可使机器执行如上述中任一的方法。
在第六方面,根据本申请的一些实施例提供了一种计算机程序产品,计算机程序产品中包含指令,当指令在计算机上运行时,使得计算机实现如上述中任一的方法。
在第七方面,根据本申请的一些实施例提供了一种芯片,芯片包括处理器与数据接口,处理器通过数据接口读取存储器上存储的指令,以执行如上述中任一的方法。
附图说明
图1(a)示出根据本申请一些实施例提供的一种室内区域包括2个AP切换的应用场景示意图;
图1(b)示出根据本申请一些实施例提供的一种室内区域包括3个AP切换的应用场景示意图;
图2(a)示出根据本申请一些实施例提供的室内区域包括2个AP的AP侧区域和预切换区域;
图2(b)示出根据本申请一些实施例提供的室内区域包括3个AP的AP侧区域和预切换区域;
图3示出根据本申请一些实施例提供的用户设备的框图;
图4(a)示出根据本申请一些实施例提供的声波探测的工作原理的示意图;
图4(b)示出根据本申请一些实施例提供的深度相机的工作原理的示意图;
图5(a)示出根据本申请一些实施例提供的指纹库法获取用户设备位置;
图5(b)示出根据本申请一些实施例提供的测距测角法获取用户设备位置;
图6(a)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图一;
图6(b)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图二;
图6(c)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图三;
图6(d)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图四;
图6(e)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图五;
图6(f)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图六;
图7(a)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图一;
图7(b)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图二;
图7(c)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图三;
图7(d)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图四;
图7(e)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图五;
图7(f)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图六;
图7(g)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图七;
图7(h)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图七;
图8示出根据本申请一些实施例提供的室内区域包括2个AP的切换方法的示意图;
图9示出根据本申请一些实施例提供的室内区域包括至少3个AP的切换方法的示意图;
图10示出根据本申请一些实施例提供的用户设备的布局图;
图11示出根据本申请一些实施例提供的电子设备的结构示意图。
具体实施方式
以下由特定的具体实施例说明本申请的实施方式,本领域技术人员可由本说明书所揭示的内容轻易地了解本申请的其他优点及功效。虽然本申请的描述将结合较佳实施例一起介绍,但这并不代表此发明的特征仅限于该实施方式。恰恰相反,结合实施方式作发明介绍的目的是为了覆盖基于本申请的权利要求而有可能延伸出的其它选择或改造。为了提供对本申请的深度了解,以下描述中将包含许多具体的细节。本申请也可以不使用这些细节实施。此外,为了避免混乱或模糊本申请的重点,有些具体细节将在描述中被省略。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
此外,各种操作将以最有助于理解说明性实施例的方式被描述为多个离散操作;然而,描述的顺序不应被解释为暗示这些操作必须依赖于顺序。特别是,这些操作不需要按呈现顺序执行。应注意的是, 在本说明书中,相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。
应当理解的是,虽然在本文中可能使用了术语“第一”、“第二”等等来描述各个特征,但是这些特征不应当受这些术语限制。使用这些术语仅仅是为了进行区分,而不能理解为指示或暗示相对重要性。举例来说,在不背离示例性实施例的范围的情况下,第一特征可以被称为第二特征,并且类似地第二特征可以被称为第一特征。
除非上下文另有规定,否则术语“包含”、“具有”和“包括”是同义词。短语“A/B”表示“A或B”。短语“A和/或B”表示“(A)、(B)或(A和B)”。
如本文所使用的,术语“模块”、“单元”、“装置”可以指代,可以指或者包括专用集成电路(ASIC)、电子电路、执行一个或多个软件或固件程序的处理器(共享的、专用的或组)和/或存储器(共享的、专用的或组)、组合逻辑电路、和/或提供所描述的功能的其他合适的组件,或者可以是专用集成电路(ASIC)、电子电路、执行一个或多个软件或固件程序的处理器(共享的、专用的或组)和/或存储器(共享的、专用的或组)、组合逻辑电路、和/或提供所描述的功能的其他合适的组件的一部分。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施例作进一步地详细描述。
图1(a)示出根据本申请一些实施例提供的一种室内区域包括2个AP切换的应用场景示意图。图1(b)示出根据本申请一些实施例提供的一种室内区域包括3个AP切换的应用场景示意图。如图1(a)和图1(b)所示的通讯系统10包括用户设备100、AP 200和/或其它电子设备。虽然图1(a)和图1(b)仅分别示出2个AP和3个AP,但本领域技术人员可以理解的是,该通信系统还可以包括大于3个AP的场景,例如4个、5个等。
用户设备100可以是用于便携式或移动电子设备、手机、个人数字助理、蜂窝电话、手持PC、可穿戴设备(例如,智能手表、智能手环等)、便携式媒体播放器、手持设备、导航设备、服务器、网络接入设备、图形设备、视频游戏设备、机顶盒、膝上型设备、虚拟现实和/或增强现实设备、物联网设备、工业控制设备、车载信息娱乐设备、流媒体客户端设备、电子书、阅读设备、POS机或其他设备。
AP 200是无线设备(例如用户设备100)进入有线网络的接入点,相当于无线网和有线网之间沟通的桥梁,是组建无线局域网(WLAN)的核心设备。AP 200主要是提供无线工作站和有线局域网之间的互相访问,在AP 200信号覆盖范围内的无线工作站可以通过它进行相互通信,其主要用于家庭、大楼内部、校园内部、园区内部以及仓库、工厂等需要无线监控的地方。典型距离覆盖几十米至上百米,也可以用于远距离传送。主要技术为WLAN通用的IEEE802.11标准。
在本实施例中,AP 200作为网络接入设备的实例。网络接入设备还可以包括调制解调器、无线路由器(例如:无线网关、无线网桥等)、无线客户前置设备(Customer Premise Equipment,CPE)中的一种或几种。
用户设备100与AP欲首次连接时(例如用户携带用户设备100刚进入室内区域或用户刚打开用户设备100,用户设备100还未与任何AP连接),当用户设备100的WiFi功能被打开后,用户设备100能够通过手动或自动的方式与AP连接。当用户设备100通过手动的方式与AP连接时,用户设备100开始扫描AP,并在扫描到的AP的列表中通过用户手动选择欲连接的AP,进而与该AP建立连接。当用户设备100通过自动的方式与AP连接时,用户设备100能够与信号强度最强的AP连接。用户设备100与AP非首次连接时(例如用户设备已与某一AP连接),用户设备100根据用户设备100的当前位置和与用户设备100已连接的AP,进而判断是否进行AP切换,以使得用户设备100能够及时地切换到信号强度最强的AP上,提高 用户体验。将在下文中具体说明如何进行AP切换。
在现有技术中,用户设备100与某一AP建立连接后,通常只有当用户设备100接收到的AP信号强度小于预定阈值时,才进行AP扫描和切换。但是,当接收到的AP信号强度小于预定阈值时,用户设备已不能正常上网;同时,在未达到预定阈值之前,即便存在信号强度更强的AP,用户设备100也不会自动扫描和切换至该AP上。
而本申请提出的通讯系统10,根据来自不同AP的信号强度大小,将室内区域划分为不同的虚拟区域,例如AP侧区域和预切换区域,进而根据用户设备100的当前所在的虚拟区域(例如AP侧区域和预切换区域)和与用户设备100已连接的AP,判断是否进行AP切换。需要说明的是,在某一AP侧区域内,该AP的信号强度最强,且该AP与信号强度第二强的AP的信号强度差大于阈值(例如阈值可以是10dB、8dB等等)。在预切换区域内,信号强度最强的AP与信号强度第二强的AP的信号强度差小于阈值(例如阈值可以是10dB、8dB等等)。
在其它实施例中,AP侧区域和预切换区域中的阈值可以不相等。例如,AP侧区域中的阈值为第一阈值,预切换区域中的阈值为第二阈值,第一阈值与第二阈值不相等,那么,在某一AP侧区域内,该AP与信号强度第二强的AP的信号强度差大于第一阈值,在预切换区域内,信号强度最强的AP与信号强度第二强的AP的信号强度差小于第二阈值。
下面介绍预切换区域和AP侧区域的获取。首先,获取室内区域的各位置点上接收到的来自不同AP的信号强度,根据上述信号强度获取等信号强度曲线,其中该等信号强度曲线的各位置点上获得的最强两个信号的强度是相等的。例如,在该等信号强度曲线上的某点上获得的最强两个信号分别来自AP1和AP2,并且来自AP1和AP2的信号强度相等(例如-55dBm或其它);然后,在该等信号强度曲线的两侧各推移阈值的二分之一(例如阈值为10dB,阈值的二分之一为5dB)或三分之一的距离,并在室内区域上画出该位置曲线,例如,基于信号强度为-55dBm的等信号强度曲线,获得一信号强度为-50dBm的位置曲线和一信号强度为-60dBm的位置曲线。其中,具体如何通过阈值的二分之一获取对应的距离将在下文中介绍。该位置曲线与室内区域边缘所围成的闭环区域即为预切换区域。室内区域中除去预切换区域之外的区域为包括不同AP的AP侧区域。
下面请参考图2(a)和图2(b)分别说明室内区域包括2个AP和3个AP的情况下的AP侧区域和预切换区域的获取。图2(a)示出根据本申请一些实施例提供的室内区域包括2个AP的AP侧区域和预切换区域。如图2(a)所示,室内区域300包含三个区域,位于AP1侧的AP1侧区域、位于两条虚线内的预切换区域AP1-AP2和位于AP2侧的AP2侧区域。需要说明的是,在AP1侧区域内,用户设备100接收到AP1的信号强度最强,且分别来自AP1和AP2的信号强度差大于阈值;在AP2侧区域内,用户设备100接收到AP2的信号强度最强,且分别来自AP2和AP1的信号强度差大于阈值;在预切换区域AP1-AP2内,分别来自AP1和AP2的信号强度差的绝对值小于阈值。预切换区域的命名以该区域内信号强度最强和信号强度第二强的AP对命名。例如,在预切换区域AP1-AP2中,信号强度最强和信号强度第二强的AP对包括AP1和AP2。
如图2(a)所示,位于AP1侧的AP1侧区域是作为第一区域的实例,在第一区域中,用户设备检测到的来自AP1的信号强度高于用户设备检测到的AP2的信号强度。位于AP2侧的AP2侧区域作为第二区域的实例,在第二区域中,用户设备检测到的来自AP2的第二信号强度高于来自AP1的第一信号强度。
如图2(a)所示,位于两条虚线内的预切换区域AP1-AP2作为第一预切换子区域的实例。在预切换区域AP1-AP2内,分别来自AP1和AP2的信号强度差的绝对值小于阈值。
根据本申请的一些实施例,来自AP1的信号强度和来自AP2的信号强度,可以是用户设备自身检测 到的,也可以是其他的具有测量信号强度功能的设备采集和检测到信号强度后,再发送给用户设备的。
如图2(a)所示,AP1侧区域、AP2侧区域和预切换区域中的阈值可以相等,例如AP1侧区域、预切换区域和AP2侧区域三者相接连。
在其它实施例中,AP1侧区域、AP2侧区域和预切换区域中的阈值可以不相等,例如AP1侧区域、预切换区域和AP2侧区域三者不接连。具体举例而言,在室内有两个AP的情况下,在第一AP侧区域(例如,AP1侧区域)内,第一AP(例如,AP1)的信号强度大于第二AP的信号强度达第一阈值;而在第二AP侧区域(例如,AP2侧区域)内,第二AP(例如,AP2)的信号强度大于第一AP的信号强度达第二阈值,这两个阈值可以不同。这样的方案对于室内环境,可以避免网络的频繁切换。也就是说,可以根据室内房型的具体情况来设置阈值,从而避免在同一区域,例如同一个房间内,既有第一AP区域,又有预切换区域,还有第二AP侧区域,从而导致网络的频繁切换。
在存在预切换区域的情况下,预切换区域中分别来自AP1和AP2的信号强度差的绝对值小于第三阈值。第三阈值可以不同于第一阈值或第二阈值,且不可大于第一阈值和上述第二阈值中最小的那个。举例来说,在第一AP侧区域内,第一AP的信号强度大于第二AP的信号强度达1db(第一阈值);而在第二AP侧区域内,第二AP的信号强度大于第一AP的信号强度达2.5db(第二阈值);设定预切换区域时,第三阈值最大可以设定为1.5db。如此设置,可以根据室内布局和设施情况,对应地设置各AP侧区域和预切换区域。举例来说,当第二阈值为2.5db,第三阈值为1.5db的情况下,在等强度线的靠近AP2一侧,将会出现宽度1db的“真空”区域,在这个“真空”区域即不属于预切换区,也不属于第二AP侧区域。用户可以通过对阈值的设定,使得该“真空”区域覆盖室内的墙壁或者是家具等无需考虑AP切换的区域。
根据本申请的一些实施例,AP1侧区域、AP2侧区域、预切换子区域AP1-AP2可以是用户设备自身测量各信号强度并计算获得。在另外的一些实施例中,这些区域也可以由具有测量信号强度功能和计算功能的设备检测到信号强度后并通过计算获得各个区域之后,再发送给用户设备的。
根据本申请的一些实施例,AP1和AP2是用户设备在室内能够检测/发现到的设备。在另外的一些实施例中,室内可以发现的AP大于2个,但AP1和AP2是授权给用户设备接入的网络接入设备。
根据本申请的其他的一些实施例,某些情况下,预切换区域也可以被省略。举例来说,在室内环境下,如两个AP接收信号强度差值比较小,例如为1db的话,那么预切换区域就可以被省略。在省略预切换区域的情况下,室内区域中只有各个AP侧区域,在每个AP侧区域内,信号最强的两个AP之间的信号强度差值大于或者等于1db,即,一个AP的信号强度大于另一个AP的信号强度。在室内区域之后各AP侧区域的情况下,如果用户设备100当前与AP1连接,并且用户设备100进入非AP1侧区域的其他AP侧区域,例如,AP2侧区域,那么可以确定将用户设备100与AP1连接切换到与其他AP连接,例如与AP2连接。
下面具体说明图2(a)中预切换区域与AP侧区域之间界限(两条虚线)的确定。当室内区域300和2个AP(例如AP1和AP2)的位置确定后,室内区域300内的各个位置点所接收到的AP信号强度可基于如下WiFi信号衰减公式计算获得:
PL=32.4+20log 10(f c)+20log 10(d)  (公式1)
公式1中,PL表示传输损耗,单位以dB计算;
f c表示无线信号频率,单位以MHz计算;
d表示传输距离(例如AP 200到用户设备100之间的距离),单位以km计算。
AP在未传输前的初始发射功率为出厂时的固有发射功率。室内区域300内的各个位置点所接收到的AP的信号强度等于AP的固有发射功率减去传输损耗,单位为dBm。
需要说明的是,室内区域300中的墙体也会对信号衰减产生影响。在一些实施例中,墙体对信号的衰减大小为20dB。在其它一些实施例中,墙体对信号的衰减大小可视墙体的厚度、材质等来确定。
在获得室内区域300内的各个位置点所接收到的AP信号强度后,首先,在室内区域300内画出AP1和AP2信号强度相等(例如AP1=AP2=-55dBm)的等信号强度曲线,如图2(a)所示的两条虚线之间的点划线,在该等信号强度曲线(点划线)上的每个点接收到来自AP1和AP2的信号强度差等于零或者接近零,例如实心圆点303接收到来自AP1和AP2的信号强度差等于零或者接近零;然后在该等信号强度曲线的两侧各推移阈值的二分之一(例如阈值为10dB,阈值的二分之一为5dB等等)的距离(具体的距离可根据上述公式1计算获得,例如将PL等于5dB代入公式1中,求出d,d即为与5dB对应的距离,单位为km),并在室内区域300上画出该位置曲线,即图2(a)所示的两条虚线。
在左边位置曲线(左边虚线)的左侧,AP1的信号强度强于AP2,在右边位置曲线(右边虚线)的右侧,AP2的信号强度强于AP1。每条位置曲线(虚线)上的每个点接收到来自AP1和AP2的信号强度差的绝对值等于阈值,例如实心圆点302接收到来自AP1和AP2的信号强度差的绝对值等于10dB、12dB或其它。左边位置曲线外靠近AP1侧区域内上的每个点接收到来自AP1和AP2的信号强度差大于阈值,例如实心圆点301接收到来自AP1和AP2的信号强度差大于10dB、12dB或其它。右边位置曲线靠近AP2侧区域内上的每个点接收到来自AP2和AP1的信号强度差大于阈值,例如实心圆点304接收到来自AP2和AP1的信号强度差大于10dB、12dB或其它。两条位置曲线(两条虚线)内上的各点接收到来自AP1和AP2的的信号强度差的绝对值小于阈值,例如实心圆点305接收到来自AP1和AP2的信号强度差的绝对值小于10dB、12dB或其它。
当两条位置曲线(两条虚线)确定后,室内区域300内的三个区域(例如AP1侧区域、AP2侧区域和预切换区域AP1-AP2)也由此确定。位置曲线(两条虚线)与室内区域300的边缘所围成的闭环区域即为预切换区域AP1-AP2;左边位置曲线(左边虚线)与室内区域300的边缘所围成的闭环区域即为AP1侧区域;右边位置曲线(右边虚线)与室内区域300的边缘所围成的闭环区域即为AP2侧区域。在预切换区域AP1-AP2内,接收到来自AP1和AP2的信号强度差的绝对值小于阈值(例如10dB、12dB或其它);在AP1侧区域内,接收到来自AP1和AP2的信号强度差大于阈值(例如10dB、12dB或其它);在AP2侧区域内,接收到来自AP2和AP1的信号强度差大于阈值(例如10dB、12dB或其它);在两条位置曲线(两条虚线)上,接收到来自AP1和AP2的信号强度差等于阈值(例如10dB、12dB或其它)。
图2(b)示出根据本申请一些实施例提供的室内区域包括3个AP的AP侧区域和预切换区域。如图2(b)所示,室内区域300包含四个区域,位于AP1侧的AP1侧区域、位于AP2侧的AP2侧区域、位于AP3侧的AP3侧区域以及位于中间的Y型预切换区域。其中,预切换区域包括三个预切换子区域AP1-AP2,预切换子区域AP2-AP3和预切换子区域AP1-AP3。预切换子区域的命名以该区域内信号强度最强和信号强度第二强的AP对命名。例如,在预切换子区域AP1-AP2内,信号强度最强和信号强度第二强的AP对包括AP1和AP2;在预切换子区域AP2-AP3内,信号强度最强和信号强度第二强的AP对包括AP2和AP3;在预切换子区域AP1-AP3内,信号强度最强和信号强度第二强的AP对包括AP1和AP3。
如图2(b)所示,位于AP1侧的AP1侧区域是作为第一区域的实例,在第一区域中,用户设备检测到的来自AP1的信号强度高于用户设备检测到的AP1至AP3中除了AP1以外的设备,例如AP2,AP3的信号强度。位于AP2侧的AP2侧区域作为第二区域的实例。在第二区域中,用户设备检测到的来自AP2的第二信号强度高于来自用户设备检测到的AP1至AP3中除了AP2以外的设备,例如AP1、AP3的第一信号强度。位于AP3侧的AP3侧区域作为第三区域的实例。在第三区域中,用户设备检测到的来自AP3的第二信号强度高于来自用户设备检测到的AP1至AP3中除了AP3以外的设备,例如AP1和AP2,的第一信号 强度。
根据本申请的一些实施例,来自AP1,AP2,AP3的信号强度,可以是用户设备自身检测到的,也可以是其他的具有测量信号强度功能的设备采集和检测到信号强度后,再发送给用户设备的。
根据本申请的一些实施例,AP1、AP2和AP3是用户在室内能够检测/发现到的设备。在另外的一些实施例中,室内可以发现的AP大于3个,但AP1和AP2是授权给用户设备接入的网络接入设备。
如图2(b)所示,预切换子区域AP1-AP2作为第一预切换子区域的实例。在预切换子区域AP1-AP2内,分别来自AP1和AP2的信号强度差的绝对值小于阈值。预切换子区域AP1-AP3作为第二预切换子区域的实例。在第二预切换子区域内,信号强度最强和信号强度第二强的AP对包括AP2和AP3,分别来自AP1和AP3的信号强度差的绝对值小于阈值。预切换子区域AP2-AP3作为第三预切换子区域的实例。在预切换子区域AP2-AP3内,信号强度最强和信号强度第二强的AP对包括AP2和AP3,分别来自AP2和AP3的信号强度差的绝对值小于阈值。
根据本申请的一些实施例,AP1侧区域、AP2侧区域、AP3侧区域、预切换子区域AP1-AP2、预切换子区域AP1-AP3、预切换子区域AP2-AP3可以是用户设备自身测量各信号强度并计算获得。在另外的一些实施例中,这些区域也可以由具有测量信号强度功能和计算功能的设备检测到信号强度后并通过计算获得各个区域之后,再发送给用户设备的。
需要说明的是,预切换子区域的数量与AP在室内区域300中的位置设置相关。室内区域300包括至少3个AP的情况能够形成至少两个预切换子区域。例如,如图2(b)所示,由于图2(b)中的3个AP(AP1、AP2、AP3)的位置设置成三角形形状,因此能够形成三个预切换子区域(预切换子区域AP1-AP2,预切换子区域AP2-AP3和预切换子区域AP1-AP3)。在其它实施例中,3个AP的位置还可以设置在同一条直线上,那么能够形成两个预切换子区域。
根据本申请的其他的一些实施例,某些情况下,部分预切换子区域也可以被省略。举例来说,在室内环境下,如两个AP间接收信号强度差值比较小,例如为1db的话,那么预切换子区域就可以被省略。
在每个AP的AP侧区域内,用户设备100接收到该AP的信号强度最强,且分别来自该AP和信号强度第二强的AP的信号强度差大于阈值。例如,在AP1侧区域内,用户设备100接收到AP1的信号强度最强,并且,来自AP1和AP2的信号强度差大于阈值,AP1和AP2的信号强度大于AP3的信号强度,或者是,来自AP1和AP3的信号强度差大于阈值,AP1和AP3的信号强度大于AP2的信号强度。AP2侧区域和AP3侧区域的情况请参照上述AP1侧区域类推,在此不再赘述。
在每个预切换子区域内,分别来自对应的AP对中的两个AP的信号强度差小于阈值,其中来自对应的AP对中的两个AP的信号强度大于来自三个AP中除了该两个AP之外的其它AP的信号强度。例如,在预切换子区域AP1-AP2中,对应的AP对为AP1和AP2,来自AP1和AP2的两个信号强度差的绝对值小于阈值,其中来自该AP对中的AP1和AP2的信号强度大于AP3的信号强度。预切换子区域AP2-AP3、预切换子区域AP1-AP3的情况请参照预切换子区域AP1-AP2类推,在此不再赘述。
如图2(b)所示,AP1侧区域、AP2侧区域、AP3侧区域和预切换区域的阈值可以相等,例如AP1侧区域、AP2侧区域、AP3侧区域和预切换区域四者相接连。在其它实施例中,AP1侧区域、AP2侧区域、AP3侧区域和各个预切换区域的阈值也可以不相等,例如AP1侧区域、AP2侧区域、AP3侧区域和预切换区域四者不接连。关于,AP1侧区域、AP2侧区域、AP3侧区域和各预切换区域的阈值的设定,与图2(a)所述实施例的设置方式类似,此处不再赘述。通过如此设置,可以根据室内的布局和设施情况进行灵活的AP设置。
下面具体说明图2(b)中预切换区域与AP侧区域之间界限(Y型预切换区域的六条边界线)的确定。 首先,获取室内区域的各位置点上接收到的来自不同AP的信号强度,根据上述信号强度获取等信号强度曲线,其中所述等信号强度曲线的各位置点上获得的最强两个信号的强度是相等的。例如,在该等信号强度曲线上的某点上获得的最强两个信号分别来自AP1和AP2,并且来自AP1和AP2的信号强度相等(例如AP1=AP2=-55dBm,当然也可以为其它值,例如-50dBm、-60dBm等),如图2(b)所示的三条Y型点划线,在该等信号强度曲线(三条点划线)上的每个点接收到来自信号强度最强和信号强度第二强(例如AP1和AP2,或AP1和AP3,或AP2和AP3)的信号强度差等于零,例如实心圆点312,该点上信号强度最强和信号强度第二强的AP包括AP1和AP2,那么该点上来自AP1和AP2的信号强度差为零或者接近零;然后在该三条等信号强度曲线的两侧各推移阈值的二分之一(例如阈值为10dB,阈值的二分之一为5dB)的距离(具体的距离可根据上述公式1计算获得,例如将PL等于5dB代入公式1中,求出d,d即为5dB对应的距离,单位为km),在室内区域上画出该位置曲线,即图2(b)所示的Y型预切换区域边界的六条实线。每条位置曲线(实线)上的每个点接收到来自信号强度最强的AP和信号强度第二强的AP的信号强度差等于阈值(例如10dB、12dB或其它),例如实心圆点314,该点上信号强度最强和信号强度第二强的AP包括AP1和AP2,那么该点上来自AP1和AP2的信号强度差等于10dB、12dB或其它,六条位置曲线(实线)内上的每个点接收到来自信号强度最强的AP和信号强度第二强的AP的信号强度差小于阈值,例如实心圆点313,该点上信号强度最强和信号强度第二强的AP包括AP1和AP2,那么该点上来自AP1和AP2的信号强度差的绝对值小于10dB、12dB或其它。在位置曲线(实线)靠近某一AP的一侧,来自该AP和信号强度第二强的AP的信号强度差大于阈值,例如实心圆点311上来自AP1和信号强度第二强的AP的信号强度差大于10dB;实心圆点315上来自AP2和信号强度第二强的AP的信号强度差大于10dB。
当预切换区域边界的六条实线确定后,室内区域300内的四个区域(例如AP1侧区域、AP2侧区域、AP3侧区域预切换区域)也由此确定。而在Y型预切换区域内,为了进一步分割出各个预切换子区域(例如预切换子区域AP1-AP2、预切换子区域AP2-AP3、预切换子区域AP1-AP3),那么,在预切换区域内,根据每一点上接收到信号强度最强和信号强度第二强的两个AP划分区域,例如在预切换区域内,寻找信号强度第二强的AP的数量有2个的点,由这些点构成的三条实线进而将预切换区域划分为三个预切换子区域AP1-AP2、预切换子区域AP2-AP3、预切换子区域AP1-AP3。例如,在预切换子区域AP1-AP2内,来自信号强度最强和信号强度第二强的AP包括AP1和AP2。如图2(b)所示,Y型预切换区域六条边界线中的相邻的每两条不相互平行的实线与室内区域的边缘所围成的闭环区域即为AP侧区域,Y型预切换区域内的三条实线中的每两条实线、Y型预切换区域六条边界线的中的每两条相互平行的实线,与室内区域的边缘所围成的闭环区域即为各个预切换子区域。
在预切换子区域AP1-AP2内,接收到来自AP1和AP2的信号强度差的绝对值小于阈值(例如10dB、12dB或其它);在预切换子区域AP1-AP3内,接收到来自AP1和AP3的信号强度差的绝对值小于阈值(例如10dB、12dB或其它);在预切换子区域AP2-AP3内,接收到来自AP2和AP3的信号强度差的绝对值小于阈值(例如10dB、12dB或其它);在AP1侧区域内,接收到来自AP1和信号强度第二强的AP的信号强度差大于阈值(例如10dB、12dB或其它);在AP2侧区域内,接收到来自AP2和信号强度第二强的AP的信号强度差大于阈值(例如10dB、12dB或其它);在AP3侧区域内,接收到来自AP3和信号强度第二强的AP的信号强度差大于阈值(例如10dB、12dB或其它);在位置曲线(实线)上,接收到来自信号强度最强的AP和信号强度第二强的AP的信号强度差等于阈值(例如10dB、12dB或其它)。
在对室内区域进行划分后,进而基于用户设备100的WiFi定位获取用户设备100当前所在的区域(例如AP侧区域或预切换区域),以判断是否进行AP切换。AP切换判断的规则为,基于用户设备的当前位 置,判断其是否位于与已连接的AP相关的区域内,以判断是否进行AP切换。如果用户设备的当前位置位于与已连接的AP相关的区域内,那么不进行AP切换;如果用户设备的当前位置不位于与已连接的AP相关的区域内,那么进行AP切换,将其切换到与当前位置相关的AP上。
需要说明的是,在室内区域包括2个AP的情况下,“与已连接的AP相关的区域”包括与该AP对应的AP侧区域和包括该AP的AP对对应的预切换区域。与该AP对应的AP侧区域,可以理解的是,在该AP侧区域内,用户设备接收到该AP的信号强度最强,且该AP与信号强度第二强的AP的信号强度差大于阈值;与包括该AP的AP对对应的预切换区域,可以理解的是,在该预切换区域内,用户设备接收到信号强度最强和信号强度第二强的两个AP中包括该AP,且信号强度最强和信号强度第二强的AP的信号强度差小于阈值。“与当前位置相关的AP”,可以理解的是,如果当前位置在一AP侧区域,那么,与当前位置相关的AP为与该AP侧区域对应的AP;如果当前位置在一预切换区域内,那么,与当前位置相关的AP为与该预切换区域对应的AP对中的两个AP。
在室内区域包括3个AP的情况下,“与已连接的AP相关的区域”包括与该AP对应的AP侧区域和包括该AP的AP对组合对应的预切换子区域。与该AP对应的AP侧区域,可以理解的是,在该AP侧区域内,用户设备接收到该AP的信号强度最强,且该AP与信号强度第二强的AP的信号强度差大于阈值;与包括该AP的AP对组合对应的预切换子区域,可以理解的是,在该预切换子区域内,用户设备接收到信号强度最强和信号强度第二强的两个AP中包括该AP,且信号强度最强和信号强度第二强的AP的信号强度差小于阈值。与该AP对应的AP对组合可以理解的是,至少包括两个AP对,且每个AP对中包括该AP。“与当前位置相关的AP”,可以理解的是,如果当前位置在一AP侧区域,那么,与当前位置相关的AP为与该AP侧区域对应的AP;如果当前位置在一预切换子区域内,那么,与当前位置相关的AP为与该预切换子区域对应的AP对中的两个AP。
以用户设备100已与AP1连接为例。对于室内区域包括2个AP的情况,与AP1对应的AP侧区域为AP1侧区域,AP1对组合为AP1-AP2,那么,与该AP1对组合对应的预切换区域为预切换区域AP1-AP2。与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与包括AP1的AP对对应的预切换区域AP1-AP2。如果用户设备的当前位置位于AP1侧区域或预切换区域AP1-AP2,那么,由于用户设备的当前位置位于与AP1相关的区域内,不切换AP;如果用户设备的当前位置位于AP2侧区域,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(AP2侧区域)相关的AP2,其中,当前位置为AP2侧区域时,那么,与其相关的AP为AP2,并且在AP2侧区域内,用户设备接收到AP2的信号强度最强。
对于室内区域包括3个AP的情况,与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与包括AP1的AP对组合相对应的第一预切换子区域,其中包括AP1的AP对包括AP1和AP2,AP1和AP3,那么,包括AP1的AP对组合包括AP1和AP2对,以及AP1和AP3对,与包括AP1的AP对组合相对应的第一预切换子区域包括预切换子区域AP1-AP2、预切换子区域AP1-AP3。如果用户设备的当前位置位于AP1侧、或预切换子区域AP1-AP2、预切换子区域AP1-AP3,那么,由于用户设备的当前位置位于与AP1相关的区域内,不切换AP。如果用户设备的当前位置位于AP2侧区域,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(AP2侧区域)相关的AP2,其中,当前位置为AP2侧区域时,那么,与其相关的AP为AP2,并且,在AP2侧区域内,用户设备接收到AP2的信号强度最强。如果用户设备的当前位置位于AP3侧区域,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(AP3侧区域)相关的AP3,其中,当前位置为AP3侧区域时,那么,与其相关的AP为AP3,并且在AP3侧区域内,用户设备接收到AP3的信号强 度最强。如果用户设备的当前位置位于预切换子区域AP2-AP3,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1随机切换到与当前位置(预切换子区域AP2-AP3)相关的AP2或AP3上,其中,当前位置为预切换子区域AP2-AP3时,那么,与其相关的AP为AP2或AP3,并且,在预切换子区域AP2-AP3内,用户设备接收到AP2或AP3的信号强度强于AP1。
下面请参考图2(a)和图2(b)分别说明室内区域包括2个AP和3个AP的情况下的AP切换规则。以用户设备100已与AP1连接为例。如图2(a)所示,预切换区域AP1-AP2的左侧的区域为与AP1对应的AP1侧区域,预切换区域AP1-AP2的右侧的区域为与AP2对应的AP2侧区域。与已连接的AP1的相关区域为AP1侧区域和预切换区域AP1-AP2。如果用户设备100的当前位置位于AP2侧区域,那么,由于当前位置不位于与已连接的AP1相关的区域(AP1侧区域和预切换区域AP1-AP2),用户设备100从与AP1连接切换到与当前位置(AP2侧区域)相关的AP2连接,在AP2侧区域内,用户设备接收到AP2的信号强度最强;如果用户设备100的当前位置位于AP1侧区域或预切换区域AP1-AP2,那么,由于当前位置位于与已连接的AP1相关的区域(AP1侧区域和预切换区域AP1-AP2),不切换AP。
如图2(b)所示,预切子换区域AP1-AP2与预切子换区域AP1-AP3之间的区域为AP1侧区域,预切子换区域AP1-AP2与预切子换区域AP2-AP3之间的区域为AP2侧区域,预切子换区域AP1-AP3与预切子换区域AP2-AP3之间的区域为AP3侧区域。与已连接的AP1的相关区域为AP1侧区域和预切换子区域AP1-AP2、预切换子区域AP1-AP3。如果用户设备100的当前位置位于AP2侧区域,那么,由于当前位置不位于与已连接的AP1相关的区域(AP1侧区域和预切换区域AP1-AP2、AP1-AP3),用户设备100从与AP1连接切换到与当前位置(AP2侧区域相关)相关的AP2连接,在AP2侧区域内,用户设备接收到AP2的信号强度最强。如果用户设备100的当前位置分别位于AP3侧区域,那么,由于当前位置不位于与已连接的AP1相关的区域(AP1侧区域和预切换子区域AP1-AP2、预切换子区域AP1-AP3),用户设备100从与AP1连接切换到与当前位置(AP3侧区域相关)相关的AP3连接,在AP3侧区域内,用户设备接收到AP3的信号强度最强。如果用户设备100的当前位置分别位于预切子换区域AP2-AP3,那么,由于当前位置不位于与已连接的AP1相关的区域(AP1侧区域和预切换子区域AP1-AP2、预切换子区域AP1-AP3),用户设备100从与AP1连接随机切换到与当前位置(预切子换区域AP2-AP3)相关的AP2或AP3连接,在预切换子区域AP2-AP3内,用户设备接收到AP2或AP3的信号强度强于AP1。如果用户设备100的当前位置位于AP1侧区域或预切换子区域AP1-AP2或预切换子区域AP1-AP3,那么,由于当前位置位于与已连接的AP1相关的区域(AP1侧区域和预切换子区域AP1-AP2、预切换子区域AP1-AP3),不切换AP。
由于用户设备100在移动过程中或移动后静止一段时间后,能够主动地进行AP切换,以使用户设备100能够及时地切换至信号强度最强的AP上,用户体验感佳,且资源利用率高。以用户设备100已与AP1连接为例,如前所述,当用户设备100从AP1侧区域移动到AP2侧区域,用户设备100从与AP1连接主动切换到AP2连接,而在AP2侧区域内,用户设备100接收到AP2的信号强度最强。同时,预切换区域的设置,能够避免由于WiFi定位所造成的误差,以及用户移动所导致的频繁切换。
以上实施例说明了主要基于用户设备100(相对于AP)所在的位置来判断是否切换AP方案。这样的方案可以简化AP切换的判断,在使用的过程中,不需要测量用户设备与各AP之间的接收信号强度,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高AP切换的效率从而提高用户体验。
图3示出根据本申请一些实施例提供的用户设备100的框图。如图3所示,用户设备100可以包括一个或多个处理器102,与处理器102中的至少一个连接的系统控制逻辑108,与系统控制逻辑108连接的系统内存104,与系统控制逻辑108连接的非易失性存储器(NVM)106,以及与系统控制逻辑108连接的网 络接口110。网络接口110可以包括Wi-Fi模块。
处理器102可以包括一个或多个单核或多核处理器。处理器102可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任何组合。
在一些实施例中,系统控制逻辑108可以包括任意合适的接口控制器,以向处理器102中的至少一个和/或与系统控制逻辑108通信的任意合适的设备或组件提供任意合适的接口。
在一些实施例中,系统控制逻辑108可以包括一个或多个存储器控制器,以提供连接到系统内存104的接口。系统内存104可以用于加载以及存储数据和/或指令。在一些实施例中设备100的内存104可以包括任意合适的易失性存储器,例如合适的动态随机存取存储器(DRAM)。
NVM/存储器106可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,NVM/存储器106可以包括闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如HDD(Hard Disk Drive,硬盘驱动器),CD(Compact Disc,光盘)驱动器,DVD(Digital Versatile Disc,数字通用光盘)驱动器中的至少一个。
NVM/存储器106可以包括安装在设备100的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口110通过网络访问NVM/存储106。
特别地,系统内存104和NVM/存储器106可以分别包括:指令120的暂时副本和永久副本。在一些实施例中,指令120、硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑708,网络接口710和/或处理器702中。
系统内存104中可以包括室内区域获取模块121、AP位置获取模块122、用户设备位置获取模块123、AP侧区域获取模块124、预切换区域获取125以及AP切换判断模块126。需要说明的是,“获取”可以是通过模块自身计算获得,也可以是通过另一方输入获得,例如从云端或另一个用户设备输入获得。
室内区域获取模块121用于获取室内区域的具体结构,例如户型图。室内区域可以通过声波探测和传感器、以及深度相机或其它方式获取。在其它实施例中,室内区域也可以是根据已有的户型图以获取。
室内区域可以是通过声波探测结合传感器获取。用户设备100的传感器包括加速度传感器、陀螺仪传感器或其它。其中,加速度传感器可以通过三个维度确定加速度方向;陀螺仪传感器可以测定方向以及移动轨迹。当欲获取室内区域时,用户手持用户设备100绕室内区域的边界行走一圈,通过用户设备100的传感器获取室内区域的大致边界轮廓,再通过声波探测以获取用户与墙体之间的距离,以对获取的室内区域的大致边界轮廓进行修正,获取最终的室内区域的具体结构,例如户型图。
根据本申请的一些实施例,图3所示的架构也可以实现为SoC(System on Chip,片上系统)、集成电路(IC)或IC集合(例如,芯片组)等。
下面请参考图4(a)以说明通过声波探测的工作原理。图4(a)示出根据本申请一些实施例提供的声波探测的工作原理。如图4(a)所示,超声波发射器向一定方向发射声波,同时开始计时,超声波在空气介质中传播,遇到障碍物后返回,超声波接收器收到反射波后立刻停止计时,进而根据声波的传播速度和计时器所记录的时间计算获取发射点距障碍物的距离,例如用户与墙体之间的距离。
室内区域可以是通过深度相机获取。下面请参考图4(b)以说明通过深度相机以获取室内区域。图4(b)示出根据本申请一些实施例提供的深度相机的方式获取室内区域。如图4(b)所示,用户设备100利用双摄像头拍摄室内区域,再通过三角形原理计算物体距离。例如,图4(b)中的直线B、直线B与另外两条边的夹角(例如β角)为已知角,那么通过三角形原理可计算每个三角形中的任一边长与角度,进而通过边长获取室内区域。
请继续参考图3,以说明系统内存104的其它指令,例如获取AP位置122、获取用户设备位置123、 获取AP侧区域124、获取预切换区域125,以及AP切换判断126。
AP位置获取模块122用于获取每个AP在室内区域内的相应位置。获取AP位置122可以是通过用户手动在已获得的室内区域中输入相应AP的位置和数量。在其它实施例中,获取AP位置122也可以是通过应用自动生成。例如,在应用中输入室内区域,该应用会根据最优的情况以输出AP的位置和数量。
用户设备位置获取模块123用于获取用户设备在室内区域内的具体位置。用户设备位置可以是通过WiFi定位例如指纹库法或测距测角法获取。在其它实施例中,用户设备位置还可以是根据多方案融合定位获取,例如WiFi定位可以结合其它定位技术(例如蓝牙、红外线、声波、传感器等)进行融合定位以提高定位精度。
用户设备位置可以是通过指纹库法获取。下面请参考图5(a)以说明通过指纹库法获取用户设备位置。图5(a)示出根据本申请一些实施例提供的指纹库法获取用户设备位置。如图5(a)所示,在获取AP的数量和位置(参考图5(a)中的空心小圆圈)后,对室内区域均匀选取位置点(参考图5(a)中的实心小方块),获取选取位置点接收到两个AP的信号强度,以建立指纹数据库。根据用户所接收到的两个AP的信号强度进而能够确定用户设备所在的位置。需要说明的是,图5(a)中仅示出2个AP的情况,但本领域技术人员可以理解的是,还可以包括3个等3个以上AP的情况。对室内区域的选取位置点的数量可以由用户决定。选取位置点也可以是非均匀地选取。
用户设备位置可以是通过测距测角法获取。下面请参考图5(b)说明通过测距测角法获取用户设备位置。图5(b)示出根据本申请一些实施例提供的测距测角法获取用户设备位置。如图5(b)所示,根据WiFi信号往返传播时间以确定AP与用户设备之间的距离,例如通过传播时间乘以光速以确定AP与用户设备之间的距离。根据多天线以确定AP与用户设备的相对角度,进而基于距离和相对角度确定用户设备位置。
本申请通过获取用户设备位置,并通过判断用户设备100相对于AP所在的位置来判断是否切换AP方案。相较于利用那个信号测量的方法判断是否进行AP切换,这样的方案可以简化AP切换的判断,提高切换效率及用户体验。
AP侧区域获取模块124和预切换区域获取模块125分别用于根据室内区域内不同AP的信号强度,将室内区域划分为AP侧区域和预切换区域。下面介绍获取预切换区域和获取AP侧区域。首先,在室内区域上画出两两AP之间信号强度相等的等信号强度曲线(例如-55dBm或其它);然后,在该等信号强度曲线的两侧各推移二分之一的阈值(例如阈值为10dB或其它),在室内区域上画出该位置曲线。该位置曲线与室内区域边缘所围成的闭环区域即为预切换区域。室内区域中除去预切换区域之外的区域为包括不同AP的AP侧区域。具体如何获取预切换区域和AP侧区域,请参照上文图2(a)和图2(b)所示及其相关说明。
AP切换判断模块126用于根据用户设备的当前所在室内区域的不同区域与用户设备已连接的AP情况,进而进行AP切换判断。AP切换判断的规则为,基于用户设备的当前位置,判断其是否位于与已连接的AP相关的区域内,以判断是否进行AP切换。如果用户设备的当前位置位于与已连接的AP相关的区域内,那么不切换AP;如果用户设备的当前位置不位于与已连接的AP相关的区域内,那么切换AP,将其切换到与当前位置相关的AP上。
以用户设备100已与AP1连接为例。对于室内区域包括2个AP的情况,与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与包括AP1的AP对对应的预切换区域AP1-AP2。如果用户设备的当前位置位于AP1侧区域或预切换区域AP1-AP2,那么,由于用户设备的当前位置位于与AP1相关的区域内,不切换AP;如果用户设备的当前位置位于AP2侧区域,那么,由于用户设备的当前位置不位于与AP1相关 的区域内,切换AP,将AP从AP1切换到与当前位置(AP2侧区域)相关的AP2。
对于室内区域包括3个AP的情况,与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与包括AP1的AP对组合相对应的预切换子区域,其中包括AP1的AP对包括AP1和AP2对,AP1和AP3对,那么,包括AP1的AP对组合包括AP1和AP2对,以及AP1和AP3对,与包括AP1的AP对组合相对应的预切换子区域为预切换子区域AP1-AP1、预切换子区域AP1和AP3。如果用户设备的当前位置位于AP1侧、或预切换子区域AP1-AP1、预切换子区域AP1和AP3,那么,由于用户设备的当前位置位于与AP1相关的区域内,不切换AP;如果用户设备的当前位置位于AP2侧区域,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(AP2侧区域)相关的AP2;如果用户设备的当前位置位于AP3侧区域,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(AP3侧区域)相关的AP3;如果用户设备的当前位置位于预切换子区域AP2-AP3,那么,由于用户设备的当前位置不位于与AP1相关的区域内,切换AP,将AP从AP1切换到与当前位置(预切换子区域AP2-AP3)相关的AP2或AP3上。
下面请参考图6(a)-(f)具体说明对于室内区域包括2个AP的AP切换情况,以下均以用户设备已与AP1连接为例。图6(a)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图一。如图6(a)所示,用户设备(参照图6(a)中的斜线三角形)从AP1侧区域移动到AP2侧区域,由于用户设备的当前位置位于AP2侧区域,不位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备从与AP1连接切换至与当前位置(AP2侧区域)相关的AP2连接。在AP2侧区域内,用户设备接收到AP2的信号强度最强,当用户移动到AP2侧区域时,用户设备自动地切换到该信号最强的AP2上,用户体验感佳。
图6(b)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图二。如图6(b)所示,用户设备(参照图6(b)中的斜线三角形)从预切换区域AP1-AP2移动到AP2侧区域,由于用户设备的当前位置位于AP2侧区域,不位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备从与AP1连接切换至与当前位置(AP2侧区域)相关的AP2连接。在AP2侧区域内,用户设备接收到AP2的信号强度最强,当用户移动到AP2侧区域时,用户设备自动地切换到该信号最强的AP2上,用户体验感佳。
图6(c)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图三。如图6(c)所示,用户设备(参照图6(c)中的斜线三角形)在AP1侧区域内移动,由于用户设备的当前位置位于AP1侧区域,位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备不切换AP。
图6(d)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图四。如图6(d)所示,用户设备(参照图6(d)中的斜线三角形)在预切换区域AP1-AP2内移动,由于用户设备的当前位置位于预切换区域AP1-AP2,位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备不切换AP。
图6(e)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图五。如图6(e)所示,用户设备(参照图6(e)中的斜线三角形)从AP1侧区域移动到预切换区域AP1-AP2,由于用户设备的当前位置位于预切换区域AP1-AP2,位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备不切换AP。
图6(f)示出根据本申请一些实施例提供的室内区域包括2个AP的切换情况示意图六。如图6(f)所示,用户设备(参照图6(f)中的斜线三角形)从预切换区域AP1-AP2移动到AP1侧区域,由于用户 设备的当前位置位于AP1侧区域,位于与已连接的AP1的相关的区域内(AP1侧区域和预切换区域AP1-AP2),那么,用户设备不切换AP。
在其它一些实施例中,为了避免WiFi一直定位影响用户的正常上网且耗电,可以通过每隔n秒进行WiFi定位,n的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,n的具体取值可根据WiFi定位对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。
在其它一些实施例中,为了避免用户设备在AP之间来回切换,可以通过设置静止期间,以避免用户设备的乒乓切换。当用户设备静止m秒后(例如用户设备移动到某一区域内静止m秒后)还未有位移变化,那么,用户设备马上进行AP切换。当用户设备静止未到m秒再次进行移动(例如用户设备一直在移动或用户设备移动到某一区域静止未到m秒再次进行移动),那么,用户设备不马上进行AP切换。m的取值范围为2~4秒,包括2秒和4秒。又例如,还可以在用户设备移动到某个区域之后,超过预设秒则切换,而不管用户设备在该区域内是运动还是静止。本领域技术人员可以理解的是,m的具体取值可根据AP切换频率对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。用户设备在保持静止期间不进行WiFi定位,这是由于当前自动连接的AP已为信号最佳的AP,所以无需进行WiFi定位和AP切换操作。
下面请参考图7(a)-(h)具体说明对于室内区域包括3个AP的AP切换情况,以下均以用户设备已与AP1连接为例。图7(a)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图一。如图7(a)所示,用户设备(参照图7(a)中的斜线三角形)从AP1侧区域移动到AP2侧区域,由于用户设备的当前位置位于AP2侧区域,不位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备从与AP1连接切换至与当前位置(AP2侧区域)相关的AP2连接。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。在AP2侧区域内,用户设备接收到AP2的信号强度最强,当用户移动到AP2侧区域时,用户设备自动地切换到该信号最强的AP2上,用户体验感佳。
图7(b)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图二。如图7(b)所示,用户设备(参照图7(b)中的斜线三角形)从预切换子区域AP1-AP2移动到AP2侧区域,由于用户设备的当前位置位于AP2侧区域,不位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备从与AP1连接切换至与当前位置(AP2侧区域)相关的AP2连接。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。在AP2侧区域内,用户设备接收到AP2的信号强度最强,当用户移动到AP2侧区域时,用户设备自动地切换到该信号最强的AP2上,用户体验感佳。
图7(c)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图三。如图7(c)所示,用户设备(参照图7(c)中的斜线三角形)在AP1侧区域内移动,由于用户设备的当前位置位于AP1侧区域,位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备不切换AP。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。
图7(d)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图四。如图7(d)所示,用户设备(参照图7(d)中的斜线三角形)在预切换子区域AP1-AP2内移动,由于用户设备的当前位置位于预切换子区域AP1-AP2,位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备不切换AP。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。
图7(e)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图五。如图7(e)所示,用户设备(参照图7(e)中的斜线三角形)从AP1侧区域移动到预切换子区域AP1-AP2,由于用户设备的当前位置位于预切换子区域AP1-AP2,位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备不切换AP。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。
图7(f)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图六。如图7(f)所示,用户设备(参照图7(f)中的斜线三角形)从预切换子区域AP1-AP2移动到AP1侧区域,由于用户设备的当前位置位于AP1侧区域,位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备不切换AP。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换子区域AP1-AP2、AP1-AP3。
图7(g)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图七。如图7(g)所示,用户设备(参照图7(g)中的斜线三角形)从AP1侧区域移动到预切换子区域AP2-AP3,由于用户设备的当前位置位于预切换子区域AP2-AP3,不位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备从与AP1连接切换至与当前位置(预切换子区域AP2-AP3)相关的AP2或AP3连接。其中,如前所述,AP1对组合包括AP1和AP2对、AP1和AP3对,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。在预切换子区域AP2-AP3内,用户设备接收到信号强度最强和信号强度第二强的AP包括AP2和AP3,当用户移动到预切换子区域AP2-AP3时,用户设备随机切换到该信号强度优于AP1的AP2或AP3上,用户体验感佳。
图7(h)示出根据本申请一些实施例提供的室内区域包括3个AP的切换情况示意图七。如图7(g)所示,用户设备(参照图7(g)中的斜线三角形)从预切换子区域AP1-AP2切换到预切换子区域AP2-AP3,由于用户设备的当前位置位于预切换子区域AP2-AP3,不位于与已连接的AP1的相关的区域内(AP1侧区域和AP1对组合对应的预切换子区域),那么,用户设备从与AP1连接切换至与当前位置(预切换子区域AP2-AP3)相关的AP2或AP3连接。其中,如前所述,AP1对组合包括AP1-AP2、AP1-AP3,那么,与AP1对组合对应的预切换子区域包括预切换区域AP1-AP2、AP1-AP3。在预切换子区域AP2-AP3内,用户设备接收到信号强度最强和信号强度第二强的AP包括AP2和AP3,当用户移动到预切换子区域AP2-AP3时,用户设备随机切换到该信号强度优于AP1的AP2或AP3上,用户体验感佳。
另外,根据用户设备100(相对于AP)所在的位置来判断是否切换AP方案,可以简化AP切换的判断,在使用的过程中,不需要测量用户设备与各AP之间的接收信号强度,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高AP切换的效率从而提高用户体验。
在其它一些实施中,为了避免WiFi一直定位影响用户的正常上网且耗电,可以通过每隔n秒进行WiFi定位,n的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,n的具体取值可根据WiFi定位对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。
在其它一些实施例中,为了避免用户设备在AP之间来回切换,可以通过设置静止期间,以避免用户设备的乒乓切换。当用户设备静止m秒后(例如用户移动到某一区域内静止m后)还未有位移变化,那么,用户设备马上进行AP切换。当用户设备静止未到m秒再次进行移动(例如用户设备一直在移动或用户设备移动到某一区域静止未到m秒再次进行移动),那么,用户设备不马上进行AP切换。m的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,m的具体取值可根据AP切换频率对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。用户设备在保持静止期间不进行WiFi定位,这是由于当前自动连接的AP已为信号最佳的AP,所以无需进行WiFi定位和AP切换操作。
网络接口110可以包括收发器,用于为设备100提供无线电接口,进而通过一个或多个网络与任意其他合适的设备(如前端模块,天线等)进行通信。在一些实施例中,网络接口110可以集成于设备100的其他组件。例如,网络接口110可以集成于处理器102的,系统内存104,NVM/存储器106,和具有指令的固件设备(未示出)中的至少一种,当处理器102中的至少一个执行所述指令时,设备100实现图3-6所示的各种实施例的一个或多个实施例。
网络接口110可以进一步包括任意合适的硬件和/或固件,以提供多输入多输出无线电接口。例如,网络接口110可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。
在一个实施例中,处理器102中的至少一个可以与用于系统控制逻辑108的一个或多个控制器的逻辑封装在一起,以形成系统封装(SiP)。在一个实施例中,处理器102中的至少一个可以与用于系统控制逻辑108的一个或多个控制器的逻辑集成在同一管芯上,以形成片上系统(SoC)。
设备100可以进一步包括:输入/输出(I/O)设备112。I/O设备112可以包括用户界面,使得用户能够与设备100进行交互;外围组件接口的设计使得外围组件也能够与设备100交互。在一些实施例中,设备100还包括传感器,用于确定与设备100相关的环境条件和位置信息的至少一种。
在一些实施例中,用户界面可包括但不限于显示器(例如,液晶显示器,触摸屏显示器等),扬声器,麦克风,一个或多个相机(例如,静止图像照相机和/或摄像机),手电筒(例如,发光二极管闪光灯)和键盘。
在一些实施例中,外围组件接口可以包括但不限于非易失性存储器端口、音频插孔和电源接口。
在一些实施例中,传感器可包括但不限于陀螺仪传感器,加速度计,近程传感器,环境光线传感器和定位单元。定位单元还可以是网络接口910的一部分或与网络接口910交互,以与定位网络的组件(例如,全球定位系统(GPS)卫星)进行通信。
图8示出根据本申请一些实施例提供的室内区域包括2个AP的切换方法的示意图。
如图8中的框801所示,获取室内区域,例如户型图。获取室内区域可以通过声波探测和传感器、以及深度相机或其它方式获取。在其它实施例中,获取室内区域也可以是根据已有的户型图以获取。当然,在具体实施过程中,也可以获取室外区域,在本发明实施例不作限制。具体如何获取室内区域,请参照上述图3中的相关描述,在此不再赘述。
如图8中的框802所示,获取室内区域中AP1和AP2的位置。AP1和AP2位置的获取可以是通过用户手动在已获得的室内区域中输入相应AP的位置和数量。在其它实施例中,AP1和AP2的位置也可以是通过应用自动生成。例如,在应用中输入室内区域,该应用会根据最优的情况以输出AP的位置和数量。
如图8中的框803所示,获取室内区域中的AP1侧区域和AP2侧区域。具体如何获取AP1侧区域和AP2侧区域请参照上述图2(a)及其相关描述,在此不再赘述。
如图8中的框804所示,获取室内区域中的预切换区域。由上述框803可知,当AP1、AP2侧区域与预切换区域的阈值相等时,AP1、AP2侧区域的获取与预切换区域的获取并无先后顺序,在获取预切换区域的同时也获取AP1、AP2侧区域,同样地,在获取AP1、AP2侧区域的同时也获取预切换区域,在此不再赘述。
如图8中的框805所示,用户设备手动或自动与AP例如AP1连接。当用户设备通过手动的方式与AP1连接时,在用户设备的WiFi功能被打开后,用户设备100开始扫描AP,并在扫描到的AP的列表中通过用户手动选择欲连接的AP1,进而与该AP1建立连接。当用户设备100通过自动的方式与AP1连接时,用户设备100自动地与信号强度最强的AP1连接(假设此时AP1的信号强度最强)。
如图8中的框806所示,获取用户设备在室内区域的当前位置。用户设备在室内区域的当前位置可以 是通过WiFi定位例如指纹库法或测距测角法获取。具体如何获取用户设备在室内区域的当前位置请参照上述5(a)和5(b)及其相关描述,在此不再赘述。在其它实施例中,用户设备位置还可以是根据多方案融合定位获取,例如WiFi定位可以结合其它定位技术(例如蓝牙、红外线、声波、传感器等)进行融合定位以提高定位精度。
如图8中的框807所示,判断用户设备是否保持静止m秒。用户设备在保持静止期间不进行WiFi定位。如果用户设备静止m秒后(例如用户移动到某一区域内静止m后)还未有位移变化,那么,用户设备根据框809的判断马上进行AP切换。如果用户设备静止后未到m秒再次进行移动,那么,用户设备不马上进行AP切换,而是回到框807再次获取用户设备在室内区域的当前位置。通过设置静止期间,能够避免用户设备在AP之间的来回切换,进而避免乒乓切换。m的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,m的具体取值可根据AP切换频率对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。在其它实施例中,也可以不包括框808的判断步骤。
如图8中的808所示,判断用户设备的当前位置是位于AP1侧区域、预切换区域AP1-AP2还是AP2侧区域,以判断是否进行AP切换。如果用户设备的当前位置位于与已连接的AP1相关的区域,那么不进行AP切换,继续获取用户设备在室内区域内的当前位置;如果用户设备的当前位置不位于与已连接的AP1相关的区域,那么进行AP切换,将用户设备从已连接的AP1切换到与当前位置相关的AP上。与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与AP1对应的预切换区域AP1-AP2。
下面结合图2(a)以具体说明AP切换。如果用户设备的当前位置位于与已连接的AP1相关的区域,例如用户设备的当前位置位于AP1侧区域或预切换区域AP1-AP2,那么,如图8中的框809所示,判断不进行AP切换,进而如图8中的框806所示,继续获取用户设备在室内区域的当前位置。如果用户设备的当前位置不位于与已连接的AP1相关的区域,例如用户设备的当前位置位于AP2侧区域,那么,如图8中的框810所示,判断进行AP切换,将用户设备从AP1切换到与当前位置(AP2侧区域)相关的AP2,进而如图8中框811所示,继续获取室内区域的下一个当前位置。
如图8中的框812所示,判断用户设备是否保持静止m秒。用户设备在保持静止期间不进行WiFi定位。如果用户设备静止m秒后(例如用户移动到某一区域内静止m后)还未有位移变化,那么,用户设备根据框809的判断马上进行AP切换。如果用户设备静止未到m秒再次进行移动(例如用户设备一直在移动或用户设备移动到某一区域静止未到m秒再次进行移动),那么,用户设备不马上进行AP切换,而是回到框806再次获取用户设备在室内区域的当前位置。通过设置静止期间,能够避免用户设备在AP之间的来回切换,进而避免乒乓切换。m的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,m的具体取值可根据AP切换频率对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。在其它实施例中,也可以不包括框808的判断步骤。
如图8中的813所示,判断用户设备当前位置是位于AP1侧区域、预切换区域还是AP2侧区域。如果用户设备的当前位置位于与已连接的AP2相关的区域,那么不进行AP切换,继续获取用户设备在室内区域内的当前位置;如果用户设备的当前位置不位于与已连接的AP2相关的区域,那么进行AP切换,将用户设备从已连接的AP1切换到与当前位置相关的AP上。与已连接的AP2相关的区域包括与AP2对应的AP2侧区域和与AP2对组合对应的预切换区域AP1-AP2。
下面请结合图2(a)以具体说明AP切换。如果用户设备的当前位置位于与已连接的AP2相关的区域,例如用户设备的当前位置位于AP2侧区域或预切换区域AP1-AP2,那么,如图8中的框814所示,判断不进行AP切换,进而如图8中的框811所示,继续获取用户设备在室内区域的当前位置。如果用户设备的当前位置不位于与已连接的AP2相关的区域,例如用户设备的当前位置位于AP1侧区域,那么,如图8 中的框815所示,判断进行AP切换,将用户设备从AP2切换到与当前位置(AP1侧区域)相关的AP1,进而如图8中框806所示,继续获取室内区域的下一个当前位置,以重复上述步骤。
由于用户设备100在移动过程中或移动后静止一段时间后,能够主动地进行AP切换,以使用户设备100能够及时地切换至信号强度最强的AP上,用户体验感佳,且资源利用率高。例如,以用户设备100已与AP1连接为例,如前所述,当用户设备100从AP1侧区域移动到AP2侧区域,用户设备100从与AP1连接切换到AP2连接,而在AP1侧区域内,用户设备100接收到AP1的信号强度最强,在AP2侧区域内,用户设备100接收到AP2的信号强度最强。同时,预切换区域的设置,能够避免由于WiFi定位所造成的误差。
另外,以上实施例说明了基于用户设备100(相对于AP)所在的位置来判断是否切换AP方案。这样的方案可以简化AP切换的判断,在使用的过程中,不需要测量用户设备与各AP之间的接收信号强度了,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高AP切换的效率从而提高用户体验。
图9示出根据本申请一些实施例提供的室内区域包括至少3个AP的切换方法的示意图。以下以从用户设备从与AP1连接切换到与AP2连接为例。
如图9中的框901所示,获取室内区域例如户型图。获取室内区域可以通过声波探测和传感器、以及深度相机或其它方式获取。在其它实施例中,获取室内区域也可以是根据已有的户型图以获取。具体如何获取室内区域请参照上述图3中的相关描述,在此不再赘述。
如图9的框902所示,获取室内区域中至少3个AP中每个AP的位置,每个AP的位置包括AP1和AP2的位置。每个AP的位置获取可以是通过用户手动在已获得的室内区域中输入相应AP的位置和数量。在其它实施例中,每个AP的位置也可以是通过应用自动生成。例如,在应用中输入室内区域,该应用会根据最优的情况以输出AP的位置和数量。
如图9的框903所示,获取室内区域中每个AP的AP侧区域,包括对应于AP1的AP1侧区域和对应于AP2的AP2侧区域。在AP侧区域和预切换区域中的阈值相等的情况下,获取AP侧区域即获取预切换区域,具体如何获取AP侧区域和预切换区域请参照上述图2(b)及其相关描述,在此不再赘述。
如图9中的904所示,获取室内区域中的预切换区域。预切换区域可以划分为与AP1相关的第一预切换子区域和与AP1不相关的第二预切换子区域。由上述框903可知,当每个AP侧区域与预切换区域的阈值相等时,每个AP侧区域的获取与预切换区域的获取并无先后顺序,在获取预切换区域的同时也获取每个AP侧区域,同样地,在获取每个AP侧区域的同时也获取预切换区域,在此不再赘述。
需要说明的是,与AP1相关的预切换子区域包括与包括AP1的AP对组合相对应的预切换子区域。与AP1不相关的预切换子区域包括与除包括AP1的AP对组合以外的AP对相对应的预切换子区域。其中,每个AP对为包括至少3个AP中的2个AP且包含该AP。包括AP1的AP对组合为由至少两个AP对中包括AP1的AP对组合。下面请结合图2(b)以具体说明AP1对、包括AP1的AP对组合以及与AP1相关的第一预切换子区域和与AP1不相关的第二预切换子区域。例如,包括AP1的AP对包括AP1和AP2对、或AP1和AP3对。包括AP1的AP对组合包括AP1和AP2对,和AP1和AP3对。与除包括AP1的AP对组合以外的AP对包括AP2-AP3。因此,与AP1相关的第一预切换子区域包括预切换子区域AP1-AP2、预切换子区域A1-AP3;与AP1不相关的第二预切换子区域包括预切换子区域AP2-AP3。
如图9中的框905所示,用户设备手动或自动与AP例如AP1连接。当用户设备通过手动的方式与AP1连接时,在用户设备的WiFi功能被打开后,用户设备100开始扫描AP,并在扫描到的AP的列表中通过用户手动选择欲连接的AP1,进而与该AP1建立连接。当用户设备100通过自动的方式与AP1连接时,用户设备100可以与信号强度最强的AP1连接。
如图9中的框906所示,获取用户设备在室内区域的当前位置。用户设备在室内区域的当前位置可以是通过WiFi定位例如指纹库法或测距测角法获取。具体如何获取用户设备在室内区域的当前位置请参照上述5(a)和5(b)及其相关描述,在此不再赘述。在其它实施例中,用户设备位置还可以是根据多方案融合定位获取,例如WiFi定位可以结合其它定位技术(例如蓝牙、红外线、声波、传感器等)进行融合定位以提高定位精度。
如图中的框907所示,判断用户设备是否保持静止m秒。用户设备在保持静止期间不进行WiFi定位。如果用户设备静止m秒后(例如用户移动到某一区域内静止m后)还未有位移变化,那么,用户设备根据框909的判断马上进行AP切换。如果用户设备静止后未到m秒再次进行移动,那么,用户设备不马上进行AP切换,而是回到框907再次获取用户设备在室内区域的当前位置。通过设置静止期间,能够避免用户设备在AP之间的来回切换,进而避免乒乓切换。m的取值范围为2~4秒,包括2秒和4秒。本领域技术人员可以理解的是,m的具体取值可根据AP切换频率对用户上网体验的影响、AP切换的及时性等因素进行优化并确定。在其它实施例中,也可以不包括框808的判断步骤。
如图9中的框908所示,判断用户设备的当前位置是位于AP1侧区域或第一预切换子区域,或AP2侧区域,或是位于第二预切换子区域。如前所述,第一预切换子区域为与包括AP1的AP对组合相对应的预切换子区域;第二预切换子区域为与除包括AP1的AP对组合以外的AP对相对应的预切换子区域。如果用户设备位于与已连接的AP1相关的区域,那么不切换AP;如果用户设备不位于与已连接的AP1相关的区域,那么切换AP。与已连接的AP1相关的区域包括与AP1对应的AP1侧和第一预切换子区域。
例如,如果用户设备位于与AP1对应的AP1侧或第一预切换子区域,那么,如框909所示,由于用户设备位于与已连接的AP1相关的区域,不切换AP;如果用户设备位于AP2侧区域,那么,如框911所示,由于用户设备不位于与已连接的AP1相关的区域,切换AP,将用户设备从与连接的AP1切换到与当前位置(AP2侧区域)相关的AP2上;如果用户设备位于第二预切换子区域,那么,如框910所示,由于用户设备不位于与已连接的AP1相关的区域,那么切换AP,将用户设备从与连接的AP1随机切换到与当前位置相关的AP(例如AP2或AP3)上。
下面请结合图2(b)以具体说明AP切换。与已连接的AP1相关的区域包括与AP1对应的AP1侧区域和与包括AP1的AP对组合相对应的第一预切换子区域。如前所述,包括AP1的AP对包括AP1和AP2对、或AP1和AP3对,那么,包括AP1的AP对组合包括AP和-AP2对,和AP1和AP3对,与包括AP1的AP对组合相对应的第一预切换子区域包括预切换子区域AP1-AP2、预切换子区域AP1-AP3。
如果用户设备的当前位置位于AP1侧区域或第一预切换子区域(预切换子区域AP1-AP2、预切换子区域AP1-AP3),那么,由于用户设备的当前位置位于与已连接的AP1相关的区域,不切换AP,进而重新获取用户设备在室内区域的当前位置。如果用户设备的当前位于AP2侧区域,那么,由于用户设备的当前位置不位于与已连接的AP1相关的区域,切换AP,将用户设备从与已连接的AP1切换到与当前位置(AP2侧区域)相关的AP2上。如果用户设备的当前位于第二预切换子区域(预切换子区域AP2-AP3),那么,那么,由于用户设备的当前位置不位于与已连接的AP1相关的区域,切换AP,将用户设备从与已连接的AP1切换到与当前位置(预切换子区域AP2-AP3)相关的AP例如AP2或AP3上。
如框909所示,当用户设备位于AP1侧或第一预切换子区域(预切换子区域AP1-AP2、预切换子区域AP1-AP3),那么,由于用户设备位于与已连接的AP1相关的区域,不切换AP,如框906所示,重新获取用户设备在室内区域的当前位置,再进行后续如框907和框908所示的判断。
如框911所示,当用户设备位于AP2侧区域,不位于与已连接的AP1相关的区域,那么,用户设备从AP1切换到AP2,进而如框906所示重新获取用户设备在室内区域的当前位置,再进行如框907的判断。 如果用户设备保持静止m秒,那么,判断用户设备的当前位置是位于AP2侧区域或第一预切换子区域、或是位于AP1侧区域,或是位于第二预切换子区域。其中,第一预切换子区域包括预切换子区域AP1-AP2、预切换子区域AP2-AP3。第二预切换子区域包括切换子区域AP1-AP3。如果用户设备的当前位置是位于AP2侧区域或第一预切换子区域(预切换子区域AP1-AP2、预切换子区域AP2-AP3),那么,由于用户设的当前位置位于与已连接的AP2相关的区域,不切换AP;如果用户设备的当前位置是位于AP1侧区域,那么,由于用户设备不位于与已连接的AP2相关的区域,切换AP,用户设备从与AP2连接切换到与AP1连接;如果用户设备的当前位置位于第二预切换子区域(切换子区域AP1-AP3),那么,由于用户设备不位于与已连接的AP2相关的区域,切换AP,用户设备从与AP2连接随机切换到与AP1或AP3连接。
如框910所示,当用户设备位于第二预切换子区域,那么,由于用户设备不位于与已连接的AP1相关的区域,那么切换AP,将用户设备从与连接的AP1随机切换到与当前位置相关的AP(例如AP2或AP3)上。假设用户设备从与AP1连接切换到与AP2连接,那么请参照上述对切换至AP2的描述。
对于室内区域包括至少3个AP的情况,上述中虽然是以用户设备从与AP1切换到与AP2连接为例,但是本领域技术人员可以理解的是,用户设备从与AP1切换到与AP3连接、用户设备从与AP2切换到与AP3连接的原理与用户设备从与AP1切换到与AP2连接的原理相同。
由于用户设备100在移动过程中或移动后静止一段时间后,能够主动地进行AP切换,以使用户设备100能够及时地切换至信号强度最强的AP上,用户体验感佳,且资源利用率高。例如,以用户设备100已与AP1连接为例,如前所述,当用户设备100从AP1侧区域移动到AP2侧区域,用户设备100从与AP1连接切换到AP2连接,而在AP1侧区域内,用户设备100接收到AP1的信号强度最强,在AP2侧区域内,用户设备100接收到AP2的信号强度最强。同时,预切换区域的设置,能够避免由于WiFi定位所造成的误差。
以下结合附图10说明根据本申请的用于用户设备的显示AP布局图的方法。图10示出了用户设备的布局图。
用户设备处于室内环境,该室内环境内设置有2个AP,即AP1和AP2。当用户设备根据如上面实施所描述的方法测定的AP1侧区域,AP2侧区域和预切换区域AP1-AP2。当运行实施该方法的特定应用后,作为测量的结果,会在手机界面上显示如图10所示的AP设备布局图,以向用户设备的使用者展示室内各AP区域的计算结果。如图10所示,AP设备布局图中,示出房间的布局,以及AP1和AP2的位置。并且,布局图中还示出了计算得到的等信号强度线,并且以分居等信号强度线两侧的虚线分别区分出了AP1侧区域和AP2侧区域。两根弯曲曲线之间所夹部分是预切换区域AP1-AP2。
在布局图中,AP1侧区域、AP2侧区域及预切换区域AP1-AP2可以用不同的颜色向用户展示。
如图10所示,在该布局图中,点301指示出用户设备在室内所处位置。用户设备的所处位置可以每隔预设时间间隔(例如:1秒、2秒、5秒等等)由用户设备获取并且展示在布局图中。
如图10所述的布局图,可以是由用户设备自行测量并通过计算后生成,也可以是其他具有AP信号强度测量功能的设备检测到信号强度后,发送给用户设备进行各区域的计算和界面生成,也可以是其他具有AP信号强度测量功能和计算的设备将界面绘制好之后,发送给用户设备使用。
以上实施例说明了基于用户设备100(相对于AP)所在的位置来判断是否切换AP方案。这样的方案可以简化AP切换的判断,在使用的过程中,不需要测量用户设备与各AP之间的接收信号强度了,只要判断用户设备的当前位置位于哪个区域即可,从而可以提高AP切换的效率从而提高用户体验。
以下结合图11以说明电子设备的结构。图11示出了电子设备100的结构示意图。该电子设备为本实施例中的用户设备100。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图11所示电子设备100仅是一个范例,并且电子设备100可以具有比图11中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。电子设备100的详细结构介绍,请参考在先专利申请:CN201910430270.9。
其他内容参考上文相关内容的描述,不再赘述。在不冲突的情况下,以上各实施例的方案都可以组合使用。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。下面以采用对应各个功能划分各个功能模块为例进行说明:
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例描述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、电子设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,SSD)等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能 够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
以上,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以权利要求的保护范围为准。
本申请可以包括下列多个示例实施例:示例1可以包括一种用于室内区域的网络接入设备切换方法,其中所述室内区域包括两个网络接入设备,所述两个网络接入设备包括第一网络接入设备和第二网络接入设备,其特征在于,所述方法包括:获取用户设备在所述室内区域的当前位置;和在所述用户设备已与所述第一网络接入设备连接的情况下,至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域和所述第二网络接入设备侧区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,其中,所述第一网络接入设备侧区域对应于所述第一网络接入设备并且在所述第一网络接入设备侧区域内来自所述第一网络接入设备的第一信号强度大于来自所述第二网络接入设备的第二信号强度,以及所述第一信号强度与所述第二信号强度之间的差值大于第一阈值;和,所述第二网络接入设备侧区域对应于所述第二网络接入设备并且在所述第二网络接入设备侧区域内所述第二信号强度大于所述第一信号强度,以及所述第二信号强度与所述第一信号强度之间的差值大于第二阈值。
示例2可以包括如示例1所述的方法,并且其中,所述第一阈值和所述第二阈值相同或者不同。
示例3可以包括如示例1或2所述的方法,并且其中,所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域和所述第二网络接入设备侧区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,还包括:在所述当前位置位于所述第二网络接入设备侧区域的情况下,判断将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接;或者,在所述当前位置位于所述第二网络接入设备侧区域并保持所述当前位置达静止期间的情况下,判断将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接。
示例4可以包括如示例1-3中任一示例所述的方法,并且其中,所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域和所述第二网络接入设备侧区域,判断是否将所述用户 设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,还包括:在所述当前位置在所述第一网络接入设备侧区域的情况下,判断不需要将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接;在所述当前位置在所述第一网络接入设备侧区域,并保留所述当前位置达静止期间的情况下,判断不需要将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接。
示例5可以包括如示例1或2所述的方法,并且其中,所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域和所述第二网络接入设备侧区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,还包括:所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域、所述第二网络接入设备侧区域和预切换区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,其中,在所述预切换区域内所述第一信号强度和所述第二信号强度之间的差值的绝对值小于第一阈值或者第二阈值。
示例6可以包括如示例5所述的方法,并且其中,所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域、所述第二网络接入设备侧区域和预切换区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,还包括:在所述当前位置位于所述第二网络接入设备侧区域的情况下,判断将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接;或者,在所述当前位置位于所述第二网络接入设备侧区域并保持所述当前位置达静止期间的情况下,判断将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接。
示例7可以包括如示例5或6中任一示例所述的方法,并且其中,所述至少部分地根据所述用户设备的所述当前位置、所述第一网络接入设备侧区域、所述第二网络接入设备侧区域和预切换区域,判断是否将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接,还包括:在所述当前位置在所述第一网络接入设备侧区域或者所述预切换区域的情况下,判断不需要将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接;在所述当前位置在所述第一网络接入设备侧区域或者所述预切换区域,并保留所述单位位置达静止期间的情况下,判断不需要将所述用户设备从与所述第一网络接入设备连接切换到与所述第二网络接入设备连接。
示例8可以包括一种用于室内区域的网络接入设备切换方法,并且其中,所述室内区域包括至少三个网络接入设备,所述至少三个网络接入设备包括第一网络接入设备和第二网络接入设备,其特征在于,所述方法包括:获取用户设备在所述室内区域的当前位置;和,在所述用户设备已与所述第一网络接入设备连接的情况下,至少部分地根据所述当前位置,第一网络接入设备侧区域以及第二网络接入设备侧区域,判断是否将所述用户设备从与所述第一AP连接切换到与所述第二AP连接,其中,所述第一网络接入设备侧区域对应于所述第一网络接入设备,并且在所述第一网络接入设备侧区域内,来自所述第一网络接入设备的第一信号强度大于来自所述至少三个网络接入设备中除了所述第一网络接入设备之外的其他网络接入设备的信号强度,并且所述第一信号强度与所述其他网络接入设备的所述信号强度之间的差值大于第一阈值;和所述第二网络接入设备侧区域对应于所述第二网络接入设备,并且在所述第二网络接入设备侧区域内,来自所述第二网络接入设备的第二信号强度大于来自所述至少三个网络接入设备中除了所述第二网络接入设备之外的其他网络接入设备的信号强度,并且所述第二信号强度与所述其他网络接入设备的所述信号强度之间的差值大于第二阈值。

Claims (17)

  1. 一种用于室内区域的网络接入设备切换方法,其中所述室内区域包括至少两个网络接入设备,所述至少两个网络接入设备包括第一网络接入设备和第二网络接入设备,用户设备与所述第一网络接入设备连接,其特征在于,所述方法包括:
    获取所述用户设备在所述室内区域的当前位置;
    判断所述当前位置是否位于所述室内区域中的第二区域,在所述第二区域中所述第二网络接入设备的第二信号强度高于所述第一网络接入设备的第一信号强度;
    如果所述当前位置位于所述第二区域,将所述用户设备从与所述第一网络接入设备连接切换至与所述第二网络接入设备连接。
  2. 如权利要求1所述的方法,其特征在于,在所述第二区域中,所述用户设备检测到的所述第二信号强度高于所述至少两个网络接入设备中除了所述第二网络接入设备之外的其他网络接入设备的信号强度;和/或,
    在第一区域中,所述用户设备检测到的所述第一信号强度高于所述用户设备检测到的所述至少两个网络接入设备中除了所述第一网络接入设备之外的其他网络接入设备的信号强度。
  3. 如权利要求1或2所述的方法,其特征在于,在所述获取所述用户设备在所述室内区域的当前位置之前,所述方法还包括:
    检测所述室内区域中各个区域的信号强度;
    基于所述各个区域的信号强度将所述室内区域至少划分为第一区域和所述第二区域。
  4. 如权利要求3所述的方法,其特征在于,所述基于所述各个区域的信号强度将所述室内区域至少划分为所述第一区域和所述第二区域,包括:
    将所述第一信号强度高于所述第二信号强度的区域划分为所述第一区域;将所述第二信号强度高于所述第一信号强度的区域划分为所述第二区域。
  5. 如权利要求3所述的方法,所述基于所述各个区域的信号强度将所述室内区域至少划分为所述第一区域和所述第二区域,包括:
    将所述第一信号强度高于所述第二信号强度的区域且所述第一信号强度与第二信号强度之差大于第一阈值的区域划分为所述第一区域;将所述第二信号强度高于所述第一信号强度且所述第二信号强度与所述第一信号强度之差大于第二阈值的区域划分为所述第二区域。
  6. 如权利要求5所述的方法,其特征在于,所述基于所述各个区域的信号强度将所述室内区域至少划分为所述第一区域和所述第二区域,还包括:
    将所述第一信号强度与所述第二信号强度之间的差值的绝对值不大于第三阈值的区域设置为第一预切换子区域。
  7. 如权利要求6所述的方法,其特征在于,所述第一阈值、所述第二阈值、所述第三阈值相同; 或者,所述第一阈值与所述第二阈值不同。
  8. 如权利要求6所述的方法,其特征在于,所述方法还包括:
    判断所述当前位置是否位于所述第一预切换子区域;和
    在所述当前位置位于所述第一预切换子区域的情况下,保持所述用户设备与所述第一网络接入设备的连接。
  9. 如权利要求6所述的方法,其特征在于,所述至少两个网络接入设备包括第三网络接入设备,检测到的第三网络接入设备的信号强度为第三信号强度,所述基于所述各个区域的信号强度将所述室内区域至少划分为所述第一区域和所述第二区域,还包括:
    将所述第三信号强度为最高的信号强度,且所述第三信号强度与次高的信号强度之差大于第四阈值的区域设定为第三区域;所述第一区域中,所述用户设备检测到的所述第一信号强度为最高的信号强度,且所述第一信号强度与次高的信号强度之差大于所述第一阈值;所述第二区域中,所述用户设备检测到的所述第二信号强度为最高的信号强度,且所述第二信号强度与次高的信号强度之差大于所述第二阈值;
    将所述第三信号强度与所述第一信号强度之差的绝对值小于第五阈值的区域设定为第二预切换子区域,所述第二预切换子区域中所检测到的所述第三信号强度、所述第一信号强度为信号强度从高到低排序位于前两位的信号强度;
    将所述第三信号强度与所述第二信号强度之差的绝对值小于第六阈值的区域设定为第三预切换子区域,所述第三预切换子区域中所检测到的所述第三信号强度、所述第二信号强度为信号强度从高到低排序位于前两位的信号强度;
    所述第一预切换子区域中,所检测到的所述第一信号强度、所述第二信号强度为信号强度从高到低排序位于前两位的信号强度。
  10. 如权利要求9所述的方法,其特征在于,在所述如果所述当前位置位于所述第二区域,将所述用户设备从与所述第一网络接入设备连接切换至与所述第二网络接入设备连接之后,所述方法还包括:
    判断所述当前位置是否位于所述第二预切换子区域内;
    如果所述所述当前位置位于所述第二预切换子区域,将所述用户设备从与所述第二网络接入设备连接切换至与所述第一网络接入设备或者与所述第三网络接入设备连接。
  11. 如权利要求9或10所述的方法,其特征在于,还包括:
    判断所述当前位置是否位于所述第一预切换子区域或者所述第三预切换子区域内;
    在所述当前位置位于所述第一预切换子区域或者所述第三预切换子区域的情况下,保持所述用户设备与所述第二网络接入设备的连接。
  12. 如权利要求1-11任一所述的方法,其特征在于,所述如果所述当前位置位于所述第二区域,将所述用户设备从与所述第一网络接入设备连接切换至与所述第二网络接入设备连接,包括:
    响应于所述用户设备从第一区域或第一预切换子区域移动到所述第二区域,将所述用户设备从所述第一网络接入设备连接切换至与所述第二网络接入设备连接;或者,
    响应于所述用户设备位于所述第二区域的持续时长大于第一预设时长,将所述用户设备从与所述第 一网络接入设备连接切换至与所述第二网络接入设备连接;或者,
    响应于所述用户设备位于所述第二区域且所述用户设备处于静止状态的持续时长大于第二预设时长,将所述用户设备从与所述第一网络接入设备连接切换至与所述第二网络接入设备连接。
  13. 如权利要求1-11任一所述的方法,其特征在于,所述方法还包括:
    在所述用户设备的显示单元上显示网络接入设备布局图,所述网络接入设备布局图中至少包含:第一区域、所述第二区域、所述第一网络接入设备的标识、所述第二网络接入设备的标识、所述用户设备的当前位置中的至少一种。
  14. 如权利要求13所述的方法,其特征在于,在所述用户设备的显示单元上显示网络接入设备布局图之前,所述方法还包括:
    接收另一电子设备发送的所述网络接入设备布局图。
  15. 如权利要求1-11任一所述的方法,其特征在于,所述获取所述用户设备在所述室内区域的当前位置,包括:
    每隔预设时间间隔获取所述用户设备在所述室内区域的当前位置。
  16. 一种用户设备,其特征在于,包括:
    处理器和存储介质,所述存储介质与所述处理器耦合,所述存储介质用于存储程序代码,当所述处理器从所述存储介质中读取所述程序代码,以使得所述用户设备执行如权利要求1-15中任一权利要求所述的方法。
  17. 一种机器可读存储介质,其特征在于,所述机器可读存储介质上存储有程序代码,所述程序代码在机器上执行时可使所述机器执行如权利要求1-15中任一权利要求所述的方法。
PCT/CN2021/103743 2020-07-01 2021-06-30 用于用户设备的网络接入设备切换方法 WO2022002156A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010630343.1 2020-07-01
CN202010630343.1A CN113891246B (zh) 2020-07-01 2020-07-01 用于用户设备的网络接入设备切换方法

Publications (1)

Publication Number Publication Date
WO2022002156A1 true WO2022002156A1 (zh) 2022-01-06

Family

ID=79013078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103743 WO2022002156A1 (zh) 2020-07-01 2021-06-30 用于用户设备的网络接入设备切换方法

Country Status (2)

Country Link
CN (1) CN113891246B (zh)
WO (1) WO2022002156A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601961A (zh) * 2003-09-24 2005-03-30 国际商业机器公司 用于动态选择最优网络服务的装置、系统和方法
TW200939800A (en) * 2008-03-03 2009-09-16 Univ Nat Cheng Kung Handoff method under multi-network environment
US20150094081A1 (en) * 2013-09-30 2015-04-02 Qualcomm Incorporated Determining coordinates of access points in an indoor position location system
CN106170146A (zh) * 2016-07-14 2016-11-30 珠海市魅族科技有限公司 网络连接方法、网络接入设备、无线终端及网络连接系统
CN106453953A (zh) * 2016-11-24 2017-02-22 维沃移动通信有限公司 一种无线接入点的连接方法及移动终端
CN110856225A (zh) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 网络切换的方法、装置、终端及存储介质
CN111148167A (zh) * 2019-03-18 2020-05-12 广东小天才科技有限公司 一种可穿戴设备的运营商网络切换方法及可穿戴设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE385392T1 (de) * 2005-03-16 2008-02-15 Alcatel Lucent Verfahren zur weiterreichung in einem kommunikationsnetzwerk
JP4186957B2 (ja) * 2005-06-15 2008-11-26 日本電気株式会社 通信エリアの受信品質測定方法及びその装置並びにプログラム
CN110740482B (zh) * 2018-07-20 2021-09-03 比亚迪股份有限公司 区域切换方法、装置、列车接入单元及列车

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601961A (zh) * 2003-09-24 2005-03-30 国际商业机器公司 用于动态选择最优网络服务的装置、系统和方法
TW200939800A (en) * 2008-03-03 2009-09-16 Univ Nat Cheng Kung Handoff method under multi-network environment
US20150094081A1 (en) * 2013-09-30 2015-04-02 Qualcomm Incorporated Determining coordinates of access points in an indoor position location system
CN106170146A (zh) * 2016-07-14 2016-11-30 珠海市魅族科技有限公司 网络连接方法、网络接入设备、无线终端及网络连接系统
CN106453953A (zh) * 2016-11-24 2017-02-22 维沃移动通信有限公司 一种无线接入点的连接方法及移动终端
CN110856225A (zh) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 网络切换的方法、装置、终端及存储介质
CN111148167A (zh) * 2019-03-18 2020-05-12 广东小天才科技有限公司 一种可穿戴设备的运营商网络切换方法及可穿戴设备

Also Published As

Publication number Publication date
CN113891246B (zh) 2023-03-24
CN113891246A (zh) 2022-01-04

Similar Documents

Publication Publication Date Title
US8995414B2 (en) Location aware background access point scanning for WLAN
WO2017140276A1 (zh) 网络连接方法及装置、计算机存储介质
JP4290175B2 (ja) バッテリ残量対応セル再選択機能付き移動通信端末機及びそのセル選択方法
US9560129B2 (en) Peer-to-peer group re-formation
TWI552633B (zh) 用於無線地對接至裝置之技術
EP3627878B1 (en) Measurement configuration
US11032859B2 (en) Electronic device for controlling data communication of external electronic device and communication system
EP3322217A1 (en) Wireless hotspot switching method, mobile terminal and storage medium
CN110831041B (zh) 小区波束失败处理方法、移动通信终端和网络侧设备
US20130308618A1 (en) Driving hybrid location services from wlan stations using access points
JP2022520266A (ja) 測定処理方法、パラメータ設定方法、端末及びネットワーク機器
KR20220045170A (ko) 준 동일 위치 (qcl) 정보의 결정 방법, 구성 방법 및 관련 장치
WO2012121797A1 (en) Rssi-based indoor positioning in the presence of dynamic transmission power control access points
CN112702750B (zh) 测量处理方法、指示信息发送方法、终端和网络设备
WO2018119805A1 (zh) 一种调整手机选网参数的方法和装置
EP2897035A1 (en) Dynamic threshold for local connectivity setup
US20210076438A1 (en) Electronic device to support dual connectivity and operating method thereof
WO2018133519A1 (zh) 一种小区注册方法及装置
CN114615738A (zh) 一种用户定位的方法、网元、系统及存储介质
WO2022068764A1 (zh) 网络切换方法、装置和设备
WO2021147539A1 (zh) 一种基于无线局域网连接的终端省电方法及终端
CN110035506B (zh) 一种通信方法及相关设备
JP2019062330A (ja) 移動通信装置、チャネルスキャン方法およびプログラム
WO2022002156A1 (zh) 用于用户设备的网络接入设备切换方法
CN112929921A (zh) 波束失败恢复方法、终端及网络侧设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21834262

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21834262

Country of ref document: EP

Kind code of ref document: A1