CN111641995A - Hotspot name updating method and device - Google Patents

Hotspot name updating method and device Download PDF

Info

Publication number
CN111641995A
CN111641995A CN202010457597.8A CN202010457597A CN111641995A CN 111641995 A CN111641995 A CN 111641995A CN 202010457597 A CN202010457597 A CN 202010457597A CN 111641995 A CN111641995 A CN 111641995A
Authority
CN
China
Prior art keywords
hotspot
name
similarity
scanning
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010457597.8A
Other languages
Chinese (zh)
Other versions
CN111641995B (en
Inventor
赵友军
王鑫
王蓓蓓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010457597.8A priority Critical patent/CN111641995B/en
Publication of CN111641995A publication Critical patent/CN111641995A/en
Application granted granted Critical
Publication of CN111641995B publication Critical patent/CN111641995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application discloses a method and a device for updating a hotspot name, wherein the method comprises the following steps: acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, wherein the hotspot scanning name set comprises hotspot scanning names; calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning names in the hotspot scanning name set to obtain a similarity set, wherein the similarity set comprises similarity values; judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold; if so, updating the hotspot default name according to a preset modification rule; and calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until judging that the hotspot default name does not need to be updated according to each similarity value in the similarity set and a preset similarity threshold.

Description

Hotspot name updating method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for updating a hotspot name.
Background
With the continuous improvement of the data communication capability of the mobile communication network and the capability upgrade of the mobile terminal, the personal hot spot function of the mobile terminal is popularized. The 'personal hotspot' function of the mobile terminal can provide mobile communication network services for other terminals at high speed, especially in areas which cannot be covered by wired Networks and Wireless Local Area Networks (WLANs). When the mobile terminal starts the personal hotspot function, other users can acquire the hotspot name of the mobile terminal through searching.
At present, the existing hotspot names are mostly named by terminal models or random letters, so that the following disadvantages exist: 1) specific useful information of the hotspot cannot be acquired from the hotspot name, so that the selection and access of a user are not facilitated; 2) in a certain spatial range, if a plurality of hotspots exist, a repeatedly named or similar hotspot name exists, which brings trouble to the selection and access of a user; 3) the existing hotspot names mostly adopt default naming formats during naming, and the personalized requirements of users cannot be met.
Disclosure of Invention
Therefore, the application provides a method and a device for updating a hotspot name, so as to solve the problem that in the prior art, due to the fixed and single naming format of the existing hotspot name, slow access or errors are easily caused when a user selects a mobile hotspot.
In order to achieve the above object, a first aspect of the present application provides a method for updating a hotspot name, including: acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, wherein the hotspot scanning name set comprises hotspot scanning names; calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning names in the hotspot scanning name set to obtain a similarity set, wherein the similarity set comprises similarity values; judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold; if so, updating the hotspot default name according to a preset modification rule; and calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until judging that the hotspot default name does not need to be updated according to each similarity value in the similarity set and a preset similarity threshold.
In some specific implementations, the determining whether to modify the hotspot default name according to each similarity value in the similarity set and a preset similarity threshold includes: and if it is determined that at least one similarity value in each similarity value in the similarity set is greater than or equal to a preset similarity threshold, determining that the hotspot default name needs to be modified.
In some specific implementations, before the step of obtaining the default name of the hotspot of the first hotspot and the hotspot scan name set within the preset range, the method further includes: acquiring real-time information corresponding to the first hotspot and historical information corresponding to the first hotspot stored in a database; and judging whether the wireless local area network scanning needs to be carried out on the hot spots within the preset range or not according to the real-time information and the historical information.
In some specific implementations, determining whether to perform wireless local area network scanning on a hotspot in a preset range according to the real-time information and the historical information includes: the real-time information comprises real-time position information and first time, and the historical information comprises historical position information and second time, wherein the historical position information is the position information of the first hotspot successfully started last time; comparing the real-time position information with the historical position information to obtain a comparison result; calculating the difference value between the first time and the second time to obtain a time difference value; and judging whether the wireless local area network scanning needs to be carried out on the hot spot within the preset range or not according to the time difference and the comparison result.
In some specific implementations, determining whether to perform wlan scanning on a hotspot in a preset range according to the time difference and the comparison result includes: and if the time difference is larger than the preset time threshold value and the comparison result is that the real-time position information and the historical position information are not coincident, determining that the wireless local area network scanning needs to be carried out on the hot spot in the preset range.
In some implementations, the types of similarity values include: any one of cosine similarity, matrix similarity, and character string edit distance.
In some implementations, the preset modification rule includes at least any one of the following rules: modifying according to the model of the equipment to which the first hotspot belongs; modifying according to the user name of the device to which the first hotspot belongs; and modifying the dynamic information according to the manufacturer name of the equipment to which the first hotspot belongs, wherein the dynamic information comprises letters and/or numbers.
In some specific implementations, after the step of determining that the hotspot default name does not need to be updated any more according to each similarity value in the similarity set and a preset similarity threshold, the method further includes: acquiring a hot spot final name corresponding to the first hot spot, wherein the similarity value between the hot spot final name and each hot spot scanning name in the hot spot scanning name set is smaller than a preset similarity threshold value; naming the first hotspot by using the hotspot final name, and starting the first hotspot; and replacing the hotspot default name stored in the database with the hotspot final name.
In order to achieve the above object, a second aspect of the present application provides an apparatus for updating a hotspot name, including: the acquisition module is used for acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, wherein the hotspot scanning name set comprises hotspot scanning names; the first calculation module is used for calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning name in the hotspot scanning name set to obtain a similarity set, wherein the similarity set comprises similarity values; the judging module is used for judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold; the updating module is used for updating the hotspot default name according to a preset modification rule when the hotspot default name is determined to be modified; and the second calculation module is used for calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be updated according to each similarity value in the similarity set and a preset similarity threshold.
In some implementations, the determining module includes: a judgment submodule: and when determining that at least one similarity value in each similarity value in the similarity set is greater than or equal to a preset similarity threshold, determining that the hotspot default name needs to be modified.
This application has following advantage: the method comprises the steps of obtaining a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning names in the hotspot scanning name set, and obtaining a similarity set which comprises a plurality of similarity values so as to determine whether the hotspot default name is similar to hotspot names of surrounding devices. And then judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold, updating the hotspot default name according to a preset modification rule when the modification is determined to be needed, and calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be modified according to each similarity value in the similarity set and the preset similarity threshold, so that the hotspot default name can be updated individually according to the preset modification rule, the format singularization of the hotspot name is avoided, a user can quickly find a first hotspot, and then the first hotspot can be accessed quickly, the network connection is completed, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application and not to limit the application.
Fig. 1 is a flowchart illustrating a method for updating a hotspot name in an embodiment of the present application.
Fig. 2 is a flowchart of a method for updating a hotspot name corresponding to a first hotspot in the present application.
Fig. 3 is a block diagram illustrating an apparatus for updating a hotspot name according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present application.
Fig. 5 is a flowchart of a working method of the mobile terminal in the present application when a personal hotspot is opened.
In the drawings:
301: the obtaining module 302: first computing module
303: the judging module 304: updating module
305: the second calculation module 400: mobile terminal
401: the information acquisition module 402: analysis and judgment module
403: the similarity calculation module 404: wireless local area network module
405: database module 406: personal hotspot naming module
Detailed Description
The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present application, are given by way of illustration and explanation only, and are not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for updating a hotspot name according to an embodiment of the present disclosure. The method for updating the hotspot name provided by the embodiment of the application can be applied to a device for updating the hotspot name. As shown in fig. 1, the method specifically includes the following steps.
Step 101, acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range.
Wherein the set of hotspot scan names includes a hotspot scan name. The default name of the first hotspot may be a name set according to a model of a device to which the hotspot belongs, or a name set by a user when the first hotspot is successfully started last time. The hot spot default name of the first hot spot is only illustrated here by way of example, and other hot spot default names of the first hot spot that are not illustrated are also within the protection scope of the present application, and are not described herein again.
And 102, calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning name in the hotspot scanning name set, and obtaining a similarity set.
The similarity calculation method comprises the steps of calculating cosine similarity or matrix similarity between two character strings and calculating a character string editing distance between the two character strings. The above calculation methods for the similarity are only examples, and other calculation methods for the similarity that are not described are also within the scope of the present application, and may be specifically set according to specific situations, and are not described herein again.
Each similarity value in the similarity set obtained by calculation using the above method is of a type including any one of cosine similarity, matrix similarity, and character string edit distance.
And 103, judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold.
And determining whether the hotspot default name and the hotspot scanning name of the first hotspot are similar and how similar, and judging whether the hotspot default name needs to be modified according to a plurality of comparison results.
In some specific implementations, it is determined that the default name of the hotspot needs to be modified if it is determined that at least one similarity value exists among the similarity values in the similarity set, where the similarity value is greater than or equal to a preset similarity threshold.
The preset similarity threshold value can be preset by a manufacturer of the updating device for generating the hotspot name, or the updating device for the hotspot name provides an operation interface, so that a user can set the preset similarity threshold value according to the requirement of the user.
It should be noted that, if it is determined that the default name of the hotspot needs to be modified, step 140 is executed; otherwise, the flow ends.
And 104, updating the hotspot default name according to a preset modification rule.
In some implementations, the preset modification rule includes at least any one of the following rules: modifying according to the model of the equipment to which the first hotspot belongs; modifying according to the user name of the device to which the first hotspot belongs; and modifying the dynamic information according to the manufacturer name of the equipment to which the first hotspot belongs, wherein the dynamic information comprises letters and/or numbers.
In particular, there may be other more personalized and intelligent ways of naming a personal hotspot, such as naming a first hotspot with a user name, etc. When the default name of the hotspot is modified, switching can be performed among a plurality of preset modification rules. The preset modification rule is only illustrated by way of example, and other non-illustrated preset modification rules are also within the protection scope of the present application, and may be specifically set according to specific situations, and are not described herein again.
And 105, calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be updated according to each similarity value in the similarity set and a preset similarity threshold.
It should be noted that after the updated default hotspot name is obtained, the similarity needs to be calculated again by continuing to use the updated default hotspot name and each hotspot scan name in the hotspot scan name set, so as to ensure that the updated default hotspot name is not repeated with each hotspot scan name in the hotspot scan name set, and improve the recognition degree of the first hotspot. And circularly executing the method until the fact that the hotspot default name does not need to be updated is judged according to the similarity values in the similarity set and the preset similarity threshold, and ensuring that the finally obtained hotspot name of the first hotspot can be distinguished from the hotspot scanning names in the hotspot scanning name set.
In this embodiment, by acquiring a hotspot default name of a first hotspot and a hotspot scan name set in a preset range, and according to the hotspot default name and hotspot scan names in the hotspot scan name set, calculating similarities between the hotspot default name and each hotspot scan name, and obtaining a similarity set, where the similarity set includes a plurality of similarity values, to determine whether the hotspot default name is similar to hotspot names of peripheral devices. And then judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold, updating the hotspot default name according to a preset modification rule when the modification is determined to be needed, and calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be modified according to each similarity value in the similarity set and the preset similarity threshold, so that the hotspot default name can be updated individually according to the preset modification rule, the format singularization of the hotspot name is avoided, a user can quickly find a first hotspot, and then the first hotspot can be accessed quickly, the network connection is completed, and the user experience is improved.
The embodiment of the present application provides another possible implementation manner, where before step 105, the method further includes:
and 106, acquiring real-time information corresponding to the first hotspot and historical information corresponding to the first hotspot stored in the database.
The real-time information comprises real-time position information and first time, and the historical information comprises historical position information and second time, wherein the historical position information is position information of a first hotspot successfully started last time, and the historical time information is time information of the first hotspot successfully started last time.
For example, the device for updating the hotspot name obtains the real-time information at this time through its own clock module and GPS module. Specifically, the real-time information may be "2019.3.510: 00" and the real-time location information may be "new dragon building in western city, beijing". The hot spot name updating device can temporarily store the real-time information into a database so as to be convenient for subsequent use. In addition, the database also stores historical location information, such as "beijing, the daxing district of beijing, or the economic development district, beihua dongdong No. 1", and historical time information, such as "2019.3.114: 25", for the first hotspot successfully opened last time.
And step 107, judging whether the wireless local area network scanning needs to be carried out on the hot spots within the preset range or not according to the real-time information and the historical information.
Specifically, if it is determined that the real-time information is consistent with the historical information, it is determined that the wireless local area network scanning of the hot spot within the preset range is not required, otherwise, the wireless local area network scanning of the hot spot within the preset range is required.
In some specific implementations, comparing the real-time location information with the historical location information to obtain a comparison result; calculating the difference value between the first time and the second time to obtain a time difference value; and judging whether the wireless local area network scanning needs to be carried out on the hot spot within the preset range or not according to the time difference and the comparison result.
Specifically, whether the real-time position information is consistent with the historical position information or not is judged, if not, that is, the real-time position information is not consistent with the historical position information, the WLAN scanning is required to be performed on the hot spot within the preset range; otherwise, if the real-time position information and the historical position information are overlapped, it is indicated that the current implementation position is the position when the first hotspot is successfully started last time, but a difference value between the first time and the second time needs to be further calculated, a time difference value is obtained, whether the time difference value is larger than a preset time threshold value or not is continuously judged, and whether wireless local area network scanning needs to be performed on the hotspot within the preset range or not is further judged.
In some specific implementations, determining whether to perform wlan scanning on a hotspot in a preset range according to the time difference and the comparison result includes: and if the time difference is larger than the preset time threshold value and the comparison result is that the real-time position information and the historical position information are not coincident, determining that the wireless local area network scanning needs to be carried out on the hot spot in the preset range.
For example, the preset distance threshold is set to be 300 meters, the real-time information is "2019.3.510: 00", the real-time location information is "new dragon building in western city of beijing", the distance between the real-time location information "new dragon building in western city of beijing" and the historical location information "beijing east road 1 of economic development district of jiuzhuang in happy district of beijing city" and the distance between the real-time location information "new dragon building in western city of beijing" and the historical location information "beijing east road 1 of economic development district of jiuzhuang in happy district of beijing city" is 16300 meters and much larger than 300 meters through ranging, and therefore, the WLAN scanning needs to be performed on the hot spots within the preset range.
In this embodiment, by obtaining the real-time information corresponding to the first hotspot and the historical information corresponding to the first hotspot stored in the database, it is determined whether to perform wireless local area network scanning on the hotspot in the preset range by comparing the real-time information with the historical information, specifically, it is determined whether to perform wireless local area network scanning on the hotspot in the preset range by comparing the time difference with the preset time threshold and by whether the real-time position information and the historical position information are overlapped, so that it can be determined whether the current first hotspot is successfully started, when the determined time difference is greater than the preset time threshold and the comparison result is that the real-time position information and the historical position information are not overlapped, the wireless local area network scanning on the hotspot in the preset range is only required, thereby saving the scanning time and increasing the starting speed of the first hotspot, meanwhile, the hotspot name of the first hotspot can be ensured to have high discrimination, so that the access of a user is facilitated, and the user experience is improved.
An embodiment of the present application provides another possible implementation manner, and fig. 2 is a flowchart of a method for updating a hotspot name corresponding to a first hotspot. Wherein, after the step 105, further comprising:
and step 108, acquiring a final name of the hotspot corresponding to the first hotspot.
It should be noted that, when the determination result in the step 202 is that the wireless local area network scan is not performed on the hotspot within the preset range, the final name of the hotspot is a name set by the user, and other users can successfully access the first hotspot by using the final name of the hotspot.
And the similarity value between the final hotspot name and each hotspot scanning name in the hotspot scanning name set is smaller than a preset similarity threshold value.
Step 109, naming the first hotspot by using the hotspot final name, and starting the first hotspot.
Specifically, after the first hotspot is named by the hotspot final name and started, other network devices can access the internet by accessing the first hotspot after searching the first hotspot, and further obtain network resources.
And step 110, replacing the hotspot default name stored in the database with the hotspot final name.
Specifically, the mobile terminal stores the real-time information when the first hotspot is successfully opened in the database, and deletes the historical information when the first hotspot is successfully opened, which is stored last time.
In this embodiment, by obtaining the final name of the hotspot corresponding to the first hotspot and naming the first hotspot by using the final name of the hotspot, after the first hotspot is started, because the similarity between the final name of the hotspot of the first hotspot and the names of other hotspots in the network is greater than a preset similarity threshold, the user can quickly find the first hotspot and select the first hotspot for access, thereby improving user experience.
Fig. 3 is a schematic structural diagram of an apparatus for updating a hotspot name in the embodiment of the present application, and specific implementation of the apparatus may refer to the related description of the above method embodiment, and repeated details are not repeated. It should be noted that the specific implementation of the apparatus in this embodiment is not limited to the above embodiment, and other undescribed embodiments are also within the scope of the apparatus.
As shown in fig. 3, the apparatus for updating the hotspot name specifically includes: the acquiring module 301 is configured to acquire a hotspot default name of a first hotspot and a hotspot scanning name set within a preset range, where the hotspot scanning name set includes a hotspot scanning name; the first calculating module 302 is configured to calculate, according to the hotspot default name and the hotspot scan name in the hotspot scan name set, a similarity between the hotspot default name and each hotspot scan name to obtain a similarity set, where the similarity set includes a similarity value; the judging module 303 is configured to judge whether the hotspot default name needs to be modified according to each similarity value in the similarity set and a preset similarity threshold; the updating module 304 is configured to update the hotspot default name according to a preset modification rule when it is determined that the hotspot default name needs to be modified; the second calculating module 305 is configured to calculate similarity again by using the updated hotspot default name and each hotspot scan name in the hotspot scan name set until it is determined that the hotspot default name does not need to be updated according to each similarity value in the similarity set and a preset similarity threshold.
In some specific implementations, the determining module 303 includes a determining submodule, and the determining submodule is configured to determine that the default name of the hotspot needs to be modified when it is determined that at least one similarity value of each similarity value in the similarity set is greater than or equal to a preset similarity threshold.
In this embodiment, a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range are obtained through an obtaining module, and according to the hotspot default name and hotspot scanning names in the hotspot scanning name set, a similarity set is obtained by using a first calculating module to calculate similarities between the hotspot default name and each hotspot scanning name, and the similarity set includes a plurality of similarity values to determine whether the hotspot default name is similar to hotspot names of peripheral devices. And then judging whether the hotspot default name needs to be modified according to each similarity value in the similarity set and a preset similarity threshold, updating the hotspot default name according to a preset modification rule by using an updating module when the modification is determined to be needed, and calculating the similarity again for each updated hotspot default name and each hotspot scanning name in the hotspot scanning name set by using a second calculating module until the hotspot default name does not need to be modified according to each similarity value in the similarity set and the preset similarity threshold, so that the hotspot default name can be updated in a personalized manner according to the preset modification rule, the format singularization of the hotspot name is avoided, a user can quickly find the first hotspot, the first hotspot can be accessed quickly, the network connection is completed, and the user experience is improved.
It should be understood that the present embodiment is an apparatus embodiment corresponding to the above method embodiment, and the present embodiment can be implemented in cooperation with the above method embodiment. The related technical details mentioned in the above method embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the above-described method embodiments.
It should be noted that, all the modules involved in this embodiment are logic modules, and in practical application, one logic unit may be one physical unit, may also be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, a unit that is not so closely related to solving the technical problem proposed by the present application is not introduced in the present embodiment, but this does not indicate that there is no other unit in the present embodiment.
Fig. 4 is a block diagram illustrating a mobile terminal according to an embodiment of the present application. As shown in fig. 4, the mobile terminal 400 specifically includes: the system comprises an information acquisition module 401, an analysis and judgment module 402, a similarity calculation module 403, a wireless local area network module 404, a database module 405 and a personal hotspot naming module 406.
The information obtaining module 401 is configured to obtain real-time information of the mobile terminal 400 (for example, a current time and a current location of the mobile terminal), and a hotspot default name of the first hotspot. The analysis and determination module 402 is configured to determine whether WLAN scanning needs to be performed on the hotspot within the preset range, and determine whether the default name of the hotspot needs to be modified. The similarity calculation module 403 is configured to calculate similarities between the hotspot default name and respective WLAN network names around the mobile terminal 400. The WLAN module 404 is configured to perform WLAN scanning on a hotspot within a preset range of the mobile terminal 400 to obtain a hotspot scanning name set. The database module 405 is used to store the location and time information of the mobile terminal 400 when the mobile terminal 400 successfully starts the personal hotspot last time. The database module 405 is further configured to store information such as a hotspot scanning name set in a preset range obtained by scanning the mobile terminal 400, and a similarity calculation result. The personal hotspot naming module 406 is configured to update the hotspot default name according to a preset modification rule.
Specifically, fig. 5 is a flowchart of a working method of the mobile terminal in this embodiment when the personal hotspot is opened, and specifically includes the following steps as shown in fig. 5.
Step 501, the information obtaining module 401 obtains real-time information corresponding to the personal hotspot and historical information corresponding to the first hotspot stored in the database module 405.
It should be noted that the historical information includes historical location information and historical time information, the historical location information is location information of the last successful opening of the personal hotspot, and the historical time information is time information of the last successful opening of the personal hotspot. The information obtaining module 401 may directly obtain the real-time information of the mobile terminal 400 through a local clock module, or may query a time server in a communication network to obtain the real-time information. Meanwhile, real-time location information of the mobile terminal 400 is acquired through a positioning module (e.g., a GPS positioning module, a mobile network positioning module, etc.). The above-mentioned obtaining manners of the real-time information and the real-time location information are only examples, and may be set according to actual situations, and other obtaining manners not described are also within the protection scope of the present application, and are not described herein again.
For example, when the user a starts the personal hotspot function on the mobile terminal 400, the mobile terminal 400 obtains the real-time information at this time through its own clock module and GPS module. For example, the real-time information may be "2019.3.510: 00" and the real-time location information may be "Xinlongxiao of the western city, Beijing". The mobile terminal 400 may temporarily store the above real-time information in the database module 405 for subsequent use.
Step 502, the analyzing and determining module 402 determines whether to perform wlan scanning on the hot spot within the preset range according to the real-time information and the historical information.
Specifically, comparing the real-time location information (for example, the location information of the personal hotspot started at this time) with the historical location information (for example, the location information of the personal hotspot started successfully last time), and obtaining a comparison result; and calculating the difference between the first time (namely the time when the personal hotspot is opened at this time) and the second time (namely the time when the personal hotspot is successfully opened last time) to obtain a time difference.
When the comparison result is determined that the real-time position information and the historical position information are not coincident, WLAN scanning is required to be carried out on the hot spot in the preset range; when the time difference is determined to be greater than or equal to a preset time threshold and the comparison result is that the real-time position information and the historical position information are not coincident, performing WLAN scanning on the hot spot within a preset range; and when the time difference is smaller than the preset time threshold value and the comparison result is that the real-time position information and the historical position information coincide, the WLAN scanning of the hot spot in the preset range is not required.
In particular, if the historical location information and the second time of the mobile terminal 400 are not found in the database module 405, i.e., the mobile terminal 400 has not successfully turned on the personal hotspot, the WLAN scan may be directly performed. The preset duration threshold and the preset range may be preset by a terminal manufacturer or may be set by a user according to a need by providing an operation interface when the mobile terminal 400 leaves a factory.
It should be noted that, if it is determined that the wireless local area network scan needs to be performed on the hot spot within the preset range, step 503 is executed, otherwise, step 507 is executed. In particular, when the mobile terminal 400 scans that the WLAN network within the preset range is empty through the WLAN module, that is, there is no WLAN network around the mobile terminal 400, step 507 may also be directly performed.
For example, the mobile terminal 400 determines whether the mobile terminal 400 should scan the surrounding WLAN network information according to the real-time information "2019.3.510: 00" and the real-time location information "new dragon building in western city, beijing", in combination with the historical time information "2019.3.114: 25" and the historical location information "beijing" chongwan jizhuang economic development district, beijing ", No. 1". Assuming that the preset distance threshold is set to be 300 meters, that is, the distance between the real-time location of the mobile terminal 400 and the historical location thereof is greater than or equal to 300 meters, it may be determined that the mobile terminal 400 needs to perform WLAN scanning on a hotspot within a preset range. Through ranging, the distance between the real-time position information 'New Dragon mansion in the West city of Beijing' and the historical position information 'Beijing Ministry of great Jones district and economic development district No. 1 of Beijing city' is 16300 m and is far greater than 300 m, so that the WLAN scanning of the hot spot in the preset range is required.
Step 503, acquiring a hotspot default name of the first hotspot and a hotspot scanning name set in a preset range.
Specifically, the hotspot default name of the first hotspot may be queried and obtained from the database module 405; through the WLAN module of the mobile terminal 400, the WLAN network information in the preset range is scanned, and names of surrounding WLAN networks, that is, a hotspot scanning name set, are obtained, where the hotspot scanning name set includes each hotspot scanning name in the preset range. For example, as shown in table 1, each hotspot scan name may specifically include: p20, Samsung-note8, Honor 8, Unicom _ Office, Unicom _ Guest, etc.
TABLE 1 respective hotspot scan names in a set of hotspot scan names
Serial number Name of WLAN network
1 P20
2 Samsung-note8
3 Honor 8
4 Unicom_Office
5 Unicom_Guest
In step 504, the similarity calculation module 403 calculates the similarity between the hotspot default name and each hotspot scan name to obtain a similarity set.
The similarity calculation method comprises the steps of calculating cosine similarity or matrix similarity between two character strings and calculating a character string editing distance between the two character strings. The above calculation methods for the similarity are only examples, and other calculation methods for the similarity that are not described are also within the scope of the present application, and may be specifically set according to specific situations, and are not described herein again.
For example, through calculation, each similarity value in the similarity set can be obtained, as shown in table 2. After obtaining the correspondence between the hotspot scan names and the similarity values shown in table 2, the mobile terminal 400 will save the table 2 to the database module 405.
TABLE 2 correspondence between hotspot scan names and similarity values
Serial number Name of WLAN network Degree of similarity
1 P20 1
2 Samsung-note8 0
3 Honor 8 0
4 Unicom_Office 0
5 Unicom_Guest 0
And 505, judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold.
Specifically, if it is determined that at least one similarity value of all similarity values in the similarity set is greater than or equal to a preset similarity threshold, it is determined that the hotspot default name needs to be modified; otherwise, it may be determined that the current hotspot default name should not be modified. The preset similarity threshold may be preset by a manufacturer when the mobile terminal 400 leaves a factory or may be customized by a user by providing an operation interface.
For example, if the preset similarity threshold is set to be 0.7, according to each similarity value shown in table 2, it may be determined that the name of the WLAN network with sequence number 1 in table 2 is the same as the default hotspot name "P20" of the first hotspot, and the similarity is 1 and is greater than the similarity threshold 0.7, so that the default hotspot name of the first hotspot needs to be modified.
It should be noted that, if it is determined that the hotspot default name needs to be modified, step 506 is executed, otherwise, step 507 is executed.
Step 506, updating the hotspot default name according to a preset modification rule, and obtaining the updated hotspot default name.
The preset modification rule can be modified according to the model of the device to which the first hotspot belongs; or according to the user name of the device to which the first hotspot belongs; the dynamic information may also be modified according to the manufacturer name of the device to which the first hotspot belongs and the dynamic information, wherein the dynamic information includes letters, and/or numbers. The mobile terminal 400 may also have other more personalized and intelligent ways of naming personal hotspots, such as naming with the name of the user of the mobile terminal 400, etc. The mobile terminal 400 may switch between a plurality of preset modification rules when modifying the default name of the hotspot. The preset modification rule is only illustrated by way of example, and other non-illustrated preset modification rules are also within the protection scope of the present application, and may be specifically set according to specific situations, and are not described herein again.
It should be noted that after the mobile terminal 400 performs step 506, it needs to continue to perform step 504, that is, the similarity between the modified hotspot default name and each hotspot scan name is recalculated to obtain a new similarity set, and then step 505 is performed until it is determined that the hotspot default name does not need to be updated according to each similarity value in the similarity set and the preset similarity threshold.
For example, the modified hotspot default name of the first hotspot is "Huawei P20", at this time, the similarity between the hotspot default name "Huawei P20" and each hotspot scan name in table 2 is less than 0.7, and therefore, the hotspot default name of the first hotspot does not need to be updated.
Step 507, obtaining a final name of the hotspot corresponding to the first hotspot.
The final name of the hotspot may be the name obtained through the calculation in steps 503 to 506, or may be a default hotspot name of the mobile terminal 400 when it is determined that the WLAN scanning is not required for the hotspot within the preset range.
Step 508, naming the first hotspot with the hotspot final name and starting the first hotspot.
Specifically, after the mobile terminal 400 names the first hotspot by using the hotspot final name and starts the first hotspot, other network devices may access the internet by accessing the first hotspot after searching the first hotspot, and further obtain the network resource.
Step 509, replace the default name of the hotspot stored in the database with the final name of the hotspot.
Specifically, the mobile terminal stores the real-time information of the successful start of the first hotspot in the database module 405, and deletes the historical information of the successful start of the first hotspot stored last time.
For example, the first hotspot is named by the final hotspot name "Huawei P20", and the acquired real-time information "2019.3.510: 00" and real-time location information "new dragon building in western city, beijing" are saved in the database module 405; and the historical information, namely the historical time information '2019.3.114: 25' and the historical position information 'No. 1 of the Beijing city Daxing district Jizhu economic development district Beihua' is deleted.
In this embodiment, a hotspot scan name set is obtained by scanning an existing WLAN network around, and a similarity between a hotspot default name and each hotspot scan name in the hotspot scan name set is calculated. When the WLAN network with higher similarity with the hotspot default name exists, the hotspot default name is modified according to a preset modification rule, so that the hotspot default name is prevented from being repeated with hotspot scanning names of surrounding WLAN networks, and other users can conveniently select to access the WLAN network. The personal hotspot function of the mobile terminal is more intelligent and personalized, and the user experience is improved.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present application, and that the present application is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the application, and these changes and modifications are to be considered as the scope of the application.

