WiFi network information updating method, device and storage medium

By calculating the preferred index of WiFi network on the terminal device and deleting networks that do not meet the conditions, the problem of low storage space occupation and access efficiency caused by excessive WiFi network information is solved, and the update of WiFi databases and the improvement of connection efficiency is achieved. .

CN116112955BActive Publication Date: 2024-11-05CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310132804.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-06
Publication Date
2024-11-05
Estimated Expiration
2043-02-06

AI Technical Summary

Technical Problem

As the use time of mobile terminals increases, excessive storage space is increased due to excessive storage information, affecting the access efficiency of WiFi networks.

Method used

After the terminal device successfully connects to the WiFi network, obtain and save the access time, disconnect time and network performance parameters of the WiFi network, calculate the preferred index of each WiFi network, and delete the WiFi network that does not meet the conditions according to the preset conditions. , thereby updating the WiFi database, cleaning up memory and improving WiFi connection efficiency.

Benefits of technology

Effectively clean up the storage space of mobile terminals, reduce the search and connection time during WiFi connection, optimize the user experience, and avoid the steps of users to manually filter and delete WiFi networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112955B_ABST
    Figure CN116112955B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and storage medium for updating WiFi network information. The present application belongs to the field of wireless network technology. The method includes: when a terminal device successfully accesses a WiFi network, obtaining and saving the WiFi network and parameter information of the WiFi network to a WiFi database; when the WiFi database is updated, obtaining the preferred index of each WiFi network according to the parameter information of each WiFi network; according to the preferred index of each WiFi network, deleting the WiFi network corresponding to the preferred index that does not meet the preset conditions from the WiFi database. The method of the present application can optimize and update the saved WiFi networks, clean up the memory of the mobile terminal in time, release more storage space, and improve the connection speed of the WiFi network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless network technology, and in particular to a WiFi network information updating method, device and storage medium. Background Art

[0002] After the smart mobile terminal successfully connects to the WiFi network, it will automatically save the information of the WiFi network (mainly the WiFi network name and password), so that it can automatically connect when entering the coverage area of ​​the WiFi network again.

[0003] In the prior art, as the use time of the mobile terminal increases, the number of stored WiFi networks continues to grow, and the WiFi network information stored on the mobile terminal will become more and more, which will not only occupy the storage space of the mobile terminal, but also affect the efficiency of automatically accessing the WiFi network.

[0004] Therefore, the present invention provides a method, device and storage medium for updating WiFi network information, which can update the saved WiFi network information according to user needs, and can improve the efficiency of accessing the WiFi network while clearing the memory of the mobile terminal. Summary of the invention

[0005] The present application provides a WiFi network information updating method, device and storage medium, which are used to solve the problem of excessive WiFi network data storage occupying memory and affecting WiFi network efficiency.

[0006] In a first aspect, the present application provides a WiFi network information updating method for a terminal device, comprising:

[0007] When the terminal device successfully accesses the WiFi network, the WiFi network and parameter information of the WiFi network are obtained and saved to the WiFi database, wherein the parameter information includes the access time of the terminal device accessing the WiFi network, the disconnection time of the WiFi network, and the network performance parameters of the WiFi network;

[0008] When the WiFi database is updated, the preferred index of each WiFi network is obtained according to the parameter information of each WiFi network.

[0009] According to the preference index of each of the WiFi networks, the WiFi networks corresponding to the preference indexes that do not meet the preset conditions are deleted from the WiFi database.

[0010] In a possible design, acquiring the preferred index of each of the WiFi networks according to the parameter information of each of the WiFi networks includes:

[0011] For each WiFi network, according to the access time and disconnection time, obtain the average daily usage time, the average daily usage times, and the time interval between the last access time of the terminal device and the current time within a preset time period;

[0012] The preferred index is obtained according to the average daily usage duration, the average daily usage times, the time interval and the network performance parameters.

[0013] In a possible design, obtaining the preferred index according to the average daily usage duration, the average daily usage times, the time interval, and the network performance parameter includes:

