WO2023011289A1 - Wi-fi connection method and apparatus based on location information - Google Patents

Wi-fi connection method and apparatus based on location information Download PDF

Info

Publication number
WO2023011289A1
WO2023011289A1 PCT/CN2022/108293 CN2022108293W WO2023011289A1 WO 2023011289 A1 WO2023011289 A1 WO 2023011289A1 CN 2022108293 W CN2022108293 W CN 2022108293W WO 2023011289 A1 WO2023011289 A1 WO 2023011289A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
information
target
user
login
Prior art date
Application number
PCT/CN2022/108293
Other languages
French (fr)
Chinese (zh)
Inventor
张涛
杨得
漆永强
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023011289A1 publication Critical patent/WO2023011289A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/63Location-dependent; Proximity-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present invention relates to the field of communication technology, in particular to a location information-based Wi-Fi connection method and device.
  • Wi-Fi networks nowadays, when people go to public places, such as shopping malls, airports and other places, there are many Wi-Fi networks, and not all Wi-Fi networks can provide network access services to the public.
  • public places not all Wi-Fi networks are safe and reliable, and not all Wi-Fi networks are official Wi-Fi networks in public places. It is necessary to accurately recommend an official, safe and reliable Wi-Fi network that provides network access services to the public in public places.
  • connecting to Wi-Fi in public places requires users to actively select the corresponding Wi-Fi, and also requires manual connection, including identity verification, such as mobile phone number login verification. There are many processes and interactions, and the user experience is poor.
  • the existing technology cannot guarantee to find an official, safe and reliable Wi-Fi network that provides network access services to the public among many Wi-Fi networks, and not every user has the ability to identify the security of a Wi-Fi network. reliability.
  • the embodiment of this application provides a Wi-Fi connection method and device based on location information, which uses location information to identify user scenarios, and actively recommends official Wi-Fi networks, and at the same time automatically completes the verification and login of Wi-Fi networks, improving Improve the user experience of using Wi-Fi networks in public places.
  • the embodiment of the present application provides a Wi-Fi connection method based on location information, which is applied to an electronic device with a location recognition function.
  • the method includes: acquiring the location information of the user, and sending the location information of the user to to the cloud server; receive at least one official Wi-Fi network information corresponding to the user location information returned by the cloud server; match at least one official Wi-Fi network information with the locally searched Wi-Fi network information, and determine at least one Target Wi-Fi network information; display the first prompt information, wherein the first prompt information is used to prompt the user that at least one target Wi-Fi network can be connected; automatically log in to any target Wi-Fi network in the at least one target Wi-Fi network , and display the login result information, wherein the login result information includes: the name information of the logged-in target Wi-Fi network, the location information corresponding to the target Wi-Fi network, the security information of the target Wi-Fi network, and the second prompt information at least one of; wherein the second prompt information is used to prompt the user to disconnect from the target
  • the Wi-Fi connection method determines whether the user has entered a public place through the acquired user location information.
  • the official Wi-Fi network of the public place is recommended to the user, and the user is prompted whether to log in automatically. After that, the network login will be done automatically. This ensures the security of users logging in to Wi-Fi networks in public places, and improves the user experience of using Wi-Fi networks in public places.
  • acquiring the location information of the user includes: acquiring the location information of the user through GPS.
  • the electronic device held by the user has a GPS positioning function
  • the user's location information can be acquired through the GPS location information.
  • the second prompt information is also used to prompt the user to cancel the automatic login service.
  • the user after logging in the recommended Wi-Fi network for the user, if the user does not want to automatically log in to the Wi-Fi network next time.
  • the user can cancel the automatic login service through the prompt information in the login result, which improves the user experience.
  • automatically logging in to any one of the at least one target Wi-Fi networks includes: automatically logging in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi networks.
  • the electronic device may select a Wi-Fi network with the highest network signal strength from the at least one target Wi-Fi network to automatically log in for the user. The cumbersome operation of the user is avoided, and the user experience is improved.
  • automatic login includes: at least one of account login, one-key login, and SMS login.
  • the method further includes: displaying the determined at least one target Wi-Fi network.
  • displaying the determined at least one target Wi-Fi network includes: when displaying the determined at least one target Wi-Fi network, hiding and displaying other Wi-Fi network information, the other Wi-Fi
  • the network information includes: the local Wi-Fi information searched by the electronic device does not match the at least one official Wi-Fi network returned by the cloud server.
  • the electronic device may also search for other local Wi-Fi networks for display.
  • the target Wi-Fi network can be displayed in the notification bar of the system, and other Wi-Fi networks can be hidden. The user can quickly and intuitively find the target Wi-Fi network, which improves the user experience.
  • displaying at least one target Wi-Fi network further includes: displaying third prompt information, and displaying other hidden Wi-Fi network information by clicking on the third prompt information.
  • the hidden information of other Wi-Fi networks can be displayed by clicking the corresponding "button". the range of options available to the user.
  • displaying at least one target Wi-Fi network includes: displaying a first target Wi-Fi network corresponding to a public place, where the first target Wi-Fi network is at least one target Wi-Fi network corresponding to a public place. - the Wi-Fi network with the highest network signal strength among the Fi networks; or, displaying at least one target Wi-Fi network, and at least one target Wi-Fi network is displayed in descending order of network signal strength.
  • a Wi-Fi network with the highest network signal strength may be determined from the at least one target Wi-Fi network for separate display or priority display.
  • displaying at least one target Wi-Fi network information includes: displaying name information and security information of the target Wi-Fi network; displaying second prompt information, the second prompt information is used to prompt the user to select Automatically log in to the target Wi-Fi network or manually log in to the target Wi-Fi network.
  • the user can quickly identify the security of each Wi-Fi network by displaying the name information and security information of the target Wi-Fi network.
  • displaying at least one target Wi-Fi network also includes: displaying the current location information of the user; wherein, the current location information can be refreshed; when the user performs a refresh operation on the current location information, and refreshes When the subsequent location information changes, send the refreshed location information to the cloud server, and receive the result information returned by the cloud server; based on the result information including at least one target Wi-Fi network information corresponding to the current location information, Updated to display at least one target Wi-Fi network information.
  • the current location information may be refreshed to update the current location information.
  • the location information of the user changes, or the target Wi-Fi network corresponding to the new location information is updated and displayed to the user.
  • any target Wi-Fi network in at least one target Wi-Fi network after automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network, it also includes: when it is detected that the user leaves the public place corresponding to the currently logged-in Wi-Fi network, Disconnect the connected target Wi-Fi network and display a prompt message, which is used to prompt the user to automatically log in to the target Wi-Fi corresponding to the public place when re-entering the public place within a preset time period network.
  • the user when the user leaves the current public place halfway, the current Wi-Fi network connection is temporarily disconnected, but the user's connection information will be retained.
  • the user When the user re-enters the public place within a preset period of time, the user will be automatically connected to the previously connected Wi-Fi network. Among them, it is insensitive to the user to automatically connect to the Wi-Fi network that the user left before. The number of operations for users to connect to the same Wi-Fi network is reduced, and the user experience is improved.
  • any target Wi-Fi network in at least one target Wi-Fi network after automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network, it also includes: obtaining the user's login account information, login address information, and login status information; wherein the login status information Including: any one of automatic login and manual login; storing the acquired user's login account information, login address information and login status information.
  • the user's login account information, login address information and login status information are stored, so that when the user logs in to the same Wi-Fi network next time, the current login method can be determined for the user according to the user's last login operation , no longer need to bother the user.
  • automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network includes: judging whether the user is logging in to the target Wi-Fi network for the first time; Fi network, obtain the login status information of the user's last login to the target Wi-Fi network, and log in to the target Wi-Fi network according to the obtained user login status information.
  • the user when the user needs to log in to a certain Wi-Fi network, it is determined whether the user is logging in to the Wi-Fi network for the first time. When the user is not logging in to the Wi-Fi network for the first time, it can automatically log in to the current Wi-Fi network for the user according to the login method of the user's last login to the Wi-Fi network, and there is no need to bother the user to ask in which way Connect to that Wi-Fi network.
  • the embodiment of the present application provides a Wi-Fi connection method based on location information, which is applied to a cloud server.
  • the method includes: receiving the location information of the user; location range information of public places; when there is a public place whose location range information includes the user's location information, obtain at least one official Wi-Fi network corresponding to the public place, and send at least one official Wi-Fi network to For users, at least one of the official Wi-Fi networks is used by the terminal to automatically log in to the Wi-Fi network.
  • the Wi-Fi connection method provided by the embodiment of the present application, a large number of public places and official Wi-Fi networks corresponding to the public places are pre-stored in the cloud service.
  • the official Wi-Fi network corresponding to the public place is sent to the user.
  • the Wi-Fi network is accurately recommended to the user, which improves the user's experience of using the official Wi-Fi network in public places.
  • the method further includes: acquiring location range information of public places and official Wi-Fi information corresponding to public places; Store them on the cloud server according to the corresponding relationship.
  • the cloud server pre-acquires the location range information of the public place and the official Wi-Fi network information corresponding to the public place.
  • obtaining at least one official Wi-Fi network corresponding to a public place, and sending the obtained at least one official Wi-Fi network to the user includes: setting the network signal strength of the at least one official Wi-Fi network to the highest The Wi-Fi network is returned to the user.
  • the cloud server obtains the official Wi-Fi network where the user is located, it can screen at least one of the obtained official Wi-Fi networks according to the signal strength of the obtained official Wi-Fi network, and then the screened out The official Wi-Fi network is returned to the user, so that the user can directly connect to the official Wi-Fi network returned by the cloud server, which improves the user's experience of using the official Wi-Fi network in public places.
  • the embodiment of the present application provides a Wi-Fi connection system based on location information, which includes an electronic device and a cloud server, and is characterized in that the electronic device is used to obtain user location information and upload the user location information to to the cloud server;
  • the cloud server is used to compare the location information of the user with the location range information of the public places stored on the cloud server; when there is a location range information of a public place that includes the user location information, obtain at least one An official Wi-Fi network, and return at least one official Wi-Fi network information to the electronic device; the electronic device is also used to match at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determine At least one target Wi-Fi network information, and display the first prompt information, the first prompt information is used to prompt the user that at least one target Wi-Fi network can be connected; the electronic device is also used to automatically log in at least one target Wi-Fi network, And display the login result information, wherein the login result information includes: the name information of the logged-in target Wi-Fi network, the location information corresponding to the target Wi-Fi network, the security information of the target Wi-Fi network, and at least one of the second prompt information One; wherein, the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network.
  • the electronic device is further configured to acquire location information of the user through GPS.
  • the second prompt information is also used to prompt the user to cancel the automatic login service.
  • automatically logging in to any one of the at least one target Wi-Fi networks includes: automatically logging in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi networks.
  • automatic login includes: at least one of account login, one-key login, and SMS login.
  • the electronic device is further configured to: display at least one target Wi-Fi network.
  • displaying at least one target Wi-Fi network includes: when displaying at least one target Wi-Fi network, hiding and displaying other Wi-Fi network information, and other Wi-Fi network information includes: an electronic device A Wi-Fi network that does not match at least one official Wi-Fi network returned by the cloud server in the searched local Wi-Fi information.
  • displaying at least one target Wi-Fi network further includes: displaying third prompt information, and displaying other hidden Wi-Fi network information by clicking on the third prompt information.
  • displaying the at least one target Wi-Fi network includes: displaying a first target Wi-Fi network corresponding to a public place, where the first target Wi-Fi network is at least one target Wi-Fi network corresponding to a public place The Wi-Fi network with the highest network signal strength among the Wi-Fi networks; or, at least one target Wi-Fi network is displayed, and the at least one target Wi-Fi network is displayed in descending order of network signal strength.
  • displaying at least one target Wi-Fi network information includes: displaying name information and security information of the target Wi-Fi network; displaying second prompt information, the second prompt information is used to prompt the user to select Automatically log in to the target Wi-Fi network or manually log in to the target Wi-Fi network.
  • displaying at least one target Wi-Fi network further includes:
  • the refreshed location information is sent to the cloud server, and the result information returned by the cloud server is received; based on the result information including at least one
  • the target Wi-Fi network information corresponding to the information is updated to display at least one target Wi-Fi network information.
  • the electronic device is further configured to: disconnect the connected target Wi-Fi network and display a prompt message when it is detected that the user leaves the public place corresponding to the currently logged-in Wi-Fi network.
  • the prompt information is used to prompt the user to automatically log in to the target Wi-Fi network corresponding to the public place when re-entering the public place within a preset time period.
  • the electronic device is also used to: obtain the user's login account information, login address information, and login status information; wherein, the login status information includes: any one of automatic login and manual login; The login account information, login address information, and login status information of the user are stored.
  • automatically logging in to any one of the target Wi-Fi networks in the at least one target Wi-Fi network includes: judging whether the user is logging in to the target Wi-Fi network for the first time; The Wi-Fi network obtains the login status information of the user's last login to the target Wi-Fi network, and logs in to the target Wi-Fi network according to the obtained user login status information.
  • the cloud server is also used to: when there is a location range information of a public place that includes user location information, obtain at least one official Wi-Fi network corresponding to the public place, and connect at least one official Wi-Fi network
  • the Wi-Fi network with the highest network signal strength in the network is returned to the electronic device as the second Wi-Fi network; the electronic device is also used to: match the second Wi-Fi network with the locally searched Wi-Fi network, when the local When there is a Wi-Fi network matching the second Wi-Fi network among the searched Wi-Fi networks, automatically log in to the second Wi-Fi network, and display a login result.
  • the cloud server is also used for:
  • the location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
  • the embodiment of the present application provides an electronic device, including:
  • At least one memory for storing programs
  • At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the first aspect.
  • the embodiment of the present application provides a cloud server, including:
  • At least one memory for storing programs
  • At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the second aspect.
  • the embodiment of the present application provides a computer storage medium, and instructions are stored in the computer storage medium, and when the instructions are run on the computer, the computer is made to execute the method provided in the first aspect, or execute the method in the second aspect. provided method.
  • the embodiment of the present application provides a computer program product containing instructions, which, when the instructions are run on a computer, cause the computer to execute the method provided in the first aspect, or execute the method provided in the second aspect.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the architecture of an operating system in an electronic device provided in an embodiment of the present application
  • FIG. 4a and FIG. 4b are schematic diagrams of a scenario of automatically logging in to a Wi-Fi network provided by an embodiment of the present application;
  • FIG. 5a and FIG. 5b are schematic diagrams of another automatic login Wi-Fi network scenario provided by the embodiment of the present application.
  • Figure 6a to Figure 6c are schematic diagrams of scenarios of various automatic login Wi-Fi networks provided by the embodiment of the present application.
  • FIG. 7a and FIG. 7b are schematic diagrams of a display interface of an available Wi-Fi list provided by an embodiment of the present application.
  • FIG. 8a and FIG. 8b are schematic diagrams of another display interface of an available Wi-Fi list provided by the embodiment of the present application.
  • FIGS. 9a to 9e are schematic diagrams of scenes showing hidden Wi-Fi networks provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a display interface including a Wi-Fi network recommended to a user provided by an embodiment of the present application
  • FIG. 11 is a schematic diagram of a notification message display interface provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another notification message display interface provided by the embodiment of the present application.
  • Fig. 13 is a flow chart of a Wi-Fi connection method based on location information provided by an embodiment of the present application
  • Fig. 14 is a flowchart of another Wi-Fi connection method based on location information provided by the embodiment of the present application.
  • Fig. 15 is a flowchart of another Wi-Fi connection method based on location information provided by the embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a cloud server provided by an embodiment of the present application.
  • any embodiment or design scheme of "exemplary”, “for example” or “for example” should not be understood as being more preferred or more advantageous than other embodiments or design schemes . Rather, the use of words such as “exemplary”, “for example” or “for example” is intended to present related concepts in a specific manner.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • FIG. 1 is a diagram of an application scenario provided by an embodiment of the present application.
  • the electronic device 100 performs information exchange with a cloud server.
  • the cloud server stores location range information of public places and official Wi-Fi network information corresponding to the location range information.
  • the electronic device 100 held by the user sends the obtained user location information to the cloud server, and the cloud server compares the received user location information with the stored location range information of the public place, and when the user When the location information falls within the location range information of any public place, the cloud server sends the official Wi-Fi network information corresponding to the public place to the electronic device.
  • the electronic device matches the received official Wi-Fi network information with locally searched Wi-Fi network information. And determine at least one target Wi-Fi network therefrom.
  • the location range information of the public place may be GPS range information of the public place
  • the user's location information may be the user's GPS information.
  • the electronic device 100 can be a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a smart TV, a Huawei smart phone, etc. screen and other equipment.
  • Exemplary embodiments of electronic devices include, but are not limited to, electronic devices equipped with iOS, android, Windows, Harmony OS, or other operating systems.
  • the above-mentioned electronic device 100 may also be other electronic devices, such as a laptop computer (laptop) with a touch-sensitive surface (such as a touch panel).
  • the embodiment of the present application does not specifically limit the type of the electronic device.
  • FIG. 2 shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 141, a battery 142, an antenna 1, an antenna 2, and a mobile communication module 150 , a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light Sensor 180L, Bone Conductor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than those shown in the illustrations, or combine certain components or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, peripheral devices such as the camera 193.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship among the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including UWB, wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, WiFi) network), bluetooth (bluetooth, BT), global navigation satellite System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the display screen 194 displays interface content currently output by the system.
  • the interface content is an interface provided by an instant messaging application.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 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, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110.
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the pressure sensor 180A can be used to capture the pressure value generated when the user's finger part touches the display screen, and transmit the pressure value to the processor, so that the processor can identify which finger part the user inputs user action.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, different touch positions may correspond to different operation instructions.
  • the pressure sensor 180A can also calculate the number of touch points according to the detected signal, and transmit the calculated value to the processor, so that the processor can recognize that the user inputs a user operation with a single finger or multiple fingers.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes can be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In some optional embodiments of the present application, the acceleration sensor 180E may be used to capture the acceleration value generated when the user's finger touches the display screen (or the user's finger taps the rear side frame of the electronic device 100), and store the acceleration value The data is transmitted to the processor, so that the processor identifies which finger part the user uses to input the user operation.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to make a call, so as to automatically turn off the display screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it, and the touch operation refers to an operation in which the user's hand, elbow, stylus, etc. touch the display screen 194 .
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the structure illustrated in this application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application layer, application framework layer, Android runtime and system library, and kernel layer from top to bottom. Among them, Huawei's self-developed mobile terminal operating system can also refer to this structure.
  • the application layer can include a series of application packages.
  • the application program package may include application programs (applications, APPs) such as life, video, map, shopping, gallery, calendar, call, navigation, and music.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include an Activity manager, a Window display manager, an application resource manager, a screen transfer module, and the like.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Window window display manager is responsible for window display management, and its main tasks include window display levels, window display coordinates, window display animation effects, etc.
  • the Activity Manager is responsible for the management of the Activity components. Its main tasks include Activity startup management, state management, and life cycle management.
  • Content providers can be used to store and retrieve data and make that data accessible to applications.
  • This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the mobile phone When the user enters any public place for the first time, the mobile phone will send the obtained user location information to the cloud server, and the cloud server will compare the received user location information with the stored location range information of the public place. When arriving within the location range information of any public place, the cloud server sends at least one official Wi-Fi network information corresponding to the public place to the mobile phone. The mobile phone matches at least one official Wi-Fi network information received with locally searched Wi-Fi network information to determine at least one target Wi-Fi network information. Then select a Wi-Fi network from at least one target Wi-Fi network to automatically log in for the user.
  • the login result information includes: name information, security information and prompt information of the Wi-Fi network connected to the current login.
  • the prompt information is used to prompt the user to disconnect the currently connected target Wi-Fi network or cancel the automatic login function by selecting the "Cancel" button on the display interface.
  • a message interface as shown in Figure 4b is displayed on the display interface of the mobile phone, through which the user can choose to disconnect the currently logged-in target Wi-Fi network or choose to close the automatic connection function or choose to disconnect the currently logged-in target Wi-Fi network and close the automatic selection function at the same time.
  • the mobile phone will disconnect the currently connected target Wi-Fi network "Rainbow mall Free Wi-Fi 1 network", but will not turn off the automatic connection function.
  • the user enters the public place again, the user will still be automatically connected to the target Wi-Fi network corresponding to the public place.
  • the mobile phone When the user only chooses to turn off the automatic connection function, the mobile phone will retain the currently connected Wi-Fi network when the automatic connection function is turned off. When the user enters the public place again, the user is no longer automatically logged into the target Wi-Fi network of the public place.
  • the mobile phone when the user enters any public place for the first time, the mobile phone automatically logs in the target Wi-Fi network of the public place for the user by default, and displays the login result to the user.
  • the user can choose whether to continue connecting to the currently connected Wi-Fi network and whether to turn off the automatic connection function according to the displayed login result information.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone.
  • the mobile phone matches at least one official Wi-Fi network information received with the locally searched Wi-Fi network information, and takes the successfully matched local Wi-Fi network information as the target Wi-Fi network information, and then obtains the target Wi-Fi network information from the target Wi-Fi network information.
  • a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network. Users can choose to automatically connect to the recommended target Wi-Fi network by clicking the "Confirm" button in the notification message.
  • the user clicks the "Confirm” button the user is automatically logged into the currently recommended target Wi-Fi network, and the notification result is displayed in the form of a notification message.
  • the current automatic login program is granted the right to read the SIM card information in the mobile phone and the right to receive and read short messages in the mobile phone. authority.
  • the process of automatically logging in the currently recommended target Wi-Fi network for the user is shown in Figure 5b, including steps S501-S503.
  • Step S501 obtaining the mobile phone number of the currently logged-in mobile phone and automatically initiating login verification.
  • the automatic login program in the mobile phone obtains the mobile phone number corresponding to the SIM card by reading the SIM card information of the mobile phone, and uses the mobile phone number as the target mobile phone number to initiate login verification.
  • the mobile phone number corresponding to the SIM card with default mobile data enabled is used as the target mobile phone number by default.
  • the mobile phone number corresponding to the first SIM card will be used as the target mobile phone number by default.
  • Step S502 automatically obtain the verification code information in the verification text message.
  • the mobile phone automatic login program After the mobile phone automatic login program initiates the login verification, it monitors the content in the mobile phone inbox in real time. When a new message arrives in the mobile phone inbox, the mobile phone acquisition program identifies the content of the new message and matches the corresponding verification code.
  • Step S503 according to the obtained mobile phone number and verification code information, automatically log in the currently recommended target Wi-Fi network for the user.
  • the mobile phone automatic login program adopts the login method of the mobile phone number verification code to automatically log in the currently recommended target Wi-Fi network for the user.
  • the login process described in steps S501 to S503 occurs in the background application of the mobile phone and is invisible to the user.
  • a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network.
  • the user chooses to automatically log in to the recommended target Wi-Fi network by clicking the "Confirm" button in the notification message.
  • a login interface as shown in FIG. 6a pops up.
  • click the "Login” button to log in to the currently recommended target Wi-Fi network.
  • the user can also select the option to "autofill verification codes.”
  • the “Autofill Verification Code” option in one possible implementation, after the user enters the mobile phone number and clicks the "Get Verification Code” button, the mobile phone login program will automatically fill in the verification code column on the login interface. Enter the obtained verification information.
  • the verification code text message is received, the verification code text message is displayed on the current login interface as a notification message, And a "copy” button is displayed on the notification message containing the verification code. The user can copy the verification code in the notification message to the clipboard by clicking the "Copy” button, and then paste the verification code to a designated location through a paste operation.
  • a login interface as shown in Figure 6b pops up, and on the login interface as shown in Figure 6b, the user can choose to use a mobile phone number to log in with one key.
  • a login interface as shown in Figure 6c pops up, and on the login interface as shown in Figure 6c, the user can choose to log in through "local number authentication".
  • the login program in the mobile phone judges whether the mobile phone number entered by the user is consistent with the local number by calling the operator's interface.
  • the mobile phone number input by the user is consistent with the local number, log in the target Wi-Fi network for the user. In this way, the user saves the process of waiting for the verification code text message and entering the verification code, and is not affected by the display of the text message network, which simplifies the login process.
  • the user after clicking the "Confirm” button, the user can log in by entering an existing account and password.
  • the user can enter the mobile phone number or email in the account column, the password set in the password column, and click the login button.
  • the mobile phone number or email address entered by the user is used to register, so that the user can directly log in with the registered account number and password next time.
  • the mobile phone when it is detected that the target WI-FI network does not require an account password, the mobile phone directly performs automatic login.
  • the mobile phone may output successful login information.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone.
  • the mobile phone matches the received at least one official Wi-Fi network information with the locally searched Wi-Fi network information, takes the successfully matched local Wi-Fi network information as the target Wi-Fi network information, and displays it.
  • target Wi-Fi networks are preferentially displayed in descending order of signal strength.
  • other Wi-Fi networks that can be used in the public place are also displayed.
  • Wi-Fi networks are displayed after the target Wi-Fi network, and are displayed in the order of displaying free Wi-Fi networks and then displaying paid Wi-Fi networks.
  • the current display interface cannot display all available Wi-Fi networks, it will fail to display Wi-Fi networks on the interface and hide them. Users can click the "More Wi-Fi" button to display other hidden Wi-Fi networks. -Fi network.
  • the user can click on any desired Wi-Fi network on the Wi-Fi display interface to log in.
  • the user chooses to log in to the target Wi-Fi network "Rainbow mall Free Wi-Fi 1" for illustration.
  • a prompt message will pop up on the display interface, prompting the user whether to choose to automatically log in to the "Rainbow mall Free Wi-Fi 1" network .
  • step S501-step S503 which will not be repeated here, or pop up for the user as shown in Figure 6a-
  • the login process of the login interface shown in 6c is the same as that described in FIG. 6a-FIG. 6c, and will not be repeated here.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone.
  • the mobile phone After receiving at least one official Wi-Fi network information sent by the cloud server, the mobile phone will match the received at least one official Wi-Fi network information with the locally searched Wi-Fi network information, and will match the successfully matched local Wi-Fi network information.
  • the network information is used as the target Wi-Fi network information.
  • a target Wi-Fi network may be determined from at least one target Wi-Fi network as a pre-selected Wi-Fi network for display, and then displayed except for the pre-selected Wi-Fi network. Other target Wi-Fi networks other than the Fi network, and finally display other Wi-Fi information found locally.
  • Wi-Fi networks when displaying other Wi-Fi networks, they are displayed in the order of displaying free Wi-Fi networks and then displaying paid Wi-Fi networks.
  • the current display interface cannot display all available Wi-Fi networks, it will fail to display Wi-Fi networks on the interface and hide them. Users can click the "More Wi-Fi button" to display other hidden Wi-Fi networks.
  • -Fi network can be displayed in a floating window.
  • the automatic login process is the same as step S501-step S503, and will not be repeated here.
  • a login interface as shown in Figures 6a-6c pops up for the user, and the login process is the same as that described in Figures 6a-6c, and will not be repeated here.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is to the mobile phone.
  • the mobile phone compares at least one official Wi-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user.
  • a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network.
  • FIG. 9b when the user clicks "show more hidden Wi-Fi", other Wi-Fi is displayed in the form of a floating window.
  • Figure 9c the user selects "CMCC-FREE" in the floating window to log in.
  • the user clicks the "Confirm” button the name and security information of the "CMCC-FREE” network will be displayed at the bottom of the notification bar. After the user clicks Confirm again, the user is automatically logged into the Wi-Fi network.
  • step S501-step S503 the process of automatic login is the same as step S501-step S503, which will not be repeated here, or the login interface shown in Figure 6a- Figure 6c will pop up for the user, and the login process is the same as the description in Figure 6a- Figure 6c, in This will not be repeated here.
  • FIG. 9d it is shown in Figure 9d.
  • the Wi-Fi network currently recommended to the user and other hidden Wi-Fi networks will be displayed to the user in the form of a Wi-Fi list, which will be currently recommended to the user Your Wi-Fi network is displayed on top and is set to be selected by default. Further, the user can select any Wi-Fi network in the Wi-Fi list.
  • the user selects any Wi-Fi network and clicks the "Confirm” button the user will automatically log in to the Wi-Fi network.
  • step S501-step S503 the process of automatic login is the same as step S501-step S503, which will not be repeated here, or the login interface shown in Figure 6a- Figure 6c will pop up for the user, and the login process is the same as the description in Figure 6a- Figure 6c, in This will not be repeated here.
  • FIG. 9e it is shown in Figure 9e.
  • the Wi-Fi network currently recommended to the user and other hidden Wi-Fi networks will be displayed to the user in the form of a Wi-Fi list, which will be currently recommended to the user Wi-Fi networks are displayed on top.
  • Users can log in by clicking any Wi-Fi network in the Wi-Fi list.
  • the user chooses to log in to "Rainbow mall Free Wi-Fi 1".
  • the interface shown in Figure 7b is displayed. The login process is the same as the description of Fig. 7b, and will not be repeated here.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone.
  • the mobile phone compares at least one official WI-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user.
  • the current location information of the user is also displayed. When the user thinks that the currently positioned location information is incorrect, the user may click the "Refresh" button to refresh the current location information.
  • the mobile phone When the user refreshes the current location information, the mobile phone will judge the location information after refreshing. When it is determined that the updated location information has changed, the new location information needs to be sent to the cloud server.
  • the cloud server compares the received new user location information with the stored location range information of public places, and when the user's location information falls within the location range information of any public place, the cloud server At least one official Wi-Fi network information sent to the phone.
  • the mobile phone compares at least one official Wi-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user.
  • the user after the user enters a public place and logs in to the official Wi-Fi of the public place, the user also needs to detect the signal strength of the currently connected Wi-Fi network in real time. When it is detected that the strength of the Wi-Fi to which the user is currently connected is less than the preset threshold, it is considered that the user has left the public place. At this time, it is necessary to disconnect the currently connected Wi-Fi network for the user and start timing. If it is detected that the user re-enters the public place within a preset period of time, the user is automatically logged into the Wi-Fi network that was connected before leaving. In one example, as shown in FIG.
  • the notification message when it is detected that the user has left the current public place, the notification message further includes prompt information, which is used to prompt the user to close the automatic login function by pressing the "Close” button.
  • prompt information which is used to prompt the user to close the automatic login function by pressing the "Close” button.
  • the login information of the Wi-Fi network needs to be saved. Specifically, it includes: the name, login address and login method of the registered Wi-Fi network.
  • the login method includes any one of automatic login and manual login.
  • the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is to the mobile phone.
  • the mobile phone compares at least one official WI-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then at least one target Wi-Fi network is matched with the registered Wi-Fi networks stored in the mobile phone.
  • the login result information is displayed for the user, as shown in FIG. 12 .
  • the notification message shown in FIG. 12 also includes prompt information for prompting the user to close the automatic login function by clicking the "Close” button. After the user clicks the "Close” button, the login method corresponding to the Wi-Fi network will be saved as "Manual Login", that is, when the user enters the public place again, the user will not be automatically logged into the "Rainbow mall Free Wi-Fi 1".
  • matching the at least one target Wi-Fi network with the registered Wi-Fi network stored in the mobile phone includes: matching the Wi-Fi name and the location information of the at least one target Wi-Fi network with the stored The name and registered address of the registered Wi-Fi network are compared.
  • the target Wi-Fi network is determined as the first target Wi-Fi network.
  • all distributed devices related to the electronic device can log in to the same Wi-Fi network.
  • the electronic device 100 is a mobile phone, and distributed devices related to the electronic device include smart watches, tablets, and the like.
  • mobile phones, smart watches and tablets are all logged in with the same Huawei account.
  • the mobile phone When a user enters a public place and automatically logs in to the official Wi-Fi network of the public place through the mobile phone, the mobile phone will store the name and login address of the currently logged-in Wi-Fi network into the Huawei account, and send the same information to the registered Wi-Fi network.
  • Smart watches and tablets with Huawei accounts send notification messages to trigger network updates on smart watches and tablets. After the smart watch and the tablet receive the network update notification, they search for available local Wi-Fi networks again, and match the Wi-Fi network carried in the notification message with the locally searched Wi-Fi network. When there is a Wi-Fi network matching the Wi-Fi network carried in the notification message among the locally searched Wi-Fi networks, automatically log in to the matched Wi-Fi network.
  • a Wi-Fi connection method based on location information is also provided, as shown in FIG. 13 , including:
  • Step S1301 registering the official Wi-Fi network of the public place and the GPS location range information of the public place into the cloud server.
  • Step S1302 acquiring the location information of the user.
  • the location information of the user may be obtained through the GPS of the device held by the user, and the obtained location information of the user may be uploaded to the cloud server.
  • Step S1303 judging whether the user's location information falls within the GPS location range of a public place with an official Wi-Fi network; when the user's location information falls within the GPS location range of a public place with an official Wi-Fi network, Execute step S1304, otherwise end the login process.
  • Step S1304 displaying the official Wi-Fi network information corresponding to the location information in the notification bar.
  • the cloud server acquires at least one official Wi-Fi network information corresponding to the target public place, and sends at least one official Wi-Fi network information to the electronic device held by the user.
  • the electronic device compares the received at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then the determined target Wi-Fi network information is displayed.
  • a Wi-Fi network that needs to be recommended to the user may be determined from at least one target Wi-Fi network for display, and the display result is shown in FIG. 5a.
  • all determined target Wi-Fi networks may also be displayed, and the display results are shown in Fig. 7a and Fig. 8a.
  • the display interface shown in Fig. 7a and Fig. 8a in addition to displaying that the target Wi-Fi network has been determined, other Wi-Fi networks found locally other than the target Wi-Fi network are also displayed.
  • a Wi-Fi network that needs to be recommended to the user may be determined from at least one target Wi-Fi network for display, and other Wi-Fi network information may be hidden for display.
  • FIG. 9a when the user clicks the "show more hidden Wi-Fi" button on the display interface, other hidden Wi-Fi network information is displayed.
  • the hidden Wi-Fi network information may be displayed in a floating window, as shown in FIG. 9b.
  • the Wi-Fi network information to be recommended to the user and other hidden Wi-Fi network information may also be displayed in the form of a Wi-Fi list on the original display window. As shown in FIG.
  • the target Wi-Fi network when displaying in the form of a Wi-Fi list, the target Wi-Fi network is displayed preferentially, and the target Wi-Fi network to be recommended to the user is preselected.
  • the target Wi-Fi network to be recommended to the user is placed at the top of the Wi-Fi network list for display.
  • Step S1305 judging whether the user chooses to automatically log in to the Wi-Fi network; when the user chooses to automatically log in to the Wi-Fi network, execute step S1306, otherwise end the login process.
  • Step S1306 automatically log in the Wi-Fi network for the user.
  • the electronic device determines at least one target Wi-Fi network according to the official Wi-Fi network returned by the cloud server. Select a Wi-Fi network with the highest signal strength from the target Wi-Fi network, and automatically log in the Wi-Fi network with the highest signal strength for the user.
  • the login result information shown in Figure 4a is displayed.
  • the login result information includes: name information, security information and prompt information of the Wi-Fi network connected to the current login.
  • the prompt information is used to prompt the user to disconnect the currently connected target Wi-Fi network or cancel the automatic login function by selecting the "Cancel" button on the display interface.
  • the electronic device determines a first target Wi-Fi network from at least one target Wi-Fi network as a Wi-Fi network that needs to be recommended to the user, and displays a notification message below the notification bar.
  • the message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network.
  • click the "confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
  • the electronic device displays at least one target Wi-Fi network acquired and other Wi-Fi networks found locally but not matched with the official Wi-Fi network returned by the cloud server. As shown in Fig. 8b and Fig. 9b, click the Wi-Fi network in the notification message or the "Confirm" button to select the Wi-Fi network to log in to log in.
  • the user's location information is used to identify the user's scene, and the official Wi-Fi network is actively recommended, and at the same time, the verification and login of the Wi-Fi network is automatically completed, so as to improve the experience of using the Wi-Fi network in public places.
  • a Wi-Fi connection method based on location information is also provided, as shown in Figure 14, including:
  • Step S1401 acquiring the location information of the user, and recommending to the user an official Wi-Fi network in a public place where the user is located according to the location information of the user.
  • the location information of the user may be acquired through the GPS location information of the electronic device held by the user.
  • Step S1402 judging whether the user is logging into the official Wi-Fi network of the current public place for the first time; when the user is logging into the official Wi-Fi network of the public place for the first time, go to step S1403, otherwise go to step S1404.
  • Step S1403 recommending an official Wi-Fi network in the current location for the user, and determining whether to automatically log in to the Wi-Fi network according to the user's choice.
  • step S1304-step S1306 Same, no more details here.
  • Step S1404 obtaining the login method information of the user's last login, and logging the user into the official Wi-Fi network at the current location according to the login method of the last login.
  • Step S1405 judging whether the user logged in automatically last time.
  • execute step S1406 otherwise execute step S1407.
  • Step S1406 according to the location information of the user, automatically log in the official Wi-Fi network at the current location for the user.
  • the cloud server Comparing the obtained location information of the user with the location range information of the public place stored in the cloud server, when there is a location range information of a public place including the location information of the cloud server, the cloud server obtains at least one corresponding to the target public place Official Wi-Fi network information, and at least one official Wi-Fi network information is sent to the electronic device held by the user.
  • the electronic device compares the received at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom.
  • matching at least one target Wi-Fi network with the registered Wi-Fi network stored in the mobile phone includes: matching the Wi-Fi name and the location information of at least one target Wi-Fi network with the stored registered Wi-Fi network The name and login address of the Wi-Fi network are compared. When the name and the location information of a target Wi-Fi network in at least one target Wi-Fi are the same as the name and login address of any Wi-Fi network in the stored Wi-Fi networks that have been logged in, It is determined that the user is not logging in to the Wi-Fi network of the current public place for the first time.
  • the target Wi-Fi network is determined as the first target Wi-Fi network, and the login method when the user logs in to the first target Wi-Fi network last time is obtained. Then log in the first target Wi-Fi network with the same login method as the last login method. Or log in to any one of the at least one target Wi-Fi network in the same way as the last time you logged in.
  • Step S1407 recommending an official Wi-Fi network in the current location for the user, but not automatically logging in.
  • a safe, reliable and automatic Wi-Fi network connection mode is provided for the user.
  • the user enters a public place it is judged whether the user enters the public place for the first time.
  • the login method of the official Wi-Fi network corresponding to the public place when the user entered the public place last time is obtained. If the user entered the public place last time and chose to automatically log in to the official Wi-Fi network corresponding to the public place, then the next time the user enters the public place, the official Wi-Fi network corresponding to the public place will be automatically selected for the user , there is no need to bother the user to ask whether to automatically connect to the Wi-Fi network.
  • a Wi-Fi connection method based on location information is also provided, as shown in FIG. 15 , including:
  • Step S1501 acquiring location range information of a public place and official Wi-Fi information corresponding to the public place.
  • step S1502 the location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
  • Step S1503 receiving location information of the user.
  • Step S1504 compare the location information of the user with the location range information of the public place stored on the cloud server, and when there is a location range information of a public place that includes the user's location information, obtain at least one official Wi- Fi network and send at least one official Wi-Fi network to the user.
  • the embodiments of the present application further provide an electronic device.
  • the electronic device 100 includes: a collection unit 1001 , a processing unit 1002 , a display unit 1003 , a login unit 1004 , and a storage unit 1005 .
  • the collecting unit 1001 is configured to collect the location information of the user, and send the collected location information of the user to the cloud server.
  • the processing unit 1002 is configured to match the locally searched Wi-Fi network information with at least one official Wi-Fi network information returned by the cloud server, and determine at least one target Wi-Fi network information.
  • the display unit 1003 is configured to display at least one target Wi-Fi network information, as shown in Fig. 5a, Fig. 6a, Fig. 6b, and Fig. 6c. Further, the display unit 1003 is further configured to receive an operation performed by the user on the displayed at least one target Wi-Fi network. As shown in Figure 5a, Figure 6a, Figure 6b, and Figure 6c, click the "Confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
  • the login unit 1004 is used for logging in the selected Wi-Fi network according to the user's selection.
  • the login information of the Wi-Fi network needs to be saved in the storage unit 1005 .
  • the login information that needs to be saved includes: the name, login address, and login method of the logged-in Wi-Fi network.
  • the login method includes any one of automatic login and manual login.
  • the processing unit 1002 determines a Wi-Fi network with the highest signal strength from the at least one target Wi-Fi network as the first target Wi-Fi network. Then, the user is automatically logged into the first target Wi-Fi network, and the display unit 1003 displays the login result information as shown in FIG. 4a.
  • the login result information includes: at least one of name information of the target Wi-Fi network or location information corresponding to the target Wi-Fi network, security information of the target Wi-Fi network, and second prompt information.
  • the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network or close the automatic login service.
  • the electronic device 100 further includes a timing unit, which determines that the user has left the public place when it detects that the strength of the Wi-Fi to which the user is currently connected is less than a preset threshold. At this time, it is necessary to disconnect the currently connected Wi-Fi network for the user, and start timing through the timing unit. If it is detected that the user re-enters the public place within a preset period of time, the user is automatically logged into the Wi-Fi network that was connected before leaving.
  • a timing unit which determines that the user has left the public place when it detects that the strength of the Wi-Fi to which the user is currently connected is less than a preset threshold. At this time, it is necessary to disconnect the currently connected Wi-Fi network for the user, and start timing through the timing unit. If it is detected that the user re-enters the public place within a preset period of time, the user is automatically logged into the Wi-Fi network that was connected before leaving.
  • the embodiments of the present application further provide a cloud server.
  • the cloud server 200 includes: a collection unit 2001 , a processing unit 2002 , and a storage unit 2003 .
  • the collection unit 2001 is used to collect the location range information of the public place and the official Wi-Fi information corresponding to the public place, and combine the collected location range information of the public place and the official Wi-Fi information corresponding to the public place according to the corresponding relationship Stored in the storage unit 2002.
  • the collection unit 2001 is also configured to receive the user location information sent by the electronic device 100 , and send the user location information to the processing unit 2002 .
  • the processing unit 2002 is configured to compare the location information of the user with the location range information of public places stored on the cloud server.
  • the location range information of a public place includes the user's location information
  • at least one official Wi-Fi network corresponding to the public place is acquired, and the at least one official Wi-Fi network is sent to the electronic device 100 .
  • the embodiment of the present application also provides a Wi-Fi connection system based on location information, including: an electronic device 100 as shown in FIG. 16 and a cloud server 200 as shown in FIG. 17 .
  • the electronic device 100 is configured to obtain the location information of the user, and upload the obtained location information of the user to the cloud server 200 .
  • the cloud server 200 After the cloud server 200 receives the user location information sent by the electronic device 100 , it compares the user location information with the location range information of public places stored on the cloud server 200 . When the location range information of a public place includes the user's location information, at least one official Wi-Fi network corresponding to the public place is obtained, and the at least one official Wi-Fi network is returned to the electronic device 100 .
  • the electronic device 100 matches at least one official Wi-Fi network received from the cloud server 200 with locally searched Wi-Fi networks to determine at least one target Wi-Fi network. Then display the target Wi-Fi network, log in to any one of at least one target Wi-Fi network according to the user's selection, and display the login result.
  • the electronic device 100 determines a Wi-Fi network with the highest signal strength from the at least one target Wi-Fi network as the first target Wi-Fi network. Then automatically log in the first target Wi-Fi network for the user, and display the log-in result information as shown in FIG. 4a.
  • the login result information includes: at least one of name information of the target Wi-Fi network or location information corresponding to the target Wi-Fi network, security information of the target Wi-Fi network, and second prompt information.
  • the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network or close the automatic login service.
  • the electronic device determines a first target Wi-Fi network from at least one target Wi-Fi network as a Wi-Fi network that needs to be recommended to the user, and displays a notification message below the notification bar, the notification The message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network.
  • click the "confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
  • the electronic device displays at least one target Wi-Fi network acquired and other Wi-Fi networks found locally but not matched with the official Wi-Fi network returned by the cloud server. As shown in Fig. 8b and Fig. 9b, click the Wi-Fi network in the notification message or the "Confirm" button to select the Wi-Fi network to log in to log in.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may 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 the computer, the processes or functions according to the embodiments of the present application will be 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 may be stored in or transmitted via a computer-readable storage medium.
  • the computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided in the present invention are a Wi-Fi connection method and apparatus based on location information. The method may comprise: acquiring location information of a user, and sending the location information of the user to a cloud server; receiving at least one piece of official Wi-Fi network information that is returned by the cloud server and corresponds to the location information of the user; matching the at least one piece of official Wi-Fi network information with locally found Wi-Fi network information, and determining at least one piece of target Wi-Fi network information; displaying first prompt information, wherein the first prompt information is used for prompting the user that there is at least one target Wi-Fi network to which the user can connect; and automatically logging in to any target Wi-Fi network among the at least one target Wi-Fi network, and displaying login result information. An official Wi-Fi network of a public place in which a user is located is acquired by means of location information of the user, the acquired official Wi-Fi network is actively recommended to the user, and the verification and login for the Wi-Fi network are also completed, thereby improving the experience of the user when using the Wi-Fi network of the public place.

