WiFi connection method and device, equipment, storage medium and program product

By obtaining the WiFi connection information provided by the mobile terminal, the smartwatch can achieve WiFi connection without the user entering a password or WiFi identifier, solving the risk of input errors in the smartwatch when connecting to WiFi and improving the user experience.

CN120091387APending Publication Date: 2025-06-03SHENZHEN SANLIJIE INTELLIGENT MANUFACTURING TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510151955.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

When connecting to WiFi, smartwatches are usually complex and may contain special characters, which makes users prone to errors when entering on small screens, and cannot achieve quick WiFi connection.

Method used

By obtaining WiFi connection information provided by the mobile terminal, the smartwatch can make WiFi connection based on this information, without the need for the user to enter a password or WiFi identifier on the smartwatch. The method includes receiving WiFi connection information sent by the mobile terminal application, obtaining connection information by scanning the identification code provided by the mobile terminal, and performing fuzzy matching based on some characters, and using historical password correction records and sensor data to perform password correction when the password does not match.

Benefits of technology

It enables users to quickly connect to WiFi without entering WiFi connection information on the small screen of smart watch, avoiding the risk of input errors and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091387A_ABST
    Figure CN120091387A_ABST
Patent Text Reader

Abstract

The invention discloses a WiFi connection method and device, equipment, a storage medium and a program product, and belongs to the technical field of wireless networks. The smart watch obtains WiFi connection information provided by a mobile terminal, for example, first connection information of WiFi connected with the mobile terminal or second connection information of WiFi stored in an application program of the mobile terminal; therefore, the smart watch can realize WiFi connection based on the WiFi connection information, and a user does not need to input any WiFi connection information such as a password and a WiFi identifier through the smart watch, so that errors easily occurring when the user inputs the password are avoided, and quick WiFi connection is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless network technologies, and particularly to a WiFi connection method, apparatus, device, storage medium, and program product. Background Art

[0002] Currently, the screens of smartwatches are relatively small, and the fonts of the input keyboards designed for them are also relatively small. When it is necessary to connect to WiFi, since the passwords are usually complex, in the case where the password contains special characters (such as letters, symbols, etc.), the watch needs to support paging or scrolling to display more characters, resulting in errors when users input passwords and making it impossible to achieve a fast WiFi connection. Summary of the Invention

[0003] The main objective of this application is to provide a WiFi connection method, apparatus, device, storage medium, and program product, aiming to solve the technical problem of being unable to achieve a fast WiFi connection.

[0004] To achieve the above objective, this application provides a WiFi connection method applied to a smartwatch. The WiFi connection method includes the following steps:

[0005] Obtain WiFi connection information provided by a mobile terminal, where the WiFi connection information includes first connection information of a WiFi that the mobile terminal has connected to, or second connection information of a WiFi stored in an application program of the mobile terminal;

[0006] Based on the WiFi connection information, perform a WiFi connection.

[0007] In a feasible implementation, the step of obtaining WiFi connection information based on an application program of a mobile terminal includes at least one of the following:

[0008] Receive the first connection information sent by the application program to the local;

[0009] Obtain WiFi connection information by scanning an identification code provided by the mobile terminal, where the identification code is used to store the second connection information.

[0010] In a feasible implementation, the first connection information includes partial characters of a WiFi identifier and a password. The step of performing a WiFi connection based on the WiFi connection information includes:

[0011] Based on the partial characters of the WiFi identifier, perform a fuzzy match to determine the WiFi to be connected;

[0012] Connect to the WiFi to be connected based on the password.

[0013] In a feasible implementation manner, the step of connecting to the to-be-connected WiFi based on the password includes:

[0014] When it is detected that the password does not match the to-be-connected WiFi, based on the historical password correction record and the sensor data, correct the password in a preset manner, and connect to the to-be-connected WiFi again based on the corrected password;

[0015] Wherein, the preset manner includes at least one of switching the case of characters and modifying similar characters, and the sensor data is sent to the local when the mobile terminal detects an input operation for the WiFi connection information.

[0016] In a feasible implementation manner, after the step of performing WiFi connection based on the WiFi connection information, the following steps are further included:

[0017] If the connection is successful, store the WiFi connection information;

[0018] When the WiFi connection function is started again, automatically perform WiFi connection based on the WiFi connection information.

[0019] In a feasible implementation manner, before the step of obtaining the WiFi connection information provided by the application program based on the mobile terminal, the following steps are further included:

[0020] When receiving a synchronous scan instruction, scan for connectable WiFi, where the synchronous scan instruction is sent to the local by the mobile terminal when starting to scan for WiFi when there is an overlap in the connectable WiFi between the mobile terminal and the smart watch.

[0021] To achieve the above object, the present application further provides a WiFi connection method applied to a mobile terminal, and the WiFi connection method includes the following steps:

[0022] In response to a preset information acquisition condition, provide WiFi connection information for the smart watch, where the WiFi connection information includes the first connection information of the WiFi already connected by the mobile terminal or the second connection information of the WiFi stored in the application program of the mobile terminal.