[0014] Acquire a time interval coefficient according to the time interval;

[0015] The preferred index is obtained according to the product of the average daily usage time, the average daily usage times, the time interval coefficient and the network performance parameter.

[0016] In a possible design, before acquiring the preferred index of each of the WiFi networks according to the parameter information of each of the WiFi networks, the method further includes:

[0017] According to a preset period, obtaining the interval between the current time and the last update time, and if the interval is longer than the preset time, determining to update the WiFi database; or

[0018] According to a preset period, the number of WiFi networks currently stored in the WiFi database is obtained, and if the number reaches a preset number, it is determined to update the WiFi database.

[0019] In one possible design, the network performance parameter is obtained based on a return delay of a data packet after the WiFi network accesses a preset URL, wherein the greater the return delay, the smaller the corresponding network performance parameter; or

[0020] The network performance parameter is obtained based on an average rate of downloading a data file of a preset size on a preset server through the WiFi network, wherein the larger the average rate, the larger the corresponding network performance parameter.

[0021] In one possible design, the access time and disconnection time are obtained by directly reading the local clock through the system interface when the terminal device accesses and disconnects from the WiFi network, or by obtaining it from a time server through the network.

[0022] In a possible design, the deleting, according to the preference index of each of the WiFi networks, the WiFi networks corresponding to the preference indexes that do not meet the preset conditions from the WiFi database includes:

[0023] According to the preference index of each WiFi network, obtain an average preference index or a median preference index, and delete WiFi networks having a preference index lower than the average preference index or the median preference index from the WiFi database; or

[0024] The WiFi networks in the WiFi database are sorted in descending order according to the preference indexes, and WiFi networks with a preset number of preference indexes ranked at the bottom are deleted from the WiFi database.

[0025] In a second aspect, the present application provides a WiFi network information updating device, including:

[0026] A data update module, used for acquiring and saving the WiFi network and parameter information of the WiFi network to a WiFi database after the terminal device successfully accesses the WiFi network; wherein the parameter information includes the access time of the terminal device accessing the WiFi network, the disconnection time of the WiFi network and the network performance parameters of the WiFi network;

[0027] A first processing module, when the WiFi database is updated, obtains a preference index of each WiFi network according to parameter information of each WiFi network;

[0028] The second processing module deletes the WiFi networks corresponding to the preference indexes that do not meet the preset conditions from the WiFi database according to the preference index of each WiFi network.

[0029] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0030] The memory stores computer-executable instructions;

[0031] The processor executes the computer-executable instructions stored in the memory to implement a WiFi network information updating method.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement a method for updating WiFi network information.

[0033] The present application provides a method, device and storage medium for updating WiFi network information. After successfully accessing the WiFi network through a terminal device, the WiFi network and the parameter information of the WiFi network are obtained and saved to the WiFi database. When the WiFi database is updated, the parameter information is processed, and the preferred WiFi network is screened out in the WiFi database, and the non-preferred WiFi network is deleted from the WiFi database. The update of the WiFi database has been completed, and the memory of the mobile terminal can be cleaned up in time to release more storage space. At the same time, when making a WiFi connection, searching and connecting in a large number of saved WiFi lists is avoided, thereby improving the efficiency of WiFi connection. In addition, the steps of screening and deleting by the user himself are avoided, thereby optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A schematic diagram of an application scenario of a WiFi network information updating method provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of a WiFi network information updating method provided in an embodiment of the present application Figure 1 ;

[0037] Figure 3 A schematic diagram of a WiFi network information updating method provided in an embodiment of the present application Figure 2 ;

[0038] Figure 4 A schematic diagram of the structure of a WiFi network information updating device provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims, rather than all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0041] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] A WiFi network information updating method provided by an embodiment of the present application is described in detail below in conjunction with the accompanying drawings. It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or it can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this.

