Control method and device and electronic equipment

By dynamically adjusting the switching threshold of terminal devices and optimizing access point switching based on signal strength and device attribute information, the problem of difficult time switching to better signals in wireless networks is solved, and network stability and user experience are improved.

CN119865860APending Publication Date: 2025-04-22LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411999420.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In wireless networks, it is difficult for terminal devices to switch to access points with better signal in time when moving, resulting in a decline in network quality; and if the roaming threshold is set too high, the device will switch frequently, affecting the user experience.

Method used

By obtaining the signal strength characteristic value of the terminal device access, it is determined whether the preset conditions are met, the switching threshold value is increased or lowered, and dynamically adjusts according to the signal strength and device attribute information to optimize the access point switching of the terminal device.

Benefits of technology

It realizes that terminal devices switch to better signal access points in time when moving, improves the stability and quality of network connections, reduces unnecessary roaming switching, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865860A_ABST
    Figure CN119865860A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device and electronic equipment, and the method comprises the steps: obtaining a first feature value of a terminal device for accessing a first access point, and enabling the first feature value to represent the signal intensity of the terminal device for accessing the first access point; under the condition that the first characteristic value meets a preset range, determining that the terminal equipment meets a first condition, and improving a first switching threshold of the first access point to the terminal equipment; and in response to the detection that the second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, the terminal equipment is switched to the second access point, and the second characteristic value of the second access point represents the signal intensity of the terminal equipment accessing the second access point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of wireless network technology, and in particular to a control method, device and electronic equipment. Background Art

[0002] In wireless network technology, wireless access points (APs) can provide wireless connection services for devices. However, due to the limited coverage of a single AP, when the device used by the user moves, the device may roam between different APs to maintain connection. The traditional method is to set a fixed roaming threshold in the firmware or configuration file. However, if the roaming threshold is set too low, it is difficult for the device to switch to an AP with better signal in time, resulting in a decrease in network quality. If the roaming threshold is set too high, the device may switch frequently between different APs, which will also affect the user's network experience and may cause additional network overhead and potential instability. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a control method, device and electronic device.

[0004] According to a first aspect of the present disclosure, a control method is provided, including: obtaining a first characteristic value of a terminal device accessing a first access point, the first characteristic value indicating a signal strength of the terminal device accessing the first access point; determining that the terminal device satisfies a first condition when the first characteristic value satisfies a preset range, and increasing a first switching threshold of the first access point to the terminal device; in response to detecting that a second characteristic value of a second access point is higher than or equal to the first characteristic value of the first access point, switching the terminal device to the second access point, the second characteristic value of the second access point indicating a signal strength of the terminal device accessing the second access point.

[0005] According to an embodiment of the present disclosure, determining that a terminal device satisfies a first condition includes: obtaining attribute information of the terminal device, the attribute information including at least one of a count of data packets sent or received by the terminal device and a count of received beacon loss; when the attribute information satisfies a preset condition, determining that the terminal device satisfies the first condition; and / or determining that the terminal device satisfies a motion state condition.

[0006] According to an embodiment of the present disclosure, the method further includes: adjusting a second switching threshold of the second access point based on the increased first switching threshold of the first access point.

[0007] According to an embodiment of the present disclosure, it also includes: obtaining the number of switching times of the terminal device within a preset time period; when the number of switching times is greater than a threshold, lowering a third switching threshold of a third access point, the third access point being the access point currently accessed by the terminal device.

[0008] According to an embodiment of the present disclosure, switching a terminal device to a second access point includes: obtaining identification information of a first access point, where the identification information is used to characterize a network environment to which the first access point belongs; determining at least one candidate access point with the same identification information in a predetermined area, respectively obtaining a third characteristic value of the terminal device accessing the at least one candidate access point, and obtaining at least one third characteristic value, where the third characteristic value represents a signal strength of the terminal device accessing each candidate access point; determining a second access point from the at least one candidate access point based on the at least one third characteristic value; and connecting the terminal device to the second access point.

[0009] According to an embodiment of the present disclosure, the method further includes: obtaining a first identifier of the first access point and a second identifier of the second access point, the identifiers being used to distinguish the access points; and updating status information of the terminal device based on the identifiers, the status information being used to record the access points that the terminal device has accessed.