[0023] In a feasible implementation manner, the preset information acquisition condition includes at least one of the following:

[0024] Detecting a scanning operation for an identification code, where the identification code is displayed on the interface in response to a sharing operation for the WiFi connection information after the mobile terminal successfully connects to the WiFi;

[0025] Detecting an input operation for the WiFi connection information on the operation interface of the application program;

[0026] Successfully connected to WiFi detected.

[0027] In a feasible implementation, the WiFi connection information includes a WiFi identifier and a password. When the preset information acquisition condition is detecting an input operation on the operation interface of the application program for the WiFi connection information, the step of providing the WiFi connection information for the smart watch in response to the preset information acquisition condition includes at least one of the following:

[0028] In response to detecting an input operation on the operation interface of the application program for the WiFi connection information, store the input WiFi connection information and provide the stored WiFi connection information for the smart watch;

[0029] In response to detecting an input operation on the operation interface of the application program for the WiFi identifier, based on the currently input characters and the scanned connectable WiFi, display at least one selectable WiFi for the user to select the WiFi identifier and input the corresponding password, so as to provide the user-input WiFi connection information for the smart watch.

[0030] In a feasible implementation, when detecting an input operation on the operation interface of the application program for the WiFi connection information, the method further includes:

[0031] Obtain the sensor data of the mobile terminal;

[0032] Send the sensor data to the smart watch for the smart watch to correct the incorrect password based on the sensor data.

[0033] In a feasible implementation, before the step of providing the WiFi connection information for the smart watch in response to the preset information acquisition condition, it further includes:

[0034] Obtain the location information of the smart watch;

[0035] Based on the location information, match the available WiFi near the smart watch from the preset WiFi hotspot library and store it in the application program.

[0036] In addition, to achieve the above object, the present application also provides a WiFi connection device applied to a smart watch. The WiFi connection device includes:

[0037] An acquisition module for acquiring the WiFi connection information provided by the mobile terminal. The WiFi connection information includes the first connection information of the WiFi already connected by the mobile terminal or the second connection information of the WiFi stored in the application program of the mobile terminal;

[0038] A connection module for performing a WiFi connection based on the WiFi connection information.

[0039] In a feasible implementation, the obtaining module includes at least one of the following:

[0040] A receiving sub-module for receiving the first connection information sent by the application to the local device;

[0041] An obtaining sub-module for obtaining the WiFi connection information by scanning the identification code provided by the mobile terminal, where the identification code is used to store the second connection information.

[0042] In a feasible implementation, the connection module includes:

[0043] A matching sub-module for performing fuzzy matching based on partial characters of the WiFi identifier to determine the WiFi to be connected;

[0044] A connection sub-module for connecting to the WiFi to be connected based on the password.

[0045] In a feasible implementation, the connection sub-module includes:

[0046] A correction unit for, when it is detected that the password does not match the WiFi to be connected, correcting the password in a preset manner based on the historical password correction record and the sensor data, and reconnecting to the WiFi to be connected based on the corrected password;

[0047] where the preset manner includes at least one of switching the case of characters and modifying similar characters, and the sensor data is sent to the local device by the mobile terminal when it detects an input operation for the WiFi connection information.

[0048] In a feasible implementation, after the step of performing a WiFi connection based on the WiFi connection information, the WiFi connection device further includes:

[0049] A storage module for storing the WiFi connection information if the connection is successful;

[0050] A reconnection module for automatically performing a WiFi connection based on the WiFi connection information when the WiFi connection function is started again.

[0051] In a feasible implementation, before the step of obtaining the WiFi connection information provided by the application of the mobile terminal, the WiFi connection device further includes:

[0052] A scanning module, configured to scan for connectable WiFis when receiving a synchronous scanning instruction, where the synchronous scanning instruction is sent to the local device by the mobile terminal when starting to scan for WiFis and there is an overlap between the connectable WiFis of the mobile terminal and the smart watch.

[0053] In addition, to achieve the above object, the present application further provides a device, which includes: a memory, a processor, and a Wi-Fi connection program stored on the memory and executable on the processor, and the Wi-Fi connection program is configured to implement the steps of the Wi-Fi connection method as described above.

[0054] In addition, to achieve the above object, the present application further provides a computer-readable storage medium, on which a Wi-Fi connection program is stored, and when the Wi-Fi connection program is executed by a processor, it implements the steps of the Wi-Fi connection method as described above.

[0055] In addition, to achieve the above object, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the Wi-Fi connection method as described above.

[0056] One or more technical solutions proposed in the present application have at least the following technical effects:

[0057] The smart watch of the present application obtains Wi-Fi connection information provided by the mobile terminal, for example, the first connection information of the Wi-Fi already connected by the mobile terminal, or the second connection information of the Wi-Fi stored in the application program of the mobile terminal; the smart watch can then implement Wi-Fi connection based on the Wi-Fi connection information, without the user inputting any Wi-Fi connection information through the smart watch, such as passwords, Wi-Fi identifiers, etc., thereby avoiding errors that are prone to occur when the user inputs passwords and achieving fast Wi-Fi connection. Description of the Drawings