[0043] Figure 1 is a schematic diagram of an application scenario involved in this embodiment, such as Figure 1 As shown, the terminal device 110 may be a terminal device such as a mobile phone, a tablet computer, a notebook, a smart home device, etc. that can connect to a WiFi network. The WiFi networks that the terminal device 110 has connected to within a preset period may be the first WiFi network 120, the first WiFi network 130, the first WiFi network 140, etc. The information of the above WiFi networks is stored in a WiFi database. The method is used to optimize the WiFi networks in the WiFi database, delete the non-preferred WiFi networks from the WiFi database, and complete the update of the WiFi database.

[0044] The terminal device 110 includes, in addition to the original functional modules including a communication module, a location module, a clock module, etc. (wherein the communication module is used to access the WiFi network; the location module is used to obtain the location information of the terminal device 110; the clock module is used to obtain the real-time time of the terminal device 110). Optionally, according to the functions implemented by the terminal device, the terminal device 110 may also include a database module, an information storage module, an information acquisition module, an analysis and screening module, an information update module, etc., wherein the information acquisition module is used to obtain the WiFi network and the parameter information of the WiFi network; the information storage module is used to save the WiFi network and the parameter information of the WiFi network into the database module; the analysis and screening module is used to process the stored parameter information of the WiFi network to filter out the WiFi networks that meet the conditions; the information update module can be used to delete the parameter information of the WiFi networks that do not meet the conditions from the database.

[0045] The method of the present invention can screen out preferred WiFi networks in the WiFi database when the WiFi database is updated, delete non-preferred WiFi networks from the WiFi database, and complete the update of the WiFi database. The method of the present invention can solve the problem of occupying memory and affecting WiFi network efficiency caused by storing too much WiFi network data in the prior art.

[0046] Figure 2 A schematic diagram of a WiFi network information updating method provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the method includes:

[0047] S201. After the terminal device successfully accesses the WiFi network, the WiFi network and parameter information of the WiFi network are obtained and saved to the WiFi database; wherein the parameter information includes the access time of the terminal device accessing the WiFi network, the disconnection time of the WiFi network, and the network performance parameters of the WiFi network;

[0048] Specifically, the terminal device of this embodiment can be any type of mobile phone device, tablet computer, notebook or other device with WiFi access function, and this embodiment does not impose any special restrictions here.

[0049] When the terminal device connects to a WiFi network, in addition to saving the name, password, location information, etc. of the WiFi network, when using the WiFi network, it also saves the parameter information of the WiFi network, including the access time of the WiFi network, the disconnection time of the WiFi network, and the network performance parameters of the WiFi network.

[0050] Those skilled in the art can understand that each time the terminal device accesses the WiFi network, the parameter information of the WiFi network can be obtained.

[0051] S202, when the WiFi database is updated, obtaining a preference index of each WiFi network according to parameter information of each WiFi network;

[0052] Specifically, the user can set a preset time as the update cycle of the WiFi database update, or set the number of WiFi networks to be retained (i.e., the preset number) as the trigger condition for the WiFi database update. When the saved WiFi networks reach the update cycle or meet the trigger condition based on the preset number, it is determined that the WiFi database needs to be updated.

[0053] Specifically, when it is determined that the WiFi database needs to be updated, for each WiFi network, the average daily usage time, average daily usage times and time interval between the last access time of the terminal device and the current time within the preset time period can be obtained based on the access time of the WiFi network and the disconnection time of the WiFi network obtained in the previous step.

[0054] The preference index of each WiFi network can be obtained based on the average daily usage time, the average daily usage times, the time interval between the last access time of the terminal device and the current time, and the network performance parameters. For example, by combining the above parameters and the preset algorithm, the preference index of each WiFi network can be obtained, which is used to indicate whether the user frequently uses the WiFi network and whether the performance of the WiFi network is good. For example, the larger the preference index, the better the superiority of the WiFi network and the greater the probability of being used again by the user.

[0055] Specifically, the network performance parameter is obtained based on the return delay of a data packet after the WiFi network accesses a preset website; or, the network performance parameter is obtained based on the average speed of downloading a data file of a preset size on a preset server through the WiFi network.

[0056] S203. According to the preference index of each WiFi network, the WiFi networks corresponding to the preference indexes that do not meet the preset conditions are deleted from the WiFi database.