Description

一种基于位置信息的Wi-Fi连接方法及装置A Wi-Fi connection method and device based on location information
本申请要求在2021年8月06日提交中国国家知识产权局、申请号为202110904401.X,发明名称为“一种基于位置信息的Wi-Fi连接方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110904401.X and the title of the invention "A Wi-Fi connection method and device based on location information" submitted to the State Intellectual Property Office of China on August 06, 2021. The entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种基于位置信息的Wi-Fi连接方法及装置。The present invention relates to the field of communication technology, in particular to a location information-based Wi-Fi connection method and device.
背景技术Background technique
现如今,人们到了公共场所,如商场、机场等地方有很多Wi-Fi网络,并不是所有的Wi-Fi网络可以对大众提供网络接入服务。在公共场所,不是所有Wi-Fi网络都是安全可靠,不是所有的Wi-Fi网络都是该公共场所官方Wi-Fi网络。需要在公共场所能准确的推荐一个官方的、安全可靠的,对大众提供网络接入服务的Wi-Fi网络。同时在公共场所中连接Wi-Fi需要用户主动去选择对应Wi-Fi,还需要手动连接,包括身份验证,如手机号登陆验证,流程和交互比较多,而且用户体验差。Nowadays, when people go to public places, such as shopping malls, airports and other places, there are many Wi-Fi networks, and not all Wi-Fi networks can provide network access services to the public. In public places, not all Wi-Fi networks are safe and reliable, and not all Wi-Fi networks are official Wi-Fi networks in public places. It is necessary to accurately recommend an official, safe and reliable Wi-Fi network that provides network access services to the public in public places. At the same time, connecting to Wi-Fi in public places requires users to actively select the corresponding Wi-Fi, and also requires manual connection, including identity verification, such as mobile phone number login verification. There are many processes and interactions, and the user experience is poor.
进一步地,现有技术无法保证在众多Wi-Fi网络中找到官方的安全可靠的且对大众提供网络接入服务的Wi-Fi网络,不是每个用户都有能力去鉴别Wi-Fi网络的安全可靠性。Furthermore, the existing technology cannot guarantee to find an official, safe and reliable Wi-Fi network that provides network access services to the public among many Wi-Fi networks, and not every user has the ability to identify the security of a Wi-Fi network. reliability.
发明内容Contents of the invention
本申请实施例提供了一种基于位置信息的Wi-Fi连接方法及装置,利用位置信息来识别用户场景,并主动推荐官方的Wi-Fi网络,同时自动完成Wi-Fi网络的验证登陆,提高了用户使用公共场所Wi-Fi网络的体验。The embodiment of this application provides a Wi-Fi connection method and device based on location information, which uses location information to identify user scenarios, and actively recommends official Wi-Fi networks, and at the same time automatically completes the verification and login of Wi-Fi networks, improving Improve the user experience of using Wi-Fi networks in public places.
第一方面,本申请实施例提供了一种基于位置信息的Wi-Fi连接方法,应用于具有位置识别功能的电子设备上,该方法包括:获取用户的位置信息,并将用户的位置信息发送给云服务器;接收云服务器返回的与用户位置信息相对应的至少一个官方Wi-Fi网络信息;将至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息;显示第一提示信息,其中第一提示信息用于提示用户至少一个目标Wi-Fi网络可以连接;自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络,并显示登录结果信息,其中,登录结果信息包括:已登录的目标Wi-Fi网络的名称信息、目标Wi-Fi网络对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个;其中第二提示信息用于提示用户断开与目标Wi-Fi网络的连接。In the first aspect, the embodiment of the present application provides a Wi-Fi connection method based on location information, which is applied to an electronic device with a location recognition function. The method includes: acquiring the location information of the user, and sending the location information of the user to to the cloud server; receive at least one official Wi-Fi network information corresponding to the user location information returned by the cloud server; match at least one official Wi-Fi network information with the locally searched Wi-Fi network information, and determine at least one Target Wi-Fi network information; display the first prompt information, wherein the first prompt information is used to prompt the user that at least one target Wi-Fi network can be connected; automatically log in to any target Wi-Fi network in the at least one target Wi-Fi network , and display the login result information, wherein the login result information includes: the name information of the logged-in target Wi-Fi network, the location information corresponding to the target Wi-Fi network, the security information of the target Wi-Fi network, and the second prompt information at least one of; wherein the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network.
也就是说,本申请实施例提供的Wi-Fi连接方法,通过获取的用户位置信息来确定用户是否进入到公共场所中。当确定用户进入到公共场所时,根据用户所在公共场所的官方Wi-Fi网络和位置范围信息的对应关系,为用户推荐该公共场所的官方Wi-Fi网络,并提 示用户是否自动登陆,用户确定后,将为自动完成网络登陆。保证了用户在公共场所登录Wi-Fi网络的安全性,提高了用户使用公共场所Wi-Fi网络的体验。That is to say, the Wi-Fi connection method provided in the embodiment of the present application determines whether the user has entered a public place through the acquired user location information. When it is determined that the user has entered a public place, according to the corresponding relationship between the official Wi-Fi network of the public place where the user is located and the location range information, the official Wi-Fi network of the public place is recommended to the user, and the user is prompted whether to log in automatically. After that, the network login will be done automatically. This ensures the security of users logging in to Wi-Fi networks in public places, and improves the user experience of using Wi-Fi networks in public places.
在一个可能的实现方式中,获取用户的位置信息包括:通过GPS获取用户的位置信息。In a possible implementation manner, acquiring the location information of the user includes: acquiring the location information of the user through GPS.
也就是说,当用户持有的电子设备具有GPS定位功能时,可以通过GPS位置信息来获取用户的位置信息。That is to say, when the electronic device held by the user has a GPS positioning function, the user's location information can be acquired through the GPS location information.
在一个可能的实现方式中,第二提示信息还用于提示用户取消自动登录服务。In a possible implementation manner, the second prompt information is also used to prompt the user to cancel the automatic login service.
也就是说,当为用户登录上推荐的Wi-Fi网络以后,如果用户下次不想再自动登录该Wi-Fi网络。用户可以通过登录结果中的提示信息取消该自动登录服务,提高了用户的体验感。That is to say, after logging in the recommended Wi-Fi network for the user, if the user does not want to automatically log in to the Wi-Fi network next time. The user can cancel the automatic login service through the prompt information in the login result, which improves the user experience.
在一个可能的实现方式中,自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:自动登录至少一个目标Wi-Fi网络中网络信号强度最大的一个Wi-Fi网络。In a possible implementation manner, automatically logging in to any one of the at least one target Wi-Fi networks includes: automatically logging in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi networks.
也就是说,当确定至少一个目标Wi-Fi网络以后,电子设备可以从至少一个目标Wi-Fi网络中选择一个网络信号强度最大的Wi-Fi网络为自动为用户登录。避免了用户的繁琐操作,提高了用户的体验感。That is to say, after at least one target Wi-Fi network is determined, the electronic device may select a Wi-Fi network with the highest network signal strength from the at least one target Wi-Fi network to automatically log in for the user. The cumbersome operation of the user is avoided, and the user experience is improved.
在一个可能的实现方式中,自动登录包括:账号登录、一键登录、短信登录中的至少一个。In a possible implementation manner, automatic login includes: at least one of account login, one-key login, and SMS login.
在一个可能的实现方式中,确定至少一个目标Wi-Fi网络信息以后,还包括:将确定的至少一个目标Wi-Fi网络进行显示。In a possible implementation manner, after determining at least one target Wi-Fi network information, the method further includes: displaying the determined at least one target Wi-Fi network.
在一个可能的实现方式中,将确定的至少一个目标Wi-Fi网络进行显示包括:在显示确定的至少一个目标Wi-Fi网络时,隐藏显示其他Wi-Fi网络信息,所述其他Wi-Fi网络信息包括:所述电子设备搜索到的本地Wi-Fi信息中与云服务器返回的至少一个官方Wi-Fi网络不匹配的Wi-Fi网络。In a possible implementation manner, displaying the determined at least one target Wi-Fi network includes: when displaying the determined at least one target Wi-Fi network, hiding and displaying other Wi-Fi network information, the other Wi-Fi The network information includes: the local Wi-Fi information searched by the electronic device does not match the at least one official Wi-Fi network returned by the cloud server.
也就是说,在电子设备确定至少一个目标Wi-Fi网络以后,还可以将确定好的至少一个目标Wi-Fi网络和电子设备搜索到其他本地Wi-Fi网络进行显示。在进行显示时,可以只在系统的通知栏中显示目标Wi-Fi网络,而将其他Wi-Fi网络隐藏。使得用户可以快速直观的找到目标Wi-Fi网络,提高了用户的体验感。That is to say, after the electronic device determines at least one target Wi-Fi network, the determined at least one target Wi-Fi network and the electronic device may also search for other local Wi-Fi networks for display. When displaying, only the target Wi-Fi network can be displayed in the notification bar of the system, and other Wi-Fi networks can be hidden. The user can quickly and intuitively find the target Wi-Fi network, which improves the user experience.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示还包括:显示第三提示信息,通过点击第三提示信息,将隐藏的其他Wi-Fi网络信息进行显示。In a possible implementation manner, displaying at least one target Wi-Fi network further includes: displaying third prompt information, and displaying other hidden Wi-Fi network information by clicking on the third prompt information.
也就是说,当用户需要连接其他Wi-Fi网络时,可以通过点击相应的“按钮”将隐藏的其他Wi-Fi网络信息进行显示,在保证用户优先选择目标Wi-Fi网络的情况下,增加了用户的可选择范围。That is to say, when the user needs to connect to other Wi-Fi networks, the hidden information of other Wi-Fi networks can be displayed by clicking the corresponding "button". the range of options available to the user.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示包括:显示公共场所对应的第一目标Wi-Fi网络,其中第一目标Wi-Fi网络为公共场所对应的至少一个目标Wi-Fi网络中网络信号强度最大的Wi-Fi网络;或者,显示至少一个目标Wi-Fi网络,至少一个目标Wi-Fi网络按照网络信号强度由大到小的顺序进行显示。In a possible implementation manner, displaying at least one target Wi-Fi network includes: displaying a first target Wi-Fi network corresponding to a public place, where the first target Wi-Fi network is at least one target Wi-Fi network corresponding to a public place. - the Wi-Fi network with the highest network signal strength among the Fi networks; or, displaying at least one target Wi-Fi network, and at least one target Wi-Fi network is displayed in descending order of network signal strength.
也就是说,在显示至少一个目标Wi-Fi网络时,可以从至少一个目标Wi-Fi网络中确定出一个网络信号强度最大的Wi-Fi网络进行单独显示或者优先显示。That is to say, when displaying at least one target Wi-Fi network, a Wi-Fi network with the highest network signal strength may be determined from the at least one target Wi-Fi network for separate display or priority display.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络信息进行显示包括:显示目标Wi-Fi网络的名称信息、安全信息;显示第二提示信息,第二提示信息用于提示用户可以 选择自动登录该目标Wi-Fi网络或者手动登录该目标Wi-Fi网络。In a possible implementation manner, displaying at least one target Wi-Fi network information includes: displaying name information and security information of the target Wi-Fi network; displaying second prompt information, the second prompt information is used to prompt the user to select Automatically log in to the target Wi-Fi network or manually log in to the target Wi-Fi network.
也就是说,在显示至少一个目标Wi-Fi网络时,通过显示目标Wi-Fi网络的名称信息、安全信息,可以使得用户可以快速识别每一Wi-Fi网络的安全性。That is to say, when at least one target Wi-Fi network is displayed, the user can quickly identify the security of each Wi-Fi network by displaying the name information and security information of the target Wi-Fi network.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示,还包括:显示用户的当前位置信息;其中,当前位置信息可以进行刷新;当用户对当前位置信息进行刷新操作,且刷新以后的位置信息发生变化时,将刷新以后的位置信息发送给云服务器,并接收云服务器返回的结果信息;基于该结果信息中包括至少一个与当前位置信息相对应的目标Wi-Fi网络信息,更新显示至少一个目标Wi-Fi网络信息。In a possible implementation manner, displaying at least one target Wi-Fi network also includes: displaying the current location information of the user; wherein, the current location information can be refreshed; when the user performs a refresh operation on the current location information, and refreshes When the subsequent location information changes, send the refreshed location information to the cloud server, and receive the result information returned by the cloud server; based on the result information including at least one target Wi-Fi network information corresponding to the current location information, Updated to display at least one target Wi-Fi network information.
也就是说,当用户认为当前的位置信息有误时,可以对当前的位置信息进行刷新,以更新当前的位置信息。当用户的位置信息发生变化以后,或者新的位置信息对应的目标Wi-Fi网络,并更新显示给用户。That is to say, when the user thinks that the current location information is wrong, the current location information may be refreshed to update the current location information. When the location information of the user changes, or the target Wi-Fi network corresponding to the new location information is updated and displayed to the user.
在一个可能的实现方式中,自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络以后,还包括:当检测到用户离开当前已登录的Wi-Fi网络对应的公共场所时,断开已连接的目标Wi-Fi网络,并显示提示信息,该提示信息用于提示用户在预设时间段内重新进入所述公共场所时,将自动登录所述公共场所对应的目标Wi-Fi网络。In a possible implementation, after automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network, it also includes: when it is detected that the user leaves the public place corresponding to the currently logged-in Wi-Fi network, Disconnect the connected target Wi-Fi network and display a prompt message, which is used to prompt the user to automatically log in to the target Wi-Fi corresponding to the public place when re-entering the public place within a preset time period network.
也就是说,当用户在中途离开当前所在的公共场所时,临时断开当前的Wi-Fi网络连接,但会保留用户的连接信息。当用户在预设时间段内重新进入该公共场所时,将自动为用户连接离开之前连接的Wi-Fi网络。其中自动为用户连接离开之前连接的Wi-Fi网络对用户来说是无感的。减少了用户连接同一个Wi-Fi网络的操作次数,提高了用户的体验感。That is to say, when the user leaves the current public place halfway, the current Wi-Fi network connection is temporarily disconnected, but the user's connection information will be retained. When the user re-enters the public place within a preset period of time, the user will be automatically connected to the previously connected Wi-Fi network. Among them, it is insensitive to the user to automatically connect to the Wi-Fi network that the user left before. The number of operations for users to connect to the same Wi-Fi network is reduced, and the user experience is improved.
在一个可能的实现方式中,自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络以后,还包括:获取用户的登录账户信息、登录地址信息和登录状态信息;其中登录状态信息包括:自动登录、手动登录中的任意一个;对获取的用户的登录账户信息、登录地址信息和登录状态信息进行存储。In a possible implementation, after automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network, it also includes: obtaining the user's login account information, login address information, and login status information; wherein the login status information Including: any one of automatic login and manual login; storing the acquired user's login account information, login address information and login status information.
也就是说,将用户的登录账户信息、登录地址信息和登录状态信息进行存储,使得用户在下次登录同一个Wi-Fi网络时,可以根据用户上次的登录操作为用户确定当前登录的登录方式,不再需要打扰用户。That is to say, the user's login account information, login address information and login status information are stored, so that when the user logs in to the same Wi-Fi network next time, the current login method can be determined for the user according to the user's last login operation , no longer need to bother the user.
在一个可能的实现方式中,自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:判断用户是否为首次登录该目标Wi-Fi网络;基于用户不是首次登录该目标Wi-Fi网络,获取用户上次登录该目标Wi-Fi网络的登录状态信息,并根据获取的用户登录状态信息,登录该目标Wi-Fi网络。In a possible implementation manner, automatically logging in to any target Wi-Fi network in at least one target Wi-Fi network includes: judging whether the user is logging in to the target Wi-Fi network for the first time; Fi network, obtain the login status information of the user's last login to the target Wi-Fi network, and log in to the target Wi-Fi network according to the obtained user login status information.
也就是说,在用户需要登录某一个Wi-Fi网络时,判断用户是否为首次登录该Wi-Fi网络。当用户为非首次登录该Wi-Fi网络时,可以自动根据用户上一次登录该Wi-Fi网络的登录方式来为用户登录当前的Wi-Fi网络,不再需要打扰用户去询问以何种方式连接该Wi-Fi网络。That is to say, when the user needs to log in to a certain Wi-Fi network, it is determined whether the user is logging in to the Wi-Fi network for the first time. When the user is not logging in to the Wi-Fi network for the first time, it can automatically log in to the current Wi-Fi network for the user according to the login method of the user's last login to the Wi-Fi network, and there is no need to bother the user to ask in which way Connect to that Wi-Fi network.
第二方面,本申请实施例提供了一种基于位置信息的Wi-Fi连接方法,应用于云服务器上,该方法包括:接收用户的位置信息;将用户的位置信息与云服务器上存储的公共场所的位置范围信息进行比较;当存在一个公共场所的位置范围信息包含该用户的位置信息时,获取该公共场所对应的至少一个官方Wi-Fi网络,并将至少一个官方Wi-Fi网络发 送给用户,其中至少一个官方Wi-Fi网络用于终端进行自动登录Wi-Fi网络。In the second aspect, the embodiment of the present application provides a Wi-Fi connection method based on location information, which is applied to a cloud server. The method includes: receiving the location information of the user; location range information of public places; when there is a public place whose location range information includes the user's location information, obtain at least one official Wi-Fi network corresponding to the public place, and send at least one official Wi-Fi network to For users, at least one of the official Wi-Fi networks is used by the terminal to automatically log in to the Wi-Fi network.
也就是说,本申请实施例提供的Wi-Fi连接方法,云服务中预先存储了大量的公共场所以及该公共场所对应的官方Wi-Fi网络。当云服务器接收的用户信息落在任意一个公共场所的位置范围内时,将该公共场所对应的官方Wi-Fi网络发送给用户。通过利用官方Wi-Fi网络和位置范围信息的对应关系,准确的给用户推荐Wi-Fi网络,提高了用户使用公共场所官方Wi-Fi网络的体验。That is to say, in the Wi-Fi connection method provided by the embodiment of the present application, a large number of public places and official Wi-Fi networks corresponding to the public places are pre-stored in the cloud service. When the user information received by the cloud server falls within the location range of any public place, the official Wi-Fi network corresponding to the public place is sent to the user. By using the corresponding relationship between the official Wi-Fi network and the location range information, the Wi-Fi network is accurately recommended to the user, which improves the user's experience of using the official Wi-Fi network in public places.
在一个可能的实现方式中,该方法还包括:获取公共场所的位置范围信息和公共场所对应的官方Wi-Fi信息;将该公共场所的位置范围信息和公共场所对应的官方Wi-Fi信息,按照对应关系存储到云服务器上。In a possible implementation, the method further includes: acquiring location range information of public places and official Wi-Fi information corresponding to public places; Store them on the cloud server according to the corresponding relationship.
也就是说,云服务器预先获取公共场所的位置范围信息和该公共场所对应的官方Wi-Fi网络信息。That is to say, the cloud server pre-acquires the location range information of the public place and the official Wi-Fi network information corresponding to the public place.
在一个可能的实现方式中,获取公共场所对应的至少一个官方Wi-Fi网络,并将获取的至少一个官方Wi-Fi网络发送给用户包括:将至少一个官方Wi-Fi网络中网络信号强度最大的Wi-Fi网络返回给用户。In a possible implementation manner, obtaining at least one official Wi-Fi network corresponding to a public place, and sending the obtained at least one official Wi-Fi network to the user includes: setting the network signal strength of the at least one official Wi-Fi network to the highest The Wi-Fi network is returned to the user.
也就是说,云服务器在获取到用户所在场所的官方Wi-Fi网络以后,可以对获取的官方Wi-Fi网络的信号强度对获取的至少一个官方Wi-Fi网络进行筛选,然后将筛选出来的官方Wi-Fi网络返回给用户,使得用户可以直接连接云服务器返回的官方Wi-Fi网络,提高了用户使用公共场所官方Wi-Fi网络的体验感。That is to say, after the cloud server obtains the official Wi-Fi network where the user is located, it can screen at least one of the obtained official Wi-Fi networks according to the signal strength of the obtained official Wi-Fi network, and then the screened out The official Wi-Fi network is returned to the user, so that the user can directly connect to the official Wi-Fi network returned by the cloud server, which improves the user's experience of using the official Wi-Fi network in public places.
第三方面,本申请实施例提供了一种基于位置信息的Wi-Fi连接系统,包括电子设备和云服务器,其特征在于,该电子设备,用于获取用户位置信息,并将用户位置信息上传到云服务器;In the third aspect, the embodiment of the present application provides a Wi-Fi connection system based on location information, which includes an electronic device and a cloud server, and is characterized in that the electronic device is used to obtain user location information and upload the user location information to to the cloud server;
该云服务器,用于将所述用户的位置信息与云服务器上存储的公共场所的位置范围信息进行比较;当存在一个公共场所的位置范围信息包含用户位置信息时,获取公共场所对应的至少一个官方Wi-Fi网络,并将至少一个官方Wi-Fi网络信息返回给电子设备;电子设备,还用于将至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息,并显示第一提示信息,该第一提示信息用于提示用户至少一个目标Wi-Fi网络可以连接;电子设备还用于自动登录至少一个目标Wi-Fi网络,并显示登录结果信息,其中登录结果信息包括:已登录的目标Wi-Fi网络的名称信息、目标Wi-Fi网络对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个;其中,第二提示信息用于提示用户断开与所述目标Wi-Fi网络的连接。The cloud server is used to compare the location information of the user with the location range information of the public places stored on the cloud server; when there is a location range information of a public place that includes the user location information, obtain at least one An official Wi-Fi network, and return at least one official Wi-Fi network information to the electronic device; the electronic device is also used to match at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determine At least one target Wi-Fi network information, and display the first prompt information, the first prompt information is used to prompt the user that at least one target Wi-Fi network can be connected; the electronic device is also used to automatically log in at least one target Wi-Fi network, And display the login result information, wherein the login result information includes: the name information of the logged-in target Wi-Fi network, the location information corresponding to the target Wi-Fi network, the security information of the target Wi-Fi network, and at least one of the second prompt information One; wherein, the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network.
在一个可能的实现方式中,电子设备还用于,通过GPS获取用户的位置信息。In a possible implementation manner, the electronic device is further configured to acquire location information of the user through GPS.
在一个可能的实现方式中,第二提示信息还用于提示用户取消自动登录服务。In a possible implementation manner, the second prompt information is also used to prompt the user to cancel the automatic login service.
在一个可能的实现方式中,自动登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:自动登录至少一个目标Wi-Fi网络中网络信号强度最大的一个Wi-Fi网络。In a possible implementation manner, automatically logging in to any one of the at least one target Wi-Fi networks includes: automatically logging in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi networks.
在一个可能的实现方式中,自动登录包括:账号登录、一键登录、短信登录中的至少一个。In a possible implementation manner, automatic login includes: at least one of account login, one-key login, and SMS login.
在一个可能的实现方式中,电子设备还用于:将至少一个目标Wi-Fi网络进行显示。In a possible implementation manner, the electronic device is further configured to: display at least one target Wi-Fi network.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示包括:在显示至少一 个目标Wi-Fi网络时,隐藏显示其他Wi-Fi网络信息,其他Wi-Fi网络信息包括:电子设备搜索到的本地Wi-Fi信息中与所述云服务器返回的至少一个官方Wi-Fi网络不匹配的Wi-Fi网络。In a possible implementation manner, displaying at least one target Wi-Fi network includes: when displaying at least one target Wi-Fi network, hiding and displaying other Wi-Fi network information, and other Wi-Fi network information includes: an electronic device A Wi-Fi network that does not match at least one official Wi-Fi network returned by the cloud server in the searched local Wi-Fi information.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示还包括:显示第三提示信息,通过点击第三提示信息,将隐藏的其他Wi-Fi网络信息进行显示。In a possible implementation manner, displaying at least one target Wi-Fi network further includes: displaying third prompt information, and displaying other hidden Wi-Fi network information by clicking on the third prompt information.
在一个可能的实现方式中,将所述至少一个目标Wi-Fi网络进行显示包括:显示公共场所对应的第一目标Wi-Fi网络,第一目标Wi-Fi网络为公共场所对应的至少一个目标Wi-Fi网络中网络信号强度最大的Wi-Fi网络;或者,显示至少一个目标Wi-Fi网络,至少一个目标Wi-Fi网络按照网络信号强度由大到小的顺序进行显示。In a possible implementation manner, displaying the at least one target Wi-Fi network includes: displaying a first target Wi-Fi network corresponding to a public place, where the first target Wi-Fi network is at least one target Wi-Fi network corresponding to a public place The Wi-Fi network with the highest network signal strength among the Wi-Fi networks; or, at least one target Wi-Fi network is displayed, and the at least one target Wi-Fi network is displayed in descending order of network signal strength.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络信息进行显示包括:显示目标Wi-Fi网络的名称信息、安全信息;显示第二提示信息,第二提示信息用于提示用户可以选择自动登录目标Wi-Fi网络或者手动登录目标Wi-Fi网络。In a possible implementation manner, displaying at least one target Wi-Fi network information includes: displaying name information and security information of the target Wi-Fi network; displaying second prompt information, the second prompt information is used to prompt the user to select Automatically log in to the target Wi-Fi network or manually log in to the target Wi-Fi network.
在一个可能的实现方式中,将至少一个目标Wi-Fi网络进行显示,还包括:In a possible implementation manner, displaying at least one target Wi-Fi network further includes:
显示用户的当前位置信息;其中,当前位置信息可以进行刷新;Display the user's current location information; among them, the current location information can be refreshed;
当用户对当前位置信息进行刷新操作,且刷新以后的位置信息发生变化时,将刷新以后的位置信息发送给云服务器,并接收云服务器返回的结果信息;基于结果信息中包括至少一个与当前位置信息相对应的目标Wi-Fi网络信息,更新显示至少一个目标Wi-Fi网络信息。When the user performs a refresh operation on the current location information, and the refreshed location information changes, the refreshed location information is sent to the cloud server, and the result information returned by the cloud server is received; based on the result information including at least one The target Wi-Fi network information corresponding to the information is updated to display at least one target Wi-Fi network information.
在一个可能的实现方式中,电子设备还用于:当检测到用户离开当前已登录的Wi-Fi网络对应的公共场所时,断开已连接的目标Wi-Fi网络,并显示提示信息,该提示信息用于提示用户在预设时间段内重新进入所述公共场所时,将自动登录该公共场所对应的目标Wi-Fi网络。In a possible implementation, the electronic device is further configured to: disconnect the connected target Wi-Fi network and display a prompt message when it is detected that the user leaves the public place corresponding to the currently logged-in Wi-Fi network. The prompt information is used to prompt the user to automatically log in to the target Wi-Fi network corresponding to the public place when re-entering the public place within a preset time period.
在一个可能的实现方式中,电子设备还用于:获取用户的登录账户信息、登录地址信息和登录状态信息;其中,登录状态信息包括:自动登录、手动登录中的任意一个;对获取的用户的登录账户信息、登录地址信息和登录状态信息进行存储。In a possible implementation, the electronic device is also used to: obtain the user's login account information, login address information, and login status information; wherein, the login status information includes: any one of automatic login and manual login; The login account information, login address information, and login status information of the user are stored.
在一个可能的实现方式中,自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:判断用户是否为首次登录该目标Wi-Fi网络;基于用户不是首次登录该目标Wi-Fi网络,获取用户上次登录该目标Wi-Fi网络的登录状态信息,并根据获取的用户登录状态信息,登录该目标Wi-Fi网络。In a possible implementation manner, automatically logging in to any one of the target Wi-Fi networks in the at least one target Wi-Fi network includes: judging whether the user is logging in to the target Wi-Fi network for the first time; The Wi-Fi network obtains the login status information of the user's last login to the target Wi-Fi network, and logs in to the target Wi-Fi network according to the obtained user login status information.
在一个可能的实现方式中,云服务器还用于:当存在一个公共场所的位置范围信息包含用户位置信息时,获取公共场所对应的至少一个官方Wi-Fi网络,并将至少一个官方Wi-Fi网络中网络信号强度最大的Wi-Fi网络作为第二Wi-Fi网络返回给电子设备;电子设备还用于:将第二Wi-Fi网络与本地搜索到的Wi-FI网络进行匹配,当本地搜索到的Wi-Fi网络中存在与第二Wi-Fi网络匹配的Wi-Fi网络时,自动登录所述第二Wi-Fi网络,并显示登录结果。In a possible implementation manner, the cloud server is also used to: when there is a location range information of a public place that includes user location information, obtain at least one official Wi-Fi network corresponding to the public place, and connect at least one official Wi-Fi network The Wi-Fi network with the highest network signal strength in the network is returned to the electronic device as the second Wi-Fi network; the electronic device is also used to: match the second Wi-Fi network with the locally searched Wi-Fi network, when the local When there is a Wi-Fi network matching the second Wi-Fi network among the searched Wi-Fi networks, automatically log in to the second Wi-Fi network, and display a login result.
在一个可能的实现方式中,云服务器还用于:In a possible implementation, the cloud server is also used for:
获取公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息;Obtain the location range information of a public place and the official Wi-Fi information corresponding to the public place;
将公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息,按照对应关系存储到云服务器上。The location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
第四方面,本申请实施例提供了一种电子设备,包括:In a fourth aspect, the embodiment of the present application provides an electronic device, including:
至少一个存储器,用于存储程序;at least one memory for storing programs;
至少一个处理器,用于执行所述存储器存储的程序,当存储器存储的程序被执行时,处理器用于执行第一方面中所提供的方法。At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the first aspect.
第五方面,本申请实施例提供了一种云服务器,包括:In the fifth aspect, the embodiment of the present application provides a cloud server, including:
至少一个存储器,用于存储程序;at least one memory for storing programs;
至少一个处理器,用于执行存储器存储的程序,当存储器存储的程序被执行时,处理器用于执行第二方面中所提供的方法。At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the second aspect.
第六方面,本申请实施例提供了一种计算机存储介质,计算机存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行第一方面中所提供的方法,或者执行第二方面中所提供的方法。In the sixth aspect, the embodiment of the present application provides a computer storage medium, and instructions are stored in the computer storage medium, and when the instructions are run on the computer, the computer is made to execute the method provided in the first aspect, or execute the method in the second aspect. provided method.
第七方面,本申请实施例提供了一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行第一方面中所提供的方法,或者执行第二方面中所提供的方法。In the seventh aspect, the embodiment of the present application provides a computer program product containing instructions, which, when the instructions are run on a computer, cause the computer to execute the method provided in the first aspect, or execute the method provided in the second aspect.
附图说明Description of drawings
图1为本申请实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图3为本申请实施例中提供的一种电子设备中操作系统的架构示意图;FIG. 3 is a schematic diagram of the architecture of an operating system in an electronic device provided in an embodiment of the present application;
图4a和图4b为本申请实施例提供的一种自动登录Wi-Fi网络的场景示意图;FIG. 4a and FIG. 4b are schematic diagrams of a scenario of automatically logging in to a Wi-Fi network provided by an embodiment of the present application;
图5a和图5b为本申请实施例提供的另一种自动登录Wi-Fi网络的场景示意图;FIG. 5a and FIG. 5b are schematic diagrams of another automatic login Wi-Fi network scenario provided by the embodiment of the present application;
图6a到图6c为本申请实施例提供的多种自动登录Wi-Fi网络的场景示意图;Figure 6a to Figure 6c are schematic diagrams of scenarios of various automatic login Wi-Fi networks provided by the embodiment of the present application;
图7a和图7b为本申请实施例提供的一种可用Wi-Fi列表的显示界面的示意图;FIG. 7a and FIG. 7b are schematic diagrams of a display interface of an available Wi-Fi list provided by an embodiment of the present application;
图8a和图8b为本申请实施例提供的又一种可用Wi-Fi列表的显示界面的示意图;FIG. 8a and FIG. 8b are schematic diagrams of another display interface of an available Wi-Fi list provided by the embodiment of the present application;
图9a到9e为本申请实施例提供的显示隐藏Wi-Fi网络的场景示意图;9a to 9e are schematic diagrams of scenes showing hidden Wi-Fi networks provided by the embodiment of the present application;
图10为本申请实施例提供的一种包含推荐给用户的Wi-Fi网络的显示界面的示意图;FIG. 10 is a schematic diagram of a display interface including a Wi-Fi network recommended to a user provided by an embodiment of the present application;
图11为本申请实施例提供的一种通知消息显示界面示意图;FIG. 11 is a schematic diagram of a notification message display interface provided by an embodiment of the present application;
图12为本申请实施例提供的又一种通知消息显示界面示意图;FIG. 12 is a schematic diagram of another notification message display interface provided by the embodiment of the present application;
图13为本申请实施例提供的一种基于位置信息的Wi-Fi连接方法的流程图;Fig. 13 is a flow chart of a Wi-Fi connection method based on location information provided by an embodiment of the present application;
图14为本申请实施例提供的又一种基于位置信息的Wi-Fi连接方法的流程图;Fig. 14 is a flowchart of another Wi-Fi connection method based on location information provided by the embodiment of the present application;
图15为本申请实施例提供的又一种基于位置信息的Wi-Fi连接方法的流程图;Fig. 15 is a flowchart of another Wi-Fi connection method based on location information provided by the embodiment of the present application;
图16为本申请实施例提供的一种电子设备的结构示意图;FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图17为本申请实施例提供的一种云服务器的结构示意图。FIG. 17 is a schematic structural diagram of a cloud server provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图,对本申请实施例中的技术方案进行描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
在本申请实施例中的描述中,“示例性的”、“例如”或者“举例来说”的任何实施 例或设计方案不应该被理解为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、“例如”或者“举例来说”等词旨在以具体方式呈现相关概念。In the description of the embodiments of the present application, any embodiment or design scheme of "exemplary", "for example" or "for example" should not be understood as being more preferred or more advantageous than other embodiments or design schemes . Rather, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific manner.
在本申请实施例的描述中,属于“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示:单独存在A,单独存在B,同时存在A和B这三种情况。另外,除非另有说明,术语“多个”的含义是指两个或两个以上。例如,多个系统是指两个或两个以上的系统,多个屏幕终端是指两个或两个以上的屏幕终端。In the description of the embodiment of the present application, belonging to "and/or" is only an association relationship describing associated objects, which means that there can be three kinds of relationships, such as A and/or B, which can mean: A exists alone, A exists alone B, there are three situations of A and B at the same time. In addition, unless otherwise specified, the term "plurality" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
图1是本申请实施例提供的一种应用场景图。如图1所示,电子设备100与云服务器进行信息交互。其中,云服务器内存储有公共场所的位置范围信息以及该位置范围信息对应的官方Wi-Fi网络信息。当用户进入到公共场所时,用户持有的电子设备100将获取的用户位置信息发送到云服务器,云服务器将接收到的用户位置信息与存储的公共场所的位置范围信息进行比对,当用户的位置信息落到任意一个公共场所的位置范围信息内时,云服务器将该公共场所对应的官方Wi-Fi网络信息发送到电子设备上。电子设备将接收到的官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配。并从中确定出至少一个目标Wi-Fi网络。在一个例子中,公共场所的位置范围信息可以是公共场所的GPS范围信息,用户的位置信息可以是用户的GPS信息。FIG. 1 is a diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 1 , the electronic device 100 performs information exchange with a cloud server. Wherein, the cloud server stores location range information of public places and official Wi-Fi network information corresponding to the location range information. When the user enters a public place, the electronic device 100 held by the user sends the obtained user location information to the cloud server, and the cloud server compares the received user location information with the stored location range information of the public place, and when the user When the location information falls within the location range information of any public place, the cloud server sends the official Wi-Fi network information corresponding to the public place to the electronic device. The electronic device matches the received official Wi-Fi network information with locally searched Wi-Fi network information. And determine at least one target Wi-Fi network therefrom. In an example, the location range information of the public place may be GPS range information of the public place, and the user's location information may be the user's GPS information.
可以理解的是,本申请实施例中,电子设备100可以为具有Wi-Fi连接功能的手机、平板电脑、数码相机、个人数字助理(personal digitalassistant,PDA)、可穿戴设备、智能电视、华为智慧屏等设备。电子设备的示例性实施例包括但不限于搭载iOS、android、Windows、鸿蒙系统(Harmony OS)或者其他操作系统的电子设备。上述电子设备100也可以是其他电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。本申请实施例对电子设备的类型不做具体限定。It can be understood that, in the embodiment of the present application, the electronic device 100 can be a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a smart TV, a Huawei smart phone, etc. screen and other equipment. Exemplary embodiments of electronic devices include, but are not limited to, electronic devices equipped with iOS, android, Windows, Harmony OS, or other operating systems. The above-mentioned electronic device 100 may also be other electronic devices, such as a laptop computer (laptop) with a touch-sensitive surface (such as a touch panel). The embodiment of the present application does not specifically limit the type of the electronic device.
参见图2,图2示出了本申请实施例提供的示例性电子设备100的结构示意图。Referring to FIG. 2 , FIG. 2 shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户识别模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 141, a battery 142, an antenna 1, an antenna 2, and a mobile communication module 150 , a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light Sensor 180L, Bone Conductor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部 件或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the illustrations, or combine certain components or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MI PI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, peripheral devices such as the camera 193. MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship among the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在 同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括UWB,无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,WiFi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including UWB, wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, WiFi) network), bluetooth (bluetooth, BT), global navigation satellite System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
在本申请的一些实施例中,显示屏194中显示有系统当前输出的界面内容。例如,界 面内容为即时通讯应用提供的界面。In some embodiments of the present application, the display screen 194 displays interface content currently output by the system. For example, the interface content is an interface provided by an instant messaging application.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 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, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器 110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。在本申请一些可选的实施例中,压力传感器180A可用于捕获用户手指部位接触显示屏时生成的压力值,并将该压力值传输给处理器,以使得处理器识别用户通过哪个手指部位输入用户操作。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . In some optional embodiments of the present application, the pressure sensor 180A can be used to capture the pressure value generated when the user's finger part touches the display screen, and transmit the pressure value to the processor, so that the processor can identify which finger part the user inputs user action.
压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于不同触摸位置,可以对应不同的操作指令。在一些可选的实施例中,压力传感器180A还可根据检测到的信号计算触摸点的数量,并将计算值传输给处理器,以使得处理器识别用户通过单指或多指输入用户操作。There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, different touch positions may correspond to different operation instructions. In some optional embodiments, the pressure sensor 180A can also calculate the number of touch points according to the detected signal, and transmit the calculated value to the processor, so that the processor can recognize that the user inputs a user operation with a single finger or multiple fingers.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(电子设备的X轴、Y轴和Z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (X-axis, Y-axis and Z-axis of the electronic device) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。在本申请一些可选的实施例中,加速度传感器180E可用于捕获用户手指部位接触显示屏(或者用户手指敲击电子设备100的后壳后侧边框)时生成的加速度值,并将该加速度值传输给处理器,以使得处理器识别用户通过哪个手指部位输入用户操作。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In some optional embodiments of the present application, the acceleration sensor 180E may be used to capture the acceleration value generated when the user's finger touches the display screen (or the user's finger taps the rear side frame of the electronic device 100), and store the acceleration value The data is transmitted to the processor, so that the processor identifies which finger part the user uses to input the user operation.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭显示屏达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to make a call, so as to automatically turn off the display screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作,该触摸触控操作是指用户手部、手肘、触控笔等接触显示屏194的操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it, and the touch operation refers to an operation in which the user's hand, elbow, stylus, etc. touch the display screen 194 . The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
可以理解的是,本申请示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 100 . In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
图3是本申请实施例的电子设备100的软件结构框图。FIG. 3 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。其中,华为自研发的移动终端操作系统也可以参考该结构。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are application layer, application framework layer, Android runtime and system library, and kernel layer from top to bottom. Among them, Huawei's self-developed mobile terminal operating system can also refer to this structure.
1、应用层1. Application layer
应用层可以包括一系列应用程序包。如图3所示,应用程序包可以包括生活、视频、地图、购物、图库、日历、通话、导航、音乐等应用程序(application,APP)。The application layer can include a series of application packages. As shown in FIG. 3 , the application program package may include application programs (applications, APPs) such as life, video, map, shopping, gallery, calendar, call, navigation, and music.
2、应用程序框架层2. Application framework layer
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括Activity活动管理器、Window窗口显示管理器、应用资源管理器、转屏模块等。As shown in FIG. 3 , the application framework layer may include an Activity manager, a Window display manager, an application resource manager, a screen transfer module, and the like.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
Window窗口显示管理器用于负责窗口的显示管理,主要工作包括窗口显示层级、窗口显示坐标、窗口显示动效等。The Window window display manager is responsible for window display management, and its main tasks include window display levels, window display coordinates, window display animation effects, etc.
Activity活动管理器用于负责Activity组件的管理,主要工作包括Activity启动管理、状态管理、生命周期管理等。The Activity Manager is responsible for the management of the Activity components. Its main tasks include Activity startup management, state management, and life cycle management.
内容提供器可以用来存在和获取数据,并使这些数据可以被应用程序访问。这些数据 可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers can be used to store and retrieve data and make that data accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
3、Android Runtime和系统库3. Android Runtime and system library
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc. 2D graphics engine is a drawing engine for 2D drawing.
4、内核层4. Kernel layer
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
以下实施例中所涉及的技术方案均可以在具有上述硬件架构和软件架构的电子设备100中实现。The technical solutions involved in the following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware architecture and software architecture.
下面以电子设备100是手机为例,结合附图对本申请提供的技术方案进行详细说明。Taking the electronic device 100 as a mobile phone as an example, the technical solution provided by the present application will be described in detail below with reference to the accompanying drawings.
当用户首次进入到任意公共场所时,手机将获取的用户位置信息发送到云服务器,云服务器将接收到的用户位置信息与存储的公共场所的位置范围信息进行比对,当用户的位置信息落到任意一个公共场所的位置范围信息内时,云服务器将该公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上。手机将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息。然后从至少一个目标Wi-Fi网络中选择一个Wi-Fi网络为用户自动登录。登录成功以后在手机的显示界面上显示如图4a所示,包括:在状态栏上显示Wi-Fi图标表示已连接上Wi-Fi,在通知栏的Wi-Fi图标下显示已连接的Wi-Fi名称,以及通过通知消息界面显示登录的结果信息。该登录结果信息包括:当前登录连接的Wi-Fi网络的名称信息、安全信息和提示信息。该提示信息用于提示用户可以通过选择显示界面上的“取消”按钮断开当前已连接的目标Wi-Fi网络或者取消自动登录功能。When the user enters any public place for the first time, the mobile phone will send the obtained user location information to the cloud server, and the cloud server will compare the received user location information with the stored location range information of the public place. When arriving within the location range information of any public place, the cloud server sends at least one official Wi-Fi network information corresponding to the public place to the mobile phone. The mobile phone matches at least one official Wi-Fi network information received with locally searched Wi-Fi network information to determine at least one target Wi-Fi network information. Then select a Wi-Fi network from at least one target Wi-Fi network to automatically log in for the user. After successful login, it will be displayed on the display interface of the mobile phone as shown in Figure 4a, including: displaying the Wi-Fi icon on the status bar to indicate that Wi-Fi is connected, and displaying the connected Wi-Fi icon under the Wi-Fi icon in the notification bar. Fi name, and display the login result information through the notification message interface. The login result information includes: name information, security information and prompt information of the Wi-Fi network connected to the current login. The prompt information is used to prompt the user to disconnect the currently connected target Wi-Fi network or cancel the automatic login function by selecting the "Cancel" button on the display interface.
在一个示例中,如图4b所示,当用户选择“取消”按钮以后,在手机的显示界面上显示如图4b所示的消息界面,用户通过该消息界面可以选择断开当前已登录的目标Wi-Fi网络或者选择关闭自动连接功能或者同时选择断开当前已登录的目标Wi-Fi网络和关闭自动选择功能。In one example, as shown in Figure 4b, when the user selects the "Cancel" button, a message interface as shown in Figure 4b is displayed on the display interface of the mobile phone, through which the user can choose to disconnect the currently logged-in target Wi-Fi network or choose to close the automatic connection function or choose to disconnect the currently logged-in target Wi-Fi network and close the automatic selection function at the same time.
需要说明的是,当用户只选择断开当前已连接的目标Wi-Fi网络时,手机断开当前已 连接的目标Wi-Fi网络“Rainbow mall Free Wi-Fi 1网络”,但是不会关闭自动连接功能。当用户再次进入到该公共场所时,仍然会自动为用户连接该公共场所对应的目标Wi-Fi网络。It should be noted that when the user only chooses to disconnect the currently connected target Wi-Fi network, the mobile phone will disconnect the currently connected target Wi-Fi network "Rainbow mall Free Wi-Fi 1 network", but will not turn off the automatic connection function. When the user enters the public place again, the user will still be automatically connected to the target Wi-Fi network corresponding to the public place.
当用户只选择关闭自动连接功能时,手机在关闭自动连接功能时会保留当前已连接的Wi-Fi网络。当用户再次进入到该公共场所时不再为用户自动登录该公共场所的目标Wi-Fi网络。、When the user only chooses to turn off the automatic connection function, the mobile phone will retain the currently connected Wi-Fi network when the automatic connection function is turned off. When the user enters the public place again, the user is no longer automatically logged into the target Wi-Fi network of the public place. ,
当用户同时选择关闭当前已连接网络和关闭自动连接功能时,在为用户关闭自动连接功能的同时,断开当前已连接的目标Wi-Fi网络。在用户关闭自动登录功能以后,再次进入同一公共场所时,不再为用户自动登录该公共场所的目标Wi-Fi网络。When the user chooses to close the currently connected network and close the automatic connection function at the same time, while the automatic connection function is closed for the user, the currently connected target Wi-Fi network is disconnected. After the user turns off the automatic login function, when entering the same public place again, the user will no longer automatically log in to the target Wi-Fi network of the public place.
在本申请实施例中,在用户首次进入到任意一个公共场所时,手机默认自动为用户登录所在公共场所的目标Wi-Fi网络,并将登录结果显示给用户。用户可以根据显示的登录结果信息选择是否继续连接当前已连接的Wi-Fi网络以及是否需要关闭自动连接功能。提高了用户登录公共场所目标Wi-Fi网络的体验感。In the embodiment of the present application, when the user enters any public place for the first time, the mobile phone automatically logs in the target Wi-Fi network of the public place for the user by default, and displays the login result to the user. The user can choose whether to continue connecting to the currently connected Wi-Fi network and whether to turn off the automatic connection function according to the displayed login result information. Improves the experience of users logging in to target Wi-Fi networks in public places.
在一个可能的实施例中,云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上。手机将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,并将匹配成功的本地Wi-Fi网络信息作为目标Wi-Fi网络信息,然后从目标Wi-Fi网络中选择一个目标Wi-Fi网络作为需要向用户推荐的目标Wi-Fi网络。具体地,如图5a所示,在通知栏下方显示通知消息,该通知消息包括为用户推荐的目标Wi-Fi网络的名称以及该目标Wi-Fi网络的安全信息。用户可通过点击通知消息中的“确认”按钮选择自动连接推荐的目标Wi-Fi网络。In a possible embodiment, the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone. The mobile phone matches at least one official Wi-Fi network information received with the locally searched Wi-Fi network information, and takes the successfully matched local Wi-Fi network information as the target Wi-Fi network information, and then obtains the target Wi-Fi network information from the target Wi-Fi network information. Select a target Wi-Fi network from the Fi network as the target Wi-Fi network to be recommended to the user. Specifically, as shown in FIG. 5a, a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network. Users can choose to automatically connect to the recommended target Wi-Fi network by clicking the "Confirm" button in the notification message.
当用户点击“确认”按钮时,自动为用户登录当前推荐的目标Wi-Fi网络,并以通知消息的方式显示通知结果。When the user clicks the "Confirm" button, the user is automatically logged into the currently recommended target Wi-Fi network, and the notification result is displayed in the form of a notification message.
进一步地,当用户点击“确认”按钮,确定需要自动登录当前推荐的目标Wi-Fi网络时,即授予了当前自动登录程序读取手机中SIM卡信息的权限以及接收和读取手机中短信的权限。其中,为用户自动登录当前推荐的目标Wi-Fi网络的过程如图5b所示,包括步骤S501-S503。Further, when the user clicks the "Confirm" button and determines that the currently recommended target Wi-Fi network needs to be automatically logged in, the current automatic login program is granted the right to read the SIM card information in the mobile phone and the right to receive and read short messages in the mobile phone. authority. Wherein, the process of automatically logging in the currently recommended target Wi-Fi network for the user is shown in Figure 5b, including steps S501-S503.
步骤S501,获取当前登录手机的手机号并自动发起登录验证。Step S501, obtaining the mobile phone number of the currently logged-in mobile phone and automatically initiating login verification.
手机中的自动登录程序通过读取手机的SIM卡信息获取该SIM卡对应的手机号,并该手机号码作为目标手机号码发起登录验证。The automatic login program in the mobile phone obtains the mobile phone number corresponding to the SIM card by reading the SIM card information of the mobile phone, and uses the mobile phone number as the target mobile phone number to initiate login verification.
在一个可能的实施例中,当用户使用的手机中具有2个SIM卡时,默认将开启默认移动数据的SIM卡对应的手机号作为目标手机号码。当手机中的2个SIM卡都未开启移动数据时,默认将第一张SIM卡对应的手机号码作为目标手机号码。In a possible embodiment, when the mobile phone used by the user has two SIM cards, the mobile phone number corresponding to the SIM card with default mobile data enabled is used as the target mobile phone number by default. When the two SIM cards in the mobile phone do not enable mobile data, the mobile phone number corresponding to the first SIM card will be used as the target mobile phone number by default.
步骤S502,自动获取验证短信中的验证码信息。Step S502, automatically obtain the verification code information in the verification text message.
手机自动登录程序在发起登录验证以后,实时监听手机收件箱中内容,手机收件箱中有新消息到达时,手机获取程序对新消息的内容进行识别,并从中匹配出对应的验证码。After the mobile phone automatic login program initiates the login verification, it monitors the content in the mobile phone inbox in real time. When a new message arrives in the mobile phone inbox, the mobile phone acquisition program identifies the content of the new message and matches the corresponding verification code.
步骤S503,根据获取的手机号和验证码信息,自动为用户登录当前推荐的目标Wi-Fi网络。Step S503, according to the obtained mobile phone number and verification code information, automatically log in the currently recommended target Wi-Fi network for the user.
手机自动登录程序采用手机号验证码的登录方式,自动为用户登录当前推荐的目标Wi-Fi网络。The mobile phone automatic login program adopts the login method of the mobile phone number verification code to automatically log in the currently recommended target Wi-Fi network for the user.
在本申请实施例中步骤S501-步骤S503所描述的登录过程是发生在手机后台应用中中,是对用户不可见的。In the embodiment of the present application, the login process described in steps S501 to S503 occurs in the background application of the mobile phone and is invisible to the user.
在另一个可能的实施例中,如图6a所示,在通知栏下方显示通知消息,该通知消息包括为用户推荐的目标Wi-Fi网络的名称以及该目标Wi-Fi网络的安全信息。用户通过点击通知消息中的“确认”按钮选择自动登录已推荐的目标Wi-Fi网络。In another possible embodiment, as shown in FIG. 6a , a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network. The user chooses to automatically log in to the recommended target Wi-Fi network by clicking the "Confirm" button in the notification message.
在一个示例中,用户点击“确认”按钮以后,弹出如图6a所示的登录界面。在如图6a所示的登录界面上,用户在输入手机号以后了,点击“获取验证码”按钮。然后填入接收的验证码以后,点击“登录”按钮,即可登录上当前推荐的目标Wi-Fi网络。In an example, after the user clicks the "Confirm" button, a login interface as shown in FIG. 6a pops up. On the login interface shown in Figure 6a, the user clicks the "Get Verification Code" button after entering the mobile phone number. After filling in the received verification code, click the "Login" button to log in to the currently recommended target Wi-Fi network.
在一个示例中,用户还可以选择“自动填充验证码”选项。当用户选择“自动填充验证码”选项以后,在一种可能的实现方式中,用户输入手机号以后,点击“获取验证码”按钮后,手机登录程序会在登录界面的验证码一栏自动填入获取的验证信息。在另一种可能的实现方式中,用户输入手机号以后,点击“获取验证码”按钮后,在接收到验证码短信时,将该验证码短信以通知消息的方式显示在当前登录界面上,且在该包含验证码的通知消息上显示有“复制”按钮。用户可以通过点击该“复制”按钮,将通知消息中的验证码复制到剪切板上,然后通过粘贴操作将该验证码粘贴到指定位置。In one example, the user can also select the option to "autofill verification codes." After the user selects the "Autofill Verification Code" option, in one possible implementation, after the user enters the mobile phone number and clicks the "Get Verification Code" button, the mobile phone login program will automatically fill in the verification code column on the login interface. Enter the obtained verification information. In another possible implementation, after the user enters the mobile phone number and clicks the "Get Verification Code" button, when the verification code text message is received, the verification code text message is displayed on the current login interface as a notification message, And a "copy" button is displayed on the notification message containing the verification code. The user can copy the verification code in the notification message to the clipboard by clicking the "Copy" button, and then paste the verification code to a designated location through a paste operation.
在一个可能的实施例中,用户点击“确认”按钮以后,弹出如图6b所示的登录界面,在如图6b所示的登录界面上,用户可以选择使用手机号码一键登录。In a possible embodiment, after the user clicks the "Confirm" button, a login interface as shown in Figure 6b pops up, and on the login interface as shown in Figure 6b, the user can choose to use a mobile phone number to log in with one key.
在一个可能的实施例中,用户点击“确认”按钮以后,弹出如图6c所示的登录界面,在如图6c所示的登录界面上,用户可以选择通过“本机号码认证”进行登录。当用户输入本机号码以后,手机中的登录程序通过调用运营商的接口,判断用户输入的手机号是否和本地号码一致。当用户输入的手机号码与本地号码一致时,为用户登录该目标Wi-Fi网络。这样一来,用户就省去了等待验证码短信、输入验证码的过程,也不受短信网络的显示,简化了登录流程。In a possible embodiment, after the user clicks the "Confirm" button, a login interface as shown in Figure 6c pops up, and on the login interface as shown in Figure 6c, the user can choose to log in through "local number authentication". After the user enters the local number, the login program in the mobile phone judges whether the mobile phone number entered by the user is consistent with the local number by calling the operator's interface. When the mobile phone number input by the user is consistent with the local number, log in the target Wi-Fi network for the user. In this way, the user saves the process of waiting for the verification code text message and entering the verification code, and is not affected by the display of the text message network, which simplifies the login process.
在一个可能的实施例中,当点击“确认”按钮以后,用户可以通过输入已有的账号和密码来进行登录。当用户为首次登录时,用户可以在账号一栏输入手机号或邮箱,在密码一栏设定的密码,点击登录按钮以后。在为用户登录推荐的目标Wi-Fi网络的同时,使用用户输入的手机号或邮箱进行注册,使得用户下次可以直接通过以注册的账号和密码进行登录。In a possible embodiment, after clicking the "Confirm" button, the user can log in by entering an existing account and password. When the user logs in for the first time, the user can enter the mobile phone number or email in the account column, the password set in the password column, and click the login button. While logging in to the recommended target Wi-Fi network for the user, the mobile phone number or email address entered by the user is used to register, so that the user can directly log in with the registered account number and password next time.
在一个可能的实施例中,当检测到目标WI-FI网络无需账号密码时,手机直接进行自动登录。可选的,手机可以输出登录成功的信息。In a possible embodiment, when it is detected that the target WI-FI network does not require an account password, the mobile phone directly performs automatic login. Optionally, the mobile phone may output successful login information.
在一个可能的实施例中,云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上。手机将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,将匹配成功的本地Wi-Fi网络信息作为目标Wi-Fi网络信息,并显示。如图7a所示,在进行显示,优先将目标Wi-Fi网络按照信号强度由大到小的顺序进行显示。进一步地,在如图7a所示的界面中,除了显示该公共场所对应的目标Wi-Fi网络以外还显示了在该公共场所所能使用的其他Wi-Fi网络。其中,其他Wi-Fi网络显示在目标Wi-Fi网络之后,并按照显示免费Wi-Fi网络,后显示付费Wi-Fi网络的顺序进行显示。当当前的显示界面不能将所有可用的Wi-Fi网络进行显示时,将未能在界面 上进行显示Wi-Fi网络进行隐藏,用户可以通过点击“更多Wi-Fi”按钮显示其他隐藏的Wi-Fi网络。In a possible embodiment, the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone. The mobile phone matches the received at least one official Wi-Fi network information with the locally searched Wi-Fi network information, takes the successfully matched local Wi-Fi network information as the target Wi-Fi network information, and displays it. As shown in FIG. 7a , when displaying, target Wi-Fi networks are preferentially displayed in descending order of signal strength. Further, in the interface shown in FIG. 7 a , in addition to displaying the target Wi-Fi network corresponding to the public place, other Wi-Fi networks that can be used in the public place are also displayed. Wherein, other Wi-Fi networks are displayed after the target Wi-Fi network, and are displayed in the order of displaying free Wi-Fi networks and then displaying paid Wi-Fi networks. When the current display interface cannot display all available Wi-Fi networks, it will fail to display Wi-Fi networks on the interface and hide them. Users can click the "More Wi-Fi" button to display other hidden Wi-Fi networks. -Fi network.
进一步地,在如图7b所示的界面中,用户可以在Wi-Fi显示界面上点击任意一个想要登录的Wi-Fi网络进行登录。以用户选择登录目标Wi-Fi网络“Rainbow mall Free Wi-Fi 1”进行说明。当用户点击可用Wi-Fi列表中的“Rainbow mall Free Wi-Fi 1”时,会在该显示界面上弹出一个提示信息,已提示用户是否需要选择自动登录“Rainbow mall Free Wi-Fi 1”网络。当用户选择“是”时,为用户自动登录“Rainbow mall Free Wi-Fi 1”,其中自动登录的过程与步骤S501-步骤S503相同,在此不再赘述,或者为用户弹出如图6a-图6c所示的登录界面,其登录过程与图6a-图6c的描述相同,在此不再赘述。Further, in the interface shown in FIG. 7 b , the user can click on any desired Wi-Fi network on the Wi-Fi display interface to log in. The user chooses to log in to the target Wi-Fi network "Rainbow mall Free Wi-Fi 1" for illustration. When the user clicks "Rainbow mall Free Wi-Fi 1" in the available Wi-Fi list, a prompt message will pop up on the display interface, prompting the user whether to choose to automatically log in to the "Rainbow mall Free Wi-Fi 1" network . When the user selects "Yes", the user will automatically log in to "Rainbow mall Free Wi-Fi 1", and the automatic login process is the same as step S501-step S503, which will not be repeated here, or pop up for the user as shown in Figure 6a- The login process of the login interface shown in 6c is the same as that described in FIG. 6a-FIG. 6c, and will not be repeated here.
在一个可能的实施例中,云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上。手机接收到云服务器发送的至少一个官方Wi-Fi网络信息以后,将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,将匹配成功的本地Wi-Fi网络信息作为目标Wi-Fi网络信息。如图8a所示,在进行显示时,可以从至少一个目标Wi-Fi网络中确定出一个目标Wi-Fi网络作为预先选定的Wi-Fi网络进行显示,然后显示除预先选定的Wi-Fi网络以外的其他目标Wi-Fi网络,最后显示本地搜索到的其他Wi-Fi信息。其中,在显示其他Wi-Fi网络时,按照显示免费Wi-Fi网络,后显示付费Wi-Fi网络的顺序进行显示。当当前的显示界面不能将所有可用的Wi-Fi网络进行显示时,将未能在界面上进行显示Wi-Fi网络进行隐藏,用户可以通过点击“更多Wi-Fi按钮”显示其他隐藏的Wi-Fi网络可以以悬浮窗的方式进行显示。In a possible embodiment, the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone. After receiving at least one official Wi-Fi network information sent by the cloud server, the mobile phone will match the received at least one official Wi-Fi network information with the locally searched Wi-Fi network information, and will match the successfully matched local Wi-Fi network information. The network information is used as the target Wi-Fi network information. As shown in FIG. 8a, when displaying, a target Wi-Fi network may be determined from at least one target Wi-Fi network as a pre-selected Wi-Fi network for display, and then displayed except for the pre-selected Wi-Fi network. Other target Wi-Fi networks other than the Fi network, and finally display other Wi-Fi information found locally. Wherein, when displaying other Wi-Fi networks, they are displayed in the order of displaying free Wi-Fi networks and then displaying paid Wi-Fi networks. When the current display interface cannot display all available Wi-Fi networks, it will fail to display Wi-Fi networks on the interface and hide them. Users can click the "More Wi-Fi button" to display other hidden Wi-Fi networks. -Fi network can be displayed in a floating window.
进一步地,在如图8b所示的界面中,当用户选定目标Wi-Fi网络以后,通过点击“确认”按钮进行自动登录,并登录成功以后显示提示信息。其中,自动登录的过程与步骤S501-步骤S503相同,在此不再赘述。在一个示例中,当用户选择“确认”按钮后,为用户弹出如图6a-图6c所示的登录界面,其登录过程与图6a-图6c的描述相同,在此不再赘述。Further, in the interface shown in FIG. 8b, after the user selects the target Wi-Fi network, the user clicks the "Confirm" button to automatically log in, and a prompt message is displayed after the login is successful. Wherein, the automatic login process is the same as step S501-step S503, and will not be repeated here. In one example, after the user selects the "Confirm" button, a login interface as shown in Figures 6a-6c pops up for the user, and the login process is the same as that described in Figures 6a-6c, and will not be repeated here.
参见图9a,在一个可能的实施例中,云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上以后。手机将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后从确定出的至少一个目标Wi-Fi网络中选择一个Wi-Fi网络作为需要推荐给用户的Wi-Fi网络。如图9a所示,在通知栏下方显示通知消息,该通知消息包括为用户推荐的目标Wi-Fi网络的名称以及该目标Wi-Fi网络的安全信息。Referring to Fig. 9a, in a possible embodiment, the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is to the mobile phone. The mobile phone compares at least one official Wi-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user. As shown in FIG. 9a , a notification message is displayed below the notification bar, and the notification message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network.
进一步地,在显示为用户推荐的目标Wi-Fi网络时,可以将其他目标Wi-Fi网络、本地搜索到的其他Wi-Fi网络隐藏显示。如图9b所示,当用户点击“显示更多隐藏Wi-Fi”时,以悬浮窗口的形式显示其他Wi-Fi。在一个可能的示例中,如图9c所示,用户选择悬浮窗口中的“CMCC-FREE”进行登录。当用户点击“确认”按钮以后,在通知栏的下方显示“CMCC-FREE”网络的名称和安全信息。当用户再次点击确认以后,为用户自动登录该Wi-Fi网络。其中,自动登录的过程与步骤S501-步骤S503相同,在此不再赘述,或者为用户弹出如图6a-图6c所示的登录界面,其登录过程与图6a-图6c的描述相同,在此不再赘述。Further, when displaying the target Wi-Fi network recommended for the user, other target Wi-Fi networks and other locally searched Wi-Fi networks may be hidden and displayed. As shown in FIG. 9b, when the user clicks "show more hidden Wi-Fi", other Wi-Fi is displayed in the form of a floating window. In a possible example, as shown in Figure 9c, the user selects "CMCC-FREE" in the floating window to log in. When the user clicks the "Confirm" button, the name and security information of the "CMCC-FREE" network will be displayed at the bottom of the notification bar. After the user clicks Confirm again, the user is automatically logged into the Wi-Fi network. Among them, the process of automatic login is the same as step S501-step S503, which will not be repeated here, or the login interface shown in Figure 6a-Figure 6c will pop up for the user, and the login process is the same as the description in Figure 6a-Figure 6c, in This will not be repeated here.
在一个可能的示例中,如图9d所示。当用户点击“显示更多隐藏Wi-Fi”以后,将当前推荐给用户的Wi-Fi网络和其他隐藏显示的Wi-Fi网络以Wi-Fi列表的形式显示给用户,其中将当前推荐给用户的Wi-Fi网络显示在最前面,且设置为默认选中的形式。进一步地,用户就可以选中该Wi-Fi列表中的任意一个Wi-Fi网络。当用户选中任意一个Wi-Fi网络,且点击“确认”按钮以后,为用户自动登录该Wi-Fi网络。其中,自动登录的过程与步骤S501-步骤S503相同,在此不再赘述,或者为用户弹出如图6a-图6c所示的登录界面,其登录过程与图6a-图6c的描述相同,在此不再赘述。In one possible example, it is shown in Figure 9d. When the user clicks "Show more hidden Wi-Fi", the Wi-Fi network currently recommended to the user and other hidden Wi-Fi networks will be displayed to the user in the form of a Wi-Fi list, which will be currently recommended to the user Your Wi-Fi network is displayed on top and is set to be selected by default. Further, the user can select any Wi-Fi network in the Wi-Fi list. When the user selects any Wi-Fi network and clicks the "Confirm" button, the user will automatically log in to the Wi-Fi network. Among them, the process of automatic login is the same as step S501-step S503, which will not be repeated here, or the login interface shown in Figure 6a-Figure 6c will pop up for the user, and the login process is the same as the description in Figure 6a-Figure 6c, in This will not be repeated here.
在一个可能的示例中,如图9e所示。当用户点击“显示更多隐藏Wi-Fi”以后,将当前推荐给用户的Wi-Fi网络和其他隐藏显示的Wi-Fi网络以Wi-Fi列表的形式显示给用户,其中将当前推荐给用户的Wi-Fi网络显示在最前面。用户可以通过点击该Wi-Fi列表中的任意一个Wi-Fi网络进行登录。以用户选择登录“Rainbow mall Free Wi-Fi 1”进行说明。当用户点击可用Wi-Fi列表中的“Rainbow mall Free Wi-Fi 1”时,显示如图7b所示的界面。其登录过程与对图7b的描述相同,在此不再赘述。In one possible example, it is shown in Figure 9e. When the user clicks "Show more hidden Wi-Fi", the Wi-Fi network currently recommended to the user and other hidden Wi-Fi networks will be displayed to the user in the form of a Wi-Fi list, which will be currently recommended to the user Wi-Fi networks are displayed on top. Users can log in by clicking any Wi-Fi network in the Wi-Fi list. The user chooses to log in to "Rainbow mall Free Wi-Fi 1". When the user clicks "Rainbow mall Free Wi-Fi 1" in the available Wi-Fi list, the interface shown in Figure 7b is displayed. The login process is the same as the description of Fig. 7b, and will not be repeated here.
在一个可能的实施例中,参照图10。云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上以后。手机将接收到的至少一个官方WI-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后从确定出的至少一个目标Wi-Fi网络中选择一个Wi-Fi网络作为需要推荐给用户的Wi-Fi网络。如图10所示,除了显示当前推荐给用户的Wi-Fi网络信息以外,还显示了用户的当前位置信息。当用户认为当前定位的位置信息有误时,可以通过点击“刷新”按钮对当前的位置信息进行刷新操作。In a possible embodiment, refer to FIG. 10 . After the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is located to the mobile phone. The mobile phone compares at least one official WI-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user. As shown in FIG. 10 , in addition to displaying the Wi-Fi network information currently recommended to the user, the current location information of the user is also displayed. When the user thinks that the currently positioned location information is incorrect, the user may click the "Refresh" button to refresh the current location information.
当用户对当前位置信息进行刷新操作时,手机会对刷新以后的位置信息进行判断。当判断出刷新以后的位置信息发生变化,需要将新的位置信息发送给云服务器。云服务器将接收到的新的用户位置信息与存储的公共场所的位置范围信息进行比对,当用户的位置信息落到任意一个公共场所的位置范围信息内时,云服务器将该公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上。手机将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后从确定出的至少一个目标Wi-Fi网络中选择一个Wi-Fi网络作为需要推荐给用户的Wi-Fi网络。When the user refreshes the current location information, the mobile phone will judge the location information after refreshing. When it is determined that the updated location information has changed, the new location information needs to be sent to the cloud server. The cloud server compares the received new user location information with the stored location range information of public places, and when the user's location information falls within the location range information of any public place, the cloud server At least one official Wi-Fi network information sent to the phone. The mobile phone compares at least one official Wi-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then select a Wi-Fi network from at least one determined target Wi-Fi network as the Wi-Fi network to be recommended to the user.
在一个可能的实施例中,用户进入到某一公共场所,并登录上该公共场所的官方Wi-Fi以后,还需要对当前已连接的Wi-Fi网络的信号强度进行实时检测。当检测到用户当前已连接的Wi-Fi强度小于预先设定的阈值时,即认为用户已离开该公共场所。此时需要为用户断开当前已连接的Wi-Fi网络,并开始计时。如果在预设时间段内检测到用户重新进入到该公共场所,自动为用户登录离开之前做连接的Wi-Fi网络。在一个示例中,如图11所示,当检测到用户已离开当前所在的公共场所时,通知消息中还包括提示信息,用于提示用户可以通过“关闭”按钮,关闭自动登录功能。当用户点击“关闭”按钮以后,停止计时,当用户再次进入该公共场所时,将不会为用户自动登录“Rainbow mall Free Wi-Fi 1”。In a possible embodiment, after the user enters a public place and logs in to the official Wi-Fi of the public place, the user also needs to detect the signal strength of the currently connected Wi-Fi network in real time. When it is detected that the strength of the Wi-Fi to which the user is currently connected is less than the preset threshold, it is considered that the user has left the public place. At this time, it is necessary to disconnect the currently connected Wi-Fi network for the user and start timing. If it is detected that the user re-enters the public place within a preset period of time, the user is automatically logged into the Wi-Fi network that was connected before leaving. In one example, as shown in FIG. 11 , when it is detected that the user has left the current public place, the notification message further includes prompt information, which is used to prompt the user to close the automatic login function by pressing the "Close" button. When the user clicks the "Close" button, the timer will stop, and when the user enters the public place again, the user will not be automatically logged into "Rainbow mall Free Wi-Fi 1".
需要说明的是,用户每一次成功登录公共场所的Wi-Fi网络以后,都需要将该Wi-Fi 网络的登录信息进行保存。具体地,包括:已登录的Wi-Fi网络的名称、登录地址和登录方式。其中登录方式包括:自动登录、手动登录中的任意一个。当用户多次登录同一个Wi-Fi网络时,在存储该Wi-Fi网络的登录信息时,自动覆盖上一次存储的该Wi-Fi网络的登录信息。It should be noted that, every time the user successfully logs in to a Wi-Fi network in a public place, the login information of the Wi-Fi network needs to be saved. Specifically, it includes: the name, login address and login method of the registered Wi-Fi network. The login method includes any one of automatic login and manual login. When a user logs in to the same Wi-Fi network multiple times, when storing the login information of the Wi-Fi network, the last stored login information of the Wi-Fi network is automatically overwritten.
在一个可能的实施例中,用户进入到某一公共场所,云服务器将与用户所在的公共场所对应的至少一个官方Wi-Fi网络信息发送到手机上以后。手机将接收到的至少一个官方WI-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后将至少一个目标Wi-Fi网络与手机中存储的已登录过的Wi-Fi网络进行匹配。当存在一个第一目标Wi-Fi网络与手机中存储的已登录过的Wi-Fi网络匹配时,确定该用户为非首次登录该公共场所的官方Wi-Fi网络。然后根据匹配上的已登录过的Wi-Fi网络中的登录方式登录第一目标Wi-Fi网络。In a possible embodiment, after the user enters a certain public place, the cloud server sends at least one official Wi-Fi network information corresponding to the public place where the user is to the mobile phone. The mobile phone compares at least one official WI-Fi network information received with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then at least one target Wi-Fi network is matched with the registered Wi-Fi networks stored in the mobile phone. When there is a first target Wi-Fi network that matches the logged-in Wi-Fi network stored in the mobile phone, it is determined that the user is not logging into the official Wi-Fi network of the public place for the first time. Then log in to the first target Wi-Fi network according to the login method in the matched Wi-Fi network that has already been logged in.
在一个示例中,当用户第二次进入到某一公共场所时,且确定用户上一次登录该公共场所的官方Wi-Fi网络为自动登录时,自动为用户登录推荐的官方Wi-Fi网络,并在登录成功以后,为用户显示登录结果信息,如图12所示。进一步地,如图12所示的通知消息中还包括提示信息,用于提示用户可以通过“关闭”按钮,关闭自动登录功能。当用户点击“关闭”按钮以后,将该Wi-Fi网络对应的登录方式保存为“手动登录”,即当用户再次进入该公共场所时,将不会为用户自动登录“Rainbow mall Free Wi-Fi 1”。In one example, when the user enters a public place for the second time, and it is determined that the official Wi-Fi network that the user logged in to the public place last time is an automatic login, automatically log in the recommended official Wi-Fi network for the user, And after the login is successful, the login result information is displayed for the user, as shown in FIG. 12 . Further, the notification message shown in FIG. 12 also includes prompt information for prompting the user to close the automatic login function by clicking the "Close" button. After the user clicks the "Close" button, the login method corresponding to the Wi-Fi network will be saved as "Manual Login", that is, when the user enters the public place again, the user will not be automatically logged into the "Rainbow mall Free Wi-Fi 1".
在一个示例中,将至少一个目标Wi-Fi网络与手机中存储的已登录过的Wi-Fi网络进行匹配包括:将至少一个目标Wi-Fi网络的Wi-Fi名和所属的位置信息与存储的已登录过的Wi-Fi网络的名称和登录地址进行比较。当至少一个目标Wi-Fi中存在一个目标Wi-Fi网络的名称和所述位置信息与存储的已登录过的Wi-Fi网络中的任意一个Wi-Fi网络的名称和登录地址都相同时,将该目标Wi-Fi网络确定为第一目标Wi-Fi网络。In an example, matching the at least one target Wi-Fi network with the registered Wi-Fi network stored in the mobile phone includes: matching the Wi-Fi name and the location information of the at least one target Wi-Fi network with the stored The name and registered address of the registered Wi-Fi network are compared. When the name and the location information of a target Wi-Fi network in at least one target Wi-Fi are the same as the name and login address of any Wi-Fi network in the stored Wi-Fi networks that have been logged in, The target Wi-Fi network is determined as the first target Wi-Fi network.
在一个可能的实施例中,当电子设备100登录上某一个公共场所的Wi-Fi网络以后,可以使得与该电子设备相关的分布式设备全部登录相同的Wi-Fi网络。In a possible embodiment, after the electronic device 100 logs in to a Wi-Fi network in a certain public place, all distributed devices related to the electronic device can log in to the same Wi-Fi network.
在一个可能的示例中,电子设备100为手机,与该电子设备相关的分布式设备包括,智能手表、平板等。其中,手机、智能手表和平板都登录了相同的华为账号。当用户进入到某一个公共场所,且通过手机自动登录上该公共场所的官方Wi-Fi网络以后,手机将当前登录的Wi-Fi网络名称以及登录地址存储到华为账号中,并向登录有相同华为账号的智能手表和平板,发送通知消息,触发智能手表和平板进行网络更新。智能手表和平板接收到该网络更新通知以后,重新搜索本地的可用Wi-Fi网络,并将通知消息中携带的Wi-Fi网络与本地搜索到的Wi-Fi网络进行匹配。当本地搜索到的Wi-Fi网络中存在与通知消息中携带的Wi-Fi网络相匹配的Wi-Fi网络时,自动登录匹配上的Wi-Fi网络。In a possible example, the electronic device 100 is a mobile phone, and distributed devices related to the electronic device include smart watches, tablets, and the like. Among them, mobile phones, smart watches and tablets are all logged in with the same Huawei account. When a user enters a public place and automatically logs in to the official Wi-Fi network of the public place through the mobile phone, the mobile phone will store the name and login address of the currently logged-in Wi-Fi network into the Huawei account, and send the same information to the registered Wi-Fi network. Smart watches and tablets with Huawei accounts send notification messages to trigger network updates on smart watches and tablets. After the smart watch and the tablet receive the network update notification, they search for available local Wi-Fi networks again, and match the Wi-Fi network carried in the notification message with the locally searched Wi-Fi network. When there is a Wi-Fi network matching the Wi-Fi network carried in the notification message among the locally searched Wi-Fi networks, automatically log in to the matched Wi-Fi network.
进一步地,在本申请实施例中,还提供了一种基于位置信息的Wi-Fi连接方法,如图13所示,包括:Further, in the embodiment of the present application, a Wi-Fi connection method based on location information is also provided, as shown in FIG. 13 , including:
步骤S1301,将公共场所的官方Wi-Fi网络和公共场所GPS位置范围信息注册到云服务器中。Step S1301, registering the official Wi-Fi network of the public place and the GPS location range information of the public place into the cloud server.
获取多个公共场所的位置信息和该公共场所对应的官方Wi-Fi网络信息,并将获取的 每一个公共场所的位置范围信息和该公共场所对应的官方Wi-Fi网络信息按照对应关系存储到云服务器上。Obtain the location information of multiple public places and the official Wi-Fi network information corresponding to the public place, and store the obtained location range information of each public place and the official Wi-Fi network information corresponding to the public place in the on the cloud server.
步骤S1302,获取用户的位置信息。Step S1302, acquiring the location information of the user.
在一个示例中,可以通过用户持有设备的GPS来获取用户的位置信息,并将获取的用户的位置信息上传到云服务器中。In an example, the location information of the user may be obtained through the GPS of the device held by the user, and the obtained location information of the user may be uploaded to the cloud server.
步骤S1303,判断用户的位置信息是否落在有官方Wi-Fi网络的公共场所的GPS位置范围内;当存在用户的位置信息落在有官方Wi-Fi网络的公共场所的GPS位置范围内时,执行步骤S1304,否则结束该登录过程。Step S1303, judging whether the user's location information falls within the GPS location range of a public place with an official Wi-Fi network; when the user's location information falls within the GPS location range of a public place with an official Wi-Fi network, Execute step S1304, otherwise end the login process.
步骤S1304,在通知栏内显示该位置信息对应的官方Wi-Fi网络信息。Step S1304, displaying the official Wi-Fi network information corresponding to the location information in the notification bar.
将获取的用户的位置信息与云服务器内存储的公共场所的位置范围信息进行比较,当存在一个公共场所的位置范围信息包含云服务器的位置信息时,将该公共场所作为目标公共场所,即可认为用户进入到了该公共场所。Compare the obtained location information of the user with the location range information of the public places stored in the cloud server, and when there is a public place whose location range information includes the location information of the cloud server, set the public place as the target public place. It is considered that the user has entered the public place.
云服务器获取与目标公共场所对应的至少一个官方Wi-Fi网络信息,并将至少一个官方Wi-Fi网络信息发送到用户持有的电子设备上。该电子设备将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后将确定出的目标Wi-Fi网络信息进行显示。The cloud server acquires at least one official Wi-Fi network information corresponding to the target public place, and sends at least one official Wi-Fi network information to the electronic device held by the user. The electronic device compares the received at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then the determined target Wi-Fi network information is displayed.
在一个可能的示例中,在进行显示时,可以从至少一个目标Wi-Fi网络中确定出一个需要推荐给用户的Wi-Fi网络进行显示,其显示结果如图5a所示。In a possible example, when displaying, a Wi-Fi network that needs to be recommended to the user may be determined from at least one target Wi-Fi network for display, and the display result is shown in FIG. 5a.
在一个可能的示例中,也可以将确定出的目标Wi-Fi网络全部进行显示,其显示结果如图7a、图8a所示。在如图7a、图8a所示的显示界面中除了显示确定出了目标Wi-Fi网络以外,还显示了除目标Wi-Fi网络以外的本地搜索到的其他Wi-Fi网络。In a possible example, all determined target Wi-Fi networks may also be displayed, and the display results are shown in Fig. 7a and Fig. 8a. In the display interface shown in Fig. 7a and Fig. 8a, in addition to displaying that the target Wi-Fi network has been determined, other Wi-Fi networks found locally other than the target Wi-Fi network are also displayed.
在一个可能的示例中,在进行显示时,可以从至少一个目标Wi-Fi网络中确定出一个需要推荐给用户的Wi-Fi网络进行显示,并将其他Wi-Fi网络信息进行隐藏显示。如图9a所示,当用户点击显示界面的“显示更多隐藏Wi-Fi”按钮时,将其他隐藏的Wi-Fi网络信息进行显示。在进行显示的时候可以以悬浮窗的方式显示隐藏的Wi-Fi网络信息如图9b所示。也可以在原显示窗口上以Wi-Fi列表的方式显示需要推荐给用户的Wi-Fi网络信息和其他隐藏的Wi-Fi网络信息。如图9d所示,在以Wi-Fi列表的方式进行显示时,优先显示目标Wi-Fi网络,并预先选中需要推荐给用户的目标Wi-Fi网络。或者如图9e所示,将需要推荐给用户的目标Wi-Fi网络放到Wi-Fi网络列表的最前面进行显示。In a possible example, when displaying, a Wi-Fi network that needs to be recommended to the user may be determined from at least one target Wi-Fi network for display, and other Wi-Fi network information may be hidden for display. As shown in FIG. 9a, when the user clicks the "show more hidden Wi-Fi" button on the display interface, other hidden Wi-Fi network information is displayed. When displaying, the hidden Wi-Fi network information may be displayed in a floating window, as shown in FIG. 9b. The Wi-Fi network information to be recommended to the user and other hidden Wi-Fi network information may also be displayed in the form of a Wi-Fi list on the original display window. As shown in FIG. 9d , when displaying in the form of a Wi-Fi list, the target Wi-Fi network is displayed preferentially, and the target Wi-Fi network to be recommended to the user is preselected. Alternatively, as shown in FIG. 9e , the target Wi-Fi network to be recommended to the user is placed at the top of the Wi-Fi network list for display.
步骤S1305,判断用户是否选择自动登录该Wi-Fi网络;当用户选择自动登录该Wi-Fi网络时,执行步骤S1306,否则结束该登录过程。Step S1305, judging whether the user chooses to automatically log in to the Wi-Fi network; when the user chooses to automatically log in to the Wi-Fi network, execute step S1306, otherwise end the login process.
步骤S1306,为用户自动登录该Wi-Fi网络。Step S1306, automatically log in the Wi-Fi network for the user.
在一个可能的示例中,电子设备根据云服务器返回的官方Wi-Fi网络确定出至少一个目标Wi-Fi网络以后。从该目标Wi-Fi网络中选择一个信号强度最大的Wi-Fi网络,并自动为用户登录该信号强度最大的Wi-Fi网络。当登录完成以后显示如图4a所示的登录结果信息。该登录结果信息包括:当前登录连接的Wi-Fi网络的名称信息、安全信息和提示信息。该提示信息用于提示用户可以通过选择显示界面上的“取消”按钮断开当前已连接的目标Wi-Fi网络或者取消自动登录功能。In a possible example, after the electronic device determines at least one target Wi-Fi network according to the official Wi-Fi network returned by the cloud server. Select a Wi-Fi network with the highest signal strength from the target Wi-Fi network, and automatically log in the Wi-Fi network with the highest signal strength for the user. After the login is completed, the login result information shown in Figure 4a is displayed. The login result information includes: name information, security information and prompt information of the Wi-Fi network connected to the current login. The prompt information is used to prompt the user to disconnect the currently connected target Wi-Fi network or cancel the automatic login function by selecting the "Cancel" button on the display interface.
在一个可能的示例中,电子设备从至少一个目标Wi-Fi网络中确定出一个第一目标 Wi-Fi网络作为需要推荐给用户的Wi-Fi网络,并在通知栏下方显示通知消息,该通知消息包括为用户推荐的目标Wi-Fi网络的名称以及该目标Wi-Fi网络的安全信息。如图5a、图6a、图6b、图6c所示,通过点击通知消息中的“确认”按钮选择自动登录已推荐的目标Wi-Fi网络。In a possible example, the electronic device determines a first target Wi-Fi network from at least one target Wi-Fi network as a Wi-Fi network that needs to be recommended to the user, and displays a notification message below the notification bar. The message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network. As shown in Figure 5a, Figure 6a, Figure 6b, and Figure 6c, click the "confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
在一个可能的示例中,电子设备将获取的至少一个目标Wi-Fi网络和本地搜索到的但是未与云服务器返回的官方Wi-Fi网络匹配上的其他Wi-Fi网络进行显示。如图8b、图9b所示,通过点击通知消息中的Wi-Fi网络或者“确认”按钮选择需要登录的Wi-Fi网络进行登录。In a possible example, the electronic device displays at least one target Wi-Fi network acquired and other Wi-Fi networks found locally but not matched with the official Wi-Fi network returned by the cloud server. As shown in Fig. 8b and Fig. 9b, click the Wi-Fi network in the notification message or the "Confirm" button to select the Wi-Fi network to log in to log in.
在本申请实施例中,利用用户的位置信息来识别用户场景,并主动推荐官方的Wi-Fi网络,同时自动完成Wi-Fi网络的验证登陆,提高使用公共场所Wi-Fi网络的体验。In the embodiment of this application, the user's location information is used to identify the user's scene, and the official Wi-Fi network is actively recommended, and at the same time, the verification and login of the Wi-Fi network is automatically completed, so as to improve the experience of using the Wi-Fi network in public places.
在一个可能的实施例中,针对用户多次进入同一公共场所时,还提供了一种基于位置信息的Wi-Fi连接方法,如图14所示,包括:In a possible embodiment, when the user enters the same public place multiple times, a Wi-Fi connection method based on location information is also provided, as shown in Figure 14, including:
步骤S1401,获取用户的位置信息,并根据用户的位置信息为用户推荐用户所在公共场所的官方Wi-Fi网络。Step S1401, acquiring the location information of the user, and recommending to the user an official Wi-Fi network in a public place where the user is located according to the location information of the user.
具体地,可以通过用户持有的电子设备的GPS位置信息来获取用户的位置信息。Specifically, the location information of the user may be acquired through the GPS location information of the electronic device held by the user.
步骤S1402,判断用户是否为首次登录当前公共场所的官方Wi-Fi网络;当用户为首次登录该公共场所的官方Wi-Fi网络时,执行步骤S1403,否则执行步骤S1404。Step S1402, judging whether the user is logging into the official Wi-Fi network of the current public place for the first time; when the user is logging into the official Wi-Fi network of the public place for the first time, go to step S1403, otherwise go to step S1404.
步骤S1403,为用户推荐当前位置具有的官方Wi-Fi网络,并根据用户的选择确定是否自动登录该Wi-Fi网络。Step S1403, recommending an official Wi-Fi network in the current location for the user, and determining whether to automatically log in to the Wi-Fi network according to the user's choice.
当用户为首次登录该公共场所的Wi-Fi网络时,在通知栏内显示至少一个目标Wi-Fi网络,并根据用户的选择登录对应的Wi-Fi网络,其登录过程与步骤S1304-步骤S1306相同,在此不再赘述。When the user logs into the Wi-Fi network of the public place for the first time, at least one target Wi-Fi network is displayed in the notification bar, and the corresponding Wi-Fi network is logged in according to the user's selection, and the login process is the same as step S1304-step S1306 Same, no more details here.
步骤S1404,获取用户上次登录时的登录方式信息,并根据上次登录时的登录方式为用户登录当前位置具有的官方Wi-Fi网络。Step S1404, obtaining the login method information of the user's last login, and logging the user into the official Wi-Fi network at the current location according to the login method of the last login.
步骤S1405,判断用户上次登录时是否为自动登录。当用户的上次登录方式为自动登录时,执行步骤S1406,否则执行步骤S1407。Step S1405, judging whether the user logged in automatically last time. When the last login mode of the user is automatic login, execute step S1406, otherwise execute step S1407.
步骤S1406,根据用户的位置信息,自动为用户登录当前位置的官方Wi-Fi网络。Step S1406, according to the location information of the user, automatically log in the official Wi-Fi network at the current location for the user.
将获取的用户的位置信息与云服务器内存储的公共场所的位置范围信息进行比较,当存在一个公共场所的位置范围信息包含云服务器的位置信息时,云服务器获取与目标公共场所对应的至少一个官方Wi-Fi网络信息,并将至少一个官方Wi-Fi网络信息发送到用户持有的电子设备上。该电子设备将接收到的至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行比对,并从中确定出至少一个目标Wi-Fi网络。然后将至少一个目标Wi-Fi网络与手机中存储的已登录过的Wi-Fi网络进行匹配包括:将至少一个目标Wi-Fi网络的Wi-Fi名和所属的位置信息与存储的已登录过的Wi-Fi网络的名称和登录地址进行比较。当至少一个目标Wi-Fi中存在一个目标Wi-Fi网络的名称和所述位置信息与存储的已登录过的Wi-Fi网络中的任意一个Wi-Fi网络的名称和登录地址都相同时,确定用户为非首次登录该当前公共场所的Wi-Fi网络。Comparing the obtained location information of the user with the location range information of the public place stored in the cloud server, when there is a location range information of a public place including the location information of the cloud server, the cloud server obtains at least one corresponding to the target public place Official Wi-Fi network information, and at least one official Wi-Fi network information is sent to the electronic device held by the user. The electronic device compares the received at least one official Wi-Fi network information with locally searched Wi-Fi network information, and determines at least one target Wi-Fi network therefrom. Then matching at least one target Wi-Fi network with the registered Wi-Fi network stored in the mobile phone includes: matching the Wi-Fi name and the location information of at least one target Wi-Fi network with the stored registered Wi-Fi network The name and login address of the Wi-Fi network are compared. When the name and the location information of a target Wi-Fi network in at least one target Wi-Fi are the same as the name and login address of any Wi-Fi network in the stored Wi-Fi networks that have been logged in, It is determined that the user is not logging in to the Wi-Fi network of the current public place for the first time.
在一个示例中,将该目标Wi-Fi网络确定为第一目标Wi-Fi网络,获取用户上一次登 录第一目标Wi-Fi网络时的登录方式。然后以与上一次登录时的登录方式相同的登录方式登录第一目标Wi-Fi网络。或者以与上一次登录时相同的登录方式登录至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络。In an example, the target Wi-Fi network is determined as the first target Wi-Fi network, and the login method when the user logs in to the first target Wi-Fi network last time is obtained. Then log in the first target Wi-Fi network with the same login method as the last login method. Or log in to any one of the at least one target Wi-Fi network in the same way as the last time you logged in.
步骤S1407,为用户推荐当前位置具有的官方Wi-Fi网络,但不自动登录。Step S1407, recommending an official Wi-Fi network in the current location for the user, but not automatically logging in.
在本申请实施例中,为用户提供了一种安全可信且自动化的Wi-Fi网络连接方式。当用户进入到一个公共场所时,判断用户是否为首次进入该公共场所。当确定用户为非首次进入该公共场所时,获取用户上一次进入该公共场所时,登录该公共场所对应的官方Wi-Fi网络的登录方式。如果用户上一次是进入该公共场所是选择自动登录该公共场所对应的官方Wi-Fi网络,那么下次用户再进入该公共场所是,就自动为用户选择该公共场所对应的官方Wi-Fi网络,不需要打扰用户去询问是否需要自动连接该Wi-Fi网络。In the embodiment of the present application, a safe, reliable and automatic Wi-Fi network connection mode is provided for the user. When the user enters a public place, it is judged whether the user enters the public place for the first time. When it is determined that the user is not entering the public place for the first time, the login method of the official Wi-Fi network corresponding to the public place when the user entered the public place last time is obtained. If the user entered the public place last time and chose to automatically log in to the official Wi-Fi network corresponding to the public place, then the next time the user enters the public place, the official Wi-Fi network corresponding to the public place will be automatically selected for the user , there is no need to bother the user to ask whether to automatically connect to the Wi-Fi network.
在一个可能的实施例中,还提供了一种基于位置信息的Wi-Fi连接方法,如图15所示,包括:In a possible embodiment, a Wi-Fi connection method based on location information is also provided, as shown in FIG. 15 , including:
步骤S1501,获取公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息。Step S1501, acquiring location range information of a public place and official Wi-Fi information corresponding to the public place.
步骤S1502,将公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息,按照对应关系存储到云服务器上。In step S1502, the location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
步骤S1503,接收用户的位置信息。Step S1503, receiving location information of the user.
步骤S1504,将用户的位置信息与云服务器上存储的公共场所的位置范围信息进行比较,当存在一个公共场所的位置范围信息包含用户的位置信息时,获取该公共场所对应的至少一个官方Wi-Fi网络,并将至少一个官方Wi-Fi网络发送给用户。Step S1504, compare the location information of the user with the location range information of the public place stored on the cloud server, and when there is a location range information of a public place that includes the user's location information, obtain at least one official Wi- Fi network and send at least one official Wi-Fi network to the user.
基于上述实施例中的方法,本申请实施例还提供了一种电子设备。如图16所示,该电子设备100包括:采集单元1001、处理单元1002、显示单元1003、登录单元1004、存储单元1005。Based on the methods in the foregoing embodiments, the embodiments of the present application further provide an electronic device. As shown in FIG. 16 , the electronic device 100 includes: a collection unit 1001 , a processing unit 1002 , a display unit 1003 , a login unit 1004 , and a storage unit 1005 .
采集单元1001用于采集用户的位置信息,并将采集到的用户的位置信息发送给云服务器。The collecting unit 1001 is configured to collect the location information of the user, and send the collected location information of the user to the cloud server.
处理单元1002用于将本地搜索到的Wi-Fi网络信息与云服务器返回的至少一个官方Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息。The processing unit 1002 is configured to match the locally searched Wi-Fi network information with at least one official Wi-Fi network information returned by the cloud server, and determine at least one target Wi-Fi network information.
显示单元1003用于显示至少一个目标Wi-Fi网络信息,如图5a、图6a、图6b、图6c所示。进一步地,显示单元1003还用于接收用户对显示的至少一个目标Wi-Fi网络进行的操作。如图5a、图6a、图6b、图6c所示通过点击通知消息中的“确认”按钮选择自动登录已推荐的目标Wi-Fi网络。The display unit 1003 is configured to display at least one target Wi-Fi network information, as shown in Fig. 5a, Fig. 6a, Fig. 6b, and Fig. 6c. Further, the display unit 1003 is further configured to receive an operation performed by the user on the displayed at least one target Wi-Fi network. As shown in Figure 5a, Figure 6a, Figure 6b, and Figure 6c, click the "Confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
登录单元1004用于根据用户的选择登录选定的Wi-Fi网络。The login unit 1004 is used for logging in the selected Wi-Fi network according to the user's selection.
进一步地,当用户登录成功以后,还需要将该Wi-Fi网络的登录信息保存到存储单元1005。具体地,需要保存的登录信息包括:已登录的Wi-Fi网络的名称、登录地址和登录方式。其中登录方式包括:自动登录、手动登录中的任意一个。当用户多次登录同一个Wi-Fi网络时,在存储该Wi-Fi网络的登录信息时,自动覆盖上一次存储的该Wi-Fi网络的登录信息。Further, after the user logs in successfully, the login information of the Wi-Fi network needs to be saved in the storage unit 1005 . Specifically, the login information that needs to be saved includes: the name, login address, and login method of the logged-in Wi-Fi network. The login method includes any one of automatic login and manual login. When a user logs in to the same Wi-Fi network multiple times, when storing the login information of the Wi-Fi network, the last stored login information of the Wi-Fi network is automatically overwritten.
在一个示例中,处理单元1002确定至少一个目标Wi-Fi网络信息以后,从至少一个目标Wi-Fi网络中确定出一个信号强度最大的Wi-Fi网络作为第一目标Wi-Fi网络。然后 自动为用户登录上第一目标Wi-Fi网络,并通过显示单元1003显示如图4a所示的登录结果信息。其中,登录结果信息包括:已目标Wi-Fi网络的名称信息或者目标Wi-Fi网络所对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个。其中,第二提示信息用于提示用户断开与目标Wi-Fi网络的连接或者关闭自动登录服务。In an example, after determining the information of at least one target Wi-Fi network, the processing unit 1002 determines a Wi-Fi network with the highest signal strength from the at least one target Wi-Fi network as the first target Wi-Fi network. Then, the user is automatically logged into the first target Wi-Fi network, and the display unit 1003 displays the login result information as shown in FIG. 4a. Wherein, the login result information includes: at least one of name information of the target Wi-Fi network or location information corresponding to the target Wi-Fi network, security information of the target Wi-Fi network, and second prompt information. Wherein, the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network or close the automatic login service.
在一个示例中,电子设备100还包括计时单元,当检测到用户当前已连接的Wi-Fi强度小于预先设定的阈值时,即认为用户已离开该公共场所。此时需要为用户断开当前已连接的Wi-Fi网络,并通过计时单元开始计时。如果在预设时间段内检测到用户重新进入到该公共场所,自动为用户登录离开之前做连接的Wi-Fi网络。In one example, the electronic device 100 further includes a timing unit, which determines that the user has left the public place when it detects that the strength of the Wi-Fi to which the user is currently connected is less than a preset threshold. At this time, it is necessary to disconnect the currently connected Wi-Fi network for the user, and start timing through the timing unit. If it is detected that the user re-enters the public place within a preset period of time, the user is automatically logged into the Wi-Fi network that was connected before leaving.
基于上述实施例中的方法,本申请实施例还提供了一种云服务器。如图17所示,该云服务器200包括:采集单元2001、处理单元2002、存储单元2003。Based on the methods in the foregoing embodiments, the embodiments of the present application further provide a cloud server. As shown in FIG. 17 , the cloud server 200 includes: a collection unit 2001 , a processing unit 2002 , and a storage unit 2003 .
采集单元2001用于采集公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息,并将采集到的公共场所的位置范围信息和该公共场所对应的官方Wi-Fi信息,按照对应关系存储到存储单元2002。The collection unit 2001 is used to collect the location range information of the public place and the official Wi-Fi information corresponding to the public place, and combine the collected location range information of the public place and the official Wi-Fi information corresponding to the public place according to the corresponding relationship Stored in the storage unit 2002.
进一步地,采集单元2001还用于接收电子设备100发送的用户位置信息,并将该用户位置信息发送到处理单元2002。Further, the collection unit 2001 is also configured to receive the user location information sent by the electronic device 100 , and send the user location information to the processing unit 2002 .
处理单元2002用于将所述用户的位置信息与云服务器上存储的公共场所的位置范围信息进行比较。当存在一个公共场所的位置范围信息包含用户的位置信息时,获取该公共场所对应的至少一个官方Wi-Fi网络,并将至少一个官方Wi-Fi网络发送给电子设备100。The processing unit 2002 is configured to compare the location information of the user with the location range information of public places stored on the cloud server. When the location range information of a public place includes the user's location information, at least one official Wi-Fi network corresponding to the public place is acquired, and the at least one official Wi-Fi network is sent to the electronic device 100 .
基于上述实施例中的方法,本申请实施例还提供了一种基于位置信息的Wi-Fi连接系统,包括:如图16所示的电子设备100和如图17所示的云服务器200。Based on the method in the above-mentioned embodiments, the embodiment of the present application also provides a Wi-Fi connection system based on location information, including: an electronic device 100 as shown in FIG. 16 and a cloud server 200 as shown in FIG. 17 .
电子设备100用于获取用户的位置信息,并将获取的用户的位置信息上传到云服务器200上。The electronic device 100 is configured to obtain the location information of the user, and upload the obtained location information of the user to the cloud server 200 .
云服务器200接收到电子设备100发送的用户位置信息以后,将用户的位置信息与云服务器200上存储的公共场所的位置范围信息进行比较。当存在一个公共场所的位置范围信息包含用户的位置信息时,获取该公共场所对应的至少一个官方Wi-Fi网络,并将该至少一个官方Wi-Fi网络返回给电子设备100。After the cloud server 200 receives the user location information sent by the electronic device 100 , it compares the user location information with the location range information of public places stored on the cloud server 200 . When the location range information of a public place includes the user's location information, at least one official Wi-Fi network corresponding to the public place is obtained, and the at least one official Wi-Fi network is returned to the electronic device 100 .
电子设备100将从云服务器200上接收的至少一个官方Wi-Fi网络与本地搜索到的Wi-Fi网络进行匹配,确定至少一个目标Wi-Fi网络。然后将该目标Wi-Fi网络进行显示,并根据用户的选择登录只至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络,并显示登录结果。The electronic device 100 matches at least one official Wi-Fi network received from the cloud server 200 with locally searched Wi-Fi networks to determine at least one target Wi-Fi network. Then display the target Wi-Fi network, log in to any one of at least one target Wi-Fi network according to the user's selection, and display the login result.
在一个可能的示例中,电子设备100在确定至少一个目标Wi-Fi网络以后,从至少一个目标Wi-Fi网络中确定出一个信号强度最大的Wi-Fi网络作为第一目标Wi-Fi网络。然后自动为用户登录上第一目标Wi-Fi网络,并显示如图4a所示的登录结果信息。其中,登录结果信息包括:已目标Wi-Fi网络的名称信息或者目标Wi-Fi网络所对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个。其中,第二提示信息用于提示用户断开与目标Wi-Fi网络的连接或者关闭自动登录服务。In a possible example, after determining at least one target Wi-Fi network, the electronic device 100 determines a Wi-Fi network with the highest signal strength from the at least one target Wi-Fi network as the first target Wi-Fi network. Then automatically log in the first target Wi-Fi network for the user, and display the log-in result information as shown in FIG. 4a. Wherein, the login result information includes: at least one of name information of the target Wi-Fi network or location information corresponding to the target Wi-Fi network, security information of the target Wi-Fi network, and second prompt information. Wherein, the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network or close the automatic login service.
在一个可能的示例中,电子设备从至少一个目标Wi-Fi网络中确定出一个第一目标 Wi-Fi网络作为需要推荐给用户的Wi-Fi网络,并在通知栏下方显示通知消息,该通知消息包括为用户推荐的目标Wi-Fi网络的名称以及该目标Wi-Fi网络的安全信息。如图5a、图6a、图6b、图6c所示,通过点击通知消息中的“确认”按钮选择自动登录已推荐的目标Wi-Fi网络。In a possible example, the electronic device determines a first target Wi-Fi network from at least one target Wi-Fi network as a Wi-Fi network that needs to be recommended to the user, and displays a notification message below the notification bar, the notification The message includes the name of the target Wi-Fi network recommended for the user and the security information of the target Wi-Fi network. As shown in Figure 5a, Figure 6a, Figure 6b, and Figure 6c, click the "confirm" button in the notification message to choose to automatically log in to the recommended target Wi-Fi network.
在一个可能的示例中,电子设备将获取的至少一个目标Wi-Fi网络和本地搜索到的但是未与云服务器返回的官方Wi-Fi网络匹配上的其他Wi-Fi网络进行显示。如图8b、图9b所示,通过点击通知消息中的Wi-Fi网络或者“确认”按钮选择需要登录的Wi-Fi网络进行登录。In a possible example, the electronic device displays at least one target Wi-Fi network acquired and other Wi-Fi networks found locally but not matched with the official Wi-Fi network returned by the cloud server. As shown in Fig. 8b and Fig. 9b, click the Wi-Fi network in the notification message or the "Confirm" button to select the Wi-Fi network to log in to log in.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。The method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may 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 the computer, the processes or functions according to the embodiments of the present application will be 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 may be stored in or transmitted via a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application.