[0058] The drawings here are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.

[0059] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0060] Figure 1 It is a schematic flowchart provided for Embodiment 1 of the Wi-Fi connection method of the present application;

[0061] Figure 2 It is a schematic diagram of the first scenario provided for the first embodiment of the WiFi connection method of this application;

[0062] Figure 3 It is a schematic diagram of the second scenario provided for the first embodiment of the WiFi connection method of this application;

[0063] Figure 4 It is a schematic flow diagram provided for the second embodiment of the WiFi connection method of this application;

[0064] Figure 5 It is a schematic diagram of the third scenario provided for the second embodiment of the WiFi connection method of this application;

[0065] Figure 6 It is a schematic diagram of the fourth scenario provided for the second embodiment of the WiFi connection method of this application;

[0066] Figure 7 It is a schematic diagram of the module structure of the WiFi connection device according to the embodiment of this application;

[0067] Figure 8 It is a schematic diagram of the device structure of the hardware operating environment involved in the WiFi connection method according to the embodiment of this application.

[0068] The implementation, functional features, and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners

[0069] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.

[0070] For a better understanding of the technical solutions of this application, the following will be described in detail in combination with the accompanying drawings of the specification and specific implementation manners.

[0071] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a WiFi connection device, etc. that can implement the above functions. The following takes the WiFi connection device as an example to describe this embodiment and the following embodiments.

[0072] Based on this, the embodiment of this application provides a WiFi connection method, referring to Figure 1 , Figure 1 It is a schematic flow diagram of the first embodiment of the WiFi connection method of this application.

[0073] In this embodiment, the WiFi connection method includes steps S10 to S20:

[0074] Step S10, obtaining WiFi connection information provided by the mobile terminal, wherein the WiFi connection information includes first connection information of a WiFi to which the mobile terminal has been connected, or second connection information of a WiFi stored in an application of the mobile terminal;

[0075] It should be noted that the WiFi connection method of this embodiment is applied to smart watches. Since the screens of smart watches are relatively small, the fonts of the input keyboards designed for them are also relatively small. When a WiFi connection is required, since the password is usually more complicated, when the password contains special characters (such as letters, symbols, etc.), the watch needs to support page turning or scrolling to display more characters, which makes it easy for users to make mistakes when entering passwords and cannot achieve quick WiFi connection.

[0076] In order to solve the above problems, the smart watch in this embodiment adopts a method of obtaining WiFi connection information provided by the mobile terminal, without the need for the user to input the WiFi connection information through the small screen of the smart watch; since the smart watch is usually bound to the application of the smart terminal, for example, the smart watch is usually activated by using the application, and after activation, the smart watch can connect to the server, and the application of the mobile terminal will also connect to the server, so that the smart watch will upload power, location and other information to the server, and the application of the mobile terminal can obtain this information, and forward relevant instructions to the smart watch through the server to realize remote control of the smart watch, such as remote shutdown, remote restart, etc.; therefore, this embodiment uses the mobile terminal to improve the convenience of the smart watch in obtaining the WiFi connection information provided by the mobile terminal.

[0077] It can be understood that the above-mentioned obtaining of the WiFi connection information provided by the mobile terminal may be obtaining first connection information of the WiFi to which the mobile terminal is connected, or obtaining second connection information of the WiFi stored in the application of the mobile terminal, provided by the mobile terminal.

[0078] Specifically, the implementation method of obtaining the WiFi connection information provided by the application based on the mobile terminal may be at least one of the following:

[0079] Receiving the first connection information sent by the application to the local device;

[0080] The WiFi connection information is obtained by scanning the identification code provided by the mobile terminal, wherein the identification code is used to store the second connection information.

[0081] Specifically, if the mobile terminal and the smart watch are not in the same location (for example, a children's watch and the guardian's mobile terminal may not be in the same location), that is, the mobile terminal and the smart watch cannot scan the same WiFi, then the WiFi identifier to be connected (such as SSID, Service Set Identifier, or WiFi name, etc.) and the password (the first connection information) can be informed to the mobile terminal where the application program connected to the same server as the smart watch through other means. The user of the mobile terminal can input the first connection information into the application program, and the application program will send the first connection information to the smart watch (as shown in Figure 2 the watch APP forwards the WiFi connection information to the server, the server notifies the smart watch of the message that the watch APP (same as the mobile phone APP) has set the WiFi, the smart watch requests the WiFi connection information from the server, and the server returns the WiFi connection information). Further, the smart watch parses the first connection information. If the smart watch can correctly parse the WiFi identifier and password, it will feedback to the server that the information acquisition is successful. If the parsing fails, it will feedback to the server that the information acquisition fails, and the server will send the feedback content of the smart watch to the watch APP for the user to view.