[0057] Specifically, according to the preset conditions, the WiFi networks that meet the preset conditions are screened out as preferred WiFi networks and retained in the WiFi database, and the non-preferred WiFi networks are deleted. It should be noted that when the mobile terminal deletes the non-preferred WiFi network, its parameter information including name, password, location information, access time, disconnection time, network performance and real-time location should be deleted.

[0058] The method provided in this embodiment obtains and saves the WiFi network and the parameter information of the WiFi network to the WiFi database after the terminal device successfully accesses the WiFi network. When the WiFi database is updated, the parameter information is processed, the preferred WiFi network is screened out in the WiFi database, and the non-preferred WiFi network is deleted from the WiFi database, so that the memory in the mobile terminal 110 can be cleaned up in time to release more storage space. At the same time, when making a WiFi connection, it avoids searching and connecting in a large number of saved WiFi lists, thereby improving the efficiency of WiFi connection. In addition, it also avoids the steps of screening and deleting by the user himself, thereby optimizing the user experience.

[0059] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0060] Figure 3 A schematic diagram of a WiFi network information updating method provided in an embodiment of the present application Figure 2 .like Figure 3 As shown, the method includes:

[0061] S301. After the terminal device successfully accesses the WiFi network, the WiFi network and parameter information of the WiFi network are obtained and saved to the WiFi database; wherein the parameter information includes the access time of the terminal device to the WiFi network, the disconnection time of the WiFi network, and the network performance parameters of the WiFi network.

[0062] Specifically, the access time and the disconnection time are obtained by directly reading the local clock through the system interface when the terminal device accesses and disconnects the WiFi network, or by obtaining the time from a time server through the network.

[0063] When the terminal device successfully accesses a new WiFi network, if the acquired WiFi network name is different from the WiFi network name stored in the WiFi database, the WiFi network and parameter information of the WiFi network are acquired and stored;

[0064] If the acquired new WiFi network name is the same as a saved WiFi network name, compare the real-time location of the new WiFi network with the real-time location of the saved WiFi network; if the real-time locations are the same, determine that the WiFi network and the saved WiFi network are the same WiFi network and store new parameter information; if the real-time locations are different, determine that the WiFi network and the saved WiFi network are different WiFi networks, acquire and save the WiFi network and the parameter information of the WiFi network.

[0065] S302. According to a preset period, obtain the interval between the current time and the last update time. If the interval is greater than the preset time, determine to update the WiFi database; or according to a preset period, obtain the number of WiFi networks currently stored in the WiFi database. If the number reaches a preset number, determine to update the WiFi database.

[0066] Specifically, the user can set a preset period according to his / her own needs, and choose to use a preset duration or the number of currently saved WiFi networks as a trigger condition for updating the WiFi database.

[0067] For example, if the user sets the preset time to 30 days, that is, the WiFi database is updated once every 30 days, when the interval between the current time and the last update time reaches 30 days, it is determined that the WiFi database needs to be updated.

[0068] For example, if the user sets the preset period to 30 days and sets the preset number of WiFi networks saved in the WiFi database to 10, then within 30 days, when the number of WiFi networks currently saved in the WiFi database reaches 10, it is determined that the WiFi database needs to be updated. If within the preset period (30 days), when the number of WiFi networks currently saved in the WiFi database does not reach the preset number, then when the interval between the current time and the last update time reaches 30 days, it is determined that the WiFi database needs to be updated.

[0069] S303, when the WiFi database is updated, for each WiFi network, according to the access time and disconnection time, obtain the average daily usage time, the average daily usage times, and the time interval between the last access time of the terminal device and the current time within a preset time period;

[0070] Specifically, the preset time period can be a time period set by the user, or it can be a time period from the last update time to the current update time of the WiFi database. The terminal device can obtain the access time and disconnection time based on the local clock, or obtain the access time and disconnection time from the time server through the network, to obtain the average daily usage time, the average daily usage times and the time interval between the last access time of the terminal device and the current time within the preset time period, which are used for the subsequent calculation of the preferred index.