Claims (10)

1. A method for updating a hotspot name is characterized by comprising the following steps:
acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, wherein the hotspot scanning name set comprises hotspot scanning names;
calculating the similarity between the hotspot default name and each hotspot scanning name according to the hotspot default name and the hotspot scanning names in the hotspot scanning name set to obtain a similarity set, wherein the similarity set comprises similarity values;
judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold;
if so, updating the hotspot default name according to a preset modification rule;
and calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be updated according to each similarity value in the similarity set and the preset similarity threshold.
2. The method of claim 1, wherein the determining whether the default name of the hotspot needs to be modified according to each of the similarity values in the similarity set and a preset similarity threshold comprises:
and if it is determined that at least one similarity value of the similarity values in the similarity set is greater than or equal to the preset similarity threshold, determining that the default name of the hotspot needs to be modified.
3. The method according to claim 1, further comprising, before the step of obtaining the hotspot default name of the first hotspot and the set of hotspot scan names within a preset range:
acquiring real-time information corresponding to the first hotspot and historical information corresponding to the first hotspot stored in a database;
and judging whether the wireless local area network scanning needs to be carried out on the hot spots in the preset range or not according to the real-time information and the historical information.
4. The method according to claim 3, wherein the determining whether the wlan scanning is required for the hotspots within the preset range according to the real-time information and the historical information comprises:
the real-time information comprises real-time position information and first time, the historical information comprises historical position information and second time, and the historical position information is the position information of the first hotspot successfully started last time;
comparing the real-time position information with the historical position information to obtain a comparison result;
calculating the difference value between the first time and the second time to obtain a time difference value;
and judging whether the wireless local area network scanning needs to be carried out on the hot spot in the preset range or not according to the time difference and the comparison result.
5. The method according to claim 4, wherein said determining whether to perform wlan scanning on the hotspot in the preset range according to the time difference and the comparison result comprises:
and if the time difference is determined to be greater than or equal to a preset time threshold value and the comparison result is that the real-time position information and the historical position information are not coincident, determining that the wireless local area network scanning needs to be performed on the hot spot within the preset range.
6. The method according to any one of claims 1 to 5, wherein the type of similarity value comprises: any one of cosine similarity, matrix similarity, and character string edit distance.
7. The method according to any of claims 1 to 5, characterized in that the preset modification rules comprise at least any of the following rules:
modifying according to the model of the equipment to which the first hotspot belongs;
modifying according to the user name of the equipment to which the first hotspot belongs;
and modifying according to the manufacturer name of the equipment to which the first hotspot belongs and dynamic information, wherein the dynamic information comprises letters and/or numbers.
8. The method according to any one of claims 1 to 5, wherein after the step of determining that the hotspot default name is no longer required to be updated according to each of the similarity values in the similarity set and the preset similarity threshold, the method further comprises:
acquiring a final hotspot name corresponding to the first hotspot, wherein the similarity value between the final hotspot name and each hotspot scanning name in the hotspot scanning name set is smaller than the preset similarity threshold;
naming the first hotspot by using the hotspot final name, and starting the first hotspot;
and replacing the hotspot default name stored in the database by using the hotspot final name.
9. An apparatus for updating a hotspot name, comprising:
the acquisition module is used for acquiring a hotspot default name of a first hotspot and a hotspot scanning name set in a preset range, wherein the hotspot scanning name set comprises hotspot scanning names;
a first calculating module, configured to calculate, according to the hotspot default name and the hotspot scan name in the hotspot scan name set, a similarity between the hotspot default name and each hotspot scan name, to obtain a similarity set, where the similarity set includes a similarity value;
the judging module is used for judging whether the hotspot default name needs to be modified or not according to each similarity value in the similarity set and a preset similarity threshold;
the updating module is used for updating the hotspot default name according to a preset modification rule when the hotspot default name is determined to be modified;
and the second calculation module is used for calculating the similarity again by using the updated hotspot default name and each hotspot scanning name in the hotspot scanning name set until the hotspot default name does not need to be updated according to each similarity value in the similarity set and the preset similarity threshold.
10. The apparatus of claim 9, wherein the determining module comprises:
a judgment submodule: and when determining that at least one similarity value exists in each similarity value in the similarity set and is greater than or equal to the preset similarity threshold, determining that the hotspot default name needs to be modified.
CN202010457597.8A 2020-05-26 2020-05-26 Hotspot name updating method and device Active CN111641995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457597.8A CN111641995B (en) 2020-05-26 2020-05-26 Hotspot name updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457597.8A CN111641995B (en) 2020-05-26 2020-05-26 Hotspot name updating method and device