[0010] A second aspect of the present disclosure provides a control device, including: an acquisition module, configured to obtain a first characteristic value of a terminal device accessing a first access point, the first characteristic value indicating a signal strength of the terminal device accessing the first access point; an adjustment module, configured to determine that the terminal device satisfies a first condition when the first characteristic value satisfies a preset range, and to increase a first switching threshold of the first access point to the terminal device; and a switching module, configured to switch the terminal device to the second access point in response to detecting that a second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, the second characteristic value of the second access point indicating a signal strength of the terminal device accessing the second access point.

[0011] According to an embodiment of the present disclosure, the adjustment module includes: an attribute acquisition module, used to obtain attribute information of the terminal device, the attribute information including at least one of a data packet count sent or received by the terminal device and a received beacon loss count; a first determination module, used to determine that the terminal device satisfies a first condition when the attribute information satisfies a preset condition; and / or, a second determination module, used to determine that the terminal device satisfies a motion state condition.

[0012] According to an embodiment of the present disclosure, it also includes: a calculation module, used to obtain the number of switching times of the terminal device within a preset time period; a reduction module, used to reduce the third switching threshold of the third access point when the number of switching times is greater than the threshold, and the third access point is the access point currently accessed by the terminal device.

[0013] A third aspect of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the following method: obtaining a first characteristic value of a terminal device accessing a first access point, the first characteristic value indicating a signal strength of the terminal device accessing the first access point; determining that the terminal device satisfies a first condition when the first characteristic value satisfies a preset range, and increasing a first switching threshold of the first access point to the terminal device; in response to detecting that a second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, switching the terminal device to the second access point, the second characteristic value of the second access point indicating a signal strength of the terminal device accessing the second access point.

[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0016] Figure 1 The application scenario diagram of the control method, device and electronic device according to the embodiment of the present disclosure is schematically shown;

[0017] Figure 2 A flow chart schematically shows a control method according to an embodiment of the present disclosure;

[0018] Figure 3 An application example scenario of the control method according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 4 A flowchart for determining whether a terminal device meets a first condition according to an embodiment of the present disclosure is schematically shown;

[0020] Figure 5 A flowchart of adjusting the third switching threshold according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 6 A block diagram schematically shows a control device according to an embodiment of the present disclosure; and

[0022] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0023] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0024] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0025] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0026] It should be noted that the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good morals. In the technical solution of this disclosure, the user's authorization or consent is obtained before obtaining or collecting user personal information.

[0027] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0028] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0029] Before introducing the technical solutions provided by the embodiments of the present disclosure, the related technologies involved in the present disclosure are first described.

[0030] In the related art, due to the limited coverage of a single AP, the accessed terminal device may cross from the coverage of one AP to another AP with the same service set identifier (SSID) coverage. The current method is usually based on comprehensive considerations of the performance, power consumption and communication quality of the device, and a fixed roaming threshold, such as -76dBm, is set in the initialization configuration file. However, there are problems with such a fixed roaming setting. If the roaming threshold is set too low, it is difficult for the device to switch to other APs in time when the received signal strength indicator (RSSI) value drops to a certain level. If the roaming threshold is set too high, the device will switch frequently and it is difficult to stably register on an AP for a long time. In view of this, the embodiments of the present disclosure provide a control method, device and electronic device.

[0031] Figure 1 An application scenario diagram 100 of a control method, an apparatus, and an electronic device according to an embodiment of the present disclosure is schematically shown.

[0032] It should be noted that Figure 1 The examples shown are merely scenarios in which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0033] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a terminal device 101 , a first access point 102 , and a second access point 103 .

[0034] The user can use the terminal device 101 to connect with the first access point 102 and the second access point 103 to achieve functions such as data exchange, information access and network service access, such as browsing web pages, downloading files, uploading data, communicating online or enjoying streaming media services.

[0035] The terminal device 101 includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, game consoles, e-book readers, multimedia playback devices, wearable devices and other electronic devices. These devices have wireless communication capabilities and can search and connect to surrounding wireless network access points.

[0036] The first access point 102 and the second access point 103 may be wireless network access points, such as infrastructure that provides wireless connection for users to access the Internet or other network services using the terminal device 101, such as Wi-Fi routers, hotspots, base stations (for mobile communications) or any device that can provide wireless connection services. These access points can process data transmission requests from the terminal device 101 to ensure that users can smoothly carry out network activities.

[0037] In actual applications, when a user moves with the terminal device 101, the signal strength may weaken or the network quality may deteriorate. In order to maintain a stable network connection, the terminal device 101 will automatically search for surrounding access points and evaluate them based on factors such as signal strength and network quality. When the terminal device 101 detects that the signal quality provided by the second access point 103 is better than the currently connected first access point 102, it will initiate a roaming process and switch from the first access point 102 to the second access point 103. This switching process can achieve seamless switching, and the user can hardly perceive the interruption or change of the network connection. In this way, the terminal device 101 can always connect to the access point with the best signal quality, ensuring the stability and reliability of the network connection.