[0071] S304: Obtain a preference index according to the average daily usage duration, the average daily usage times, the time interval and the network performance parameters.

[0072] Specifically, a time interval coefficient is obtained according to the time interval; and a preference index is obtained according to the product of the average daily usage time, the average daily usage times, the time interval coefficient and the network performance parameter.

[0073] Specifically, the network performance parameters are obtained based on the return delay of the data packet after the WiFi network accesses the preset URL, wherein the greater the return delay, the smaller the corresponding network performance parameter; or the network performance parameters are obtained based on the average rate of downloading a data file of a preset size on a preset server through the WiFi network, wherein the greater the average rate, the larger the corresponding network performance parameter.

[0074] Specifically, when network performance parameters are obtained, since the data differences are too large, in order to facilitate calculation, they can be normalized before calculating the optimization index.

[0075] Exemplarily, when the WiFi database is updated, the real-time time obtained by the clock module is 21:50 on a certain day; for a certain WiFi network, the average daily usage time of the network in the past 30 days (preset time period) is time_use = 1.5 hours, and the average daily usage number nuber_use = 3 times; the interval time from the current real-time time "21:50" is time_last = 0.5 hours, and the obtained time interval coefficient is 1 / time_last.

[0076] Set the default URL to "www.baidu.com". The average return delay of the terminal device using the ping command to obtain data packets from this URL is 37 milliseconds. The greater the return delay, the smaller the corresponding network performance parameter, so 1 / 37 is used as the performance parameter performance_WiFi of the WiFi network. It should be noted here that if we need to obtain the performance parameters of the WiFi network based on the average rate, the average rate value is used as the performance parameter of the WiFi network.

[0077] According to the average daily usage time, average daily usage times, time interval coefficient and network performance parameters that have been obtained, according to formula (1) or the preferred index index:

[0078] index=time_use×number_use×performance_WiFi / time_last (1)

[0079] The obtained preference index of the WiFi network is: index=1.5×3 / (39×0.5)≈0.23.

[0080] S305. According to the preference index of each WiFi network, obtain an average preference index or a median preference index, and delete the WiFi networks whose preference index is lower than the average preference index or the median preference index from the WiFi database; or sort the WiFi networks in the WiFi database in descending order of preference index, and delete the WiFi networks whose preference index is ranked at the bottom of a preset number from the WiFi database.

[0081] Specifically, the user can choose to use the average or median of the preferred index as the threshold value, or preset the number of WiFi networks to be retained. The user can choose a solution that suits him or her according to his or her own needs to improve the user experience.

[0082] By adopting the method provided in this embodiment, after the terminal device successfully accesses the WiFi network, the WiFi network and the parameter information of the WiFi network are obtained and saved to the WiFi database; the WiFi database is updated after the preset conditions are triggered according to the user's settings; when the WiFi database is updated, the average daily usage time, the average daily usage times, and the time interval between the last access time of the terminal device and the current time, and the network performance parameters are obtained in the preset time period according to the parameter information to calculate the preferred index, and the preset screening conditions are set according to the user's needs to complete the screening of the WiFi network; the following technical effects can be achieved:

[0083] The method of this embodiment can clean up the memory of the mobile terminal, free up more storage space, avoid searching and connecting in a large number of saved WiFi lists when connecting to WiFi, and improve WiFi connection efficiency.

[0084] This embodiment adopts the method of calculating the preferred index as the index for screening the WiFi network to update the WiFi database. The preferred index is positively correlated with the average daily usage time and the average daily usage times, and negatively correlated with the time interval. The network performance parameter is used as a weight of the preferred index. The network performance parameter is obtained according to the return delay of the data packet after the WiFi network accesses the preset website, or according to the average rate of downloading the data file of the preset size on the preset server. Among them, the larger the return delay, the smaller the corresponding network performance parameter; or, the larger the average rate, the larger the corresponding network performance parameter; therefore, the preferred index calculated by this embodiment is negatively correlated with the return delay, or positively correlated with the average rate. In summary, the preferred index method is used as the index for screening the WiFi network to update the WiFi database, which can comprehensively evaluate the performance of the WiFi network, and can screen out WiFi networks with a longer average daily usage time, a higher average daily usage times, a shorter time interval between the last use time and the real-time time, a smaller return delay, and a faster download rate and retain them in the WiFi database.