[0082] Or, if the mobile terminal and the smart watch are in the same location, that is, the mobile terminal and the smart watch can scan the same WiFi, then the corresponding WiFi identifier to be connected can be directly scanned by the mobile terminal. The user only needs to input the corresponding password in the application program, and the application program will send the WiFi identifier to be connected and the corresponding password (the first connection information) to the smart watch connected to the same server.

[0083] Since the screen of the mobile terminal is usually relatively large, it is easier to operate to input the WiFi connection information in the application program of the mobile terminal, improving the convenience.

[0084] Or, the smart watch can also obtain the WiFi connection information without going through the application program. After the mobile terminal connects to the WiFi, it can display the WiFi connection information through an identification code (such as a two-dimensional code or a bar code, etc., refer to Figure 3 ) or send the identification code to the smart watch through other communication channels. The smart watch can obtain the WiFi connection information by scanning the identification code provided by the mobile terminal; specifically, the two-dimensional code can be scanned by the rear camera of the smart watch to parse the WiFi connection information, without going through the server forwarding and without the user inputting the password in the application program, improving the convenience.

[0085] Step S20: Perform a WiFi connection based on the WiFi connection information.

[0086] It can be understood that after the smart watch obtains the WiFi connection information provided by the mobile terminal through the above method, it can achieve WiFi connection based on the WiFi connection information without the user inputting any WiFi connection information through the smart watch, such as passwords, WiFi identifiers, etc., thus avoiding errors that are prone to occur when the user enters the password and achieving fast WiFi connection.

[0087] It should be noted that since WiFi identifiers are usually relatively complex, if manual input is required, even using a mobile terminal may result in input errors. To improve user convenience, the specific implementation method for performing WiFi connection based on the WiFi connection information can be:

[0088] Perform fuzzy matching based on some characters of the WiFi identifier to determine the WiFi to be connected; connect to the WiFi to be connected based on the password.

[0089] Among them, the first connection information includes some characters of the WiFi identifier and the password. When the user needs to enter the WiFi identifier in the application, the user can only enter some characters, such as the consecutive first few characters or the consecutive last few characters of the WiFi identifier, etc., and send them to the smart watch to reduce the probability of the user entering wrongly.

[0090] Therefore, after the smart watch receives the first connection information, it only needs to perform fuzzy matching based on some characters of the WiFi identifier to determine the WiFi to be connected; attempt to connect to the WiFi to be connected based on the password.

[0091] For example, the smart watch can scan the list of available surrounding WiFi and select the most likely WiFi for connection attempt according to the similarity between some characters of the WiFi identifier and the WiFi identifiers in the available WiFi list.

[0092] Specifically, the implementation method for connecting to the WiFi to be connected based on the password can be:

[0093] When it is detected that the password does not match the WiFi to be connected, correct the password according to a preset method based on the historical password correction record and sensor data, and connect to the WiFi to be connected again based on the corrected password.

[0094] It should be noted that if the first attempt to connect to WiFi based on the obtained password fails, it is considered that the error may be caused by the user entering the password incorrectly in the application. The smart watch can correct the password in a preset manner based on the historical password correction records and sensor data, and then make another connection attempt. Since the smart watch and the mobile terminal may not be in the same location, it is troublesome to re-enter the correct password when the password is incorrect. Therefore, in this embodiment, the above-mentioned correction method is preferably used for multiple attempts.

[0095] For example, when a password error is detected, the smart watch can predict possible cases of capitalization conversion or number / letter confusion based on previous successful connection records, and correct the password according to the historical password correction records. At the same time, it can also refer to the sensor data provided by the mobile terminal (such as accelerometers, gyroscopes, etc.) to predict changes in the user's input habits, further improving the success rate of password correction.

[0096] Among them, the preset method includes at least one of switching the case of characters and modifying similar characters. The sensor data is sent to the local device by the mobile terminal when it detects an input operation for WiFi connection information. For example, when the user enters WiFi connection information in the application, the mobile terminal can obtain the sensor data and send it to the smart watch.

[0097] In addition, the password can also be corrected by a preset password correction model. Specifically, the preset password correction model can be iteratively trained based on a large number of WiFi connection attempt records (including successful and failed cases, and the passwords used in each attempt), a large amount of historical sensor data obtained when users enter characters, and the correct passwords. The preset model to be trained can learn input features such as character types (numbers, letters, symbols), case distribution, and common error patterns (such as confusion between 0 and O, l and I) based on the WiFi connection attempt records, and learn user habit features such as typing speed, key interval time, characters that are easily pressed wrongly, and whether the password is entered in a walking state (this may affect typing accuracy; when it is detected that the user is in a moving state, increase the correction probability for key combinations that are easily mispressed) based on the historical sensor data. Based on these features, the incorrect password entered is corrected to predict the correct password.

[0098] Specifically, the preset model to be trained can be a Recurrent Neural Network (RNN) or a Long Short-Term Memory Network (LSTM), which is more accurate in processing sequential data. Since a password is a sequence of characters, the selection of each character may depend on the previous one or several characters. For example, the user may continuously press similar keys (such as 'O' and '0'), or decide whether to switch the case according to the context; RNN and LSTM can remember the previous state and use this information to affect the output at the current moment.

[0099] Moreover, in the scenario of WiFi password correction, past successful connection records can provide important clues for the current correction; for example, if the user often misidentifies certain letters as other symbols in the past, it is very likely that the same mistake will be made this time; LSTM is particularly good at solving this problem of long-term dependence because it has specially designed memory units that can retain useful information over a long time span without being prone to the problem of vanishing gradients like a standard RNN.

[0100] Furthermore, the smartwatch can continuously optimize its correction ability through adaptive learning. Whenever the user manually corrects an incorrect WiFi password, the application on the mobile terminal will record this change and send it to the smartwatch, thereby automatically updating the above-mentioned preset password correction model.

[0101] Specifically, if the password cannot be successfully connected after attempting to correct it several times in the above manner, the smartwatch can clear the WiFi connection information sent by the application after the connection fails to reduce space occupancy.

[0102] It should be noted that in order to improve the convenience of reconnecting to WiFi, after the step of performing WiFi connection based on the WiFi connection information, the following can also be done:

[0103] If the connection is successful, store the WiFi connection information; when the WiFi connection function is restarted again, automatically perform WiFi connection based on the WiFi connection information.

[0104] Specifically, after successfully connecting to WiFi, the smartwatch can store it locally. When the user turns on the WiFi function of the smartwatch again, if the smartwatch scans this WiFi, it will automatically connect based on the stored password, improving convenience.

[0105] In addition, in order to improve the speed of WiFi connection, before the step of obtaining the WiFi connection information provided by the application on the mobile terminal, the following can also be done:

[0106] When receiving a synchronous scanning instruction, the scanning can connect to WiFi. Among them, the synchronous scanning instruction is sent to the local by the mobile terminal when starting to scan WiFi when there is an overlap between the connectable WiFi of the mobile terminal and the smart watch.

[0107] It should be noted that in the case where there is an overlap between the connectable WiFi of the mobile terminal and the smart watch (the mobile terminal and the smart watch are in the same location), in order to improve the WiFi connection speed, when the mobile terminal starts to scan WiFi, the application can send a synchronous scanning instruction to the smart watch.

[0108] When the smart watch receives the synchronous scanning instruction, it can start scanning the surrounding connectable WiFi. When obtaining the WiFi connection information provided by the application of the mobile terminal, it can directly perform WiFi matching to improve the WiFi connection speed.

[0109] In this embodiment, the smart watch obtains the WiFi connection information provided by the mobile terminal. For example, the first connection information of the WiFi already connected by the mobile terminal, or the second connection information of the WiFi stored in the application of the mobile terminal; the smart watch can realize WiFi connection based on the WiFi connection information without the user inputting any WiFi connection information through the smart watch, such as passwords, WiFi identifiers, etc., thus avoiding the errors that are prone to occur when the user inputs passwords, solving the inconvenience and error-proneness problems when the user inputs the WiFi password on the watch screen, and realizing fast WiFi connection; greatly improving the user experience.

[0110] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 4 , the WiFi connection method further includes step A1:

[0111] Step A1, in response to a preset information acquisition condition, provide WiFi connection information for the smart watch, where the WiFi connection information includes the first connection information of the WiFi already connected by the mobile terminal, or the second connection information of the WiFi stored in the application of the mobile terminal.

[0112] It should be noted that the WiFi connection method in this embodiment is applied to a mobile terminal (such as a mobile phone, a tablet computer, etc.). Since the screen of the mobile terminal is usually relatively large, it is relatively easy to operate to input WiFi connection information in the application of the mobile terminal. In this embodiment, the mobile terminal provides WiFi connection information for the smart watch in response to a preset information acquisition condition, without the user inputting a password on the small screen of the smart watch, improving the convenience of the smart watch's WiFi connection.

[0113] It can be understood that the WiFi connection information provided for the smartwatch above can be the first connection information of the WiFi to which the mobile terminal is already connected, or the second connection information of the WiFi stored in the application program of the mobile terminal.

[0114] Specifically, the preset information acquisition conditions include at least one of the following:

[0115] A scanning operation for the identification code is detected, where the identification code is displayed on the interface in response to a sharing operation for the WiFi connection information after the mobile terminal successfully connects to the WiFi;

[0116] An input operation for the WiFi connection information is detected on the operation interface of the application program;

[0117] A successful connection to the WiFi is detected.

[0118] Specifically, in order for the smartwatch not to obtain the WiFi connection information through the application program, after the mobile terminal successfully connects to the WiFi, the user can, through a sharing operation (such as clicking to generate an identification code, or clicking the information sharing icon, etc.), display the WiFi connection information on the interface, and the smartwatch can obtain the WiFi connection information by scanning the identification code provided by the mobile terminal; there is no need to be forwarded by the server, nor does the user need to input the password in the application program, improving convenience.

[0119] If the mobile terminal and the smartwatch are not in the same location (for example, a children's watch and the guardian's mobile terminal may not be in the same location), that is, the mobile terminal and the smartwatch cannot scan the same WiFi, then the user can input the WiFi connection information on the operation interface of the application program (refer to Figure 5 ), and in response to this input operation, the mobile terminal will send the WiFi connection information to the smartwatch, that is, provide the WiFi connection information for the smartwatch.

[0120] If the mobile terminal and the smartwatch are in the same location, that is, the mobile terminal and the smartwatch can scan the same WiFi, then the mobile terminal can first scan the available nearby WiFi and display it on the operation interface of the application program (refer to Figure 6 ), the user can select the WiFi that the smartwatch needs to connect to on this operation interface (that is, the user does not need to manually input the WiFi identifier, refer to Figure 6 ), and the user can input the corresponding password on the operation interface of the application program. In response to this input operation, the mobile terminal will send the WiFi connection information to the smartwatch, that is, provide the WiFi connection information for the smartwatch.

[0121] If the mobile terminal and the smart watch are at the same location, the mobile terminal can first scan and connect to the WiFi that the smart watch needs to connect to. At this time, the application will store the connection information of the WiFi currently connected by the mobile terminal and send the WiFi connection information to the smart watch, that is, provide the WiFi connection information for the smart watch.

[0122] It should be noted that when the preset information acquisition condition is detecting an input operation for WiFi connection information on the operation interface of the application, the implementation manner of providing WiFi connection information for the smart watch in response to the preset information acquisition condition can be at least one of the following:

[0123] In response to detecting an input operation for WiFi connection information on the operation interface of the application, store the input WiFi connection information and provide the stored WiFi connection information for the smart watch;

[0124] In response to detecting an input operation for a WiFi identifier on the operation interface of the application, based on the currently input characters and the scanned connectable WiFi, display at least one selectable WiFi for the user to select the WiFi identifier and input the corresponding password, so as to provide the WiFi connection information input by the user for the smart watch.

[0125] Among them, the WiFi connection information includes a WiFi identifier and a password. When the preset information acquisition condition is detecting an input operation for WiFi connection information on the operation interface of the application, the mobile terminal stores the input WiFi connection information in response to detecting the input operation for WiFi connection information on the operation interface of the application and sends it to the smart watch, and thus can provide the stored WiFi connection information for the smart watch.

[0126] To improve the convenience when inputting a WiFi identifier, at least one selectable WiFi can be displayed based on the currently input characters and the scanned connectable WiFi. The user can quickly select the required WiFi identifier without having to input the entire WiFi identifier, which improves the input speed and accuracy. After the user selects the corresponding WiFi identifier, the corresponding password can be input. The application will store the input WiFi identifier and password and send them to the smart watch.

[0127] It should be noted that when detecting an input operation for WiFi connection information on the operation interface of the application, it is also possible to: obtain the sensor data of the mobile terminal; send the sensor data to the smart watch for the smart watch to correct the wrong password based on the sensor data.

[0128] It can be understood that, in order to improve the accuracy of the smart watch in correcting incorrect passwords, in this embodiment, when the mobile terminal detects an input operation for WiFi connection information on the operation interface of the application, it obtains the sensor data of the mobile terminal; and sends the sensor data to the smart watch. When the smart watch detects an incorrect password, it can correct the incorrect password based on the sensor data.

[0129] In addition, before the step of providing the WiFi connection information for the smart watch in response to the preset information acquisition condition, it is also possible to: obtain the location information of the smart watch; based on the location information, match the available WiFi near the smart watch from a preset WiFi hotspot library and store it in the application.

[0130] It can be understood that when the smart watch and the mobile terminal are in the same location, in order to facilitate the application to store the WiFi connection information, the mobile terminal can obtain the location information of the smart watch; based on the location information, match the available WiFi near the smart watch from a preset WiFi hotspot library and store it in the application. The application can then quickly send it to the server, and the server can quickly forward it to the smart watch, improving the speed of WiFi connection.

[0131] In addition, a preset behavior analysis model can also be used to identify the normal user operation mode. If an abnormal behavior is detected (for example, a large number of different matching requests are generated in a short period of time), additional security measures are triggered, such as requiring secondary verification of the WiFi connection requirement (for example, displaying an option to confirm the connection on the smart watch), or pausing the above-mentioned fuzzy matching function.

[0132] In this embodiment, since the screen of the mobile terminal is usually relatively large, it is relatively easy to operate to input the WiFi connection information in the application of the mobile terminal. In this embodiment, the mobile terminal provides the WiFi connection information for the smart watch in response to the preset information acquisition condition, without the user having to input the password on the small screen of the smart watch, improving the convenience of the smart watch's WiFi connection.

[0133] This application also provides a WiFi connection device. Please refer to Figure 7 , which is applied to a smart watch. The WiFi connection device includes:

[0134] An acquisition module 10, configured to acquire the WiFi connection information provided by the mobile terminal, where the WiFi connection information includes the first connection information of the WiFi to which the mobile terminal is connected, or the second connection information of the WiFi stored in the application of the mobile terminal;

[0135] A connection module 20, configured to perform a WiFi connection based on the WiFi connection information.

[0136] In a feasible implementation manner, the obtaining module 10 includes at least one of the following:

[0137] A receiving sub-module, configured to receive the first connection information sent by the application to the local side;

[0138] An obtaining sub-module, configured to obtain WiFi connection information by scanning an identification code provided by the mobile terminal, where the identification code is used to store the second connection information.

[0139] In a feasible implementation manner, the connection module 20 includes:

[0140] A matching sub-module, configured to perform fuzzy matching based on partial characters of the WiFi identifier to determine the WiFi to be connected;

[0141] A connection sub-module, configured to connect to the WiFi to be connected based on the password.

[0142] In a feasible implementation manner, the connection sub-module includes:

[0143] A correction unit, configured to, when it is detected that the password does not match the WiFi to be connected, correct the password in a preset manner based on the historical password correction record and sensor data, and connect to the WiFi to be connected again based on the corrected password;

[0144] wherein the preset manner includes at least one of switching the case of characters and modifying similar characters, and the sensor data is sent to the local side by the mobile terminal when an input operation for the WiFi connection information is detected.

[0145] In a feasible implementation manner, after the step of performing WiFi connection based on the WiFi connection information, the WiFi connection device further includes:

[0146] A storage module, configured to store the WiFi connection information if the connection is successful;

[0147] A reconnection module, configured to automatically perform WiFi connection based on the WiFi connection information when the WiFi connection function is started again.

[0148] In a feasible implementation manner, before the step of obtaining the WiFi connection information provided by the application of the mobile terminal, the WiFi connection device further includes:

[0149] A scanning module, configured to scan for connectable WiFis when receiving a synchronous scanning instruction, where the synchronous scanning instruction is sent to the local device by the mobile terminal when starting to scan for WiFis and there is an overlap between the connectable WiFis of the mobile terminal and the smart watch.

[0150] This application also provides a Wi-Fi connection device applied to a mobile terminal. The Wi-Fi connection device includes:

[0151] An information providing module, configured to provide Wi-Fi connection information for the smart watch in response to a preset information acquisition condition. The Wi-Fi connection information includes first connection information of the Wi-Fi that the mobile terminal has connected to, or second connection information of the Wi-Fi stored in the application program of the mobile terminal.

[0152] In a feasible implementation manner, the preset information acquisition condition includes at least one of the following:

[0153] Detecting a scanning operation for an identification code, where the identification code is displayed on the interface after the mobile terminal successfully connects to the Wi-Fi in response to a sharing operation for the Wi-Fi connection information;

[0154] Detecting an input operation for the Wi-Fi connection information on the operation interface of the application program;

[0155] Detecting a successful connection to the Wi-Fi.

[0156] In a feasible implementation manner, the Wi-Fi connection information includes a Wi-Fi identifier and a password. When the preset information acquisition condition is detecting an input operation for the Wi-Fi connection information on the operation interface of the application program, the information providing module includes at least one of the following:

[0157] A storage sub-module, configured to store the input Wi-Fi connection information in response to detecting an input operation for the Wi-Fi connection information on the operation interface of the application program, and provide the stored Wi-Fi connection information for the smart watch;

[0158] A display sub-module, configured to display at least one selectable Wi-Fi based on the currently input characters and the scanned connectable WiFis in response to detecting an input operation for the Wi-Fi identifier on the operation interface of the application program, so that the user can select the Wi-Fi identifier and input the corresponding password, and provide the Wi-Fi connection information input by the user for the smart watch.

[0159] In a feasible implementation manner, when detecting an input operation for the Wi-Fi connection information on the operation interface of the application program, the device further includes:

[0160] A data acquisition module, configured to acquire sensor data of a mobile terminal;

[0161] A password correction module, configured to send the sensor data to a smart watch for the smart watch to correct an incorrect password based on the sensor data.

[0162] In a feasible implementation manner, before the step of providing WiFi connection information for the smart watch in response to a preset information acquisition condition, the device further includes:

[0163] An information acquisition module, configured to acquire location information of the smart watch;

[0164] A matching module, configured to match available WiFi near the smart watch from a preset WiFi hotspot library based on the location information and store the available WiFi in an application.

[0165] The WiFi connection device provided in this application adopts the WiFi connection method in the above embodiment, and can solve the technical problem of being unable to achieve a fast WiFi connection. Compared with the prior art, the beneficial effects of the WiFi connection device provided in this application are the same as those of the WiFi connection method provided in the above embodiment, and other technical features in the WiFi connection device are the same as those disclosed in the method of the above embodiment, and will not be elaborated here.

[0166] This application provides a WiFi connection device. The WiFi connection device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the WiFi connection method in the first embodiment above.