Publications (2)

Publication Number Publication Date
CN111641995A true CN111641995A (en) 2020-09-08
CN111641995B CN111641995B (en) 2023-04-04

Family

ID=72331203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457597.8A Active CN111641995B (en) 2020-05-26 2020-05-26 Hotspot name updating method and device

Country Status (1)

Country Link
CN (1) CN111641995B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390643A (en) * 2020-10-20 2022-04-22 上海连尚网络科技有限公司 Method and equipment for determining hot spot fingerprint

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209418A (en) * 2013-03-22 2013-07-17 惠州Tcl移动通信有限公司 Mobile terminal and wireless fidelity (WIFI) hot spot information updating method thereof
CN104462055A (en) * 2013-09-23 2015-03-25 北京捷软世纪信息技术有限公司 Name similarity obtaining method and device
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN110232187A (en) * 2019-05-20 2019-09-13 平安科技(深圳)有限公司 Enterprise name similarity recognition method, device, computer equipment and storage medium
CN110557800A (en) * 2018-06-01 2019-12-10 上海连尚网络科技有限公司 Method for identifying type of wireless hotspot and network equipment thereof
CN110636524A (en) * 2019-09-23 2019-12-31 中国联合网络通信集团有限公司 Personal hotspot naming method, mobile terminal and personal hotspot naming system
CN111010455A (en) * 2019-11-08 2020-04-14 维沃移动通信有限公司 Hotspot name modification method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209418A (en) * 2013-03-22 2013-07-17 惠州Tcl移动通信有限公司 Mobile terminal and wireless fidelity (WIFI) hot spot information updating method thereof
CN104462055A (en) * 2013-09-23 2015-03-25 北京捷软世纪信息技术有限公司 Name similarity obtaining method and device
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN110557800A (en) * 2018-06-01 2019-12-10 上海连尚网络科技有限公司 Method for identifying type of wireless hotspot and network equipment thereof
CN110232187A (en) * 2019-05-20 2019-09-13 平安科技(深圳)有限公司 Enterprise name similarity recognition method, device, computer equipment and storage medium
CN110636524A (en) * 2019-09-23 2019-12-31 中国联合网络通信集团有限公司 Personal hotspot naming method, mobile terminal and personal hotspot naming system
CN111010455A (en) * 2019-11-08 2020-04-14 维沃移动通信有限公司 Hotspot name modification method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390643A (en) * 2020-10-20 2022-04-22 上海连尚网络科技有限公司 Method and equipment for determining hot spot fingerprint
CN114390643B (en) * 2020-10-20 2023-09-15 上海连尚网络科技有限公司 Method and equipment for determining hot-spot fingerprints

