Control method, apparatus, device of user equipment, and storage medium
Patent Information
- Application Number
- CN202211659388.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-12-22
AI Technical Summary
[0002]相关技术中,众多的无线局域网络连接设备均由用户自行打开无线局域网开关,有时在用户遗忘打开无线局域网的开关时,存在大量使用电话卡通信流量的情况;而在长时间打开无线局域网开关的情况下,会存在设备发热以及电量损失等问题
[0020]The above scheme detects Wi-Fi networks in the environment. If a Wi-Fi network is confirmed to exist, its network trustworthiness is assessed. If the trustworthiness exceeds a set threshold, the signal strength of a first Wi-Fi network (those with trustworthiness exceeding the threshold) is determined. If the signal strength of the first Wi-Fi network is greater than the user's signal strength, a second Wi-Fi network is connected (the first Wi-Fi network whose signal strength is greater than the user's signal strength). This method detects Wi-Fi signals and determines whether to connect based on network trustworthiness and signal strength. While ensuring network signal quality, it connects to more trustworthy Wi-Fi networks, preventing malicious theft of user data and effectively protecting user privacy.
Smart Images

Figure CN115866704B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of wireless communication, and more particularly to a control method, apparatus, device, and storage medium for a user equipment. Background Technology
[0002] In many related technologies, users manually turn on the Wi-Fi switch for numerous wireless LAN connection devices. Sometimes, when users forget to turn on the Wi-Fi, significant data usage occurs, leading to excessive phone card usage. Furthermore, leaving the Wi-Fi on for extended periods can cause overheating and battery drain. Existing Wi-Fi connection devices use signal strength as the connection criterion, but poor signal strength can prevent normal use. Moreover, Wi-Fi networks are divided into public and private networks. Public networks pose a risk of information leakage, and even among private networks, users may prefer certain networks. Therefore, balancing network signal quality with preventing user information leakage during Wi-Fi internet access is a pressing technical challenge. Summary of the Invention
[0003] To overcome the problems existing in the related technologies, this disclosure provides a control method, apparatus, device and storage medium for user equipment.
[0004] According to a first aspect of the present disclosure, a control method for a user equipment is provided, comprising:
[0005] Detect wireless local area networks in the environment;
[0006] If it is determined that a wireless local area network exists in the environment, the network trustworthiness of the wireless local area network is obtained;
[0007] If the network credibility is greater than a set credibility threshold, the network signal strength of the first wireless local area network in the wireless local area network is determined, wherein the first wireless local area network is the wireless local area network in the wireless local area network whose network credibility is greater than the set credibility threshold.
[0008] If the network signal strength is greater than the signal strength of the user equipment, a second wireless local area network is connected, wherein the second wireless local area network is the wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment.
[0009] According to a second aspect of the present disclosure, a control device for a user equipment is provided, comprising:
[0010] The detection module is configured to detect wireless local area networks in the environment;
[0011] The acquisition module is configured to acquire the network trustworthiness of the wireless local area network when it is determined that a wireless local area network exists in the environment.
[0012] The determination module is configured to determine the network signal strength of a first wireless local area network in the wireless local area network when the network credibility is greater than a set credibility threshold, wherein the first wireless local area network is a wireless local area network in the wireless local area network whose network credibility is greater than the set credibility threshold.
[0013] The execution module is configured to connect to a second wireless local area network when the network signal strength is greater than the signal strength of the user equipment, wherein the second wireless local area network is a wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment.
[0014] According to a third aspect of the present disclosure, a user equipment is provided, comprising:
[0015] processor;
[0016] Memory used to store processor-executable instructions;
[0017] The processor is configured to implement the steps of any of the methods described in the first aspect of this disclosure when executing the executable instructions.
[0018] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the user equipment control method provided in the first aspect of the present disclosure.
[0019] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0020] The above scheme detects Wi-Fi networks in the environment. If a Wi-Fi network is confirmed to exist, its network trustworthiness is assessed. If the trustworthiness exceeds a set threshold, the signal strength of a first Wi-Fi network (those with trustworthiness exceeding the threshold) is determined. If the signal strength of the first Wi-Fi network is greater than the user's signal strength, a second Wi-Fi network is connected (the first Wi-Fi network whose signal strength is greater than the user's signal strength). This method detects Wi-Fi signals and determines whether to connect based on network trustworthiness and signal strength. While ensuring network signal quality, it connects to more trustworthy Wi-Fi networks, preventing malicious theft of user data and effectively protecting user privacy.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0023] Figure 1 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment.
[0024] Figure 2 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment.
[0025] Figure 3 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment.
[0026] Figure 4 This is a block diagram illustrating a control device for a user equipment according to an exemplary embodiment.
[0027] Figure 5 This is a block diagram illustrating a user device according to an exemplary embodiment. Detailed Implementation
[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0029] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.
[0030] Figure 1 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment, such as... Figure 1 As shown, this method is used in a user equipment and includes the following steps.
[0031] In step S101, the wireless local area network in the environment is detected.
[0032] It is worth mentioning that this embodiment is applied to a user equipment equipped with a communication device that can connect to a wireless local area network (WLAN) for wireless communication. When the user equipment is not connected to a WLAN, to prevent users from forgetting to turn on the WLAN and causing significant data loss on the communication card, the user equipment will detect WLAN signals within a set range in the environment to search for WLAN signals. The WLAN detected by the user equipment can be a Wi-Fi network, an AP (Access Point) network, etc.
[0033] For example, detecting a wireless local area network (WLAN) consumes the user's power. Since WLAN coverage is not fully achieved in related technologies, to avoid invalid WLAN detection and reduce power consumption, this embodiment includes a detection cycle for the user's WLAN detection. This detection cycle can be set according to the actual usage of the user's device. For instance, to reduce power consumption, the detection cycle can be set based on the user's battery level. For example, when the user's battery level is between 50% and 100%, the detection cycle can be set to 1 second per detection; when the user's battery level is between 30% and 50%, the detection cycle can be set to 5 seconds per detection; and when the user's battery level is below 30%, the detection cycle can be set to 10 seconds per detection.
[0034] In step S102, if it is determined that a wireless local area network exists in the environment, the network trustworthiness of the wireless local area network is obtained.
[0035] For example, when a user device detects the presence of a wireless local area network (WLAN) in the environment, it can determine the network trustworthiness of the WLAN based on its type and / or historical connection records. Network trustworthiness refers to the degree of trust a user places in a WLAN when connecting. For instance, when initially discovering a WLAN, the user's trustworthiness for each WLAN is 0. Upon discovering the WLAN, the user device displays relevant network information on its display for easy viewing. When the user clicks on the WLAN to connect, the network trustworthiness increases by 1; when the user manually disconnects the WLAN, the network trustworthiness decreases by 1.
[0036] It is worth noting that in this embodiment, the wireless local area network (WLAN) can be divided into public WLANs and private WLANs. Since public WLANs are prone to leaking user privacy data, their network trustworthiness is generally low. Conversely, due to the locality and secrecy of private WLANs, their network trustworthiness is higher. For example, when initially connecting to a Wi-Fi network, the network trustworthiness of a public WLAN is initialized to 0, while that of a private WLAN is initialized to 10. That is, the initial network trustworthiness of a public WLAN is lower than that of a private WLAN. If a user manually disconnects their device from the WLAN during the connection process, the network trustworthiness of the WLAN is reduced, for example, by decreasing it by 1 from its historical value. Conversely, if a user manually reconnects to a WLAN while it is disconnected, the network trustworthiness of that WLAN is increased, for example, by increasing it by 1 from its historical value. For example, each wireless local area network (WLAN) has a unique network IP address. User equipment (UAV) can identify a WLAN based on its IP address. If a UAV detects a WLAN for the first time, it determines the network's trustworthiness based on the network type. For instance, if a UAV detects a WLAN for the first time and the network type is a private WLAN, the trustworthiness of the WLAN is determined to be 10. When a connection record between the UAV and the WLAN is determined through the IP address, the trustworthiness of the WLAN stored in the UAV is determined based on the IP address.
[0037] In step S103, when the network credibility is greater than a set credibility threshold, the network signal strength of the first wireless local area network in the wireless local area network is determined, wherein the first wireless local area network is the wireless local area network in which the network credibility is greater than the set credibility threshold.
[0038] It is worth mentioning that the wireless local area networks (WLANs) detected and determined through the above steps in this embodiment may include one or more WLANs. When a first WLAN with a network credibility greater than a set credibility threshold exists among these WLANs, the signal strength of the first WLAN is detected to determine its network signal strength. The detected first WLANs may include one or more. WLANs are filtered based on network credibility to determine the first WLAN with a network credibility greater than a set credibility threshold, and the network signal strength of the first WLAN is measured. For example, the set credibility threshold can be set to 5. When the network credibility of a WLAN is greater than 5, the WLAN is trusted by the user and can be used as a candidate first WLAN for signal strength verification.
[0039] It should be noted that the signal strength of a wireless local area network (WLAN) is related to the amount of data received and / or transmitted during communication. A higher amount of data received and / or transmitted within a certain time range indicates a stronger signal strength, while a lower amount indicates a weaker signal strength. Therefore, in this embodiment, the signal strength of a WLAN can be determined based on its data reception and transmission volume. After identifying a first WLAN, the data reception and transmission volume Ds of that first WLAN within a set time range is detected. Based on the set time range and the data reception and transmission volume Ds, the data reception and transmission volume of the first WLAN per unit time is determined, and the network signal strength of the first WLAN is generated based on this data reception and transmission volume per unit time.
[0040] In step S104, when the network signal strength is greater than the signal strength of the user equipment, a second wireless local area network is connected, wherein the second wireless local area network is the wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment.
[0041] It is worth mentioning that in this embodiment, the user equipment can access the Internet through its own communication network card. For example, it can use the data traffic of the SIM (Subscriber Identity Module) card to communicate with the base station of the corresponding operator, and then connect to the Internet through the base station. Alternatively, it can use a wireless communication device to establish a digital connection between the user equipment and a wireless local area network (WLAN), and connect the user equipment to the Internet through the WLAN's relay equipment. Therefore, the user equipment can communicate in the Internet through the above two methods. When communicating in the Internet through the data traffic of the SIM card, the corresponding signal strength is the user equipment's signal strength; when communicating in the Internet through the WLAN, the corresponding signal strength is the WLAN's network signal strength. Generally, the WLAN's network signal strength is greater than the user equipment's signal strength, and users will switch to connecting to the Internet through the WLAN for faster Internet communication. Therefore, after selecting a first wireless local area network (WLAN) with a network credibility greater than the set credibility threshold through the above steps, it is necessary to further filter the first WLAN by determining its network signal strength and comparing it with the user equipment's signal strength. If the network signal strength is greater than the user equipment's signal strength, a second WLAN that meets the signal strength requirement is selected from the first WLAN, and the user equipment is controlled to connect to the second WLAN. For example, if the network signal strength is less than or equal to the user equipment's signal strength, the user equipment will not connect to the WLAN for faster communication and will use the SIM card's own data for internet communication.
[0042] It should be noted that, under normal circumstances, a user device can only connect to one wireless local area network (WLAN). In this embodiment, the WLAN detected by the user device from the environment may include multiple WLANs. When it is determined through the above steps that there are multiple second WLANs among the multiple WLANs, the network signal strengths of the multiple second WLANs can be compared, and the WLAN with the strongest network signal strength among the multiple second WLANs can be determined as the target WLAN. The user device is then controlled to connect to the target WLAN.
[0043] Optionally, in one embodiment, step S104 above includes:
[0044] When it is determined that the second wireless local area network includes multiple wireless local area networks, the initial network performance value of each wireless local area network is determined based on the network credibility, network signal strength and set weight factors of each wireless local area network.
[0045] Determine the network type of each wireless local area network, including public wireless local area networks and private wireless local area networks;
[0046] Determine the network weight parameters for each wireless LAN based on the network type;
[0047] Based on the network weight parameters and the initial network performance values, generate the target network performance values for each wireless local area network;
[0048] The target wireless local area network (WLAN) is identified as the WLAN with the highest performance value from the second WLAN, and then connected to the target WLAN.
[0049] For example, in this embodiment, the user equipment is within the coverage area of multiple wireless local area networks (WLANs). The second WLAN, determined through the above steps from the initial multiple WLANs, includes multiple WLANs. The user equipment needs to filter the initial multiple WLANs based on their network reliability and signal strength, selecting a second WLAN whose network reliability is greater than a set reliability threshold and whose signal strength is greater than the user equipment's signal strength. This second WLAN includes multiple WLANs that meet the network reliability and signal strength requirements. However, the user equipment can only connect to one WLAN at a time. Therefore, when multiple second WLANs are determined through the above steps, further filtering is needed to determine the target WLAN for the user equipment to connect to.
[0050] It is worth mentioning that in this embodiment, the network reliability and network signal strength of each second wireless local area network are specific values. The network reliability and network signal strength of each second wireless local area network can be weighted and calculated according to the set weight factor to generate the initial network performance value of each second wireless local area network.
[0051] Optionally, the above steps determine the initial network performance value of each wireless local area network (WLAN) based on its network credibility, network signal strength, and a set weighting factor, including:
[0052] Based on the set weighting factors, determine the first weighting factor corresponding to network credibility and the second weighting factor corresponding to network signal strength;
[0053] The reliability performance value of each wireless local area network is determined based on network reliability and the first weighting factor, and the signal strength performance value of each wireless local area network is determined based on network signal strength and the second weighting factor.
[0054] Initial network performance values for each wireless local area network are generated based on the reliability performance value and the signal strength performance value.
[0055] For example, in this embodiment, the initial network performance value corresponding to each second wireless local area network can be determined by the following formula:
[0056] W k = (1-F)*Dsk+F*Sk
[0057] Among them, W k The initial network performance value corresponding to each second wireless local area network is defined as follows: F is the set weight factor, Dsk is the network signal strength corresponding to each second wireless local area network, and Sk is the network reliability corresponding to each second wireless local area network.
[0058] For example, by detecting and determining that there are n wireless local area networks (WLANs) in the user equipment's current environment, firstly, the data transmission and reception volume (Ds1, Ds2, ..., Dsi, ..., Dsn) of each WLAN is tested, and this data transmission and reception volume is used as the network signal strength of the WLAN. Then, the network reliability (S1, S2, ..., Si, ..., Sn) of each WLAN is obtained. Secondly, this network reliability is compared with a set reliability threshold (S), and m WLANs with a reliability greater than the set reliability threshold are selected from the n WLANs as the first WLANs. The user equipment's performance within time tp is calculated. Given a data transmission and reception strength D, m first wireless local area networks are filtered based on this strength D. From these, p second wireless local area networks with signal strengths greater than D are selected and displayed on the user equipment for selection. The data transmission and reception volumes of these p second wireless local area networks are Dsp, ..., Dsn, respectively, and their network credibility is Sp, ..., Sn, respectively. A weighting factor F is set, and the initial network performance value for each second wireless local area network is:
[0059] W n = (1-F)*Dsn+F*Sn
[0060] Among them, W n Let F be the initial network performance value corresponding to each second wireless local area network, Dsn be the network signal strength, and Sn be the network reliability. Using the above formula, and applying the network signal strength and network reliability of each second wireless local area network, the initial network performance value corresponding to each second wireless local area network can be determined, and this value can be displayed to the user through the user equipment's display device.
[0061] For example, in this embodiment, the wireless local area networks (WLANs) detected and determined by the user equipment from the environment include various network types. Based on privacy, WLANs can be divided into public WLANs and private WLANs. Typically, connecting to public WLANs can easily lead to the leakage of user privacy. Therefore, different network weight parameters are set for WLANs based on their network type to reduce the probability of public WLANs being selected while increasing the probability of private WLANs being selected. That is, the weight value of public WLANs is less than the weight value of private WLANs. For example, based on the network type of each WLAN, the corresponding network weight parameter is determined. When the network weight parameter of a public WLAN is H, the corresponding network weight parameter of a private WLAN is 1-H, where the value of 1-H is much greater than the value of H. Based on the network type of each second wireless local area network (WLAN), the initial network performance value of each WLAN determined through the above steps is multiplied by the corresponding network weight parameter to generate the target network performance value for each WLAN. For example, the target network performance value for each WLAN is calculated as follows:
[0062] M n = (1-H)*Wn, or, M p =H*Wn
[0063] Among them, M n Or M p Let H be the target network performance value, H be the network weight parameter of the public wireless local area network, and Wn be the primary network performance value corresponding to the second wireless local area network. When the second wireless local area network is a private wireless local area network, the target network performance value of the second wireless local area network is M. n When the second wireless local area network is a public wireless local area network, the target network performance value of the second wireless local area network is M. p .
[0064] Optionally, after step S104 above, the method further includes:
[0065] When the user device's battery level is below a set threshold, disable the user device's Wi-Fi detection function.
[0066] It is worth mentioning that Wi-Fi detection on user devices increases power consumption. Therefore, when the user device's battery level is below a threshold, the Wi-Fi detection function needs to be disabled to improve battery life. Thus, in this embodiment, when Wi-Fi detection is enabled, the device's battery level is monitored, and when the battery level is determined to be below 30%, Wi-Fi detection is automatically disabled.
[0067] The above scheme detects Wi-Fi networks in the environment. If a Wi-Fi network is confirmed to exist, its network trustworthiness is assessed. If the trustworthiness exceeds a set threshold, the signal strength of a first Wi-Fi network (those with trustworthiness exceeding the threshold) is determined. If the signal strength of the first Wi-Fi network is greater than the user's signal strength, a second Wi-Fi network is connected (the first Wi-Fi network whose signal strength is greater than the user's signal strength). This method detects Wi-Fi signals and determines whether to connect based on network trustworthiness and signal strength. While ensuring network signal quality, it connects to more trustworthy Wi-Fi networks, preventing malicious theft of user data and effectively protecting user privacy.
[0068] Figure 2 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment, such as... Figure 2 As shown, this method is used in a user equipment and includes the following steps.
[0069] In step S201, the wireless local area network in the environment is detected.
[0070] For example, the method for detecting wireless local area networks in this embodiment is the same as in step S101 above, and can be referred to step S101 above, without further description.
[0071] In step S202, if it is determined that a wireless local area network exists in the environment, the network type and historical connection records of the wireless local area network are determined.
[0072] It is worth noting that the wireless local area networks (WLANs) in the environment of this embodiment include two network types: public WLANs and private WLANs. After detecting the presence of a WLAN in the environment, the user equipment (UE) detects the network attributes of the WLAN to determine whether it is a public or private WLAN. For example, the UE's WLAN management module manages and records the detected WLANs, recording them based on their IP addresses. Therefore, the historical connection records between the UE and the WLAN can be determined based on the WLAN's IP information. These historical connection records include connection logs of the user's connection to the WLAN, including: the number of active connections, connection duration, and the number of active disconnections.
[0073] In step S203, the initial trust performance value of the wireless local area network is determined according to the network type.
[0074] For example, in this embodiment, different trust performance values are set for different network types of wireless local area networks. For instance, when the wireless local area network is a public wireless local area network, the initial trust performance value of the wireless local area network is set to 0; when the wireless local area network is a private wireless local area network, the initial trust performance value of the wireless local area network is set to 10. That is, in this embodiment, the initial trust performance value of the public wireless local area network is lower than that of the private wireless local area network.
[0075] Optionally, in one embodiment, step S203 above includes:
[0076] In the case of a public wireless LAN, the initial trust performance value is determined to be the first trust performance value.
[0077] In the case of a private wireless LAN, the initial trust performance value is determined to be the second trust performance value, wherein the second trust performance value is greater than the first trust performance value.
[0078] For example, when the network type of the wireless LAN is determined to be a public wireless LAN, the initial trust performance value is set to the first trust performance value. When the network type is a private wireless LAN, the initial trust performance value is set to the second trust performance value, where the second trust performance value is greater than the first trust performance value. This increases the probability of selecting a private wireless LAN and protects user privacy.
[0079] In step S204, the initial credibility performance value is weighted according to the historical connection records to generate network credibility.
[0080] It is worth mentioning that in this embodiment, when a user controls their device to actively connect to the corresponding Wi-Fi network by clicking, it indicates that the Wi-Fi network can be trusted by the user. When a user controls their device to actively disconnect from the corresponding Wi-Fi network by clicking, it indicates that the Wi-Fi network is not trusted by the user. Therefore, for example, in this embodiment, the initial trust score is weighted by viewing the historical connection records of the Wi-Fi network to generate a network trust score corresponding to the Wi-Fi network. For example, after determining that the network type of the Wi-Fi network is a private Wi-Fi network, the corresponding initial trust performance value is 10. Through the historical connection records of this private Wi-Fi network, it is determined that the user actively connected to the Wi-Fi network 10 times and actively disconnected from the Wi-Fi network 2 times. Therefore, the network trust score of the Wi-Fi network is determined to be: 10 + 10 - 2 = 18.
[0081] In step S205, if the network credibility is greater than a set credibility threshold, the network signal strength of the first wireless local area network in the wireless local area network is determined.
[0082] For example, the method for determining network signal strength in this embodiment is the same as in step S103 above, and can be referred to step S103 above, without further explanation.
[0083] Alternatively, in another embodiment, step S205 above includes:
[0084] The signal test data is sent to the network end through the first wireless local area network to receive the network data transmission and reception volume of the first wireless local area network fed back by the network end.
[0085] Determine the network signal strength of the wireless local area network based on the amount of network data transmitted and received.
[0086] For example, in this embodiment, when the user equipment detects the presence of a wireless local area network in the environment, it filters out the first wireless local area network whose network credibility is greater than the set credibility threshold by setting a credibility threshold. Then, it sends signal test data to the network end through the first wireless local area network. The network end feeds back the network data transmission and reception volume of the first wireless local area network based on the signal test data. Based on the network data transmission and reception volume, it determines the network signal strength of the first wireless local area network.
[0087] In step S206, when the network signal strength is greater than the signal strength of the user equipment, a second wireless local area network is connected, wherein the second wireless local area network is the wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment.
[0088] For example, in this embodiment, the method of connecting to the second wireless local area network is the same as in step S104 above, and can be referred to step S104 above, without further description.
[0089] By using the above methods, wireless LAN signals are detected, and wireless LANs that meet the signal strength and reliability requirements are selected based on their network credibility and signal strength. This ensures network signal quality while connecting to highly reliable wireless LANs, preventing malicious theft of user personal data and effectively protecting user privacy.
[0090] Figure 3 This is a flowchart illustrating a control method for a user equipment according to an exemplary embodiment, such as... Figure 3 As shown, this method is applied to a user equipment and includes the following steps.
[0091] (1) Network trustworthiness refers to the degree of trust a user places in a Wi-Fi network. Upon initial connection, the trustworthiness of a public Wi-Fi network is initialized to 0, and the trustworthiness of a private Wi-Fi network is initialized to 10. If the user manually disconnects the device from the Wi-Fi network during the connection process, the trustworthiness of that Wi-Fi network decreases by 1. Conversely, if the user manually reconnects to a Wi-Fi network while the device is disconnected, the trustworthiness of that network increases by 1. Different types of Wi-Fi networks have different trustworthiness thresholds. Spu is the trustworthiness threshold for public Wi-Fi networks, and Spr is the trustworthiness threshold for private Wi-Fi networks. The user device periodically detects Wi-Fi networks in the environment. When a Wi-Fi network is detected, the user device determines the Wi-Fi trustworthiness recorded in its device based on the network's IP information. Then, based on the type of Wi-Fi network, the user device compares this trustworthiness with the corresponding trustworthiness threshold, selecting multiple Wi-Fi networks with trustworthiness greater than the threshold.
[0092] For example, when the Smart Connect Wi-Fi option is enabled on a mobile phone, and the device continuously and periodically detects Wi-Fi signals near the user's device, it primarily does so by implicitly enabling Wi-Fi and monitoring whether there is available Wi-Fi nearby. When the user's device battery level is less than 30%, it automatically disables Wi-Fi network detection and automatic connection functions.
[0093] (2) Determine the Wi-Fi network with the highest reliability from multiple Wi-Fi networks, compare the Wi-Fi network signal strength of the Wi-Fi network with the mobile phone signal strength, select the Wi-Fi network when the Wi-Fi network signal strength is greater than the mobile phone signal strength; select the mobile phone signal when the Wi-Fi network signal strength is less than the mobile phone signal strength.
[0094] (3) When the user device’s battery level is less than 30%, disable Wi-Fi network detection and automatic connection of the user device.
[0095] For example, if a user manually connects to a Wi-Fi network, the connection will be established directly, and the signal strength information of the Wi-Fi network, the phone signal, and the score of the strongest nearby Wi-Fi network will be displayed. If the network already has the highest score, the connection will be ignored. The determination of the Wi-Fi network score is based on the connection history already existing in the device.
[0096] When the user turns on the Wi-Fi network, the system will only detect the scores of nearby Wi-Fi networks within time t1, without connecting to any Wi-Fi network, and will wait for the user to connect to the Wi-Fi network on their own. If the user does not perform any operation, the system will select a network to connect to based on the previously detected scores at the end of time t1.
[0097] For example, when a user device is in a single Wi-Fi network environment, and an available Wi-Fi network is detected within the user device's range, the signal strength of the Wi-Fi network is obtained by sending data. The user device records the data usage within a certain period of time tp. If the data transmission and reception volume D is greater than the transmission and reception volume Ds provided by the Wi-Fi network, the user device will not connect to the Wi-Fi network; otherwise, it will enter a state of whether to connect to the Wi-Fi network.
[0098] When a user device enters the Wi-Fi network connection determination state, it determines the network type of the Wi-Fi network. If the Wi-Fi network is a public Wi-Fi network, it checks whether the user device has a connection history with that Wi-Fi network. If a connection history exists and the user's trust level (S) of that network is greater than Spu, the device connects to the Wi-Fi network; otherwise, the connection is rejected. If no connection history exists, the device displays an available Wi-Fi network information to the user, including the Wi-Fi network's IP address, network type, and network strength. If the Wi-Fi network is a private Wi-Fi network, it checks whether the user device has a connection history with that network. If a connection history exists and the user's trust level (S) of that network is greater than Spr, the device connects to the Wi-Fi network; otherwise, the connection is rejected.
[0099] For example, when a user device is in a multi-Wi-Fi network environment, the first step is to determine the type of the Wi-Fi network. If the network types are consistent, the signal strength of each Wi-Fi network and the user's trust in that Wi-Fi network are then assessed. It should be noted that these multiple Wi-Fi networks are all those with a past connection history with the user device. If there are Wi-Fi networks with a past connection history but no past connection history, the Wi-Fi network without a past connection history is discarded, and the measurement is performed only on the Wi-Fi networks with a past connection history. When all Wi-Fi networks are public or private, assuming there are n Wi-Fi networks, the first step is to test the data transmission and reception volumes Ds1, Ds2, ..., Dsi, ..., Dsn of each Wi-Fi network. Next, the trustworthiness of each Wi-Fi network is obtained as S1, S2, ..., Si, ..., Sn. Then, the data transmission and reception strength D of the user device within the time interval tp is calculated. Based on the data transmission and reception strength D and Ds1, Ds2, ..., Dsi, ..., Dsn... Let sn be the number of Wi-Fi networks selected from n Wi-Fi networks. The j Wi-Fi networks with data transmission and reception strength greater than D are identified, and the Wi-Fi network list is updated accordingly: Dsj, ..., Dsn and Sj, ..., Sn. Finally, Wi-Fi networks with a confidence level less than 0 are excluded. If kj Wi-Fi networks have a confidence level less than 0, the Wi-Fi network list is updated accordingly: Dsk, ..., Dsn and Sk, ..., Sn. Finally, Wi-Fi networks with a confidence level less than 0 are excluded.
[0100] Let the credibility weight factor be:
[0101] W k = (1-factor)*Dsk + factor*Sk
[0102] …
[0103] W n = (1-factor)*Dsk+factor*Sn
[0104] Sort W k …W n It identifies the Wi-Fi network with the highest connection score to the user's device, continuously monitors changes in Wi-Fi network signal strength, and updates the scores of each Wi-Fi network.
[0105] When a multi-Wi-Fi network includes both public and private networks, the score W of the public Wi-Fi network is first calculated using the method described above. puk …W pun And the score W for private Wi-Fi networks prk …W prn Next, let the weight of the private Wi-Fi network be F, and the weight parameter of the public Wi-Fi network be 1-F, where 1-F should be a small value. Then, a Wi-Fi network score is calculated from both:
[0106] W1=(1-F)*W puk
[0107] …
[0108] W n-k = (1-F)*W pun
[0109] W n-k+1 =F*W prk
[0110] …
[0111] W 2n-2k =F*W prn
[0112] Select the Wi-Fi network with the highest score to connect to. If the Wi-Fi network with the highest score is a public network, a relevant prompt will be given, and the difference in data transmission and reception strength between the private network with the highest score and the Wi-Fi network with the highest overall score will be displayed.
[0113] For example, when the user manually turns off the Wi-Fi switch, all Wi-Fi network connections are rejected, and information about the Wi-Fi networks near the device is recorded. The timer continues until no Wi-Fi network signals are detected. After time t2, the Wi-Fi networks near the device are detected again. After time t3, the recorded information about the Wi-Fi networks is deleted.
[0114] For example, when a user device is far from a Wi-Fi network signal, it first determines whether the amount of data sent and received by the user device during the time period tp is greater than the amount of data sent and received by the Wi-Fi network Ds. If so, the connection between the user device and the Wi-Fi network is disconnected. Otherwise, the connection between the user device and the Wi-Fi network is maintained, and the system continuously detects whether there is a new Wi-Fi network signal nearby. The Wi-Fi network signal is determined in the above manner.
[0115] Based on the above methods, a solution is proposed that can automatically switch Wi-Fi network connections on and off and autonomously select different Wi-Fi networks, thereby reducing mobile data and device battery consumption, and better protecting user data security. This solution first periodically detects Wi-Fi network signals near the device. If a Wi-Fi network is detected, it determines whether the device has previously connected to that network. If so, it connects automatically; otherwise, it alerts the user to the presence of an available Wi-Fi network nearby. When the Wi-Fi signal strength is below a threshold, it automatically disconnects from the Wi-Fi network and automatically initiates periodic Wi-Fi signal detection, resolving the issues of data loss and battery consumption. During the selection of multiple Wi-Fi networks, the reliability of each Wi-Fi network connection is determined based on the user's actions. When two Wi-Fi networks exist with connections to both having a history, the network with the highest reliability is selected, further protecting user data security.
[0116] Figure 4 This is a block diagram illustrating a control device for a user equipment according to an exemplary embodiment. (Refer to...) Figure 4 The device 100 includes a detection module 110, an acquisition module 120, a determination module 130, and an execution module 140.
[0117] The detection module 110 is configured to detect wireless local area networks in the environment.
[0118] The acquisition module 120 is configured to acquire the network trustworthiness of a wireless local area network when a wireless local area network is known to exist in the environment.
[0119] The determining module 130 is configured to determine the network signal strength of a first wireless local area network in the wireless local area network when the network credibility is greater than a set credibility threshold, wherein the first wireless local area network is a wireless local area network in the wireless local area network whose network credibility is greater than the set credibility threshold.
[0120] The execution module 140 is configured to connect to a second wireless local area network when the network signal strength is greater than the signal strength of the user equipment, wherein the second wireless local area network is a wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment.
[0121] Optionally, the execution module 140 includes:
[0122] The first determining submodule is configured to, when it is determined that the second wireless local area network includes multiple wireless local area networks, determine the initial network performance value of each wireless local area network based on the network credibility, network signal strength and set weighting factor of each wireless local area network.
[0123] The acquisition submodule is configured to determine the network type of each wireless local area network, wherein the network type includes public wireless local area networks and private wireless local area networks;
[0124] The second determining submodule is configured to determine the network weight parameters of each wireless local area network based on the network type.
[0125] The generation submodule is configured to generate target network performance values for each wireless local area network based on the network weight parameters and the initial network performance values.
[0126] The third determining submodule is configured to determine the wireless local area network with the highest target network performance value from the second wireless local area network as the target wireless local area network, and connect to the target wireless local area network.
[0127] Optionally, the first determined submodule is configured as follows:
[0128] Based on the set weighting factors, determine the first weighting factor corresponding to the network credibility and the second weighting factor corresponding to the network signal strength;
[0129] The reliability performance value of each wireless local area network is determined based on the network reliability and the first weighting factor, and the signal strength performance value of each wireless local area network is determined based on the network signal strength and the second weighting factor.
[0130] The initial network performance values for each wireless local area network are generated based on the reliability performance value and the signal strength performance value.
[0131] Optionally, module 120 includes:
[0132] The fourth determination submodule is configured to determine the network type and historical connection records of the wireless local area network;
[0133] The fifth determination submodule is configured to determine the initial trust performance value of the wireless local area network based on the network type.
[0134] The weighting submodule is configured to weight the initial trust performance value based on historical connection records to generate network trust.
[0135] Optionally, the fifth determining submodule is configured as follows:
[0136] In the case of a public wireless local area network, the initial trust performance value is determined to be the first trust performance value;
[0137] In the case of a private wireless LAN, the initial trust performance value is determined to be the second trust performance value, wherein the second trust performance value is greater than the first trust performance value.
[0138] Optionally, the device 100 further includes a shut-off module configured to:
[0139] When the user device's battery level is below a set threshold, disable the user device's Wi-Fi detection function.
[0140] Optionally, the determining module 130 is configured as follows:
[0141] The signal test data is sent to the network end through the first wireless local area network, and the network data transmission and reception volume of the first wireless local area network is received by the network end.
[0142] The network signal strength of the first wireless local area network is determined based on the amount of network data transmitted and received.
[0143] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0144] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the user equipment control method provided in this disclosure.
[0145] Figure 5 This is a block diagram illustrating a user device according to an exemplary embodiment. For example, device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0146] Reference Figure 5The device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 505, audio component 510, input / output interface 512, sensor component 514, and communication component 516.
[0147] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 505 and processing component 502.
[0148] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0149] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.
[0150] Multimedia component 505 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 505 includes a front-facing camera and / or a rear-facing camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0151] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0152] Input / output interface 512 provides an interface between processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0153] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0154] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0155] In an exemplary embodiment, device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0156] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0157] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), and SoC (System on Chip). The aforementioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the aforementioned user equipment control method. The executable instructions can be stored in the integrated circuit or chip or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the above-mentioned user equipment control method can be implemented; or, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above-mentioned user equipment control method.
[0158] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the control method of the user device described above when executed by the programmable device.
[0159] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0160] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A control method for user equipment, characterized in that, include: Detect wireless local area networks in the environment; If it is determined that a wireless local area network exists in the environment, the network trustworthiness of the wireless local area network is obtained. The network trustworthiness refers to the degree of trust that the user has in the wireless local area network when connecting to it. If the network credibility is greater than a set credibility threshold, the network signal strength of the first wireless local area network in the wireless local area network is determined, wherein the first wireless local area network is the wireless local area network in the wireless local area network whose network credibility is greater than the set credibility threshold. If the network signal strength is greater than the signal strength of the user equipment, a second wireless local area network is connected, wherein the second wireless local area network is a wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment, and the signal strength of the user equipment is the signal strength of the network currently connected to the user equipment; The process of obtaining the network trustworthiness of the wireless local area network includes: Determine the network type and historical connection records of the wireless local area network; Based on the network type, determine the initial trust performance value of the wireless local area network; The initial credibility performance value is weighted based on the historical connection records to generate the network credibility.
2. The control method according to claim 1, characterized in that, The connection to the second wireless local area network includes: If it is determined that the second wireless local area network includes multiple wireless local area networks, the initial network performance value of each wireless local area network is determined based on the network credibility, network signal strength and set weight factor of each wireless local area network. The network type of each wireless local area network is determined, wherein the network type includes public wireless local area networks and private wireless local area networks; Based on the network type, determine the network weight parameters of each wireless local area network; Based on the network weight parameters and the initial network performance values, target network performance values are generated for each wireless local area network. The target wireless local area network is determined from the second wireless local area network as the wireless local area network with the highest target network performance value, and then connected to the target wireless local area network.
3. The control method according to claim 2, characterized in that, The process of determining the initial network performance value of each wireless local area network (WLAN) based on its network reliability, network signal strength, and a set weighting factor includes: Based on the set weighting factors, determine the first weighting factor corresponding to the network credibility and the second weighting factor corresponding to the network signal strength; The reliability performance value of each wireless local area network is determined based on the network reliability and the first weighting factor, and the signal strength performance value of each wireless local area network is determined based on the network signal strength and the second weighting factor. The initial network performance values for each wireless local area network are generated based on the reliability performance value and the signal strength performance value.
4. The control method according to claim 1, characterized in that, The network types include public wireless local area networks (WLANs) and private wireless local area networks (WLANs). Determining the initial trust performance value of the WLAN based on the network type includes: In the case where the network type is the public wireless local area network, the initial trust performance value is determined to be the first trust performance value; In the case where the network type is the private wireless local area network, the initial trust performance value is determined to be the second trust performance value, wherein the second trust performance value is greater than the first trust performance value.
5. The control method according to claim 1, characterized in that, The method includes: If the battery level of the user equipment is lower than a set battery threshold, the wireless local area network detection function of the user equipment shall be turned off.
6. The control method according to claim 1, characterized in that, Determining the network signal strength of the first wireless local area network in the wireless local area network includes: The signal test data is sent to the network end through the first wireless local area network, so as to receive the network data transmission and reception volume of the first wireless local area network fed back by the network end. The network signal strength of the first wireless local area network is determined based on the network data transmission and reception volume.
7. A control device for user equipment, characterized in that, include: The detection module is configured to detect wireless local area networks in the environment; The acquisition module is configured to acquire the network trustworthiness of the wireless local area network when it is determined that a wireless local area network exists in the environment. The process of obtaining the network trustworthiness of the wireless local area network includes: determining the network type and historical connection records of the wireless local area network; determining the initial trustworthiness performance value of the wireless local area network based on the network type; and weighting the initial trustworthiness performance value based on the historical connection records to generate the network trustworthiness, wherein the network trustworthiness refers to the degree of trust a user has in the wireless local area network when connecting to it. The determination module is configured to determine the network signal strength of a first wireless local area network in the wireless local area network when the network credibility is greater than a set credibility threshold, wherein the first wireless local area network is a wireless local area network in the wireless local area network whose network credibility is greater than the set credibility threshold. The execution module is configured to connect to a second wireless local area network when the network signal strength is greater than the signal strength of the user equipment, wherein the second wireless local area network is a wireless local area network in the first wireless local area network whose network signal strength is greater than the signal strength of the user equipment, and the signal strength of the user equipment is the signal strength of the network currently connected to the user equipment.
8. A user equipment, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1-6 when executing the executable instructions.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Wireless network switching method, mobile terminal and storage medium
CN108337707A
Wireless network connection recommendation method and device, electronic device and readable medium
CN109951859A
Wireless local area network identification method and identification device, storage medium and electronic equipment
CN111274216A