[0038] It should be noted that the control method provided in the embodiment of the present disclosure can generally be applied to the terminal device 102, and accordingly, the apparatus and system provided in the embodiment of the present disclosure can be set in the terminal device 102. The control method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the terminal device 102 and can communicate with the terminal device 102. Accordingly, the control apparatus provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the terminal device 102 and can communicate with the terminal device 102.

[0039] It should be understood that Figure 1 The number of terminal devices and access points in the embodiment is only for illustration. Any number of terminal devices and access points may be provided according to implementation requirements.

[0040] The following will be based on Figure 1 The scene described by Figure 2~Figure 5 The control method of the embodiment of the present disclosure is described in detail.

[0041] like Figure 2 As shown, it shows a flow chart of a control method provided by an embodiment of the present disclosure. The method can be applied to a terminal device, and the terminal device refers to an electronic device with data calculation and processing capabilities. The method includes S210~S230.

[0042] In S210, a first characteristic value of a terminal device accessing a first access point is obtained, where the first characteristic value indicates a signal strength of the terminal device accessing the first access point.

[0043] After the terminal device accesses the first access point, it can detect the signal strength received by the terminal device and record it as the first characteristic value to understand the connection quality between the terminal device and the current access point. Signal strength can be measured by RSSI (received signal strength indication), which is generally expressed in negative dBm (decibel milliwatts). dBm is a unit that represents the absolute value of power, and the calculation formula can be: 10lg power value / 1mW. The larger the RSSI value (the closer the value is to zero), the stronger the signal; the smaller the value (the more negative the value), the weaker the signal.

[0044] In S220, when the first characteristic value satisfies a preset range, it is determined that the terminal device satisfies a first condition, and a first switching threshold of the first access point to the terminal device is increased.

[0045] The roaming threshold (such as the first switching threshold) can determine when the terminal device switches from one AP to another. When the signal strength of the current AP detected by the terminal device is lower than a certain set threshold value, the roaming operation can be triggered to start searching and connecting to an AP with a stronger signal. The roaming threshold can be represented by a negative value of the signal strength.

[0046] Exemplarily, after the terminal device successfully obtains the first characteristic value related to the first access point, the value can be compared with the first switching threshold. If the first characteristic value is lower than the threshold, it means that the signal strength of the current access point is weak and insufficient to support a stable network connection. In this case, the terminal device can automatically search for a surrounding access point with a stronger signal according to the network policy, and try to switch directly to it to ensure the continuity and quality of data transmission.

[0047] Exemplarily, if the first characteristic value is higher than or equal to the first switching threshold, the terminal device will not be allowed to switch directly at this time, and the relative relationship between the first characteristic value and the first switching threshold can be further analyzed. Exemplarily, an additional judgment condition can be set, that is, whether the first characteristic value falls within a certain range of the first switching threshold from the first access point, so as to avoid frequent switching of access points due to slight signal fluctuations, causing unnecessary network interruption and resource waste. For example, if the first switching threshold is set to -76dBm (decibel milliwatts), and the first characteristic value reaches -70dBm (i.e., 6dBm stronger than the threshold), the terminal device will start to consider searching for other potential access points (such as the second access point). If the first characteristic value is stronger, such as -65dBm, the terminal device may continue to remain in the connection state of the current access point because the signal strength is good enough and there is no need to switch. Then, it can be checked whether certain specific conditions (i.e., the first condition) are met. These conditions may include but are not limited to: the load of the current access point, the moving speed of the terminal device, and the expected network performance improvement. If these conditions are met, the first switching threshold of the first access point to the terminal device can be increased so that the first characteristic value becomes smaller than the new threshold, thereby more easily triggering the switching action and allowing the terminal device to switch to the searched second access point more quickly.

[0048] In S230, in response to detecting that the second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, the terminal device is switched to the second access point, the second characteristic value of the second access point indicating the signal strength of the terminal device accessing the second access point.

[0049] If the characteristic value of the terminal device is less than the first switching threshold, the signal strength of other surrounding access points (such as the second access point) can be continuously monitored and recorded as the second characteristic value. If it is detected that the second characteristic value of the second access point is higher than or equal to the first characteristic value of the current access point (that is, the signal quality of the second access point is at least equivalent to or better than that of the current access point), a roaming switching operation can be triggered to switch the terminal device to the second access point.