Also Published As

Publication number Publication date
CN111641995B (en) 2023-04-04

Similar Documents

Publication Publication Date Title
CN108282845B (en) Network access method and mobile communication terminal
CN102187713B (en) wireless network search
WO2016202293A1 (en) Network access method and mobile terminal
CN104853411B (en) A kind of method for network access and mobile communication terminal
RU2011106124A (en) IMPROVEMENT OF THE CHOICE OF PREFERRED SYSTEMS FOR MULTI-MODE WIRELESS SYSTEMS
CN107548063B (en) Method and device for automatically accessing AP (access point), and wireless router
CN107046691B (en) LTE wireless network rapid site selection method
WO2016202262A1 (en) Network access method and mobile terminal
CN111641995B (en) Hotspot name updating method and device
CN110611946B (en) Method for accessing terminal to mobile communication network and terminal
CN106470435B (en) The method and system of identification WiFi groups
CN109684303B (en) Communication code attribution inquiry method and device, computer equipment and storage medium
WO2016173338A1 (en) Network access method and mobile communications terminal
CN115474206A (en) Real-time people number determination method and device, electronic equipment and storage medium
CN107295604A (en) Mobile terminal and its cut-in method
US7383054B2 (en) Apparatus of public land mobile network selection and method of the same
CN116056022B (en) Method for identifying mobile phone number mobile terminal internet surfing flow in real time based on signaling association
US20170127229A1 (en) Method and apparatus for searching mobile network
CN106484863A (en) Increase algorithm based on attribute structure concept lattice
CN110248371B (en) Data processing method and device
CN112770373B (en) Network registration method, module, computer device and storage medium
CN113112626B (en) Highway toll information acquisition system
CN109219046A (en) Method for switching network and device
CN103974381A (en) Mobile device and channel scanning method thereof
CN110191463B (en) Rapid access method of GSM network and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant