WIFI connection method, first terminal, second terminal and WIFI connection system
By establishing a wireless communication connection between terminals, and automatically sending WIFI connection parameters to connect to WIFI hotspots, the problems of complex operation and high power consumption in the prior art are solved, and simple and efficient WIFI connection is achieved.
Patent Information
- Application Number
- CN202510474243.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-15
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, WIFI hotspot sharing requires input of a password or Bluetooth pairing, resulting in increased power consumption and complex operation.
A wireless communication connection is established with the second terminal through the first terminal, signal strength data is sent and received, and WIFI connection parameters are automatically sent according to preset conditions to connect to WIFI hotspots.
It realizes automatic connection of WIFI hotspots when the signal strength meets the conditions, simplifies operation, saves terminal energy consumption, and improves user experience.
Smart Images

Figure CN120343753A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a WIFI connection method, a first terminal, a second terminal, and a WIFI connection system. Background Art
[0002] With the rapid development of mobile terminals and network technologies, more and more users hope to access the network quickly anytime and anywhere. Thus, the WIFI sharing technology has emerged, and more and more smartphone users access the Internet through WIFI. If a new user wants to connect to a WIFI hotspot that has not been connected before, they need to obtain the WIFI password from the owner of the WIFI hotspot, then scan the surrounding WIFI hotspots, and after selecting the WIFI hotspot to connect in the scan list, input the password corresponding to the selected WIFI hotspot.
[0003] In the process of conceiving and implementing this application, the inventors found at least the following problems: If sharing is done using a WIFI hotspot, the user needs to be informed of the hotspot password or perform a scan connection. If sharing is done using a USB interface, an additional USB cable is required for sharing. If sharing is done using Bluetooth, the Bluetooth needs to be turned on and then paired to connect. In addition, when using hotspots and Bluetooth for network sharing, the hotspots and Bluetooth are always in the on state, which has a great impact on the power consumption of the mobile phone.
[0004] The foregoing description is provided to give general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] In view of the above technical problems, this application provides a WIFI connection method, a first terminal, a second terminal, and a WIFI connection system, enabling users to quickly connect to WIFI hotspots with simple and convenient operations.
[0006] To solve the above technical problems, this application provides a WIFI connection method, characterized in that the WIFI connection method is applied between a first terminal and a second terminal, and the WIFI connection method includes: S41, establishing a wireless communication connection between the first terminal and the second terminal; S42, the second terminal sending signal strength data to the first terminal through the wireless communication; S43, when the first terminal determines that the signal strength data meets a preset WIFI connection condition, sending WIFI connection parameters to the second terminal; S44, receiving the WIFI connection parameters sent by the first terminal through the second terminal and connecting to the corresponding WIFI hotspot through the WIFI connection parameters.
[0007] In one embodiment, the wireless communication is Bluetooth, and the signal strength data includes the signal strength of the wireless communication within a preset duration range and the WIFI signal strength detected by the second terminal within the preset duration range.
[0008] In one embodiment, the signal strength data satisfying the preset WIFI connection condition includes: Based on the signal strength of the wireless communication and the WIFI signal strength, obtain a first effective duration that satisfies the preset wireless communication signal strength condition and a second effective duration that satisfies the preset WIFI signal strength condition; If both the first effective duration and the second effective duration are not less than a preset duration threshold, it is determined that the signal strength data satisfies the preset WIFI connection condition.
[0009] In one embodiment, the obtaining of the first effective duration that satisfies the preset wireless communication signal strength condition and the second effective duration that satisfies the preset WIFI signal strength condition includes: Within the preset duration range, obtain the signal strength of the wireless communication and the WIFI signal strength according to a preset sampling frequency, and respectively screen out the values not less than the preset wireless communication signal strength threshold and the preset WIFI signal strength threshold, so as to obtain the first effective duration that satisfies the preset wireless communication signal strength condition and the second effective duration that satisfies the preset WIFI signal strength condition.
[0010] In one embodiment, the WIFI connection parameters include the WIFI password and the WIFI network identifier; The connecting to the corresponding WIFI hotspot through the WIFI connection parameters includes: Search for the corresponding routing device through the WIFI network identifier, and send a connection request including the WIFI password to the routing device to establish a connection with the routing device serving as the WIFI hotspot.
[0011] In one embodiment, the WIFI connection method further includes: The second terminal sends the screen status information and the WIFI switch status information to the first terminal through the wireless communication; If at least one of the screen status information and the WIFI switch status information does not satisfy the preset WIFI connection condition, stop sending the WIFI connection parameters to the second terminal.
[0012] In one embodiment, the screen status information includes the on / off status of the screen of the second terminal, and the WIFI switch status information includes the on / off status of the WIFI switch module of the second terminal.
[0013] In one embodiment, the non - satisfaction of the preset WIFI connection condition includes: If the screen of the second terminal is in the off state, it is determined that the screen status information does not meet the preset WIFI connection condition; if the WIFI switch module of the second terminal is in the off state, it is determined that the WIFI switch status information does not meet the preset WIFI connection condition.
[0014] The present application also provides a terminal, including: a memory and a processor. Among them, an executable program code is stored on the memory, and when the executable program code is executed by the processor, the steps of the WIFI connection method described above are implemented.
[0015] The present application also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the WIFI connection method described above are implemented.
[0016] As described above, the present application provides a WIFI connection method, which is applied to a first terminal and includes: establishing a wireless communication connection with a second terminal; receiving signal strength data sent by the second terminal through the wireless communication; when the signal strength data meets the preset WIFI connection condition, sending the WIFI connection parameters to the second terminal. The present application also provides a first terminal, a second terminal and a WIFI connection system. Through the above technical solutions, the WIFI hotspot can be automatically connected when the signal strength data meets the conditions, which is convenient to operate and saves the energy consumption of the terminal, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 A schematic diagram of the hardware structure of a terminal for implementing various embodiments of the present application; Figure 2 A schematic diagram of the communication network system architecture provided by the embodiment of the present application; Figure 3 A schematic diagram of the module structure of a terminal for implementing various embodiments of the present application; Figure 4 A schematic flowchart of the WIFI connection method shown according to the first embodiment; Figure 5It is a schematic diagram of the application environment of a WIFI connection method provided by an embodiment of the present application; Figure 6 It is a schematic structural diagram of a WIFI connection system shown according to the second embodiment.
[0019] The realization of the purpose of the present application, functional features and advantages will be further described in conjunction with the embodiments with reference to the accompanying drawings. Through the above-mentioned accompanying drawings, the clear embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0020] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0021] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitations, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanations in the specific embodiments or further in combination with the context of the specific embodiments.
[0022] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining". Furthermore, as used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising", "including" indicate the presence of the stated features, steps, operations, elements, components, items, kinds, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" and the like used in the present application may be interpreted inclusively, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C". An exception to this definition occurs only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0023] It should be understood that although the steps in the flowcharts in the embodiments of the present application are shown sequentially according to the indication of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in the present disclosure, the execution of these steps has no strict order limitation, and they may be executed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same moment, but may be executed at different moments, and their execution order is not necessarily sequential, but may be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0024] Depending on the context, the words "if", "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detected (stated condition or event)" or "in response to detecting (stated condition or event)".
[0025] It should be noted that in this text, step codes such as S21 and S22 are used. The purpose is to more clearly and briefly express the corresponding content, and it does not constitute a substantial limitation in terms of sequence. Those skilled in the art may execute S22 first and then S21 during specific implementation, etc., but all these should be within the protection scope of this application.
[0026] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0027] In subsequent descriptions, suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of explaining this application, and they have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.
[0028] The terminal can be implemented in various forms. For example, the terminal described in this application can include terminals such as mobile phones, tablet computers, laptop computers, palmtop computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0029] In the subsequent description, a mobile terminal will be used as an example for illustration. Those skilled in the art will understand that, except for components specifically for mobile purposes, the structure according to the embodiments of this application can also be applied to fixed-type terminals.
[0030] Please refer to Figure 1 , which is a schematic structural diagram of a terminal 10 for implementing various embodiments of this application. The terminal 10 may include: an effective duration calculation module 11, a WIFI switch state monitoring and recording module 12, a screen state monitoring and recording module 13, a signal strength recording and feedback module 14, and a wireless communication broadcast module 15. Those skilled in the art can understand that Figure 1 the terminal structure shown in does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0031] Please refer to Figure 1, which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art can understand that Figure 1 the mobile terminal structure shown in
[0032] does not limit the mobile terminal. The mobile terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements. Figure 1 The following specifically introduces each component of the mobile terminal: The RF unit 101 can be used to receive and send signals during information reception or call processes. Specifically, after receiving the downlink information of the base station, it is given to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the RF unit 101 includes, but is not limited to, antennas, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. In addition, the RF unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (CodeDivision Multiple Access 2000), WCDMA (Wideband Code DivisionMultiple Access), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access), FDD-LTE (Frequency DivisionDuplexing- Long Term Evolution), TDD-LTE (Time DivisionDuplexing- Long Term Evolution), and 5G, etc.
[0033] WiFi belongs to short - range wireless transmission technology. Through the WiFi module 102, the mobile terminal can help users send and receive emails, browse the web, and access streaming media, etc. It provides users with wireless broadband Internet access. Although Figure 1 the WiFi module 102 is shown, it can be understood that it does not belong to an essential component of the mobile terminal and can be completely omitted within the scope of not changing the essence of the invention according to needs.
[0034] The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, and other modes. Moreover, the audio output unit 103 can also provide audio output related to specific functions executed by the mobile terminal 100 (such as call signal receiving sound, message receiving sound, etc.). The audio output unit 103 can include a speaker, a buzzer, etc.
[0035] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 can include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of still pictures or videos obtained by an image capturing device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the graphics processor 1041 can be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in operating modes such as phone call mode, recording mode, voice recognition mode, etc., and can process such sounds into audio data. The processed audio (voice) data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of phone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) the noise or interference generated during the process of receiving and sending audio signals.
[0036] The mobile terminal 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be elaborated here.
[0037] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
[0038] The user input unit 107 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel 1071), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the touch position of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 110, and can receive and execute the commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc., and will not be specifically limited here.
[0039] Optionally, the touch panel 1071 may cover the display panel 1061. After the touch panel 1071 detects a touch operation on or near it, it is transmitted to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in Figure 1 the touch panel 1071 and the display panel 1061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to realize the input and output functions of the mobile terminal, and specific details are not limited here.
[0040] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 108 can be used to receive inputs from external devices (such as data information, power, etc.) and transmit the received inputs to one or more components within the mobile terminal 100 or can be used to transmit data between the mobile terminal 100 and external devices.
[0041] The memory 109 can be used to store software programs and various data. The memory 109 mainly includes a program storage area and a data storage area. Optionally, the program storage area can store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0042] The processor 110 is the control center of the mobile terminal, connecting various parts of the entire mobile terminal using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.
[0043] The mobile terminal 100 may further include a power source 111 (such as a battery) for powering each component. Preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
[0044] Although Figure 1 not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be elaborated here.
[0045] To facilitate understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based will be described below.
[0046] Please refer to Figure 2 , Figure 2 FIG. is an architecture diagram of a communication network system provided by an embodiment of the present application. The communication network system is an LTE system of a general mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator that are communicatively connected in sequence.
[0047] Optionally, the UE 201 may be the above terminal 100, which will not be elaborated here.
[0048] The E-UTRAN 202 includes an eNodeB 2021 and other eNodeBs 2022, etc. Optionally, the eNodeB 2021 may be connected to other eNodeBs 2022 through a backhaul (such as an X2 interface), the eNodeB 2021 is connected to the EPC 203, and the eNodeB 2021 may provide access for the UE 201 to the EPC 203.
[0049] The EPC 203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving GateWay) 2034, a PGW (PDN Gate Way) 2035, a PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, the MME 2031 is a control node that processes the signaling between the UE 201 and the EPC 203 and provides bearer and connection management. The HSS 2032 is used to provide some registers to manage functions such as a home location register (not shown in the figure) and stores some user-specific information such as service characteristics and data rates. All user data can be sent through the SGW 2034. The PGW 2035 can provide IP address allocation for the UE 201 and other functions. The PCRF 2036 is a policy and charging control policy decision point for service data flows and IP bearer resources, and it selects and provides available policy and charging control decisions for a policy and charging enforcement functional unit (not shown in the figure).
[0050] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services, etc.
[0051] Although the above has been introduced by taking the LTE system as an example, those skilled in the art should be aware that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (such as 5G), etc., which are not limited herein.
[0052] The following will specifically introduce each module of the terminal 30 in combination with Figure 3 : The effective duration calculation module 31 can be used to obtain a first effective duration that meets the preset wireless communication signal strength condition and a second effective duration that meets the preset WIFI signal strength condition according to the wireless communication signal strength and the WIFI signal strength of the terminal 30.
[0053] The WIFI switch state monitoring and recording module 32 can be used to monitor the switch state of the WIFI switch of the terminal 30.
[0054] The screen state monitoring and recording module 33 can be used to monitor the on / off state of the screen of the terminal 30.
[0055] The signal strength recording and feedback module 34 can be used to record and feedback the wireless communication signal strength and WIFI signal strength detected by the terminal 30.
[0056] The wireless communication broadcast module 35 can be used to monitor and analyze the relevant information of the above four modules and perform information exchange of WIFI-related information.
[0057] Based on the above mobile terminal hardware structure and communication network system, each embodiment of the present application is proposed.
[0058] Please refer to Figure 4 , which is a schematic flowchart of the WIFI connection method provided by the first embodiment of the present application. Please also refer to Figure 4 and Figure 5 , the WIFI connection method can be applied between the first terminal 51 and at least one second terminal 52 (only one is shown in the figure), and the WIFI connection method includes the following steps: Step S21, establish a wireless communication connection between the first terminal 51 and the second terminal 52.
[0059] Among them, the above wireless communication can use various communication standards, protocols and technologies, including but not limited to Bluetooth, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code division multiple access (W-CDMA), Code division access (CDMA), time division multiple access (TDMA), other protocols for mail, instant messaging and short messages, and any other suitable communication protocols, and may even include those protocols that have not been developed yet.
[0060] Preferably, the Bluetooth technology used in the wireless communication of the present application is Bluetooth Low Energy (also known as Bluetooth LE, BLE, old trademark Bluetooth Smart), also known as low-power Bluetooth, which is a personal area network technology designed and sold by the Bluetooth Special Interest Group. Compared with classic Bluetooth, low-power Bluetooth aims to significantly reduce power consumption and cost while maintaining the same communication range, thereby reducing the power consumption of the terminal connecting to the WIFI hotspot.
[0061] Step S42, the second terminal 52 sends signal strength data to the first terminal 51 through wireless communication.
[0062] Among them, the signal strength data includes the signal strength of wireless communication within a preset time range and the WIFI signal strength detected by the second terminal 52 within the preset time range.
[0063] In an embodiment, the signal strength data satisfying the preset WIFI connection condition includes: According to the signal strength of wireless communication and the WIFI signal strength, a first effective duration satisfying the preset wireless communication signal strength condition and a second effective duration satisfying the preset WIFI signal strength condition are obtained; if both the first effective duration and the second effective duration are not less than the preset duration threshold, it is determined that the signal strength data satisfies the preset WIFI connection condition.
[0064] Specifically, within a certain duration range, the signal strength of wireless communication at the current moment and the WIFI signal strength are obtained at a fixed frequency, and the values not less than the wireless communication signal strength threshold and the WIFI signal strength threshold are respectively screened out, so as to obtain a first effective duration satisfying the preset wireless communication signal strength condition and a second effective duration satisfying the preset WIFI signal strength condition.
[0065] Step S43, when the first terminal 51 determines that the signal strength data satisfies the preset WIFI connection condition, the WIFI connection parameters are sent to the second terminal 52.
[0066] Specifically, the WIFI connection parameters include the WIFI password. In an embodiment, the WIFI connection parameters may also but are not limited to include the WIFI network identifier (Service Set Identifier, SSID).
[0067] Step S43, the second terminal 52 receives the WIFI connection parameters sent by the first terminal 51 and connects to the corresponding WIFI hotspot through the WIFI connection parameters.
[0068] Specifically, when the WIFI connection parameters do not include the WIFI network identifier, the second terminal 52 needs to scan the WIFI list and pair the WIFI password with the WIFI network identifiers in the WIFI list one by one until both the WIFI network identifier and the WIFI password match to connect to the corresponding WIFI hotspot.
[0069] In an embodiment of the present application, after the WIFI connection parameters are sent to the second terminal 52, the second terminal 52 may but is not limited to directly connecting to the corresponding WIFI hotspot using the WIFI connection parameters, so as to connect to the WIFI hotspot more conveniently.
[0070] Furthermore, the WIFI connection method further includes: Receive the screen status information and the WIFI switch status information sent by the second terminal 52 through wireless communication; if the screen status information and the WIFI switch status information do not meet the preset WIFI connection conditions, stop sending the WIFI connection parameters to the second terminal 52.
[0071] It can be understood that when the screen of the second terminal is in the lit state and the WIFI switch is in the on state, it is determined that the preset WIFI connection conditions are met, and the second terminal can connect to the WIFI hotspot normally.
[0072] In this embodiment, the above wireless communication connection is a Bluetooth connection.
[0073] Among them, the above wireless communication can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code division multiple access (W-CDMA), Code division access (CDMA), time division multiple access (TDMA), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, and may even include those protocols that have not been developed yet.
[0074] Preferably, the Bluetooth technology used in the wireless communication of this application is Bluetooth Low Energy (also known as Bluetooth LE, BLE, old trademark Bluetooth Smart), also known as low-power Bluetooth. It is a personal area network technology designed and sold by the Bluetooth Special Interest Group. Compared with classic Bluetooth, low-power Bluetooth aims to significantly reduce power consumption and cost while maintaining the same communication range, thereby reducing the power consumption of the terminal connecting to the WIFI hotspot.
[0075] It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided by the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, as is known to those of ordinary skill in the art, with the evolution of the system architecture and the emergence of new service scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.
[0076] The WIFI connection method of the present application can determine whether the second terminal 52 meets the preset WIFI connection conditions according to the received signal strength data, and after determining that it meets the conditions, send WIFI connection parameters to the second terminal 52 to enable the second terminal 52 to automatically connect to the WIFI hotspot; in addition, it also determines whether to stop sending the WIFI connection parameters to the second terminal 52 according to the received screen status information and WIFI switch status information. When the signal strength data meets the conditions, it automatically connects to the WIFI hotspot, which is convenient to operate and saves the energy consumption of the terminal, thereby improving the user experience.
[0077] Please refer to Figure 6 , which is a schematic structural diagram of the WIFI connection system provided by the second embodiment of the present application. As Figure 6 shown, the WIFI connection system 60 includes a first terminal 61 and a second terminal 62.
[0078] Among them, the first terminal 61 is used to establish a wireless communication connection with the second terminal 62, receive the signal strength data sent by the second terminal 62 through wireless communication, and when it is determined that the signal strength data meets the preset WIFI connection conditions, send the WIFI connection parameters to the second terminal 62; the second terminal 62 is used to establish a wireless communication connection with the first terminal 61, send the signal strength data to the first terminal 61, and receive the WIFI connection parameters sent by the first terminal 61, and then connect to the corresponding WIFI hotspot through the WIFI connection parameters.
[0079] Among them, for the specific structures of the first terminal 610 and the second terminal 620, please refer to Figure 1 , which will not be elaborated here.
[0080] The WIFI connection method, the first terminal, the second terminal and the WIFI connection system of the present application can automatically connect to the WIFI hotspot when the signal strength data meets the conditions, which is convenient to operate and saves the energy consumption of the terminal, thereby improving the user experience.
[0081] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0082] The steps in the method of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.
[0083] The units in the devices of the embodiments of the present application can be combined, divided and deleted according to actual needs.
[0084] In this application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only the first occurrence is described in detail. When it appears repeatedly later, for the sake of brevity, it is generally not described again. When understanding the technical solutions and other contents of this application, for the same or similar term concepts, technical solutions, and / or application scenario descriptions that are not described in detail later, reference can be made to the relevant detailed descriptions before them.
[0085] In this application, the descriptions of the various embodiments each have their own emphases. For the parts not described in detail or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0086] The technical features of the technical solutions of this application can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope recorded in this application.
[0087] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solutions of this application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of this application.
[0088] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a storage disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.
[0089] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A WIFI connection method, characterized in that, The WIFI connection method is applied between a first terminal and a second terminal. The WIFI connection method includes: S41, establishing a wireless communication connection between the first terminal and the second terminal; S42, the second terminal sending signal strength data to the first terminal through the wireless communication; S43, when the first terminal determines that the signal strength data meets the preset WIFI connection condition, sending WIFI connection parameters to the second terminal; S44, receiving the WIFI connection parameters sent by the first terminal through the second terminal, and connecting to the corresponding WIFI hotspot through the WIFI connection parameters.
2. The WIFI connection method according to claim 1, characterized in that, The wireless communication is Bluetooth. The signal strength data includes the signal strength of the wireless communication within a preset time range and the WIFI signal strength detected by the second terminal within the preset time range.
3. The WIFI connection method according to claim 2, wherein The signal strength data meeting the preset WIFI connection condition includes: Based on the signal strength of the wireless communication and the WIFI signal strength, obtaining a first effective duration that meets the preset wireless communication signal strength condition and a second effective duration that meets the preset WIFI signal strength condition; If both the first effective duration and the second effective duration are not less than a preset duration threshold, it is determined that the signal strength data meets the preset WIFI connection condition.
4. The WIFI connection method according to claim 3, wherein, The obtaining of the first effective duration that meets the preset wireless communication signal strength condition and the second effective duration that meets the preset WIFI signal strength condition includes: Within a preset time range, obtaining the signal strength of the wireless communication and the WIFI signal strength according to a preset sampling frequency, and respectively screening out the values not less than the preset wireless communication signal strength threshold and the preset WIFI signal strength threshold, so as to obtain the first effective duration that meets the preset wireless communication signal strength condition and the second effective duration that meets the preset WIFI signal strength condition.
5. The WIFI connection method according to claim 1, characterized in that The WIFI connection parameters include a WIFI password and a WIFI network identifier; The connecting to the corresponding WIFI hotspot through the WIFI connection parameters includes: Searching for the corresponding routing device through the WIFI network identifier, and sending a connection request including the WIFI password to the routing device to establish a connection with the routing device as the WIFI hotspot.
6. The WIFI connection method according to claim 1, wherein The WIFI connection method further includes: The second terminal sending screen status information and WIFI switch status information to the first terminal through the wireless communication; If at least one of the screen status information and the WIFI switch status information does not meet the preset WIFI connection condition, stop sending the WIFI connection parameters to the second terminal.
7. The WIFI connection method according to claim 6, characterized in that, The screen status information includes the on / off status of the screen of the second terminal, and the WIFI switch status information includes the on / off status of the WIFI switch module of the second terminal.
8. The WIFI connection method according to claim 7, wherein The not meeting the preset WIFI connection condition includes: If the screen of the second terminal is in an off state, it is determined that the screen status information does not meet the preset WIFI connection condition; if the WIFI switch module of the second terminal is in a closed state, it is determined that the WIFI switch status information does not meet the preset WIFI connection condition.
9. A terminal, characterized in that, The terminal includes: a memory and a processor, wherein an executable program code is stored on the memory, and when the executable program code is executed by the processor, the steps of the WIFI connection method according to any one of claims 1 to 8 are implemented.
10. A readable storage medium, characterized in that, A computer program is stored on the readable storage medium, 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 8 are implemented.