CN114339957A - Wi-Fi hotspot connection method and device and terminal equipment - Google Patents

Wi-Fi hotspot connection method and device and terminal equipment Download PDF

Info

Publication number
CN114339957A
CN114339957A CN202210187013.9A CN202210187013A CN114339957A CN 114339957 A CN114339957 A CN 114339957A CN 202210187013 A CN202210187013 A CN 202210187013A CN 114339957 A CN114339957 A CN 114339957A
Authority
CN
China
Prior art keywords
hotspot
hotspots
preset
connection
preset type
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
CN202210187013.9A
Other languages
Chinese (zh)
Other versions
CN114339957B (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210187013.9A priority Critical patent/CN114339957B/en
Publication of CN114339957A publication Critical patent/CN114339957A/en
Application granted granted Critical
Publication of CN114339957B publication Critical patent/CN114339957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a Wi-Fi hotspot connecting method, a Wi-Fi hotspot connecting device and terminal equipment. The method comprises the following steps: when at least two Wi-Fi hotspots are searched, sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of equipment is determined; and connecting the first Wi-Fi hotspot provided by the preset type of equipment, wherein the connection priority is determined according to a preset rule. By the scheme, the terminal equipment can be automatically connected with the Wi-Fi hot spot of the preset type equipment which needs to be connected by the user, so that the operation of the user is reduced, and convenience is brought to the user.

Description

Wi-Fi hotspot connection method and device and terminal equipment
Technical Field
The application belongs to the technical field of wireless communication, and particularly relates to a Wi-Fi hotspot connection method, a Wi-Fi hotspot connection device, terminal equipment and a computer-readable storage medium.
Background
At present, automobile diagnosis equipment has a wireless network (Wi-Fi) hotspot function, and a user can connect with the Wi-Fi hotspot provided by the automobile diagnosis equipment through terminal equipment (such as a notebook computer) to realize the diagnosis of an automobile. However, in practical applications, one user may have a plurality of automotive diagnostic devices. When faced with such a situation, the user needs to manually find the Wi-Fi hotspot of the automobile diagnostic device to be connected and then make the connection, which is inconvenient for the user.
Disclosure of Invention
In view of this, the present application provides a Wi-Fi hotspot connection method, a Wi-Fi hotspot connection device, a terminal device, and a computer-readable storage medium, which can enable the terminal device to automatically connect to a Wi-Fi hotspot of an automobile diagnosis device to which a user needs to connect, thereby reducing user operations and bringing convenience to the user.
In a first aspect, the present application provides a Wi-Fi hotspot connection method, including:
when at least two Wi-Fi hotspots are searched, sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of equipment is determined; wherein, the connection priority is determined according to a preset rule;
connecting the first Wi-Fi hotspot provided by the preset type of device.
Optionally, the sequentially determining, according to the connection priority of each Wi-Fi hotspot, whether each Wi-Fi hotspot is provided by a preset type of device until a first Wi-Fi hotspot provided by the preset type of device is determined includes:
sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition;
if the mark of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the step of sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
and if the identification of the currently acquired Wi-Fi hotspot meets the preset condition, determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the preset type of equipment.
Optionally, the preset conditions include: the mark of the current obtained Wi-Fi hotspot exists in a preset Wi-Fi mark list, and/or the mark of the current obtained Wi-Fi hotspot accords with preset characteristics;
the Wi-Fi identification list comprises identifications of Wi-Fi hotspots provided by at least one historical connection device, the historical connection device is the preset type of device which establishes communication connection with the terminal device, and the identifications of the Wi-Fi hotspots provided by the preset type of device all accord with the preset characteristics.
Optionally, the historical connection device is the preset type device that has established communication connection with the terminal device within a time period of a preset duration before the current time.
Optionally, the preset rule is that connection priorities of the at least two Wi-Fi hotspots are determined according to a descending order of signal strengths; before the above sequentially determining whether each Wi-Fi hotspot is provided by a preset type of device according to the connection priority of each Wi-Fi hotspot, the Wi-Fi hotspot connection method further includes:
sequencing the at least two Wi-Fi hot spots based on the sequence of the signal intensity of the at least two Wi-Fi hot spots from large to small to obtain a first Wi-Fi hot spot sequence;
judging whether at least two Wi-Fi hotspots with the same or similar signal strength exist in the first Wi-Fi hotspot sequence, wherein the absolute value of the signal strength difference value of any two Wi-Fi hotspots in the at least two Wi-Fi hotspots with the similar signal strength is smaller than a preset threshold value;
and if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist, determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence.
Optionally, the Wi-Fi hotspot connection method further includes:
if at least two Wi-Fi hotspots with the same or similar signal strengths exist, adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strengths in the first Wi-Fi hotspot sequence based on the times of establishing communication connection between the at least two Wi-Fi hotspots with the same or similar signal strengths and the terminal equipment respectively to obtain a second Wi-Fi hotspot sequence;
and determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence.
Optionally, the Wi-Fi hotspot connection method further includes:
and if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, outputting a prompt message, wherein the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots.
In a second aspect, the present application provides a Wi-Fi hotspot connection device, comprising:
the judgment unit is used for sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot when at least two Wi-Fi hotspots are searched until the first Wi-Fi hotspot provided by the preset type of equipment is determined; wherein, the connection priority is determined according to a preset rule;
and the connection unit is used for connecting the first Wi-Fi hotspot provided by the preset type of equipment.
Optionally, the judging unit includes:
the acquisition subunit is configured to sequentially acquire Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
the judgment subunit is used for judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition;
a returning subunit, configured to, if the identifier of the currently acquired Wi-Fi hotspot does not meet the preset condition, return to perform the step of sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
and the determining subunit is used for determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the preset type of equipment if the identifier of the currently acquired Wi-Fi hotspot meets the preset condition.
Optionally, the preset conditions include: the mark of the current obtained Wi-Fi hotspot exists in a preset Wi-Fi mark list, and/or the mark of the current obtained Wi-Fi hotspot accords with preset characteristics;
the Wi-Fi identification list comprises identifications of Wi-Fi hotspots provided by at least one historical connection device, the historical connection device is the preset type of device which establishes communication connection with the terminal device, and the identifications of the Wi-Fi hotspots provided by the preset type of device all accord with the preset characteristics.
Optionally, the historical connection device is the preset type device that has established communication connection with the terminal device within a time period of a preset duration before the current time.
Optionally, the preset rule is that connection priorities of the at least two Wi-Fi hotspots are determined according to a descending order of signal strengths; the Wi-Fi hotspot connection device further comprises:
the sorting unit is used for sorting the at least two Wi-Fi hot spots based on the sequence of the signal intensity of the at least two Wi-Fi hot spots from large to small to obtain a first Wi-Fi hot spot sequence;
the intensity judging unit is used for judging whether at least two Wi-Fi hotspots with the same or similar signal intensities exist in the first Wi-Fi hotspot sequence, wherein the absolute value of the signal intensity difference value of any two Wi-Fi hotspots in the at least two Wi-Fi hotspots with the similar signal intensities is smaller than a preset threshold value;
and the first order determining unit is used for determining the connection priority of each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist.
Optionally, the Wi-Fi hotspot connection device further includes:
the adjusting unit is used for adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strength in the first Wi-Fi hotspot sequence to obtain a second Wi-Fi hotspot sequence based on the times of establishing communication connection between the at least two Wi-Fi hotspots with the same or similar signal strength and the terminal equipment respectively if the at least two Wi-Fi hotspots with the same or similar signal strength exist;
and the second order determining unit is used for determining the connection priority of each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence.
Optionally, the Wi-Fi hotspot connection device further includes:
and the output unit is used for outputting a prompt message if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, wherein the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots.
In a third aspect, the present application provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect as described above.
In a fifth aspect, the present application provides a computer program product comprising a computer program that, when executed by one or more processors, performs the method of the first aspect as described above.
As can be seen from the above, in the scheme of the application, when at least two Wi-Fi hotspots around the terminal device are searched, whether each Wi-Fi hotspot is provided by a preset type of device is sequentially judged according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of device is determined, and then the first Wi-Fi hotspot provided by the preset type of device is connected, wherein the connection priority is determined according to a preset rule. Compared with the mode of manually searching for the connection of the Wi-Fi hotspots in the prior art, the Wi-Fi hotspots to which the user needs to connect are automatically determined based on the connection priority of each Wi-Fi hotspot and the type of the provided equipment of the Wi-Fi hotspot, so that the operation of the user is reduced, and convenience is brought to the user.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flowchart of an implementation of a Wi-Fi hotspot connection method provided in an embodiment of the present application;
FIG. 2 is a block diagram of a Wi-Fi hotspot connection device provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Existing automobile diagnosis equipment has a Wi-Fi hot spot function. In some application scenarios, a user (e.g., a car sales service 4S store) may own multiple car diagnostic devices. When a user wants to use one of the automobile diagnosis devices to diagnose an automobile, the terminal device (such as a notebook computer) needs to be started, Wi-Fi hotspots provided by the automobile diagnosis devices are searched, and then the user needs to find the Wi-Fi hotspots provided by the automobile diagnosis devices which the user wants to use from the terminal device and connect the Wi-Fi hotspots. If the number of the automobile diagnosis devices owned by the user is very large, the Wi-Fi hotspots searched by the terminal device are also very large. And the terminal device may also search for Wi-Fi hotspots provided by non-automotive diagnostic devices. Therefore, the user needs to find the Wi-Fi hotspot to which the user wants to connect among the searched Wi-Fi hotspots, which is very troublesome and brings great inconvenience to the user. Based on this, an embodiment of the present application provides a Wi-Fi hotspot connection method, a Wi-Fi hotspot connection device, a terminal device, and a computer-readable storage medium, where when at least two Wi-Fi hotspots around the terminal device are searched, the terminal device sequentially determines, according to a connection priority of each Wi-Fi hotspot, whether each Wi-Fi hotspot is provided by a preset type of device until a first Wi-Fi hotspot provided by the preset type of device is determined, and then connects the first Wi-Fi hotspot provided by the preset type of device. Compared with the mode of manually searching for the connection of the Wi-Fi hotspots in the prior art, the Wi-Fi hotspots to which the user needs to connect are automatically determined based on the connection priority of each Wi-Fi hotspot and the type of the provided equipment of the Wi-Fi hotspot, so that the operation of the user is reduced, and convenience is brought to the user. In order to explain the technical solutions proposed in the embodiments of the present application, the following description will be given by way of specific examples.
The Wi-Fi hotspot connection method provided by the embodiment of the present application is described below. The Wi-Fi hotspot connection method may be applied to a terminal device, please refer to fig. 1, and the Wi-Fi hotspot connection method includes:
step 101, when at least two Wi-Fi hotspots are searched, whether each Wi-Fi hotspot is provided by a preset type of equipment is judged in sequence according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of equipment is determined.
And 102, connecting the first Wi-Fi hotspot provided by the preset type of equipment.
In the embodiment of the present application, the terminal device may be a notebook computer in a 4S store. After the Wi-Fi function of the terminal equipment is opened, the Wi-Fi hotspot near the position of the terminal equipment is searched. When the terminal device searches for at least two Wi-Fi hotspots, the terminal device can sequentially judge whether each Wi-Fi hotspot is provided by a preset type of device according to the connection priority of each searched Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of device is determined. The preset type of device may be referred to as an automobile diagnostic device. In an application scenario, the terminal device is located in a 4S store, where the 4S store includes a plurality of automobile diagnostic devices, and each automobile diagnostic device provides a Wi-Fi hotspot correspondingly. After the terminal device searches a plurality of Wi-Fi hotspots, whether each Wi-Fi hotspot is provided by the automobile diagnosis device or not can be sequentially judged according to the sequence of the connection priority of each searched Wi-Fi hotspot from high to low. In the process of sequentially judging whether each Wi-Fi hotspot is provided by the automobile diagnosis equipment, when a certain Wi-Fi hotspot is firstly determined to be provided by the automobile diagnosis equipment, the terminal equipment is connected with the Wi-Fi hotspot, so that the communication connection is established with the automobile diagnosis equipment providing the Wi-Fi hotspot. Wherein, the connection priority of the Wi-Fi hotspot can be determined according to a preset rule. For example, the preset rule may be to determine the connection priority of a Wi-Fi hotspot according to the magnitude of the signal strength of the Wi-Fi hotspot, and when the signal strength of a Wi-Fi hotspot is higher, the connection priority of the Wi-Fi hotspot is higher. For another example, the preset rule may also be that the connection priority of the Wi-Fi hotspot is determined according to the number of times that the providing device (such as an automobile diagnosis device) of the Wi-Fi hotspot establishes a communication connection with the terminal device, and when the number of times that the providing device of one Wi-Fi hotspot establishes a communication connection with the terminal device is greater, the connection priority is higher.
Optionally, the terminal device may locally store a configuration file, where the configuration file includes passwords of a plurality of Wi-Fi hotspots, for example, the configuration file is a Profile file. After the first Wi-Fi hotspot provided by the preset type of equipment is determined, the terminal equipment can read the configuration file to obtain the password of the first Wi-Fi hotspot provided by the preset type of equipment, and then the password is used for connecting the first Wi-Fi hotspot provided by the preset type of equipment. The user can connect the automobile diagnosis device and the automobile to be diagnosed in advance through the wiring harness, and therefore the user can use the terminal device to communicate with the automobile diagnosis device so as to diagnose the automobile to be diagnosed.
For example, assume that the terminal device searches for 3 Wi-Fi hotspots, which are Wi-Fi hotspot 1, Wi-Fi hotspot 2, and Wi-Fi hotspot 3. The connection priority of the WiFi hotspot 1 is higher than that of the Wi-Fi hotspot 2, and the connection priority of the Wi-Fi hotspot 2 is higher than that of the Wi-Fi hotspot 3. The terminal equipment firstly judges whether the Wi-Fi hotspot 1 is provided by the equipment of the preset type or not according to the connection priority of each Wi-Fi hotspot, if so, the terminal equipment determines that the Wi-Fi hotspot 1 is the first Wi-Fi hotspot provided by the equipment of the preset type, and if not, the terminal equipment continuously judges whether the Wi-Fi hotspot 2 is provided by the equipment of the preset type or not. If the Wi-Fi hotspot 2 is provided by a preset type of device, it is determined that the Wi-Fi hotspot 2 is the first Wi-Fi hotspot provided by the preset type of device. If the Wi-Fi hotspot 2 is not provided by the preset type of equipment, continuously judging whether the Wi-Fi hotspot 3 is provided by the preset type of equipment, and so on until the first Wi-Fi hotspot provided by the preset type of equipment is determined, or traversing all searched Wi-Fi hotspots, and determining that all the Wi-Fi hotspots are not provided by the preset type of equipment. In this way, the terminal device can automatically determine and connect the Wi-Fi hotspot provided by the preset type device, which the user needs to connect with.
In some embodiments, the step 101 comprises:
a1, sequentially acquiring Wi-Fi hotspots from at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot.
A2, judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition.
And A3, if the identification of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the step of sequentially acquiring the Wi-Fi hotspots from at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot.
A4, if the identification of the currently acquired Wi-Fi hotspot meets a preset condition, determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by a preset type of equipment.
The terminal device can sequentially acquire the Wi-Fi hotspots from the at least two searched Wi-Fi hotspots according to the connection priority of each of the at least two searched Wi-Fi hotspots. And if the mark of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the step A1 and the subsequent steps. If the identification of the currently acquired Wi-Fi hotspot meets the preset condition, determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the preset type of equipment, and not executing the step a1, that is, not acquiring the next Wi-Fi hotspot from the at least two searched Wi-Fi hotspots. The preset condition is used for indicating that the Wi-Fi hotspot is provided by the preset type of equipment, that is, when the identifier of any one Wi-Fi hotspot meets the preset condition, the Wi-Fi hotspot is considered to be provided by the preset type of equipment. In the embodiment of the present application, steps a1 and a2 are executed in a loop, and the terminal device acquires one Wi-Fi hotspot from at least two searched Wi-Fi hotspots each time, where the Wi-Fi hotspot is used as a "currently acquired Wi-Fi hotspot" corresponding to the loop. If the mark of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the steps A1 and A2; and if the identification of the currently acquired Wi-Fi hotspot meets a preset condition, jumping out of the loop, and determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by equipment of a preset type. The identity of the Wi-Fi hotspot may be a Service Set Identifier (SSID) of the Wi-Fi hotspot.
For example, the preset condition may include: the currently acquired identification of the Wi-Fi hotspot exists in a preset Wi-Fi identification list, and/or the currently acquired identification of the Wi-Fi hotspot conforms to preset characteristics. That is, if the identifier of the currently acquired Wi-Fi hotspot is any one of the following three conditions, it may be determined that the identifier of the currently acquired Wi-Fi hotspot meets a preset condition.
In the first case: the identification of the Wi-Fi hotspot currently acquired exists in a preset Wi-Fi identification list, but does not accord with preset characteristics.
In the second case: the currently acquired Wi-Fi hotspot identification accords with the preset characteristics, but does not exist in a preset Wi-Fi identification list.
In the third case: the currently acquired Wi-Fi hotspot identification exists in a preset Wi-Fi identification list and accords with preset characteristics.
The preset Wi-Fi identifier list includes identifiers of Wi-Fi hotspots provided by at least one historical connection device, where the historical connection device is a preset type of device that has established communication connection with the terminal device once, or a preset type of device that has established communication connection with the terminal device before the current time. The established communication connection is not limited to the connection of the Wi-Fi hotspot, and includes wired connections such as a bluetooth connection and a Universal Serial Bus (USB) connection. And determining that the currently acquired Wi-Fi hotspot is provided by a preset type of equipment as long as the identification of the currently acquired Wi-Fi hotspot exists in the Wi-Fi identification list.
The preset features can be set according to the situation, and the preset features can be used for distinguishing the Wi-Fi hotspots provided by the preset type equipment from the Wi-Fi hotspots provided by the non-preset type equipment. For example, the serial numbers of the automobile diagnostic devices are serial numbers formed by 12 numbers, and the first 5 have fixed characteristics, such as '98989', '98304', and the like. Therefore, in the embodiment of the application, the serial number of the automobile diagnosis device can be used as the identifier of the Wi-Fi hotspot provided by the automobile diagnosis device, and the fixed feature can be used as a preset feature. And determining that the currently acquired Wi-Fi hotspot is provided by a preset type of equipment as long as the identifier of the currently acquired Wi-Fi hotspot meets the preset characteristics. Specifically, the Wi-Fi identifier list may be stored locally at the terminal device and maintained by the terminal device. Whenever a preset type of device establishes a communication connection with a terminal device, such as a Wi-Fi hotspot connection, the terminal device adds an identifier of the Wi-Fi hotspot provided by the preset type of device to a Wi-Fi identifier list.
In some embodiments, the step a 2: judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition, specifically: and judging whether the currently acquired Wi-Fi hotspot identification exists in a preset Wi-Fi identification list. And if the current Wi-Fi hotspot identification exists in the preset Wi-Fi identification list, judging that the currently acquired Wi-Fi hotspot identification meets the preset condition. And if the current Wi-Fi hotspot identification does not exist in the preset Wi-Fi identification list, further judging whether the currently acquired Wi-Fi hotspot identification accords with the preset characteristics. And if the Wi-Fi hotspot identification meets the preset characteristics, judging that the currently acquired Wi-Fi hotspot identification meets the preset conditions. And if the Wi-Fi hotspot identification does not meet the preset characteristics, judging that the currently acquired Wi-Fi hotspot identification does not meet the preset conditions. Or, in the embodiment of the present application, it may also be determined whether the currently acquired identifier of the Wi-Fi hotspot meets a preset feature, and then, in a case that the currently acquired identifier of the Wi-Fi hotspot does not meet the preset feature, it is determined whether the currently acquired identifier of the Wi-Fi hotspot exists in a preset Wi-Fi identifier list, where the order of the two determination steps is not limited.
In some embodiments, the number of devices of the preset type (i.e., the historical connection devices) that have established a communication connection with the terminal device may increase over time, some of which may have been no longer used due to damage. Based on this, in order to eliminate the interference of the historical connection device that is no longer used, the historical connection device may specifically be a preset type of device that has established a communication connection with the terminal device within a time period that is a preset time period before the current time. For example, the historical connection device may be a preset type of device that has established a communication connection with the terminal device within one month before the current time.
Optionally, before the step 101, the Wi-Fi hotspot connection method provided in the embodiment of the present application further includes:
sequencing the at least two Wi-Fi hotspots based on the sequence of the signal intensity of the at least two Wi-Fi hotspots from large to small to obtain a first Wi-Fi hotspot sequence.
And judging whether at least two Wi-Fi hotspots with the same or similar signal intensity exist in the first Wi-Fi hotspot sequence.
And if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist, determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence.
In the embodiment of the application, the preset rule is to determine the connection priority of at least two Wi-Fi hotspots according to the sequence of the signal strength from large to small. After the terminal device searches for the at least two Wi-Fi hotspots, the at least two Wi-Fi hotspots can be ranked based on the signal strengths of the at least two Wi-Fi hotspots to obtain a first Wi-Fi hotspot sequence, wherein the Wi-Fi hotspots with higher signal strengths are ranked more ahead in the first Wi-Fi hotspot sequence. If at least two Wi-Fi hotspots with the same or similar signal strength do not exist in the first Wi-Fi hotspot sequence, the terminal device can determine the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence. Specifically, if the sequence of one Wi-Fi hotspot in the first Wi-Fi hotspot sequence is earlier, the connection priority of the Wi-Fi hotspot is higher, whereas if the sequence of one Wi-Fi hotspot in the first Wi-Fi hotspot sequence is later, the connection priority of the Wi-Fi hotspot is lower. In at least two Wi-Fi hotspots with similar signal intensity, the absolute value of the difference value of the signal intensity of any two Wi-Fi hotspots is smaller than a preset threshold value, and the preset threshold value can be set according to needs and is not limited here.
For example, assuming that the first Wi-Fi hotspot sequence is { Wi-Fi hotspot 1, Wi-Fi hotspot 2, Wi-Fi hotspot 3, Wi-Fi hotspot 4}, the connection priority of Wi-Fi hotspot 1 is higher than that of Wi-Fi hotspot 2, that of Wi-Fi hotspot 2 is higher than that of Wi-Fi hotspot 3, and that of Wi-Fi hotspot 3 is higher than that of Wi-Fi hotspot 4. The signal strength of the Wi-Fi hotspot can generally reflect the physical distance between the terminal device and the providing device of the Wi-Fi hotspot, that is, the closer the terminal device is to the providing device, the stronger the signal strength of the Wi-Fi hotspot provided by the providing device is searched by the terminal device, so that the connection priority of the Wi-Fi hotspot with high signal strength is set higher, and the terminal device can preferentially connect the Wi-Fi hotspot provided by the preset type device closer to the terminal device. By the mode, when a user wants to use a certain preset type of equipment, the terminal equipment is only required to be close to the preset type of equipment, the terminal equipment can be preferentially connected with the Wi-Fi hotspot provided by the preset type of equipment, manual connection of the user is not needed, and therefore convenience is brought to the user.
Optionally, the Wi-Fi hotspot connection method provided in the embodiment of the present application further includes:
if at least two Wi-Fi hotspots with the same or similar signal strength exist, adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strength in the first Wi-Fi hotspot sequence based on the times that the providing equipment of the at least two Wi-Fi hotspots with the same or similar signal strength establishes communication connection with the terminal equipment respectively, and obtaining a second Wi-Fi hotspot sequence.
Determining a connection priority for each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the second sequence of Wi-Fi hotspots.
In this embodiment of the application, if at least two Wi-Fi hotspots with the same or similar signal strengths exist in the first Wi-Fi hotspot sequence, the order of the at least two Wi-Fi hotspots with the same or similar signal strengths in the first Wi-Fi hotspot sequence is adjusted according to the times that the providing devices of the at least two Wi-Fi hotspots with the same or similar signal strengths establish communication connection with the terminal device, respectively, so as to obtain a second Wi-Fi hotspot sequence.
Specifically, each time the terminal device establishes a communication connection with a preset type of device, the number of times of establishing a communication connection with the preset type of device may be increased once, and the updated number of times may be recorded locally. Optionally, the terminal device may further zero the locally recorded times of establishing communication connection with each preset type of device at intervals, and then count the times again.
Aiming at least two Wi-Fi hotspots with the same or similar signal intensity, the terminal equipment can obtain the times of establishing communication connection between the providing equipment of the at least two Wi-Fi hotspots and the terminal equipment, which are locally recorded, respectively, then the sequence of the at least two Wi-Fi hotspots in the first Wi-Fi hotspot sequence is adjusted based on the times, the first Wi-Fi hotspot sequence after the sequence is adjusted is obtained, and the first Wi-Fi hotspot sequence after the sequence is adjusted is used as the second Wi-Fi hotspot sequence. Finally, the terminal device can determine the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence. In some cases, of at least two Wi-Fi hotspots with the same or similar signal strength, a possibly provided device of the Wi-Fi hotspot is provided by a non-preset type of device, and the number of times of establishing a communication connection with the non-preset type of device is not recorded in the terminal device. For such a situation, in the embodiment of the present application, the number of times that the terminal device establishes the communication connection with the non-preset type of device may be recorded as zero. In other cases, of at least two Wi-Fi hotspots with the same or similar signal strength, a possible providing device of the Wi-Fi hotspot is provided by a preset type of device, but the terminal device does not record the number of times of establishing a communication connection with the preset type of device, for example, the preset type of device is newly purchased and is not used before. For this situation, in this embodiment of the present application, the number of times that the terminal device establishes the communication connection with the device of the preset type may also be recorded as zero.
For example, based on the number of times that the providing device of at least two Wi-Fi hotspots with the same or similar signal strengths respectively establish communication connections with the terminal device, the manner of adjusting the order of the at least two Wi-Fi hotspots with the same or similar signal strengths in the first Wi-Fi hotspot sequence may be: comparing the times of establishing communication connection between the providing equipment and the terminal equipment of any two Wi-Fi hotspots with the same or similar signal strength, and adjusting the Wi-Fi hotspot with the higher number of establishing communication connection between the providing equipment and the terminal equipment to the front of the Wi-Fi hotspot with the lower number of establishing communication connection between the providing equipment and the terminal equipment until the sequence of at least two Wi-Fi hotspots with the same or similar signal strength in the first Wi-Fi hotspot sequence meets the following conditions: the Wi-Fi hotspots with the higher number of times that the providing device establishes the communication connection with the terminal device are arranged in front of the WiFi hotspots with the lower number of times that the providing device establishes the communication connection with the terminal device. For example, assume that the first Wi-Fi hotspot sequence is { Wi-Fi hotspot 1, Wi-Fi hotspot 2, Wi-Fi hotspot 3, Wi-Fi hotspot 4}, where the signal strength of the Wi-Fi hotspot 1 is-20 dBm, the signal strengths of the Wi-Fi hotspot 2 and Wi-Fi hotspot 3 are-40 dBm, the signal strength of the Wi-Fi hotspot 4 is-60 dBm, the number of times that the providing device of the Wi-Fi hotspot 2 establishes communication connection with the terminal device is 2, and the number of times that the providing device of the Wi-Fi hotspot 3 establishes communication connection with the terminal device is 6. Based on the Wi-Fi hotspot sequence, the Wi-Fi hotspot 3 can be adjusted to the front of the Wi-Fi hotspot 2, and the obtained second Wi-Fi hotspot sequence is { Wi-Fi hotspot 1, Wi-Fi hotspot 3, Wi-Fi hotspot 2 and Wi-Fi hotspot 4 }.
Optionally, the Wi-Fi hotspot connection method provided in the embodiment of the present application further includes:
and if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, outputting a prompt message.
In the embodiment of the application, if at least two Wi-Fi hotspots searched by the terminal device are not provided by a preset type of device, a prompt message needs to be output, and the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots. For example, the prompt message may be a pop-up prompt, and the pop-up contains the text "please select a Wi-Fi hotspot that needs to be connected".
As can be seen from the above, in the scheme of the application, when at least two Wi-Fi hotspots around the terminal device are searched, whether each Wi-Fi hotspot is provided by a preset type of device is sequentially judged according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of device is determined, and then the first Wi-Fi hotspot provided by the preset type of device is connected, wherein the connection priority is determined according to a preset rule. Compared with the mode of manually searching for the connection of the Wi-Fi hotspots in the prior art, the Wi-Fi hotspots to which the user needs to connect are automatically determined based on the connection priority of each Wi-Fi hotspot and the type of the provided equipment of the Wi-Fi hotspot, so that the operation of the user is reduced, and convenience is brought to the user.
Corresponding to the Wi-Fi hotspot connection method, the embodiment of the application also provides a Wi-Fi hotspot connection device. As shown in fig. 2, the Wi-Fi hotspot connection device 200 in the embodiment of the present application includes:
the determining unit 201 is configured to sequentially determine, when at least two Wi-Fi hotspots are searched, whether each Wi-Fi hotspot is provided by a preset type of device according to a connection priority of each Wi-Fi hotspot until a first Wi-Fi hotspot provided by the preset type of device is determined; wherein, the connection priority is determined according to a preset rule;
a connection unit 202, configured to connect the first Wi-Fi hotspot provided by the preset type of device.
Optionally, the determining unit 201 includes:
the acquisition subunit is configured to sequentially acquire Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
the judgment subunit is used for judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition;
a returning subunit, configured to, if the identifier of the currently acquired Wi-Fi hotspot does not meet the preset condition, return to perform the step of sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
and the determining subunit is used for determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the preset type of equipment if the identifier of the currently acquired Wi-Fi hotspot meets the preset condition.
Optionally, the preset conditions include: the mark of the current obtained Wi-Fi hotspot exists in a preset Wi-Fi mark list, and/or the mark of the current obtained Wi-Fi hotspot accords with preset characteristics;
the Wi-Fi identification list comprises identifications of Wi-Fi hotspots provided by at least one historical connection device, the historical connection device is the preset type of device which establishes communication connection with the terminal device, and the identifications of the Wi-Fi hotspots provided by the preset type of device all accord with the preset characteristics.
Optionally, the historical connection device is the preset type device that has established communication connection with the terminal device within a time period of a preset duration before the current time.
Optionally, the preset rule is that connection priorities of the at least two Wi-Fi hotspots are determined according to a descending order of signal strengths; the Wi-Fi hotspot connecting device 200 further includes:
the sorting unit is used for sorting the at least two Wi-Fi hot spots based on the sequence of the signal intensity of the at least two Wi-Fi hot spots from large to small to obtain a first Wi-Fi hot spot sequence;
the intensity judging unit is used for judging whether at least two Wi-Fi hotspots with the same or similar signal intensities exist in the first Wi-Fi hotspot sequence, wherein the absolute value of the signal intensity difference value of any two Wi-Fi hotspots in the at least two Wi-Fi hotspots with the similar signal intensities is smaller than a preset threshold value;
and the first order determining unit is used for determining the connection priority of each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist.
Optionally, the Wi-Fi hotspot connection device 200 further includes:
the adjusting unit is used for adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strength in the first Wi-Fi hotspot sequence to obtain a second Wi-Fi hotspot sequence based on the times of establishing communication connection between the at least two Wi-Fi hotspots with the same or similar signal strength and the terminal equipment respectively if the at least two Wi-Fi hotspots with the same or similar signal strength exist;
and the second order determining unit is used for determining the connection priority of each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence.
Optionally, the Wi-Fi hotspot connection device 200 further includes:
and the output unit is used for outputting a prompt message if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, wherein the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots.
As can be seen from the above, in the scheme of the application, when at least two Wi-Fi hotspots around the terminal device are searched, whether each Wi-Fi hotspot is provided by a preset type of device is sequentially judged according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of device is determined, and then the first Wi-Fi hotspot provided by the preset type of device is connected, wherein the connection priority is determined according to a preset rule. Compared with the mode of manually searching for the connection of the Wi-Fi hotspots in the prior art, the Wi-Fi hotspots to which the user needs to connect are automatically determined based on the connection priority of each Wi-Fi hotspot and the type of the provided equipment of the Wi-Fi hotspot, so that the operation of the user is reduced, and convenience is brought to the user.
Corresponding to the Wi-Fi hotspot connection method provided above, an embodiment of the present application further provides a terminal device, please refer to fig. 3, where the terminal device 3 in the embodiment of the present application includes: a memory 301, one or more processors 302 (only one shown in fig. 3), and a computer program stored on the memory 301 and executable on the processors. Wherein: the memory 301 is used for storing software programs and units, and the processor 302 executes various functional applications and data processing by operating the software programs and units stored in the memory 301. Specifically, the processor 302 realizes the following steps by running the above-mentioned computer program stored in the memory 301:
when at least two Wi-Fi hotspots are searched, sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of equipment is determined; wherein, the connection priority is determined according to a preset rule;
connecting the first Wi-Fi hotspot provided by the preset type of device.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided based on the first possible implementation manner, the sequentially determining, according to the connection priority of each Wi-Fi hotspot, whether each Wi-Fi hotspot is provided by a preset type of device until a first Wi-Fi hotspot provided by a preset type of device is determined includes:
sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition;
if the mark of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the step of sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
and if the identification of the currently acquired Wi-Fi hotspot meets the preset condition, determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the preset type of equipment.
In a third possible embodiment provided on the basis of the second possible embodiment, the preset condition includes: the mark of the current obtained Wi-Fi hotspot exists in a preset Wi-Fi mark list, and/or the mark of the current obtained Wi-Fi hotspot accords with preset characteristics;
the Wi-Fi identification list comprises identifications of Wi-Fi hotspots provided by at least one historical connection device, the historical connection device is the preset type of device which establishes communication connection with the terminal device, and the identifications of the Wi-Fi hotspots provided by the preset type of device all accord with the preset characteristics.
In a fourth possible implementation manner provided on the basis of the third possible implementation manner, the historical connection device is a device of the preset type that has established a communication connection with the terminal device within a time period that is a preset time period before the current time.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the preset rule is to determine connection priorities of the at least two Wi-Fi hotspots according to a descending order of signal strengths; before sequentially judging whether each Wi-Fi hotspot is provided by a preset type of device according to the connection priority of each Wi-Fi hotspot, the processor 302 further implements the following steps when running the computer program stored in the memory 301:
sequencing the at least two Wi-Fi hot spots based on the sequence of the signal intensity of the at least two Wi-Fi hot spots from large to small to obtain a first Wi-Fi hot spot sequence;
judging whether at least two Wi-Fi hotspots with the same or similar signal strength exist in the first Wi-Fi hotspot sequence, wherein the absolute value of the signal strength difference value of any two Wi-Fi hotspots in the at least two Wi-Fi hotspots with the similar signal strength is smaller than a preset threshold value;
and if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist, determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence.
In a sixth possible implementation manner provided on the basis of the fifth possible implementation manner, the processor 302 further implements the following steps when executing the computer program stored in the memory 301:
if at least two Wi-Fi hotspots with the same or similar signal strength exist, adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strength in the first Wi-Fi hotspot sequence based on the times that the providing equipment of the at least two Wi-Fi hotspots with the same or similar signal strength establishes communication connection with the terminal equipment respectively to obtain a second Wi-Fi hotspot sequence;
and determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence.
In a seventh possible implementation manner provided on the basis of any one of the first to sixth possible implementation manners, the processor 302 further implements the following steps when executing the computer program stored in the memory 301:
and if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, outputting a prompt message, wherein the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots.
It should be understood that in the embodiments of the present Application, the Processor 302 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 301 may include both read-only memory and random access memory and provides instructions and data to processor 302. Some or all of memory 301 may also include non-volatile random access memory. For example, the memory 301 may also store device class information.
As can be seen from the above, in the scheme of the application, when at least two Wi-Fi hotspots around the terminal device are searched, whether each Wi-Fi hotspot is provided by a preset type of device is sequentially judged according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of device is determined, and then the first Wi-Fi hotspot provided by the preset type of device is connected, wherein the connection priority is determined according to a preset rule. Compared with the mode of manually searching for the connection of the Wi-Fi hotspots in the prior art, the Wi-Fi hotspots to which the user needs to connect are automatically determined based on the connection priority of each Wi-Fi hotspot and the type of the provided equipment of the Wi-Fi hotspot, so that the operation of the user is reduced, and convenience is brought to the user.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A Wi-Fi hotspot connection method is applied to terminal equipment and comprises the following steps:
when at least two Wi-Fi hotspots are searched, sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot until the first Wi-Fi hotspot provided by the preset type of equipment is determined; wherein the connection priority is determined according to a preset rule;
connecting the first Wi-Fi hotspot provided by a preset type of device.
2. The Wi-Fi hotspot connection method of claim 1, wherein the sequentially determining whether each Wi-Fi hotspot is provided by a preset type of device according to the connection priority of each Wi-Fi hotspot until a first Wi-Fi hotspot provided by the preset type of device is determined comprises:
sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
judging whether the currently acquired identification of the Wi-Fi hotspot meets a preset condition;
if the identification of the currently acquired Wi-Fi hotspot does not meet the preset condition, returning to execute the step of sequentially acquiring Wi-Fi hotspots from the at least two Wi-Fi hotspots according to the connection priority of each Wi-Fi hotspot;
and if the identification of the currently acquired Wi-Fi hotspot meets the preset condition, determining that the currently acquired Wi-Fi hotspot is the first Wi-Fi hotspot provided by the equipment of the preset type.
3. The Wi-Fi hotspot connection method of claim 2, wherein the preset conditions comprise: the currently acquired identification of the Wi-Fi hotspot exists in a preset Wi-Fi identification list, and/or the currently acquired identification of the Wi-Fi hotspot conforms to preset characteristics;
the Wi-Fi identification list comprises identifications of Wi-Fi hotspots provided by at least one historical connection device, the historical connection device is the preset type device which establishes communication connection with the terminal device, and the identifications of the Wi-Fi hotspots provided by the preset type device all accord with the preset characteristics.
4. The Wi-Fi hotspot connection method of claim 3, wherein the historical connection device is the preset type of device that has established a communication connection with the terminal device within a time period of a preset duration before a current time.
5. The Wi-Fi hotspot connection method of claim 1, wherein the preset rule is to determine connection priorities of the at least two Wi-Fi hotspots in order of signal strengths from large to small; before the sequentially judging whether each Wi-Fi hotspot is provided by a preset type of device according to the connection priority of each Wi-Fi hotspot, the Wi-Fi hotspot connection method further includes:
sequencing the at least two Wi-Fi hotspots based on the sequence of the signal intensity of the at least two Wi-Fi hotspots from large to small to obtain a first Wi-Fi hotspot sequence;
judging whether at least two Wi-Fi hotspots with the same or similar signal strengths exist in the first Wi-Fi hotspot sequence, wherein the absolute value of the signal strength difference value of any two Wi-Fi hotspots in the at least two Wi-Fi hotspots with the similar signal strengths is smaller than a preset threshold value;
and if at least two Wi-Fi hotspots with the same or similar signal intensity do not exist, determining the connection priority of each Wi-Fi hotspot according to the sequence of each Wi-Fi hotspot in the first Wi-Fi hotspot sequence.
6. The Wi-Fi hotspot connection method of claim 5, wherein the Wi-Fi hotspot connection method further comprises:
if at least two Wi-Fi hotspots with the same or similar signal strengths exist, adjusting the sequence of the at least two Wi-Fi hotspots with the same or similar signal strengths in the first Wi-Fi hotspot sequence based on the times that the providing equipment of the at least two Wi-Fi hotspots with the same or similar signal strengths establishes communication connection with the terminal equipment respectively to obtain a second Wi-Fi hotspot sequence;
determining a connection priority of each Wi-Fi hotspot according to the order of each Wi-Fi hotspot in the second Wi-Fi hotspot sequence.
7. The Wi-Fi hotspot connection method of any one of claims 1-6, wherein the Wi-Fi hotspot connection method further comprises:
and if the at least two searched Wi-Fi hotspots are not provided by the preset type of equipment, outputting a prompt message, wherein the prompt message is used for prompting a user to select a Wi-Fi hotspot needing to be connected from the at least two searched Wi-Fi hotspots.
8. The Wi-Fi hotspot connecting device is applied to terminal equipment and comprises:
the judgment unit is used for sequentially judging whether each Wi-Fi hotspot is provided by a preset type of equipment according to the connection priority of each Wi-Fi hotspot when at least two Wi-Fi hotspots are searched until the first Wi-Fi hotspot provided by the preset type of equipment is determined; wherein the connection priority is determined according to a preset rule;
and the connection unit is used for connecting the first Wi-Fi hotspot provided by the preset type of equipment.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210187013.9A 2022-02-28 2022-02-28 Wi-Fi hot spot connection method and device and terminal equipment Active CN114339957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210187013.9A CN114339957B (en) 2022-02-28 2022-02-28 Wi-Fi hot spot connection method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210187013.9A CN114339957B (en) 2022-02-28 2022-02-28 Wi-Fi hot spot connection method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN114339957A true CN114339957A (en) 2022-04-12
CN114339957B CN114339957B (en) 2024-05-10

Family

ID=81029715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210187013.9A Active CN114339957B (en) 2022-02-28 2022-02-28 Wi-Fi hot spot connection method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN114339957B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130053341A (en) * 2011-11-15 2013-05-23 주식회사 케이티 Access point auto selection apparatus and method for wi-fi systems
CN104394263A (en) * 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device
WO2016112706A1 (en) * 2015-01-16 2016-07-21 中兴通讯股份有限公司 Hotspot accessing method and device, and terminal
WO2016173178A1 (en) * 2015-04-30 2016-11-03 中兴通讯股份有限公司 Wifi hotspot connection method and device
WO2018006623A1 (en) * 2016-07-07 2018-01-11 中兴通讯股份有限公司 Preferred access method for mobile wifi hotspot, hotspot device and terminal device
JP2018067938A (en) * 2017-11-28 2018-04-26 ホアウェイ・デバイス・カンパニー・リミテッド Method for connecting to wi-fi hotspot device, wi-fi hotspot device, and user device
CN107995672A (en) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 A kind of Wi-Fi selects the method and its system of optimal access point
CN108064023A (en) * 2017-12-13 2018-05-22 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
US20200015159A1 (en) * 2016-12-12 2020-01-09 Huawei Technologies Co., Ltd. Access point connection method and terminal
US20200084616A1 (en) * 2016-12-09 2020-03-12 Sagemcom Broadband Sas Method for pairing a wi-fi type terminal with a wi-fi type access point
CN113055961A (en) * 2019-12-30 2021-06-29 深圳市优克联新技术有限公司 Wireless network connection method, device, router and storage medium
EP3879861A2 (en) * 2020-12-15 2021-09-15 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Wireless connection establishment method, apparatus, device, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130053341A (en) * 2011-11-15 2013-05-23 주식회사 케이티 Access point auto selection apparatus and method for wi-fi systems
CN104394263A (en) * 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device
WO2016112706A1 (en) * 2015-01-16 2016-07-21 中兴通讯股份有限公司 Hotspot accessing method and device, and terminal
WO2016173178A1 (en) * 2015-04-30 2016-11-03 中兴通讯股份有限公司 Wifi hotspot connection method and device
WO2018006623A1 (en) * 2016-07-07 2018-01-11 中兴通讯股份有限公司 Preferred access method for mobile wifi hotspot, hotspot device and terminal device
US20200084616A1 (en) * 2016-12-09 2020-03-12 Sagemcom Broadband Sas Method for pairing a wi-fi type terminal with a wi-fi type access point
US20200015159A1 (en) * 2016-12-12 2020-01-09 Huawei Technologies Co., Ltd. Access point connection method and terminal
JP2018067938A (en) * 2017-11-28 2018-04-26 ホアウェイ・デバイス・カンパニー・リミテッド Method for connecting to wi-fi hotspot device, wi-fi hotspot device, and user device
CN107995672A (en) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 A kind of Wi-Fi selects the method and its system of optimal access point
CN108064023A (en) * 2017-12-13 2018-05-22 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN113055961A (en) * 2019-12-30 2021-06-29 深圳市优克联新技术有限公司 Wireless network connection method, device, router and storage medium
EP3879861A2 (en) * 2020-12-15 2021-09-15 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Wireless connection establishment method, apparatus, device, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨志宏;李立;蔡世贵;李万鹏;: "WLAN网络智能管理系统", 电信快报, no. 08 *

Also Published As

Publication number Publication date
CN114339957B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN106658652B (en) Method and device for connecting WiFi hotspot
CN108551670B (en) Bluetooth connection method and device and intelligent terminal
JP4352180B2 (en) Wireless communication handover processing method, portable electronic device, and wireless communication handover system
CN110461025B (en) Network distribution method, network distribution device, mobile terminal and intelligent equipment
US20100309815A1 (en) Network association in an environment with hidden networks
CN104426586A (en) Apparatus having bluetooth module and method for bluetooth communication thereof
CN102149167A (en) Method for automatic pairing to a wireless network
CN108629594A (en) Method of payment, device, server and storage medium
CN107707653A (en) A kind of advertisement sending method, device and vehicle intelligent equipment
CN106817746A (en) A kind of network search method and device
CN113442788B (en) Electric vehicle charging control method and system and storage medium
CN113038421A (en) Automobile diagnosis method, automobile diagnosis device and automobile gateway
US20040166897A1 (en) Wireless base station, control method for the same, program for implementing the method
CN113016172A (en) Information processing apparatus and communication system
CN107659980A (en) A kind of WIFI hot spot connection method and mobile terminal based on mobile terminal
CN111263434B (en) Network registration method, device, terminal and storage medium
CN113055982B (en) Network access method, network access device and mobile terminal
CN107708141B (en) Wireless network scanning method, mobile terminal and storage medium
CN110677884B (en) Terminal, network access method, device, system and computer readable storage medium
CN114339957A (en) Wi-Fi hotspot connection method and device and terminal equipment
CN111970750A (en) Multi-frequency WiFi identification method and device
CN107969027B (en) Wireless network management method, wireless network management device and intelligent terminal
CN117014835A (en) Vehicle hot spot connection method and device, vehicle and storage medium
CN114885402B (en) Network residence method, device, electronic equipment and storage medium
CN109688569B (en) Bluetooth communication-based intelligent unlocking method for shared vehicles in complex scene

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