[0167] Next, refer to Figure 8 , which shows a schematic structural diagram of a WiFi connection device suitable for implementing the embodiments of this application. The WiFi connection device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, tablet computers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The shown WiFi connection device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of this application.

[0168] Such as Figure 8As shown, the WiFi connection device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the WiFi connection device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the WiFi connection device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a WiFi connection device having various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or had alternatively.

[0169] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.

[0170] The WiFi connection device provided by the present application adopts the WiFi connection method in the above embodiments and can solve the technical problem of being unable to achieve a fast WiFi connection. Compared with the prior art, the beneficial effects of the WiFi connection device provided by the present application are the same as those of the WiFi connection method provided by the above embodiments, and other technical features in the WiFi connection device are the same as those disclosed in the method of the previous embodiment, and will not be elaborated here.

[0171] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0172] As described above, the above are only specific embodiments of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0173] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the WiFi connection method in the above embodiments.

[0174] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0175] The above computer-readable storage medium can be included in the WiFi connection device; or it can exist separately without being assembled into the WiFi connection device.

[0176] The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the WiFi connection device, the WiFi connection device is caused to: execute the above WiFi connection method.

[0177] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by connecting through the Internet using an Internet service provider).

[0178] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to the embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0179] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.

[0180] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned WiFi connection method, which can solve the technical problem of being unable to achieve a fast WiFi connection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the WiFi connection method provided by the above embodiments, and will not be elaborated here.

[0181] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the WiFi connection method as described above.

[0182] The computer program product provided by the present application can solve the technical problem of being unable to achieve a fast WiFi connection. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the WiFi connection method provided by the above embodiments, and will not be elaborated here.

[0183] The above are only partial embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.

Claims

1. A WiFi connection method, characterized in that: Applied to a smart watch, the WiFi connection method comprises the following steps: Acquire WiFi connection information provided by the mobile terminal, where the WiFi connection information includes first connection information of a WiFi to which the mobile terminal has been connected, or second connection information of a WiFi stored in an application of the mobile terminal; Based on the WiFi connection information, a WiFi connection is performed.

2. The WiFi connection method according to claim 1, characterized in that: The step of obtaining WiFi connection information provided by an application based on a mobile terminal includes at least one of the following: Receiving the first connection information sent by the application to the local device; The WiFi connection information is obtained by scanning the identification code provided by the mobile terminal, wherein the identification code is used to store the second connection information.

3. The WiFi connection method according to claim 2, wherein: The first connection information includes partial characters of a WiFi identifier and a password, and the step of performing a WiFi connection based on the WiFi connection information includes: Based on some characters of the WiFi identifier, fuzzy matching is performed to determine the WiFi to be connected; The WiFi to be connected is connected based on the password.

4. The WiFi connection method according to claim 1, wherein: After the step of performing WiFi connection based on the WiFi connection information, the method further includes: If the connection is successful, the WiFi connection information is stored; When the WiFi connection function is started again, WiFi connection is automatically performed based on the WiFi connection information.

5. The WiFi connection method according to claim 1, wherein: Before the step of obtaining the WiFi connection information provided by the application based on the mobile terminal, the method further includes: When receiving a synchronous scanning instruction, scan the connectable WiFi, wherein the synchronous scanning instruction is sent to the local when the mobile terminal starts scanning the WiFi when the connectable WiFi of the mobile terminal and the smart watch overlap.

6. A WiFi connection method, characterized in that: Applied to a mobile terminal, the WiFi connection method comprises the following steps: In response to a preset information acquisition condition, WiFi connection information is provided to the smart watch, where the WiFi connection information includes first connection information of a WiFi to which the mobile terminal has been connected, or second connection information of a WiFi stored in an application of the mobile terminal.

7. A WiFi connection device, characterized in that: Applied to a smart watch, the WiFi connection device comprises: An acquisition module, configured to acquire WiFi connection information provided by a mobile terminal, wherein the WiFi connection information includes first connection information of a WiFi to which the mobile terminal has been connected, or second connection information of a WiFi stored in an application of the mobile terminal; A connection module is used to perform a WiFi connection based on the WiFi connection information.

8. A device, characterized in that: The device comprises: a memory, a processor, and a WiFi connection program stored in the memory and executable on the processor, wherein the WiFi connection program is configured to implement the steps of the WiFi connection method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a WiFi connection program, and when the WiFi connection program is executed by the processor, the steps of the WiFi connection method according to any one of claims 1 to 5 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the WiFi connection method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Intelligent watch wifi connection method and system based on mobile terminal, and intelligent watch

    CN105430160A

  • WiFi (Wireless Fidelity) configuration method and apparatus for smart watch

    CN106028326A

  • Connection method for enabling intelligent wireless terminal to rapidly and automatically access WIFI (wireless fidelity) wireless network and application system

    CN106358190A

  • Method For Automatically Establishing Wireless Connection, Gateway Device And Client Device For Internet Of Things Using The Same

    CN106488444A

  • WIFI sharing method and device, WIFI connection method and device and computer readable storage medium

    CN110691397A