[0050] The following references Figure 3 An application scenario of an embodiment of Figure 2 The method shown is further explained.

[0051] Figure 3 An application example scenario of the control method according to an embodiment of the present disclosure is schematically illustrated.

[0052] In some exemplary embodiments, Figure 3As shown. The terminal device (DUT) continuously monitors and calculates the signal strength of the first access point (AP1) it is currently connected to through its built-in wireless communication module, and obtains that the first characteristic value changes from -70dBm to -80dBm. At this time, the first characteristic value -80dBm can be compared with the first switching threshold value -85dBm, that is, the first characteristic value is greater than the first switching threshold value and is within the preset range set by the first switching threshold value (for example, it is at most 6dBm stronger than the threshold value). At the same time, if the terminal device meets the first condition, it means that the first switching threshold value of the first access point to the terminal device can be increased. For example, it is increased to -75dBm, so that the first characteristic value is less than the first switching threshold value. Then, the terminal device can search and evaluate the signal strength of other access points around. If the second characteristic value of a second access point (AP2) is -78dB (that is, higher than the first characteristic value of the first access point), the terminal device can be switched to the second access point.

[0053] It can be understood that according to the current network environment and user device status, the switching threshold (roaming threshold) of the access point is dynamically set so that the terminal device can automatically select the best access point, without frequent switching and without the device being unable to start roaming when the signal strength of the current AP is too low, thereby more effectively utilizing network resources, improving overall network performance, and providing users with a more convenient and efficient network experience.

[0054] Based on the above embodiments, in this embodiment, determining that the terminal device satisfies the first condition may include: obtaining attribute information of the terminal device, the attribute information including at least one of a count of data packets sent or received by the terminal device and a count of received beacon loss; when the attribute information satisfies a preset condition, determining that the terminal device satisfies the first condition; and / or determining that the terminal device satisfies a motion state condition.

[0055] When the first characteristic value satisfies the preset range, it can be determined whether the terminal device satisfies the first condition. If it is determined that there is a terminal device that satisfies the first condition, the first switching threshold of the first access point to the terminal device is increased. If there is no terminal device that satisfies the first condition, the first switching threshold may not be adjusted.

[0056] Figure 4 The flowchart for determining whether a terminal device satisfies a first condition according to an embodiment of the present disclosure is schematically shown.

[0057] In some exemplary embodiments, Figure 4As shown, it is possible to determine whether the terminal device meets the first condition based on the attribute information of the terminal device. After obtaining the attribute information, the attribute information can be first verified to verify whether the attribute information is legal, such as whether the data is complete, without missing or abnormal values, whether the attribute information comes from a legal terminal device, and whether the timestamp of the attribute information is legal, to ensure that the data is collected within a specified time range. If the attribute information is considered to be legal after verification, the attribute information can be screened to retain key attributes, that is, some relevant attributes that can reflect the status information of the terminal device, while removing irrelevant attributes. The attribute information can also be filtered based on specific conditions, such as retaining data within a specified date range. Among them, the key attribute information may include a beacon miss count and a send / receive packet count (Tx / Rx packets count), and may also include a packet error rate (Packet Error Rate) and access point information. Among them, Beacon is a broadcast frame sent periodically by an AP to inform its existence and the network services it provides. When the terminal device does not receive a Beacon frame from the current AP within a certain period of time, the beacon miss count will increase. If the beacon miss count reaches a preset threshold, it can be considered that the terminal device meets the first condition. The sent / received packet count indicates the number of packets sent and received by the terminal device, respectively. By monitoring the number of these packets, the stability and throughput of the current connection can be evaluated. If the number of sent or received packets decreases or increases suddenly, that is, the increase is greater than a certain preset threshold, the terminal device can also be considered to meet the first condition. The packet error rate is an indicator that measures the proportion of erroneous packets during data transmission. A high packet error rate may indicate that there is interference or quality problems in the current connection. When the packet error rate reaches a certain preset threshold, the terminal device can also be considered to meet the first condition.

[0058] Continue to refer Figure 4 In addition to the above attribute information, the motion state of the terminal device can also be considered, that is, after obtaining the motion state information of the terminal device, it is determined whether the terminal device meets the motion state condition. For example, the location information of the terminal device (such as GPS coordinates and Wi-Fi access point changes, etc.) or sensor data (such as accelerometers, gyroscopes, etc.) can be analyzed to determine whether the terminal device has experienced a change in position or an update of the movement trajectory in the past period of time. If the terminal device has a clear movement record in the past period of time, even if it is currently in a stationary state, it can be considered that it meets the motion state condition. Alternatively, if the movement trajectory of the terminal device has not been updated in the historical time period, but the terminal device is detected to be currently moving through the continuous update of the location information or the real-time change of the sensor data, then it can be immediately determined that it meets the motion state condition.

[0059] It should be noted that in actual applications, the setting of the motion state condition can be flexibly adjusted according to specific scenarios and needs. For example, in some scenarios, only the current motion state of the terminal device can be considered. In other scenarios, its historical motion data and current motion state can be comprehensively considered, and the evaluation of the current motion state can also be combined with a certain time window to avoid misjudgment caused by instantaneous noise or error.

[0060] Exemplarily, after obtaining a first characteristic value of the terminal device accessing the first access point (the first characteristic value is greater than a first switching threshold and meets a preset range), the attribute information of the terminal device, namely, a data packet count and a received beacon loss count, is collected through a wireless network interface. When it is detected that the beacon loss count is higher than a preset threshold, it is considered that the terminal device meets the first condition, and the first switching threshold of the first access point to the terminal device is increased.

[0061] Exemplarily, after obtaining the first characteristic value of the terminal device accessing the first access point (the first characteristic value is greater than the first switching threshold value and satisfies a preset range), it is detected that the terminal device is moving quickly and its position is beyond the effective coverage range of the current AP, then it can be determined that the terminal device meets the motion state condition, and the first switching threshold value of the first access point to the terminal device is increased.

[0062] It should be noted that for details not included in this embodiment, please refer to the implementation details of the aforementioned embodiment.

[0063] It can be understood that by collecting and analyzing the attribute information and / or movement status of terminal devices, terminal devices with connection problems can be discovered in a timely manner, so that by adjusting the roaming threshold, the terminal devices can be switched to other access points, ensuring the stability of the network connection and enhancing the network's adaptability to changes in terminal device behavior.

[0064] On the basis of the above embodiments, in this embodiment, switching the terminal device to the second access point includes: obtaining identification information of the first access point, the identification information is used to characterize the network environment to which the first access point belongs; determining at least one candidate access point with the same identification information in a predetermined area, respectively obtaining third characteristic values ​​of the terminal device accessing the at least one candidate access point, and obtaining at least one third characteristic value, the third characteristic value indicating the signal strength of the terminal device accessing each candidate access point; determining a second access point from the at least one candidate access point based on the at least one third characteristic value; and connecting the terminal device to the second access point.

[0065] In a wireless network environment, when a terminal device meets certain conditions (such as connection stability and motion status), it can be switched from the current access point to another access point to optimize the network connection quality or adapt to the mobility of the terminal device. In this process, it is necessary to select a suitable access point to ensure the smoothness of the switching process and the network performance after the switch.

[0066] First, the identification information of the first access point, such as SSID (service set identifier), can be obtained through the current connection to determine the network environment to which the first access point belongs. Then, at least one candidate access point with the same identification information as the first access point in the predetermined area can be determined by using a known access point database or real-time scanning of surrounding wireless networks. The identification information of these candidate access points is the same as that of the first access point, that is, the network environment is the same, so identity authentication is not required during switching. For each candidate access point, the signal strength when the terminal device accesses the candidate access point can be measured or estimated through the wireless network interface as the third characteristic value. To reflect the quality of the wireless link between the terminal device and the candidate access point. Then, according to the at least one third characteristic value obtained, an access point with the strongest signal strength or meeting other preset conditions is selected from the candidate access points as the second access point. Finally, in the process of the terminal device switching the second access point, a disconnection request can be sent to the first access point (if necessary), a connection request can be sent to the second access point, and relevant network parameters of the terminal device (such as IP address, DNS server, etc.) can be configured to ensure that the terminal device can successfully connect to the second access point and continue network activities.

[0067] In some exemplary embodiments, the second access point can also be determined by the access point information of the candidate access point. The access point information includes but is not limited to information such as the load and frequency band of the AP. Among them, the load situation reflects the number of connected devices currently carried by the access point and the possible bandwidth pressure. High load may cause problems such as decreased connection speed and increased latency. Therefore, an access point with a lower load can be selected as the second access point. The frequency band usage determines whether the access point operates on a congested frequency band. For example, on public frequency bands such as 2.4GHz, the performance of the access point may be affected due to the presence of a large number of other wireless devices and potential interference sources, so an access point operating on a suitable frequency band can be selected. After collecting a variety of access point information of the candidate access points, the information can be combined to evaluate the availability and performance of different access points. For example, a weight is assigned to each access point information, and a comprehensive score is calculated based on the weight and the corresponding value, and the access point with the highest score is selected as the second access point. For another example, a multi-criteria decision analysis method is used to sort and select based on a variety of access point information. For another example, a machine learning algorithm (such as a decision tree, a support vector machine, and a neural network) is used to learn and analyze the access point information to predict and select the best roaming target (ie, the second access point).

[0068] It is understandable that by screening and determining a more suitable second access point from the candidate access points, it is ensured that the terminal device can connect to an access point with higher signal strength and less interference, thereby reducing connection interruptions caused by weak or unstable signals and improving the stability and continuity of network connections. At the same time, the network load is balanced to avoid performance degradation of certain access points due to overload, thereby optimizing the overall utilization of network resources.

[0069] In an embodiment of the present disclosure, the method further includes: adjusting a second switching threshold of the second access point based on the increased first switching threshold of the first access point.

[0070] When a terminal device switches from one access point (such as a first access point) to another access point (such as a second access point), the signal strength threshold that triggers roaming switching (i.e., the adjusted first switching threshold) can be recorded by adaptive learning, thereby adjusting the second switching threshold of the second access point according to the first switching threshold adjusted (including increasing and decreasing) by the first access point.

[0071] Exemplarily, if the signal qualities (i.e., the first characteristic value and the second characteristic value) of the first access point and the second access point are similar, in order to promote more timely roaming switching, the second switching threshold value of the second access point can be set to be similar to or slightly higher than that of the first access point, so that the terminal device can switch more quickly from the old AP with a weaker signal to the new AP with a stronger signal, thereby improving data transmission rate and reducing delay.

[0072] For example, if the signal quality of the second access point is significantly better than that of the first access point, in order to ensure the stability and continuity of the network connection and avoid frequent and unnecessary roaming switching, the second switching threshold of the second access point can be appropriately lowered to provide a certain buffer space so that the terminal device will consider roaming switching only when the signal quality changes significantly.

[0073] In some exemplary embodiments, the roaming threshold setting history record of the first access point can also be queried to obtain the roaming performance data of the first access point under different threshold values, including but not limited to: the stability of roaming switching, that is, the success rate, failure rate and packet loss rate of roaming switching under different threshold values. Roaming efficiency, that is, the impact of different threshold values ​​on the roaming switching speed. Too low a threshold value may lead to increased switching delay, while too high a threshold value may cause frequent switching, affecting the user experience. In addition to objective data analysis, subjective feedback from users can also be considered. For example, a user may report that the network connection becomes unstable or frequently disconnects under certain threshold values. By analyzing the above roaming performance data, the second switching threshold of the second access point can be adjusted.

[0074] It should be noted that when adjusting the second handover threshold, it is necessary to ensure that the roaming policies between the second access point and the first access point are consistent, so as to avoid roaming conflicts or instability.

[0075] It is understandable that by adjusting the second switching threshold of the second access point based on the threshold value for triggering roaming of the first access point, the switching threshold of the second access point can be set more reasonably to ensure that the terminal device performs roaming switching under appropriate circumstances.

[0076] In an embodiment of the present disclosure, it also includes: obtaining the number of switching times of the terminal device within a preset time period; when the number of switching times is greater than a threshold, lowering a third switching threshold of a third access point, the third access point being the access point currently accessed by the terminal device.

[0077] Figure 5 The flowchart of adjusting the third switching threshold according to an embodiment of the present disclosure is schematically shown.

[0078] like Figure 5As shown, by periodically or in real time collecting the number of roaming handovers of the terminal device in a preset time period (such as the past hour, a day, or a custom time period), and comparing the number with a preset threshold of the number of handovers, it is possible to determine whether the terminal device has experienced too frequent roaming handovers. When the number of handovers of the terminal device in the preset time period exceeds the set threshold, it is considered that there may be a problem with the current roaming strategy, causing the terminal device to frequently switch between access points, so the handover threshold of the current access point (i.e., the third access point) can be lowered to reduce unnecessary roaming handovers.

[0079] It should be noted that the setting of the switching number threshold can be dynamically adjusted according to factors such as the network environment, terminal device type and user behavior pattern.