[0085] This embodiment can trigger the update of the WiFi database according to the preset conditions set by the user. After obtaining the preferred index, the WiFi network is screened according to the preset screening conditions set by the user. The user can customize the WiFi network information update plan according to his own needs, thereby improving the user experience.

[0086] The embodiment of the present invention can divide the electronic device or the main control device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0087] Figure 4 This is a schematic diagram of the structure of a WiFi network information update device provided in an embodiment of the present application. Figure 4 As shown, the device 40 includes:

[0088] The data updating module 401 is used to obtain and save the WiFi network and the parameter information of the WiFi network to the WiFi database after the terminal device successfully accesses the WiFi network; wherein the parameter information includes the access time of the terminal device accessing the WiFi network, the disconnection time of the WiFi network and the network performance parameters of the WiFi network;

[0089] The first processing module 402 obtains the preference index of each WiFi network according to the parameter information of each WiFi network when the WiFi database is updated;

[0090] The second processing module 403 deletes the WiFi networks corresponding to the preference indexes that do not meet the preset conditions from the WiFi database according to the preference index of each WiFi network.

[0091] Further, the first processing module 402 is specifically used to: for each WiFi network, obtain the average daily usage time, the average daily usage times and the time interval between the last access time of the terminal device and the current time within a preset time period according to the access time and the disconnection time;

[0092] The optimization index is obtained based on the average daily usage duration, average daily usage times, time interval and network performance parameters.

[0093] Furthermore, the first processing module 402 is also used to: obtain a time interval coefficient according to the time interval; and obtain a preference index according to the product of the average daily usage time, the average daily usage times, the time interval coefficient and the network performance parameter.

[0094] Further, the first processing module 402 is further used to: obtain the interval between the current time and the last update time according to a preset period, and if the interval is longer than the preset time, determine to update the WiFi database; or

[0095] According to a preset period, the number of WiFi networks currently stored in the WiFi database is obtained, and if the number reaches a preset number, it is determined to update the WiFi database.

[0096] Furthermore, the first processing module 402 is further configured to:

[0097] The network performance parameter is obtained based on the return delay of the data packet after the WiFi network accesses the preset URL, wherein the greater the return delay, the smaller the corresponding network performance parameter; or

[0098] The network performance parameter is obtained based on the average rate of downloading a data file of a preset size on a preset server through a WiFi network, wherein the larger the average rate, the larger the corresponding network performance parameter.

[0099] Furthermore, the access time and the disconnection time are obtained by directly reading the local clock through the system interface when the terminal device accesses and disconnects the WiFi network, or by obtaining the time from a time server through the network.

[0100] Furthermore, the second processing module 403 is specifically configured to:

[0101] According to the preference index of each WiFi network, obtain the average preference index or the median preference index, and delete the WiFi networks whose preference index is lower than the average preference index or the median preference index from the WiFi database; or

[0102] The WiFi networks in the WiFi database are sorted in descending order of preference index, and the WiFi networks with a preset number of preference indexes ranked at the bottom are deleted from the WiFi database.

[0103] The WiFi network information updating device provided in this embodiment can execute a WiFi network information updating method of the above embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0104] In a specific implementation of the aforementioned WiFi network information updating device, each module may be implemented as a processor, and the processor may execute computer-executable instructions stored in the memory, so that the processor executes the aforementioned WiFi network information updating method.

[0105] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 50 includes: at least one processor 501 and a memory 502. The electronic device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.

[0106] In a specific implementation process, at least one processor 501 executes the computer execution instructions stored in the memory 502, so that at least one processor 501 executes a WiFi network information updating method executed by the electronic device side as above.