Claims (37)

  1. 一种基于位置信息的Wi-Fi连接方法,其特征在于,应用于具有位置识别功能的电子设备上,所述方法包括:A Wi-Fi connection method based on location information is characterized in that it is applied to an electronic device with a location recognition function, and the method includes:
    获取用户的位置信息,并将所述用户的位置信息发送给云服务器;Obtain the location information of the user, and send the location information of the user to the cloud server;
    接收所述云服务器返回的与所述位置信息相对应的至少一个官方Wi-Fi网络信息;receiving at least one official Wi-Fi network information corresponding to the location information returned by the cloud server;
    将所述至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息;Matching the at least one official Wi-Fi network information with locally searched Wi-Fi network information to determine at least one target Wi-Fi network information;
    显示第一提示信息,所述第一提示信息用于提示用户所述至少一个目标Wi-Fi网络可以连接;displaying first prompt information, where the first prompt information is used to prompt the user that the at least one target Wi-Fi network can be connected;
    自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络,并显示登录结果信息,所述登录结果信息包括:已登录的目标Wi-Fi网络的名称信息、目标Wi-Fi网络对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个;其中所述第二提示信息用于提示用户断开与所述目标Wi-Fi网络的连接。Automatically log in to any target Wi-Fi network in the at least one target Wi-Fi network, and display the login result information, the login result information includes: the name information of the logged-in target Wi-Fi network, the target Wi-Fi At least one of location information corresponding to the network, security information of the target Wi-Fi network, and second prompt information; wherein the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network.
  2. 根据权利要求1所述的方法,其特征在于,所述获取用户的位置信息包括:通过GPS获取用户的位置信息。The method according to claim 1, wherein said obtaining the location information of the user comprises: obtaining the location information of the user through GPS.
  3. 根据权利要求1所述的方法,其特征在于,所述第二提示信息还用于提示用户取消自动登录服务。The method according to claim 1, wherein the second prompt information is also used to prompt the user to cancel the automatic login service.
  4. 根据权利要求1所述的方法,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:The method according to claim 1, wherein the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network comprises:
    自动登录所述至少一个目标Wi-Fi网络中网络信号强度最大的一个Wi-Fi网络。Automatically log in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi network.
  5. 根据权利要求1或4所述的方法,其特征在于,所述自动登录包括:账号登录、一键登录、短信登录中的至少一个。The method according to claim 1 or 4, wherein the automatic login comprises: at least one of account login, one-key login, and SMS login.
  6. 根据权利要求1所述的方法,其特征在于,所述确定至少一个目标Wi-Fi网络信息以后,还包括:The method according to claim 1, wherein after said determining at least one target Wi-Fi network information, further comprising:
    将所述至少一个目标Wi-Fi网络进行显示。and displaying the at least one target Wi-Fi network.
  7. 根据权利要求6所述的方法,其特征在于,将所述至少一个目标Wi-Fi网络进行显示包括:The method according to claim 6, wherein displaying the at least one target Wi-Fi network comprises:
    在显示所述至少一个目标Wi-Fi网络时,隐藏显示其他Wi-Fi网络信息,所述其他Wi-Fi网络信息包括:所述电子设备搜索到的本地Wi-Fi信息中与所述云服务器返回的至少一个官方Wi-Fi网络不匹配的Wi-Fi网络。When displaying the at least one target Wi-Fi network, other Wi-Fi network information is hidden and displayed, and the other Wi-Fi network information includes: the local Wi-Fi information searched by the electronic device and the cloud server A Wi-Fi network that does not match at least one of the official Wi-Fi networks returned.
  8. 根据权利要求7所述的方法,其特征在于,将所述至少一个目标Wi-Fi网络进行显示还包括:显示第三提示信息,通过点击第三提示信息,将隐藏的其他Wi-Fi网络信息进行显示。The method according to claim 7, wherein displaying the at least one target Wi-Fi network further comprises: displaying a third prompt message, and clicking on the third prompt message to hide other Wi-Fi network information to display.
  9. 根据权利要求6所述的方法,其特征在于,所述将所述至少一个目标Wi-Fi网络进行显示包括:The method according to claim 6, wherein the displaying the at least one target Wi-Fi network comprises:
    显示所述公共场所对应的第一目标Wi-Fi网络,所述第一目标Wi-Fi网络为所述公共场所对应的至少一个目标Wi-Fi网络中网络信号强度最大的Wi-Fi网络;或者,Displaying the first target Wi-Fi network corresponding to the public place, where the first target Wi-Fi network is the Wi-Fi network with the highest network signal strength among at least one target Wi-Fi network corresponding to the public place; or ,
    显示至少一个目标Wi-Fi网络,所述至少一个目标Wi-Fi网络按照网络信号强度由大到小的顺序进行显示。Displaying at least one target Wi-Fi network, where the at least one target Wi-Fi network is displayed in descending order of network signal strength.
  10. 根据权利要求9所述的方法,其特征在于,所述将所述至少一个目标Wi-Fi网络信息进行显示包括:The method according to claim 9, wherein the displaying the at least one target Wi-Fi network information comprises:
    显示所述目标Wi-Fi网络的名称信息、安全信息;displaying name information and security information of the target Wi-Fi network;
    显示第二提示信息,所述第二提示信息用于提示用户可以选择自动登录所述目标 Wi-Fi网络或者手动登录所述目标Wi-Fi网络。Displaying second prompt information, where the second prompt information is used to prompt the user to choose to automatically log in to the target Wi-Fi network or to manually log in to the target Wi-Fi network.
  11. 根据权利要求6-10任一项所述的方法,其特征在于,所述将所述至少一个目标Wi-Fi网络进行显示,还包括:The method according to any one of claims 6-10, wherein the displaying the at least one target Wi-Fi network further comprises:
    显示用户的当前位置信息;其中,所述当前位置信息可以进行刷新;Display the user's current location information; wherein, the current location information can be refreshed;
    当用户对当前位置信息进行刷新操作,且刷新以后的位置信息发生变化时,将刷新以后的位置信息发送给云服务器,并接收云服务器返回的结果信息;When the user performs a refresh operation on the current location information, and the refreshed location information changes, the refreshed location information is sent to the cloud server, and the result information returned by the cloud server is received;
    基于所述结果信息中包括至少一个与当前位置信息相对应的目标Wi-Fi网络信息,更新显示所述至少一个目标Wi-Fi网络信息。Based on the result information including at least one target Wi-Fi network information corresponding to the current location information, update and display the at least one target Wi-Fi network information.
  12. 根据权利要求1所述的方法,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络以后,还包括:当检测到用户离开当前已登录的Wi-Fi网络对应的公共场所时,断开已连接的目标Wi-Fi网络,并显示提示信息,所述提示信息用于提示用户在预设时间段内重新进入所述公共场所时,将自动登录所述公共场所对应的目标Wi-Fi网络。The method according to claim 1, wherein after the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network, further comprising: when it is detected that the user leaves the currently logged-in Wi-Fi network, - When the public place corresponding to the Fi network, disconnect the connected target Wi-Fi network, and display a prompt message, the prompt message is used to prompt the user to automatically log in when re-entering the public place within a preset time period The target Wi-Fi network corresponding to the public place.
  13. 根据权利要求1所述的方法,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络以后,还包括:The method according to claim 1, wherein after the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network, further comprising:
    获取用户的登录账户信息、登录地址信息和登录状态信息;所述登录状态信息包括:自动登录、手动登录中的任意一个;Obtain the user's login account information, login address information, and login status information; the login status information includes: any one of automatic login and manual login;
    对获取的用户的登录账户信息、登录地址信息和登录状态信息进行存储。Store the obtained user's login account information, login address information and login status information.
  14. 根据权利要求13所述的方法,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:The method according to claim 13, wherein the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network comprises:
    判断用户是否为首次登录所述目标Wi-Fi网络;Determine whether the user is logging in to the target Wi-Fi network for the first time;
    基于用户不是首次登录所述目标Wi-Fi网络,获取用户上次登录所述目标Wi-Fi网络的登录状态信息,并根据所述获取的用户登录状态信息,登录所述目标Wi-Fi网络。Based on the fact that the user is not logging into the target Wi-Fi network for the first time, acquiring login status information of the user logging into the target Wi-Fi network last time, and logging into the target Wi-Fi network according to the acquired user login status information.
  15. 一种基于位置信息的Wi-Fi连接方法,应用于云服务器,其特征在于,所述方法包括:A Wi-Fi connection method based on location information, which is applied to a cloud server, is characterized in that the method includes:
    接收用户的位置信息;Receive the user's location information;
    将所述用户的位置信息与所述云服务器上存储的公共场所的位置范围信息进行比较;Comparing the location information of the user with the location range information of the public place stored on the cloud server;
    当存在一个公共场所的位置范围信息包含所述用户的位置信息时,获取所述公共场所对应的至少一个官方Wi-Fi网络,并将所述至少一个官方Wi-Fi网络发送给用户,所述至少一个官方Wi-Fi网络用于终端进行自动登录Wi-Fi网络。When the location range information of a public place includes the location information of the user, obtain at least one official Wi-Fi network corresponding to the public place, and send the at least one official Wi-Fi network to the user, the At least one official Wi-Fi network is used for the terminal to automatically log in to the Wi-Fi network.
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:The method according to claim 15, further comprising:
    获取公共场所的位置范围信息和所述公共场所对应的官方Wi-Fi信息;Obtain location range information of public places and official Wi-Fi information corresponding to said public places;
    将所述公共场所的位置范围信息和所述公共场所对应的官方Wi-Fi信息,按照对应关系存储到云服务器上。The location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
  17. 根据权利要求15所述的方法,其特征在于,所述获取所述公共场所对应的至少一个官方Wi-Fi网络,并将所述至少一个官方Wi-Fi网络发送给用户包括:The method according to claim 15, wherein the obtaining at least one official Wi-Fi network corresponding to the public place, and sending the at least one official Wi-Fi network to the user comprises:
    将所述至少一个官方Wi-Fi网络中网络信号强度最大的Wi-Fi网络返回给用户。Returning the Wi-Fi network with the highest network signal strength among the at least one official Wi-Fi network to the user.
  18. 一种基于位置信息的Wi-Fi连接系统,包括电子设备和云服务器,其特征在于,A Wi-Fi connection system based on location information, including electronic equipment and cloud server, is characterized in that,
    所述电子设备,用于获取用户位置信息,并将所述用户位置信息上传到云服务器;The electronic device is configured to obtain user location information, and upload the user location information to a cloud server;
    所述云服务器,用于将所述用户的位置信息与云服务器上存储的公共场所的位置范围信息进行比较;当存在一个公共场所的位置范围信息包含所述用户位置信息时,获取所述公共场所对应的至少一个官方Wi-Fi网络,并将所述至少一个官方Wi-Fi网络信息返回给 所述电子设备;The cloud server is configured to compare the location information of the user with the location range information of public places stored on the cloud server; when there is a location range information of a public place that includes the user location information, obtain the public location information. At least one official Wi-Fi network corresponding to the venue, and returning the at least one official Wi-Fi network information to the electronic device;
    所述电子设备,还用于将所述至少一个官方Wi-Fi网络信息与本地搜索到的Wi-Fi网络信息进行匹配,确定至少一个目标Wi-Fi网络信息,并显示第一提示信息,所述第一提示信息用于提示用户所述至少一个目标Wi-Fi网络可以连接;The electronic device is further configured to match the at least one official Wi-Fi network information with locally searched Wi-Fi network information, determine at least one target Wi-Fi network information, and display a first prompt message, so The first prompt information is used to prompt the user that the at least one target Wi-Fi network can be connected;
    所述电子设备还用于自动登录所述至少一个目标Wi-Fi网络,并显示登录结果信息,所述登录结果信息包括:已登录的目标Wi-Fi网络的名称信息、所述目标Wi-Fi网络对应的位置信息、目标Wi-Fi网络的安全信息、第二提示信息中的至少一个;其中,所述第二提示信息用于提示用户断开与所述目标Wi-Fi网络的连接。The electronic device is further configured to automatically log in to the at least one target Wi-Fi network, and display login result information, the login result information including: name information of the logged-in target Wi-Fi network, the target Wi-Fi At least one of location information corresponding to the network, security information of the target Wi-Fi network, and second prompt information; wherein the second prompt information is used to prompt the user to disconnect from the target Wi-Fi network.
  19. 根据权利要求18所述的系统,其特征在于,所述电子设备还用于,通过GPS获取用户的位置信息。The system according to claim 18, wherein the electronic device is further used to obtain the location information of the user through GPS.
  20. 根据权利要求18所述的系统,其特征在于,所述第二提示信息还用于提示用户取消自动登录服务。The system according to claim 18, wherein the second prompt information is also used to prompt the user to cancel the automatic login service.
  21. 根据权利要求18所述的系统,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:The system according to claim 18, wherein the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network comprises:
    自动登录所述至少一个目标Wi-Fi网络中网络信号强度最大的一个Wi-Fi网络。Automatically log in to a Wi-Fi network with the highest network signal strength among the at least one target Wi-Fi network.
  22. 根据权利要求18或21所述的系统,其特征在于,所述自动登录包括:账号登录、一键登录、短信登录中的至少一个。The system according to claim 18 or 21, wherein the automatic login includes: at least one of account login, one-key login, and SMS login.
  23. 根据权利要求18所述的系统,其特征在于,所述电子设备还用于:The system according to claim 18, wherein the electronic device is further configured to:
    将所述至少一个目标Wi-Fi网络进行显示。and displaying the at least one target Wi-Fi network.
  24. 根据权利要求23所述的系统,其特征在于,将所述至少一个目标Wi-Fi网络进行显示包括:The system according to claim 23, wherein displaying the at least one target Wi-Fi network comprises:
    在显示所述至少一个目标Wi-Fi网络时,隐藏显示其他Wi-Fi网络信息,所述其他Wi-Fi网络信息包括:所述电子设备搜索到的本地Wi-Fi信息中与所述云服务器返回的至少一个官方Wi-Fi网络不匹配的Wi-Fi网络。When displaying the at least one target Wi-Fi network, other Wi-Fi network information is hidden and displayed, and the other Wi-Fi network information includes: the local Wi-Fi information searched by the electronic device and the cloud server A Wi-Fi network that does not match at least one of the official Wi-Fi networks returned.
  25. 根据权利要求24所述的系统,其特征在于,将所述至少一个目标Wi-Fi网络进行显示还包括:显示第三提示信息,通过点击第三提示信息,将隐藏的其他Wi-Fi网络信息进行显示。The system according to claim 24, wherein displaying the at least one target Wi-Fi network further comprises: displaying a third prompt message, and hiding other Wi-Fi network information by clicking on the third prompt message to display.
  26. 根据权利要求23所述的系统,其特征在于,所述将所述至少一个目标Wi-Fi网络进行显示包括:The system according to claim 23, wherein the displaying the at least one target Wi-Fi network comprises:
    显示所述公共场所对应的第一目标Wi-Fi网络,所述第一目标Wi-Fi网络为所述公共场所对应的至少一个目标Wi-Fi网络中网络信号强度最大的Wi-Fi网络;或者,Displaying the first target Wi-Fi network corresponding to the public place, where the first target Wi-Fi network is the Wi-Fi network with the highest network signal strength among at least one target Wi-Fi network corresponding to the public place; or ,
    显示至少一个目标Wi-Fi网络,所述至少一个目标Wi-Fi网络按照网络信号强度由大到小的顺序进行显示。Displaying at least one target Wi-Fi network, where the at least one target Wi-Fi network is displayed in descending order of network signal strength.
  27. 根据权利要求26所述的系统,其特征在于,所述将所述至少一个目标Wi-Fi网络信息进行显示包括:The system according to claim 26, wherein the displaying the at least one target Wi-Fi network information comprises:
    显示所述目标Wi-Fi网络的名称信息、安全信息;displaying name information and security information of the target Wi-Fi network;
    显示第二提示信息,所述第二提示信息用于提示用户可以选择自动登录所述目标Wi-Fi网络或者手动登录所述目标Wi-Fi网络。Displaying second prompt information, where the second prompt information is used to prompt the user to choose to automatically log in to the target Wi-Fi network or to manually log in to the target Wi-Fi network.
  28. 根据权利要求23-27任一项所述的系统,其特征在于,所述将所述至少一个目标Wi-Fi网络进行显示,还包括:The system according to any one of claims 23-27, wherein the displaying the at least one target Wi-Fi network further comprises:
    显示用户的当前位置信息;其中,所述当前位置信息可以进行刷新;Display the user's current location information; wherein, the current location information can be refreshed;
    当用户对当前位置信息进行刷新操作,且刷新以后的位置信息发生变化时,将刷新以后的位置信息发送给云服务器,并接收云服务器返回的结果信息;When the user performs a refresh operation on the current location information, and the refreshed location information changes, the refreshed location information is sent to the cloud server, and the result information returned by the cloud server is received;
    基于所述结果信息中包括至少一个与当前位置信息相对应的目标Wi-Fi网络信息,更 新显示所述至少一个目标Wi-Fi网络信息。Based on the result information including at least one target Wi-Fi network information corresponding to the current location information, updating and displaying the at least one target Wi-Fi network information.
  29. 根据权利要求18所述的系统,其特征在于,所述电子设备还用于:The system according to claim 18, wherein the electronic device is further configured to:
    当检测到用户离开当前已登录的Wi-Fi网络对应的公共场所时,断开已连接的目标Wi-Fi网络,并显示提示信息,所述提示信息用于提示用户在预设时间段内重新进入所述公共场所时,将自动登录所述公共场所对应的目标Wi-Fi网络。When it is detected that the user leaves the public place corresponding to the currently logged in Wi-Fi network, the connected target Wi-Fi network is disconnected, and a prompt message is displayed, the prompt message is used to prompt the user to reconnect within the preset time period. When entering the public place, it will automatically log in to the target Wi-Fi network corresponding to the public place.
  30. 根据权利要求18所述的系统,其特征在于,所述电子设备还用于:The system according to claim 18, wherein the electronic device is further configured to:
    获取用户的登录账户信息、登录地址信息和登录状态信息;所述登录状态信息包括:自动登录、手动登录中的任意一个;Obtain the user's login account information, login address information, and login status information; the login status information includes: any one of automatic login and manual login;
    对获取的用户的登录账户信息、登录地址信息和登录状态信息进行存储。Store the obtained user's login account information, login address information and login status information.
  31. 根据权利要求30所述的系统,其特征在于,所述自动登录所述至少一个目标Wi-Fi网络中的任意一个目标Wi-Fi网络包括:The system according to claim 30, wherein the automatic login to any target Wi-Fi network in the at least one target Wi-Fi network comprises:
    判断用户是否为首次登录所述目标Wi-Fi网络;Determine whether the user is logging in to the target Wi-Fi network for the first time;
    基于用户不是首次登录所述目标Wi-Fi网络,获取用户上次登录所述目标Wi-Fi网络的登录状态信息,并根据所述获取的用户登录状态信息,登录所述目标Wi-Fi网络。Based on the fact that the user is not logging into the target Wi-Fi network for the first time, acquiring login status information of the user logging into the target Wi-Fi network last time, and logging into the target Wi-Fi network according to the acquired user login status information.
  32. 根据权利要求18所述的系统,其特征在于,所述云服务器还用于:The system according to claim 18, wherein the cloud server is also used for:
    当存在一个公共场所的位置范围信息包含所述用户位置信息时,获取所述公共场所对应的至少一个官方Wi-Fi网络,并将所述至少一个官方Wi-Fi网络中网络信号强度最大的Wi-Fi网络作为第二Wi-Fi网络返回给所述电子设备;When there is a location range information of a public place that includes the user location information, at least one official Wi-Fi network corresponding to the public place is obtained, and the Wi-Fi network with the highest network signal strength among the at least one official Wi-Fi network - the Fi network is returned to the electronic device as a second Wi-Fi network;
    所述电子设备还用于:将所述第二Wi-Fi网络与本地搜索到的Wi-Fi网络进行匹配,当本地搜索到的Wi-Fi网络中存在与第二Wi-Fi网络匹配的Wi-Fi网络时,自动登录所述第二Wi-Fi网络,并显示登录结果。The electronic device is also used to: match the second Wi-Fi network with a locally searched Wi-Fi network, when there is a Wi-Fi network that matches the second Wi-Fi network in the locally searched Wi-Fi network. When the -Fi network is in use, automatically log in to the second Wi-Fi network and display a login result.
  33. 根据权利要求18所述的系统,其特征在于,所述云服务器还用于:The system according to claim 18, wherein the cloud server is also used for:
    获取公共场所的位置范围信息和所述公共场所对应的官方Wi-Fi信息;Obtain location range information of public places and official Wi-Fi information corresponding to said public places;
    将所述公共场所的位置范围信息和所述公共场所对应的官方Wi-Fi信息,按照对应关系存储到云服务器上。The location range information of the public place and the official Wi-Fi information corresponding to the public place are stored on the cloud server according to the corresponding relationship.
  34. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    至少一个存储器,用于存储程序;at least one memory for storing programs;
    至少一个处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-14任一项所述的方法。At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method according to any one of claims 1-14.
  35. 一种云服务器,其特征在于,包括:A kind of cloud server, is characterized in that, comprises:
    至少一个存储器,用于存储程序;at least one memory for storing programs;
    至少一个处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求15-17任一项所述的方法。At least one processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method according to any one of claims 15-17.
  36. 一种计算机可读介质,所述计算机存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1-14或如权利要求15-17任一所述的方法。A computer-readable medium, wherein instructions are stored in the computer storage medium, and when the instructions are run on a computer, the computer is made to execute the method according to any one of claims 1-14 or 15-17.
  37. 一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-14或如权利要求15-17任一所述的方法。A computer program product comprising instructions, which, when run on a computer, cause the computer to execute the method according to any one of claims 1-14 or 15-17.