[0080] For example, when a user moves a handheld terminal device in a shopping mall, the number of handovers and signal strength of the user's terminal device can be monitored in real time. When the user moves from an area with low signal strength to an area with high signal strength including multiple access points, if the number of handovers of the terminal device at different access points exceeds a preset threshold (for example, 4 times in 5 minutes), the third handover threshold of the current access point can be immediately lowered, thereby avoiding unnecessary roaming handovers.

[0081] It should be noted that for details not included in this embodiment, please refer to the implementation details of the aforementioned embodiment.

[0082] It is understandable that by real-time monitoring of the number of terminal device switches and timely adjusting the roaming threshold when the switches are frequent, unnecessary roaming switches can be effectively reduced, thereby reducing network interruptions and instability caused by switching, and improving network stability and user connection experience.

[0083] In an embodiment of the present disclosure, the method further includes: obtaining a first identifier of the first access point and a second identifier of the second access point, the identifiers being used to distinguish the access points; and updating status information of the terminal device based on the identifiers, the status information being used to record the access points that the terminal device has accessed.

[0084] When the terminal device switches between different access points, it can receive broadcast signals from each access point. These signals contain basic information about the access point, such as the service set identifier (SSID), basic service set identifier (BSSID), and physical address (MAC address). Then, from the received broadcast signal, the terminal device can extract the unique identifier of each access point, such as the basic service set identifier, to distinguish different access points. At the same time, the extracted identifier can be stored in a local database for subsequent use. In addition, in order to distinguish different access points, the terminal device can also assign an internal number or label to each access point while retaining its original identifier as a unique identifier.

[0085] When the terminal device is used for the first time, a status information database can be initialized to record the information of the access points that the terminal device has accessed. The database can contain multiple fields, such as access point identifier, access time, connection status, and signal strength.

[0086] When a terminal device successfully connects to an access point, it can update or add corresponding records in the status information database according to the identifier of the access point. For example, the current connection status of the access point (such as connected, disconnected), signal strength, and connection time. For disconnected access points, the terminal device can retain records for a period of time so that users can view or troubleshoot. If the preset time window is exceeded, the access point information can be deleted to save memory.

[0087] Exemplarily, after wireless access points are deployed in the office area, when each access point has a unique identifier, the terminal device records these identifiers during scanning. Then, based on these identifiers, the terminal device can update its status information and record the access points that have been connected. Furthermore, through the wireless network monitoring tool, the roaming path of the terminal device in the status information is analyzed, and it is found that the device frequently switches between some access points, that is, the threshold values ​​of these access points are set unreasonably, so the switching thresholds of the corresponding access points are adjusted accordingly, for example, the signal strength difference of the frequently switched access point pairs is increased to reduce unnecessary roaming. After the adjustment, the roaming path can continue to be monitored according to the status information to verify whether the adjustment is effective.

[0088] It can be understood that by introducing the identifier of the access point and updating the status information of the terminal device based on the identifier, not only the rationality of the roaming path can be analyzed, but also the roaming threshold value can be dynamically adjusted according to the analysis results, thereby providing users with a more stable and efficient network connection experience.

[0089] Figure 6 A block diagram of a control device according to an embodiment of the present disclosure is schematically shown.

[0090] like Figure 6 As shown, the control device 600 includes an acquisition module 610 , an adjustment module 620 and a switching module 630 .

[0091] According to some embodiments of the present disclosure, the control device 600 can be used to implement the reference Figure 2-Figure 5 The control method according to the embodiment of the present disclosure is described.

[0092] The acquisition module 610 may execute, for example, S210 to obtain a first characteristic value of the terminal device accessing the first access point, where the first characteristic value indicates the signal strength of the terminal device accessing the first access point.

[0093] The adjustment module 620 may execute, for example, S220, to determine that the terminal device satisfies the first condition when the first characteristic value satisfies a preset range, and to increase a first switching threshold of the first access point to the terminal device.

[0094] The switching module 630 can execute, for example, S230, for switching the terminal device to the second access point in response to detecting that the second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, where the second characteristic value of the second access point represents the signal strength of the terminal device accessing the second access point.

[0095] For example, any multiple of the acquisition module 610, the adjustment module 620, and the switching module 630 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 610, the adjustment module 620, and the switching module 630 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 610, the adjustment module 620, and the switching module 630 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0096] Based on the above embodiment, the adjustment module 620 includes an attribute acquisition module, a first determination module, and a second determination module. The attribute acquisition module is used to obtain attribute information of the terminal device, and the attribute information includes at least one of the count of data packets sent or received by the terminal device and the count of beacon loss received. The first determination module is used to determine that the terminal device meets the first condition when the attribute information meets the preset condition. And / or, the second determination module is used to determine that the terminal device meets the motion state condition.

[0097] In an embodiment of the present disclosure, a calculation module and a reduction module are also included. The calculation module is used to obtain the number of handovers of the terminal device within a preset time period. The reduction module is used to reduce the third handover threshold of the third access point when the number of handovers is greater than the threshold, and the third access point is the access point currently accessed by the terminal device.

[0098] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0099] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement the method of an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0100] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0101] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0102] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the control method. For example, in some embodiments, the control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the control method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the control method in any other appropriate manner (e.g., by means of firmware).

[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0104] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0105] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0108] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. Among them, the server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0110] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A control method, comprising: Obtaining a first characteristic value of a terminal device accessing a first access point, where the first characteristic value indicates a signal strength of the terminal device accessing the first access point; When the first characteristic value satisfies a preset range, determining that the terminal device satisfies a first condition, and increasing a first switching threshold of the first access point to the terminal device; In response to detecting that a second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, the terminal device is switched to the second access point, the second characteristic value of the second access point indicating a signal strength of the terminal device accessing the second access point.

2. The method according to claim 1, wherein determining that the terminal device satisfies the first condition comprises: Obtaining attribute information of the terminal device, the attribute information comprising at least one of a count of data packets sent or received by the terminal device and a count of received beacon loss; In the case where the attribute information satisfies a preset condition, determining that the terminal device satisfies a first condition; and / or, Determine whether the terminal device meets a motion state condition.

3. The method according to claim 1, further comprising: Based on the increased first switching threshold of the first access point, a second switching threshold of the second access point is adjusted.

4. The method according to claim 1, further comprising: Obtaining the number of switching times of the terminal device within a preset time period; When the number of switching times is greater than a threshold, a third switching threshold of a third access point is lowered, and the third access point is the access point currently accessed by the terminal device.

5. The method according to any one of claims 1 to 4, wherein switching the terminal device to the second access point comprises: Obtaining identification information of the first access point, where the identification information is used to characterize a network environment to which the first access point belongs; Determine at least one candidate access point with the same identification information in a predetermined area, obtain a third characteristic value of the terminal device accessing the at least one candidate access point, and obtain at least one third characteristic value, wherein the third characteristic value indicates a signal strength of the terminal device accessing each of the candidate access points; determining the second access point from the at least one candidate access point based on the at least one third characteristic value; Connect the terminal device to the second access point.

6. The method according to claim 1, further comprising: Obtain a first identifier of the first access point and a second identifier of a second access point, wherein the identifiers are used to distinguish between the access points; Based on the identifier, the status information of the terminal device is updated, where the status information is used to record each access point that the terminal device has accessed.

7. A control device comprising: An acquisition module, configured to obtain a first characteristic value of a terminal device accessing a first access point, wherein the first characteristic value indicates a signal strength of the terminal device accessing the first access point; An adjustment module, configured to determine that the terminal device satisfies a first condition when the first characteristic value satisfies a preset range, and to increase a first switching threshold of the first access point to the terminal device; A switching module is used to switch the terminal device to the second access point in response to detecting that the second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, wherein the second characteristic value of the second access point represents the signal strength of the terminal device accessing the second access point.

8. The device according to claim 7, wherein: The adjustment module comprises: An attribute acquisition module, used to obtain attribute information of the terminal device, wherein the attribute information includes at least one of a count of data packets sent or received by the terminal device and a count of received beacon loss; A first determination module is configured to determine that the terminal device satisfies a first condition when the attribute information satisfies a preset condition; and / or, The second determination module is used to determine whether the terminal device meets the motion state condition.

9. The apparatus according to claim 7, further comprising: A calculation module, used to obtain the number of switching times of the terminal device within a preset time period; The reducing module is used to reduce the third switching threshold of the third access point when the number of switching times is greater than the threshold, and the third access point is the access point currently accessed by the terminal device.

10. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the following method: Obtaining a first characteristic value of a terminal device accessing a first access point, the first characteristic value indicating a signal strength of the terminal device accessing the first access point; determining that the terminal device meets a first condition when the first characteristic value satisfies a preset range, and increasing a first switching threshold of the first access point to the terminal device; In response to detecting that a second characteristic value of the second access point is higher than or equal to the first characteristic value of the first access point, the terminal device is switched to the second access point, the second characteristic value of the second access point indicating a signal strength of the terminal device accessing the second access point.