[0107] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0108] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0109] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0110] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0111] The above-mentioned functions implemented by the electronic device and the main control device introduce the scheme provided by the embodiment of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in the embodiment of the present invention, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present invention.

[0112] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned WiFi network information updating method is implemented.

[0113] The computer-readable storage medium mentioned above 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 memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0114] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.

[0115] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0116] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for updating WiFi network information, It is characterized in that For terminal equipment, including: When the terminal device successfully accesses the WiFi network, the WiFi network and parameter information of the WiFi network are obtained and saved in a WiFi database, wherein the parameter information includes the access time of the terminal device to the WiFi network, the disconnection time of the WiFi network, and the network performance parameter of the WiFi network; the network performance parameter is obtained according to the return delay of the data packet after the WiFi network accesses the preset website, and the larger the return delay, the smaller the corresponding network performance parameter; or: the network performance parameter is obtained according to the average rate of downloading a data file of a preset size on a preset server through the WiFi network, and the larger the average rate, the larger the corresponding network performance parameter; According to a preset period, the interval between the current time and the last update time is obtained, and if the interval is longer than the preset time, it is determined to update the WiFi database; or: according to a preset period, the number of WiFi networks currently stored in the WiFi database is obtained, and if the number reaches a preset number, it is determined to update the WiFi database; When the WiFi database is updated, for each WiFi network, according to the access time and disconnection time, the average daily usage time, the average daily usage times and the time interval between the last access time of the terminal device and the current time within a preset time period are obtained; Obtaining a time interval coefficient according to the time interval; obtaining a preference index according to the product of the average daily usage duration, the average daily usage times, the time interval coefficient and the network performance parameter; According to the preference index of each of the WiFi networks, the WiFi networks corresponding to the preference indexes that do not meet the preset conditions are deleted from the WiFi database.

2. The method according to claim 1, It is characterized in that The access time and disconnection time are obtained by directly reading a local clock through a system interface when the terminal device accesses and disconnects from the WiFi network, or by obtaining the time from a time server through a network.

3. The method according to claim 1, It is characterized in that The deleting, according to the preference index of each of the WiFi networks, the WiFi networks corresponding to the preference indexes that do not meet the preset conditions from the WiFi database includes: According to the preference index of each WiFi network, obtain an average preference index or a median preference index, and delete WiFi networks having a preference index lower than the average preference index or the median preference index from the WiFi database; or The WiFi networks in the WiFi database are sorted in descending order according to the preference indexes, and WiFi networks with a preset number of preference indexes ranked at the bottom are deleted from the WiFi database.

4. A WiFi network information updating device, It is characterized in that include: A data update module, configured to obtain and save the WiFi network and parameter information of the WiFi network to a WiFi database after the terminal device successfully accesses the WiFi network, wherein the parameter information includes the access time of the terminal device accessing the WiFi network, the disconnection time of the WiFi network, and the network performance parameter of the WiFi network; the network performance parameter is obtained based on the return delay of the data packet after the WiFi network accesses the preset website, and the larger the return delay, the smaller the corresponding network performance parameter; or: the network performance parameter is obtained based on the average rate of downloading a data file of a preset size on a preset server through the WiFi network, and the larger the average rate, the larger the corresponding network performance parameter; Used to obtain the interval between the current time and the last update time according to a preset period, and if the interval is longer than the preset time, determine to update the WiFi database; or: according to a preset period, obtain the number of WiFi networks currently stored in the WiFi database, and if the number reaches a preset number, determine to update the WiFi database; A first processing module is used to obtain, for each WiFi network, an average daily usage duration, an average daily usage frequency, and a time interval between the last access time of the terminal device and the current time within a preset time period according to the access time and the disconnection time when the WiFi database is updated; for obtaining a time interval coefficient according to the time interval; the preferred index according to the product of the average daily usage duration, the average daily usage times, the time interval coefficient and the network performance parameter; The second processing module is used to delete the WiFi networks corresponding to the preference indexes that do not meet the preset conditions from the WiFi database according to the preference index of each WiFi network.

5. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.