PCT/CN2022/108293 2021-08-06 2022-07-27 Wi-fi connection method and apparatus based on location information WO2023011289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110904401.X 2021-08-06
CN202110904401.XA CN115706916A (en) 2021-08-06 2021-08-06 Wi-Fi connection method and device based on position information

Publications (1)

Publication Number Publication Date
WO2023011289A1 true WO2023011289A1 (en) 2023-02-09

Family

ID=85155223

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/108293 WO2023011289A1 (en) 2021-08-06 2022-07-27 Wi-fi connection method and apparatus based on location information

Country Status (2)

Country Link
CN (1) CN115706916A (en)
WO (1) WO2023011289A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014803A (en) * 2023-07-06 2023-11-07 荣耀终端有限公司 Positioning method, recommending method, readable medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN105744523A (en) * 2016-02-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 WIFI connection method and mobile terminal
CN106507360A (en) * 2016-11-24 2017-03-15 奇酷互联网络科技(深圳)有限公司 A kind of WIFI network access control method and device
CN107294977A (en) * 2017-06-28 2017-10-24 迈普通信技术股份有限公司 The method and device of Wi Fi secure connections
US20180115946A1 (en) * 2016-10-24 2018-04-26 International Business Machines Corporation TRUSTED METHOD FOR CONSUMING AND SHARING Wi-Fi INTERNET ACCESS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN105744523A (en) * 2016-02-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 WIFI connection method and mobile terminal
US20180115946A1 (en) * 2016-10-24 2018-04-26 International Business Machines Corporation TRUSTED METHOD FOR CONSUMING AND SHARING Wi-Fi INTERNET ACCESS
CN106507360A (en) * 2016-11-24 2017-03-15 奇酷互联网络科技(深圳)有限公司 A kind of WIFI network access control method and device
CN107294977A (en) * 2017-06-28 2017-10-24 迈普通信技术股份有限公司 The method and device of Wi Fi secure connections

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014803A (en) * 2023-07-06 2023-11-07 荣耀终端有限公司 Positioning method, recommending method, readable medium and electronic device

Also Published As

Publication number Publication date
CN115706916A (en) 2023-02-17

Similar Documents

Publication Publication Date Title
KR102470275B1 (en) Voice control method and electronic device
WO2021052263A1 (en) Voice assistant display method and device
CN109766036B (en) Message processing method and electronic equipment
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2020182065A1 (en) Shortcut function activation method and electronic device
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
CN115629730A (en) Display method and related device
US20230140946A1 (en) Method for Recommending Service, Electronic Device, and System
CN110543287A (en) Screen display method and electronic equipment
CN114173000B (en) Method, electronic equipment and system for replying message and storage medium
WO2022068819A1 (en) Interface display method and related apparatus
WO2020224447A1 (en) Method and system for adding smart home device to contacts
WO2021253975A1 (en) Permission management method and apparatus for application, and electronic device
WO2020088633A1 (en) Payment method, device, and user equipment unit
WO2021052139A1 (en) Gesture input method and electronic device
WO2022042766A1 (en) Information display method, terminal device, and computer readable storage medium
WO2022160991A1 (en) Permission control method and electronic device
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
WO2023011289A1 (en) Wi-fi connection method and apparatus based on location information
WO2020192716A1 (en) System language switching method and related apparatus
CN114528581A (en) Safety display method and electronic equipment
WO2022166435A1 (en) Picture sharing method and electronic device
CN114006698B (en) token refreshing method and device, electronic equipment and readable storage medium
CN113590346B (en) Method and electronic equipment for processing service request
WO2024012346A1 (en) Task migration method, electronic device, and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22852003

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE