WO2018059045A1 - 一种WiFi连接方法和设备 - Google Patents

一种WiFi连接方法和设备 Download PDF

Info

Publication number
WO2018059045A1
WO2018059045A1 PCT/CN2017/091291 CN2017091291W WO2018059045A1 WO 2018059045 A1 WO2018059045 A1 WO 2018059045A1 CN 2017091291 W CN2017091291 W CN 2017091291W WO 2018059045 A1 WO2018059045 A1 WO 2018059045A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
access point
connection
target access
portable
Prior art date
Application number
PCT/CN2017/091291
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN201780002636.1A priority Critical patent/CN108432292A/zh
Priority to EP17854499.5A priority patent/EP3509353B1/en
Priority to US16/336,836 priority patent/US11553541B2/en
Publication of WO2018059045A1 publication Critical patent/WO2018059045A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/16Interfaces between hierarchically similar devices
    • H04W92/18Interfaces between hierarchically similar devices between terminal devices

Definitions

  • the present application relates to the field of wireless communications, and in particular, to a WiFi connection method and device.
  • one device can set the wireless WLAN (Wireless Fidelity, WiFi) hotspot based on the IEEE 802.11b standard, and the other device can access the WiFi.
  • the hotspot is connected to the WiFi to enable two devices to connect to the network at the same time.
  • the device requesting the WiFi connection can connect successfully only with the password, but cannot identify whether the WiFi access point that is connected to it is a portable WiFi hotspot shared by the device that needs to pay for the mobile phone, and possibly Back to the device that provides the WiFi connection causes a large amount of traffic loss, causing loss to the user.
  • the present application provides a method and a device for connecting to a WiFi, and the purpose is to solve the technical problem that the device that accesses the WiFi access point in the prior art cannot recognize whether the WiFi access point connected to the mobile phone is a portable WiFi hotspot. .
  • a first aspect of the present application provides a WiFi connection method, after receiving a WiFi access point of the first device, receiving a connection request of the second device, and further transmitting, according to the connection request, whether the WiFi access point is indicated Feedback information for the portable WiFi hotspot to the second device.
  • the device on the device providing the WiFi access point feeds back a device that can apply for the WiFi connection to indicate whether the WiFi access point is a portable WiFi hotspot, so as to promptly remind the device that applies for the WiFi connection to connect the WiFi.
  • the access point is a portable WiFi hotspot. Therefore, the device accessing the WiFi access point can know that the connected WiFi access point is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible. happening.
  • the second aspect of the present application provides a WiFi connection method, by searching for a WiFi access point in a surrounding environment where the second device is located, to obtain WiFi access including at least one WiFi access point that the second device can selectively access.
  • Point list after determining the target access point in the WiFi access point list, sending a connection request to the device where the target access point is located, and then receiving the device that the target access point is located based on the connection request and indicating the target connection Whether the in-point is feedback information of the portable WiFi hotspot, and if the feedback information indicates that the target access point is a portable WiFi hotspot, outputting a second prompt that can remind the user of the second device that the target access point is a portable WiFi hotspot information.
  • the application can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device providing the WiFi access point in time, and the device from accessing the WiFi access point can I learned that my connected WiFi access point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss caused to the device providing the WiFi hotspot as early as possible.
  • the third aspect of the present application provides a device, which may include the following modules: a WiFi module that opens a WiFi access point of the device, and a data processing module, where the data processing module is configured to receive a connection request of the second device, and is based on The connection request sends feedback information to the second device, and the feedback information indicates whether the WiFi access point is a portable WiFi hotspot.
  • the present application uses the WiFi connection device set on the device that provides the WiFi access point to feed back a device that can apply for the WiFi connection to indicate whether the WiFi access point is a portable WiFi hotspot, thereby promptly reminding the device that applies for the WiFi connection.
  • the WiFi access point to which it is connected is a portable WiFi hotspot. Therefore, the device accessing the WiFi access point can know that the connected WiFi access point is a portable WiFi hotspot, thereby avoiding the device providing the WiFi hotspot as early as possible. A lot of traffic is lost.
  • a fourth aspect of the present application provides an apparatus, including: a module for searching for a WiFi access point in a surrounding environment where the second device is located, to obtain at least one a WiFi module of the WiFi access point list of the WiFi access point, configured to determine a target access point in the WiFi access point list, send a connection request to the device where the target access point is located, and receive the target a data processing module and a data output module, where the device is located, based on the connection request, indicating that the target access point is feedback information of the portable WiFi hotspot, and the data output module is configured to: if the feedback information indicates The target access point is a portable WiFi hotspot, and the second prompt information is output, and the second prompt information is used to remind the user of the second device that the target access point is a portable WiFi hotspot.
  • the present application can identify the connected WiFi as a portable WiFi hotspot by using the WiFi connection device disposed on the second device to receive the feedback information sent by the device that provides the WiFi access point, thereby accessing the WiFi access point.
  • the device can know in time that the WiFi access point connected to it is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • a fifth aspect of the present application provides an apparatus, which may include the following structures: a WiFi chip for providing a WiFi connection, a memory for storing software programs and modules, a processor, and a bus, the WiFi chip, the memory respectively Connected to the processor via the bus.
  • the processor is configured to execute a software program and a module stored in the memory, so that the device implements the following functions and data processing: opening a WiFi access point by using the WiFi chip, receiving a connection request of the second device, and based on the The connection request sends feedback information to the second device, and the feedback information indicates whether the WiFi access point is a portable WiFi hotspot.
  • the device on the device providing the WiFi access point feeds back a device that can apply for the WiFi connection to indicate whether the WiFi access point is a portable WiFi hotspot, so as to promptly remind the device that applies for the WiFi connection to connect the WiFi.
  • the access point is a portable WiFi hotspot. Therefore, the device that accesses the WiFi access point can know that the connected WiFi access point is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible. Case.
  • a sixth aspect of the present application provides an apparatus, which may include the following structures: a WiFi chip for providing a WiFi connection, an output device for outputting data, a memory for storing software programs and modules, a processor, and a bus;
  • the WiFi chip, the output device, and the memory are respectively connected to the processor through the bus, and the processor is configured to run a software program and a module stored in the memory, so that the device implements the following functions:
  • Data processing after the WiFi access point in the surrounding environment of the device is searched by the WiFi chip to obtain a list of WiFi access points that the device can select to access, the WiFi access point list includes Determining, by the at least one WiFi access point, the target access point in the list of the WiFi access points, sending a connection request to the device where the target access point is located, and receiving the device where the target access point is located, based on the connection Requesting the feedback information returned, the feedback information indicating whether the target access point is a portable WiFi hotspot, and if the feedback information indicates that the target access point is
  • the application can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device providing the WiFi access point in time, so that the device accessing the WiFi access point can know the connected WiFi connection in time.
  • the entry point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the first device outputs the first prompt information based on the connection request. Therefore, when the WiFi access point provided by the first device is a portable WiFi hotspot, the user of the first device can be promptly alerted to connect with other devices, thereby preventing the user of the first device from being able to know the access of the portable WiFi hotspot in time. The situation, in turn, avoids the loss caused by unknowingly consuming a large amount of traffic data.
  • the first device determines whether the login information in the connection request is consistent with the preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, the second device is allowed to access the WiFi connection. Entry point. Therefore, the first device controls the access of the second device to the WiFi access point based on the connection request, and implements the WiFi connection of the second device.
  • the first device may output the quantity information of the device accessing the WiFi access point. Therefore, the present application provides reference data to the user of the first device by prompting the user to the number of devices to which the current WiFi access point is connected in real time, and the user decides whether to disconnect the devices, thereby protecting the first device. User's interest.
  • the second device may establish a WiFi connection with the target access point. Therefore, the present application timely recognizes the connected WiFi as a portable WiFi hotspot by receiving feedback information sent by the device that provides the WiFi access point, so that the device accessing the WiFi access point can know the connected WiFi connection in time.
  • the entry point is a portable WiFi hotspot, and then a WiFi connection is made, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the second device determines whether to adopt a connection mode of a default connection, and if the connection mode of the default connection is adopted, outputting the second Prompting information and establishing a WiFi connection with the target access point. It can be seen that, in the timely manner, when the connected WiFi is a portable WiFi hotspot by receiving the feedback information sent by the device that provides the WiFi access point, the user determines whether the user directly sets the direct access to the portable WiFi hotspot, and determines the user. When the direct access to the portable WiFi hotspot is set in advance, the second prompt information is displayed and the WiFi connection is established, thereby further avoiding a situation in which a large amount of traffic is lost to the device providing the WiFi hotspot as early as possible.
  • the second device determines whether the input operation indicates that the user of the second device needs to access the target access point by receiving an input operation of the user, if The input operation indicates that the user of the second device needs to access the target access point, then outputs the second prompt information, and establishes a WiFi connection with the target access point. It can be seen that, in the timely manner, when the connected WiFi is a portable WiFi hotspot by receiving the feedback information sent by the device that provides the WiFi access point, the user determines whether the user directly sets the direct access to the portable WiFi hotspot, and determines the user.
  • the user When the direct access to the portable WiFi hotspot is not preset, the user inputs the portable WiFi hotspot by receiving the input operation of the user, that is, displaying the second prompt information and establishing a WiFi connection, thereby further avoiding providing the WiFi hotspot as early as possible.
  • the device caused a lot of traffic loss.
  • the establishing, by the second device, the WiFi connection with the target access point may be implemented by: determining whether the login information is consistent with the login parameter of the target access point, and if yes, accessing The target access point. It can be seen that the present application establishes a WiFi connection with the target access point when the connected WiFi is a portable WiFi hotspot by receiving the feedback information sent by the device that provides the WiFi access point in time, and avoids providing the WiFi hotspot as early as possible. The device causes a large amount of traffic to be lost while implementing a WiFi connection.
  • the second device monitors whether the WiFi access point in which the login information in the connection request is consistent with the login parameter is searched, and if so, the output is Three prompting information, and collecting an input operation, when the input operation indicates that it is required to switch to the searched WiFi access point, disconnecting from the target access point, and establishing a relationship with the searched WiFi access point WiFi connection. It can be seen that the second device in the application can remind the user of the second device to switch to the new WiFi access point for use when discovering the new WiFi access point that can be connected, and access the new WiFi when the user operation permits. The access point further avoids a large amount of traffic loss to devices that provide portable WiFi hotspots.
  • the AT command can be transmitted to the first device, so as to promptly remind the device that applies for the WiFi connection that the WiFi access point connected to it is a portable WiFi.
  • the purpose of the hotspot is to enable the device accessing the WiFi access point to know in time that the connected WiFi access point is a portable WiFi hotspot, thereby avoiding a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the feedback information may be transmitted to the second device through the interface, so as to promptly remind the device that applies for the WiFi connection that the connected WiFi access point is portable.
  • the purpose of the WiFi hotspot is to enable the device accessing the WiFi access point to know that the connected WiFi access point is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the first device outputs the first prompt information in a manner displayed on the screen. It can be seen that the present application promptly reminds the device that applies for the WiFi connection that the WiFi access point connected to it is a portable WiFi hotspot by displaying the first prompt information, thereby the device accessing the WiFi access point can know the connection itself in time.
  • the WiFi access point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the first prompt information may be displayed by using a toast, a notification bar, or a status bar. Therefore, the device accessing the WiFi access point can know that the connected WiFi access point is portable through the displayed first prompt information. WiFi hotspots, so as to avoid a large amount of traffic loss to devices that provide WiFi hotspots as early as possible.
  • the first device outputs the first prompt information in a manner of sound playback. It can be seen that the present application promptly reminds the device that applies for the WiFi connection that the WiFi access point connected to it is a portable WiFi hotspot by playing the first prompt information, thereby the device accessing the WiFi access point can know the WiFi connected by the device in time.
  • the access point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the first device may play the first prompt information through the audio output device. Therefore, the device accessing the WiFi access point can timely know that the WiFi access point connected to it is a portable WiFi hotspot, thereby avoiding a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • a seventh aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
  • An eighth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the above aspects.
  • a ninth aspect of the present application provides a method for connecting to a WiFi, which may include the following steps: the terminal searches for surrounding WiFi; selects a WiFi access point from the searched WiFi list to determine whether it is a portable WiFi hotspot; if it is a portable WiFi hotspot, determines Whether the terminal has set a default connection; if a default connection is set, the user is reminded that the WiFi is a portable WiFi hotspot; and connected to the portable WiFi hotspot.
  • the application can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device providing the WiFi access point in time, and promptly remind the user and access the WiFi hotspot, thereby reaching the access point of the WiFi access point.
  • the device can know in time that the WiFi access point connected to it is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • a tenth aspect of the present application provides a terminal, which may include the following structure: a memory storing instructions and a processor, wherein the processor calls an instruction stored in the memory to perform the WiFi connection method, such as: searching for surrounding WiFi; In the searched WiFi list, select a WiFi access point to determine whether it is a portable WiFi hotspot; if it is a portable WiFi hotspot, determine whether the terminal has set a default connection; if a default connection is set, the user is reminded that the WiFi is a portable WiFi hotspot; A portable WiFi hotspot.
  • the WiFi connection method such as: searching for surrounding WiFi; In the searched WiFi list, select a WiFi access point to determine whether it is a portable WiFi hotspot; if it is a portable WiFi hotspot, determine whether the terminal has set a default connection; if a default connection is set, the user is reminded that the WiFi is a portable WiFi hotspot; A portable WiFi hotspot.
  • the application can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device providing the WiFi access point in time, and promptly remind the user and access the WiFi hotspot, thereby reaching the access point of the WiFi access point.
  • the device can know in time that the WiFi access point connected to it is a portable WiFi hotspot, so as to avoid causing a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • 1 is a schematic diagram of a communication connection of a WiFi hotspot connection between two devices in the present application
  • 2a is a flowchart of a method for a WiFi connection of a first device according to an embodiment of the present application
  • FIG. 3 is a flowchart of another method for performing a WiFi connection by a first device according to an embodiment of the present application
  • 4a-4d are flowcharts respectively showing a method for performing WiFi connection on a second device in the embodiment of the present application.
  • FIG. 5a is a schematic diagram of another application of the embodiment of the present application.
  • FIG. 5b and FIG. 5c are respectively a flowchart of another method for performing WiFi connection on a second device according to an embodiment of the present application
  • FIG. 6 to FIG. 8 are respectively a view showing another application example of the embodiment of the present application.
  • FIG. 9 and FIG. 10 are schematic structural diagrams of a first device in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a second device according to an embodiment of the present application.
  • FIG. 12 is another schematic structural diagram of a first device in an embodiment of the present application.
  • FIG. 13 is another schematic structural diagram of a second device in the embodiment of the present application.
  • FIG. 1 shows a communication connection between two devices for WiFi hotspot connection.
  • the device can include a mobile phone, a tablet, a PDA (Personal Digital Assistant), a POS (Point of Sales), and a car computer. Wait.
  • the first device in FIG. 1 provides a WiFi access point by setting parameters of the WiFi chip, and the WiFi access point may be a WiFi access point provided by the router, or may be a portable WiFi hotspot provided by the mobile device, and the second device passes the password. Enter the WiFi access point.
  • the WiFi hotspot is connected between the first device and the second device, the second device records the name and password of the WiFi hotspot of the first device, and the next time, the connection can be directly made according to the recorded name and password of the WiFi hotspot.
  • the second device passes the WiFi search function to one or more WiFi access points, it does not distinguish the type of the WiFi access point that is searched, for example, does not distinguish whether the WiFi access point is portable for a device such as a mobile phone.
  • a WiFi hotspot when the second device is again in the connection range of the WiFi hotspot that has successfully accessed the WiFi connection and the second device is in the connection range of the WiFi hotspot of the first device, the second device automatically uses the recorded password to access the first The WiFi hotspot of the device, at this time, neither the user of the first device is notified that the second device accesses its portable WiFi hotspot, nor the user of the second device is notified that the user accesses the portable WiFi hotspot.
  • the first device usually provides its WiFi hotspot service along with the mobile operator's mobile data traffic. Therefore, two devices that have established a WiFi hotspot connection may be useful to users, especially those who provide portable WiFi hotspot devices.
  • a large amount of traffic data is consumed without the user's knowledge. Since most of the mobile traffic services provided by the communication operators are charged by volume, a large amount of traffic consumption may bring high traffic charges to the user. It has a serious impact on the interests of users.
  • FIG. 2a is a flowchart of the first device in FIG. 1 by enabling a WiFi access point and performing WiFi connection control, and FIG. 2a may include the following steps:
  • Step 201 Turn on the WiFi access point.
  • the first device may be a mobile terminal such as a mobile phone, and the WiFi access point opened is a portable WiFi.
  • the hotspot, or the first device may also be a communication device such as a router, and the WiFi access point that is turned on is a non-portable WiFi hotspot.
  • the WiFi access point function can be turned on by setting parameters of the WiFi chip in the first device.
  • the user operates the WiFi chip on the first device, such as the WiFi chip setting interface of the mobile phone.
  • the WiFi hotspot of the first device is turned on. WiFi hotspots are used to provide network connectivity to other devices.
  • the WiFi chip in the first device may be a stand-alone WiFi chip, or may be a joint chip integrated with the WiFi communication function and other functions, and the joint chip can provide a WiFi communication function.
  • the joint chip may be a joint chip of a WiFi chip and Bluetooth, Frequency Modulation (FM), and Global Positioning System (GPS).
  • Step 202 Receive a connection request of the second device.
  • the connection request may be a request generated by the second device after searching for the WiFi access point opened by the first device, where the connection request is used by the second device to request the WiFi connection from the first device.
  • Step 203 Output first prompt information based on the connection request.
  • the first device After the connection request is sent by the second device to the first device, the first device responds to the connection request, and outputs the first prompt information.
  • the first prompt information indicates that the WiFi access point provided by the first device is searched by the second device and the second device requests the WiFi connection from the first device.
  • the first device outputs the first prompt information in a manner of displaying on the screen.
  • the first device may display the first prompt information by using a message box toast, a notification bar, or a status bar.
  • the first device may output the first prompt information in a manner of sound playing.
  • the first device may play the first prompt information through an audio output device such as a speaker or a headset.
  • the first device may output the first prompt information in a manner that the screen display is combined with the sound playing.
  • the first device displays the first prompt information on the display screen and plays the first prompt information by using the speaker.
  • the first device by outputting the first prompt information, reminds the user of the first device that the second device requests to connect to the WiFi access point provided by the first device, thereby the WiFi access point provided by the first device is
  • the portable WiFi hotspot is used, the user of the first device is promptly reminded that the second device applies for the WiFi connection, so as to prevent the user of the first device from being able to know the access situation of the portable WiFi hotspot in time, thereby avoiding the automatic connection of the second device to the portable WiFi.
  • the hotspot consumes a lot of traffic data and causes losses.
  • toast is a mechanism for displaying information in Android.
  • information is displayed in a non-focus form, and the time for displaying information in the toast display mechanism is limited, and will disappear automatically after displaying the information for a certain period of time. .
  • the first prompt information is displayed by using the toast display mechanism.
  • the second device of the user of the first device is promptly connected to the WiFi access point provided by the first device to prevent the first device from providing
  • the WiFi access point is a portable WiFi hotspot
  • the user of the first device cannot know the access status of the portable WiFi hotspot in time, which may result in unknowingly consuming a large amount of traffic data and causing loss; and the first prompt
  • the message is displayed by the toast display mechanism, it can disappear after a certain period of time, so that the normal use of the device by the user of the first device is not affected, and the user experience is improved.
  • the status bar refers to a display mechanism for displaying various parameters or states of the device in the device operating system, such as a display of the remaining amount of the battery.
  • the notification bar is a mechanism for displaying various push messages in the following mode of the device operating system. When a push message occurs, the push message can be displayed in the status bar at the top of the display screen, and hidden and in the user after a long time. The push message is displayed again on the display screen when the notification bar is pulled down.
  • the first prompt information is displayed by the status bar display mechanism, as shown in FIG. 2d, promptly reminding the user of the first device that the second device is connected to the WiFi access point provided by the first device, and avoiding the first device.
  • the provided WiFi access point is a portable WiFi hotspot
  • the user of the first device cannot know the access situation of the portable WiFi hotspot in time, which may result in unknowingly consuming a large amount of traffic data and causing loss.
  • the first prompt information is hidden after a certain length of time, and the first prompt information is displayed on the display screen again when the user pulls down the notification bar, as shown in FIG. 2e (there may still be "** running" in the notification bar. Message), to retain information for users, to remind users to have other devices access to WiFi access points at any time, to protect user interests and improve user experience.
  • Step 204 Determine whether the login information in the connection request is consistent with the preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, the second device is allowed to access the WiFi access point.
  • the determining whether the login information and the login parameter are consistent in the present application means: determining whether the login user name in the login information matches the access point user name in the login parameter, and determining the login password and the login parameter in the login information. Whether the password of the access point in the connection is the same, and the second device can be allowed to access the first as a legitimate beneficiary device only when the login user name and the access point user name are the same and the login password is the same as the access point connection password.
  • the WiFi connection operation is successfully performed between the first device and the second device, and the WiFi connection can be successfully implemented.
  • the first device determines that the second device is a legal and beneficial device
  • the first device performs a WiFi connection operation with the second device, and needs to wait for the second device to feed back information about the connection to the first device (such as confirming After connecting the WiFi access point), the WiFi connection between the first device and the second device can be successful.
  • the login information in the connection request may be the historical login information recorded by the second device after the historical access, or may be the login information input by the user of the second device.
  • Step 205 Send feedback information to the second device.
  • the feedback information can indicate whether the WiFi access point to which the second device is connected is a portable WiFi hotspot or a non-portable WiFi hotspot.
  • the feedback information can be implemented with a defined AT command or with an identifier.
  • the first device transmits a new AT command to the second device to notify whether the connected WiFi access point of the second device is a portable WiFi hotspot.
  • the first device in the application may transmit the feedback information to the second device by adding a new interface, or may transmit the feedback information to the second device by using the original data transmission interface.
  • the step 205 may be performed after the step 204, as shown in FIG. 2a, that is, after the second device successfully accesses the WiFi access point, the first device sends the feedback information to the second device.
  • the device to indicate whether the WiFi access point accessed by the second device is a portable WiFi hotspot;
  • the step 205 may be performed after the step 202, as shown in FIG. 3, that is, after the second device sends a connection request to the first device to apply for WiFi access, the first device sends feedback information to the second device. Therefore, the second device is prompted whether the WiFi access point accessed by the second device is a portable WiFi hotspot, and the second device performs subsequent processing according to the feedback information.
  • the first device can also perform the following steps each time a device has access to the portable WiFi hotspot of the first device:
  • Step 206 Output the quantity information of the device accessing the WiFi access point.
  • the quantity information may be outputted in the manner of screen display and/or sound playback, so as to prompt the user to the number of devices connected to the current WiFi access point in real time, to provide reference data to the user of the first device, and the user determines Whether to disconnect some devices.
  • the WiFi access point provided by the first device is a portable WiFi hotspot
  • the first device may obtain the second access to the portable WiFi hotspot every time the beneficiary device accesses the portable WiFi hotspot of the first device.
  • the quantity information of the second device accessing the portable WiFi hotspot is displayed, such as displaying "there are 2 connections" and the like on the first device.
  • the present application provides reference data to the user of the first device by real-time outputting the current portable WiFi hotspot of the user to share the number of connected devices, and the user decides whether to disconnect the connection of some devices to protect the interests of the user.
  • the display mechanism of the toast, the notification bar, or the status bar may be used, and the specific display effect may be referred to. As shown in the above figures 2c to 2e, it will not be described in detail here.
  • FIG. 4a is a control flow chart of the second device in FIG. 1 when performing WiFi connection, and FIG. 4a may include the following steps:
  • Step 401 Search for a WiFi access point in a surrounding environment where the second device is located, to obtain a list of WiFi access points that the second device can selectively access.
  • the second device may enable the search function of the WiFi access point by setting a control in the interface. As shown in FIG. 5a, the second device searches for a list of WiFi access points that the one or more second devices may access. For example, WiFi access point a, WiFi access point b, WiFi access point c, and the like.
  • Step 402 Determine a target access point in the WiFi access point list.
  • the second device may use the WiFi access point with the strongest signal coverage capability in the WiFi access point list as the target access point, or may match the login user name and the login password in the WiFi access point list.
  • the WiFi access point is the target access point.
  • Step 403 Generate a connection request, and send a connection request to the device where the target access point is located.
  • connection request is used by the second device to request a WiFi connection to a device where the target access point is located, such as the first device.
  • the device where the target access point is located determines whether the login information in the connection request is consistent with the preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, the second setting is allowed.
  • the device accesses the WiFi access point.
  • the feedback information is sent to the second device, and the feedback information indicates whether the WiFi access point connected to the second device is a portable WiFi hotspot or a non-portable WiFi hotspot.
  • Step 404 Receive feedback information sent by the device where the target access point is located.
  • the second device when the second device receives the feedback information sent by the device where the target access point is located, the device where the second device is located at the target access point allows the second device to access the target access point but the WiFi connection is not connected. The state of success.
  • Step 405 Determine whether the target access point is a portable WiFi hotspot based on the feedback information. If yes, go to step 406. Otherwise, go to step 407.
  • Step 406 Determine whether the connection mode of the default connection is adopted. If yes, go to step 408. Otherwise, go to step 409.
  • connection mode of the default connection refers to a connection mode that is preset by the user of the second device and needs to directly access the portable WiFi hotspot.
  • Step 407 Determine whether the device where the target access point is located allows the second device to access the target access point. If yes, go to step 410. Otherwise, go back to step 402 or step 401 to re-determine a new target access. Point and cycle through this until the second device accesses the WiFi access point or the second device cannot search for an accessible WiFi access point, abandon the WiFi connection or wait for a certain period of time and try again.
  • Step 408 Output the second prompt information, and perform step 407.
  • the second device may output the second prompt information in the form of a screen display and/or a sound play, where the second prompt information is used to prompt the user of the second device that the WiFi access point currently accessed by the second device is a portable WiFi hotspot. , in turn, suggesting that a large amount of traffic consumption may cause inconvenience to device users who provide portable WiFi hotspots, and the like.
  • the second device may display the second prompt information by using a toast, a notification bar, or a status bar.
  • a toast a toast
  • a notification bar a notification bar
  • a status bar a bar that indicates whether the second prompt information is displayed.
  • Step 409 Receive an input operation of the user, and perform step 411.
  • the input operation indicates whether the user of the second device needs to access the target access point belonging to the portable WiFi hotspot. That is to say, after receiving the feedback information, the second device has learned that the target access point is a portable WiFi hotspot. At this time, it may be selected by the user to decide whether to connect the portable WiFi hotspot.
  • Step 410 Access the target access point.
  • Step 411 Determine whether the input operation indicates that the user of the second device needs to access the target access point. If yes, go to step 408. Otherwise, go back to step 402 or step 401 to re-determine a new new target access point. And this cycle, until the second device accesses the WiFi access point or the second device cannot search for the accessible WiFi access point, gives up the WiFi connection or waits for a certain period of time and then retry.
  • the second device finds that the target access point is not a portable WiFi hotspot according to the feedback information, the second device does not need to consider whether it will bring losses to the device user, and may directly depend on the device where the target access point is located.
  • the returned comparison results to connect to the target access point or return to re-.
  • the login information in the connection request sent by the second device is compared with the login parameter of the target access point. For the same.
  • step 406, step 409, and step 411 need not be performed in FIG. 4a, as shown in FIG. 4b:
  • Step 401 Search for a WiFi access point in a surrounding environment where the second device is located, to obtain a list of WiFi access points that the second device can selectively access.
  • Step 402 Determine a target access point in the WiFi access point list.
  • Step 403 Generate a connection request, and send a connection request to the device where the target access point is located.
  • the device where the target access point is located determines whether the login information in the connection request is consistent with the preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, the second device is allowed to access. WiFi access point.
  • Step 404 Receive feedback information sent by the device where the target access point is located.
  • Step 405 Determine whether the target access point is a portable WiFi hotspot based on the feedback information. If yes, go to step 408. Otherwise, go to step 407.
  • Step 407 Based on determining whether the device where the target access point is located allows the second device to access the target access point, if yes, execute 410. Otherwise, return to step 402 or step 401 to re-determine a new target access point. And this cycle, until the second device accesses the WiFi access point or the second device cannot search for the accessible WiFi access point, and the WiFi connection is abandoned.
  • Step 408 Output the second prompt information, and perform step 407.
  • Step 410 Access the target access point.
  • the second device after the second device sends a connection request to the device where the target access point is located and receives the feedback information, and knows that the target access point is a portable WiFi hotspot, it is not necessary to set the default connection mode for the user. Moreover, it is not necessary to consider the operation of the user, but after the user who prompts the second device connects to the portable WiFi hotspot, directly accesses the target access point when the device where the target access point is located allows the second device to access. WiFi connection.
  • execution steps in FIG. 4a may also take the following execution sequence, as shown in FIG. 4c:
  • Step 401 Search for a WiFi access point in a surrounding environment where the second device is located, to obtain a list of WiFi access points that the second device can selectively access.
  • Step 402 Determine a target access point in the WiFi access point list.
  • Step 404 Receive feedback information sent by the device where the target access point is located.
  • Step 405 Determine whether the target access point is a portable WiFi hotspot based on the feedback information. If yes, go to step 406. Otherwise, go to step 403.
  • Step 406 Determine whether the connection mode of the default connection is adopted. If yes, go to step 408. Otherwise, go to step 409.
  • Step 403 Generate a connection request, and send a connection request to the device where the target access point is located.
  • the device where the target access point is located After receiving the connection request, the device where the target access point is located determines the login information in the connection request and Whether the preset login parameters of the WiFi access point are consistent, and if the login information is consistent with the login parameter, the second device is allowed to access the WiFi access point.
  • Step 407 Based on determining whether the device where the target access point is located allows the second device to access the target access point, if yes, execute 410. Otherwise, return to step 402 or step 401 to re-determine a new target access point. And this cycle, until the second device accesses the WiFi access point or the second device cannot search for the accessible WiFi access point, and the WiFi connection is abandoned.
  • Step 408 Output second prompt information, and perform step 403.
  • Step 409 Receive an input operation of the user, and perform step 411.
  • Step 410 Access the target access point.
  • Step 411 Determine whether the input operation indicates that the user of the second device needs to access the target access point. If yes, go to step 408. Otherwise, go back to step 402 or step 401 to re-determine a new new target access point. And this cycle, until the second device accesses the WiFi access point or the second device cannot search for the accessible WiFi access point, and the WiFi connection is abandoned.
  • step 406, step 409, and step 411 need not be performed in Figure 4c, as shown in Figure 4d:
  • Step 401 Search for a WiFi access point in a surrounding environment where the second device is located, to obtain a list of WiFi access points that the second device can selectively access.
  • Step 402 Determine a target access point in the WiFi access point list.
  • Step 404 Receive feedback information sent by the device where the target access point is located.
  • Step 405 Determine whether the target access point is a portable WiFi hotspot based on the feedback information. If yes, go to step 408. Otherwise, go to step 403.
  • Step 403 Generate a connection request, and send a connection request to the device where the target access point is located.
  • the device where the target access point is located determines whether the login information in the connection request is consistent with the preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, the second device is allowed to access. WiFi access point.
  • Step 407 Based on determining whether the device where the target access point is located allows the second device to access the target access point, if yes, execute 410. Otherwise, return to step 402 or step 401 to re-determine a new target access point. And this cycle, until the second device accesses the WiFi access point or the second device cannot search for the accessible WiFi access point, and the WiFi connection is abandoned.
  • Step 408 Output second prompt information, and perform step 403.
  • Step 410 Access the target access point.
  • the second device after receiving the feedback information, the second device knows that the target access point is a portable WiFi hotspot, and does not need to set the default connection mode for the user, and does not need to consider the user's operation, but prompts
  • the user After the user of the second device connects to the portable WiFi hotspot, the user directly sends a connection request to the device where the target access point is located, and then directly accesses the target access point when the second device is allowed to access, thereby implementing the WiFi connection.
  • the search is re-searchable.
  • a WiFi access point so as to switch to a non-portable WiFi hotspot as soon as possible, to avoid bringing more traffic to the device where the target access point is located, as shown in the steps in Figure 5b:
  • Step 501 Monitor whether the WiFi access point whose login information in the connection request is consistent with the login parameter can be searched, and if yes, execute step 502.
  • the searched WiFi access point may be a new portable WiFi hotspot or a non-portable WiFi access point.
  • the connection request is an instruction sent by the second device to the device where the WiFi access point is located when searching for the WiFi access point, and is used to request WiFi access to the device where the WiFi access point is located.
  • Step 502 Output third prompt information, and perform step 503.
  • the third prompt information is used to remind the user of the second device whether to switch to a new portable WiFi hotspot or switch to a non-portable WiFi access point, whereby the user can perform an input operation according to requirements.
  • the second device may output the third prompt information in a manner of screen display and/or sound playback.
  • the second device may specifically display the third prompt information by using a toast, a notification bar, or a status bar.
  • Step 503 Acquire an input operation, and perform step 504.
  • the input operation may be an input operation of the second device by the user of the second device according to the third prompt information to indicate that the user needs to switch to the searched WiFi access point or continue to maintain the connection with the portable WiFi hotspot.
  • Step 504 If the input operation indicates that it is necessary to switch to the searched WiFi access point, disconnect the connection with the portable WiFi hotspot and access the searched WiFi access point.
  • the second device when the second device finds a new WiFi access point that can be connected (the username and password are successfully matched), the second device is reminded whether the user of the second device switches to the new WiFi access point for use.
  • the user of the second device may perform parameter setting on the second device in advance, authorize to directly disconnect the current WiFi connection when searching for a new WiFi access point, and access the searched new WiFi access point, as shown in the figure.
  • step 504 may be directly performed to disconnect the connection with the portable WiFi hotspot, and Access the searched WiFi access point for automatic switching.
  • the device that provides the WiFi hotspot that is, the supply device itself, knows that it is publishing a portable wifi hotspot, and the device that needs to access the WiFi hotspot benefits.
  • the device side does not know.
  • two devices are required to add a newly defined AT command or identifier as a parameter (feedback information) in the establishment of the wifi connection, so that the benefited device can recognize the supply when receiving the AT command or identifier of the supplied device.
  • the device side is a portable wifi hotspot, such as a mobile phone WiFi hotspot, to perform corresponding operations, such as prompting corresponding information to the user of the benefit device room.
  • the provisioning device when the portable wifi hotspot provided by the provisioning device has a new connection, the user is reminded, and the provisioning device can also prompt the user to share the number of connected devices in the current mobile hotspot.
  • the portable wifi hotspot when using the portable wifi hotspot of other devices, it can be quantitatively or periodically selected according to the user's needs, for example, the user can disconnect after inputting the triggered input operation;
  • the connection is marked as the wifi provided by the portable mobile hotspot, it is determined according to the preset conditions set by the user whether to automatically connect; and when automatically connected to the portable mobile wifi hotspot, the user is reminded, such as toast, notification bar, status bar, etc.;
  • the benefit device can provide an automatic switching function when the user selects and authorizes according to the demand.
  • the mobile phone providing the portable WiFi hotspot is the mobile phone 601
  • the mobile phone that needs to access the WiFi access point is the beneficiary mobile phone 602, as shown in FIG. 6a.
  • An example of the interaction between two mobile phones in Figure 1 for a WiFi connection where:
  • the provisioning handset 601 feeds back the result information with the specific parameters to the beneficiary handset 602, where the specific parameters indicate the WiFi access provided by the provisioning handset 601. Whether the point is a portable WiFi hotspot.
  • the supply mobile phone 601 also outputs the first prompt information to the user who supplies the mobile phone 601 and allows the beneficiary mobile phone 602 to access the portable WiFi hotspot after the beacon mobile phone 602 is connected to the portable WiFi hotspot provided by the supply mobile phone 601.
  • the connection request is sent to the supply mobile phone 601 and the specific parameter fed back by the supply mobile phone 601 is received, thereby identifying After the specific parameter, it is determined whether the WiFi access point to which it is connected or is about to be connected is a portable WiFi hotspot, and based on this, the upper layer policy is continued, such as reminding the user of the benefiting mobile phone 602, matching the user name and password, and accessing the portable WiFi hotspot. Wait.
  • the mobile phone 602 clearly knows that the connected WiFi access point is a portable WiFi hotspot, and after the beneficiary mobile phone 602 clearly knows that the connected WiFi access point is a portable WiFi hotspot, the next upper layer policy can be made.
  • the benefit mobile phone 602 can be displayed to the user in various ways, and the connected WiFi access point is a WiFi hotspot of a mobile terminal, which may cause data loss to others, and other alternative data traffic can be selected at this time. Ways such as re-searching for WiFi access points and more.
  • a schematic diagram of WiFi connection control is performed for the benefit mobile phone 602 in FIG. 6.
  • the beneficiary mobile phone 602 may first perform step 701: searching for a nearby WiFi access point, and then obtaining through step 702.
  • step 703 is performed to determine whether the WiFi access point is a portable WiFi hotspot, and if the WiFi access point is not a portable WiFi hotspot.
  • step 704 is performed to directly match the username and password.
  • step 705 is performed to establish a WiFi connection. If the WiFi access point is a portable WiFi hotspot, step 706 is performed to determine that the user has previously selected.
  • step 707 Remind the user of the benefiting mobile phone 602, step 704 and step 705 are performed to match the username and password and establish a WiFi connection, if not, then step 708 is required to collect the user's Input operation to determine whether the user needs to make a WiFi connection to the portable WiFi hotspot, and the user determines to make a WiFi connection.
  • Step 707 602 after alerting users to benefit from the mobile phone to step 704 and step 705 to match the user name and password and establish a WiFi connection; and in the user name and password does not match the success, you can return to step 702 WiFi Reselect a WiFi access point in the access point list, and repeat the above process until the benefited mobile phone 602 implements a WiFi connection.
  • the WiFi connection implemented by the benefit mobile phone 602 in FIG. 7 when the WiFi connection is successful may be a WiFi connection provided by a portable WiFi hotspot or a WiFi connection provided by a non-portable WiFi hotspot.
  • step 803 can be performed to select a reminder for the user who supplies the mobile phone 601.
  • the provisioning mobile phone 601 may have an active toast, a status bar, and a notification in the notification bar or explicitly display, such as displaying the newly connected beneficiary mobile phone 602 and the current number of connections. Therefore, the provisioning mobile phone 601 actively prompts the action triggering when the beacon device 602 performs the WiFi hotspot connection, instead of waiting for the status query, thereby promptly reminding the user to avoid user traffic loss without knowing.
  • the benefit device side of the two devices that perform the WiFi connection should obtain the real-time operation opinion of the user if it is determined that the connected wifi source is a portable wifi hotspot and cannot be violently connected automatically when the wifi is connected. Or the default opinion is judged whether or not the connection is made, and if the connection is required, it is also explicitly notified to the user that it is connecting to a portable mobile wifi hotspot. It can also be said that when the benefit device performs the Wifi round search, the portable mobile hotspot wifi source will consult the user's opinion (select or pre-select), and the user is obviously reminded when connecting the type of wifi source.
  • the present application promptly reminds the user when the device providing the portable WiFi hotspot is connected to the WiFi by other devices, and solves the problem of a large amount of traffic charges caused by the user forgetting to turn off the WiFi hotspot or false triggering; After opening a WiFi hotspot, the problem of traffic loss caused by being connected by other devices without subjective will, for example, the user only wants to open a WiFi hotspot for one device, but there are multiple devices in the hotspot coverage that have been established with the provisioning device.
  • the application promptly reminds the user to handle when the beneficiary device is connected to the portable WiFi hotspot, such as disconnecting and Applying for other WiFi connections, etc., solves the problem of users consuming mobile data traffic of other devices under non-subjective willingness.
  • FIG. 9 is a schematic structural diagram of the first device in FIG. 1, and the device may include the following modules:
  • the WiFi module 901 is configured to enable a WiFi access point of the first device.
  • the function of the WiFi module 901 can be implemented based on a WiFi chip, and is used to provide a WiFi connection, thereby implementing transmission of WiFi data and implementing a function of WiFi communication.
  • the data processing module 902 is configured to receive a connection request of the second device, and send feedback information to the second device according to the connection request, where the feedback information indicates whether the WiFi access point is a portable WiFi hotspot.
  • the function of the data processing module 902 can be implemented based on a chip such as a processor.
  • the specific function implementation of the WiFi module 901 and the data processing module 902 can be referred to the method part in the foregoing, and will not be described in detail herein.
  • the device that provides the WiFi access point feeds back a device that can apply for the WiFi connection, and can indicate whether the WiFi access point is a portable WiFi hotspot, thereby promptly requesting to apply for a WiFi connection.
  • the WiFi access point to which the device is connected is a portable WiFi hotspot. Therefore, the device that accesses the WiFi access point can know that the connected WiFi access point is a portable WiFi hotspot, so as to avoid providing the WiFi hotspot as early as possible. The device caused a lot of traffic loss.
  • FIG. 10 is another schematic structural diagram of the first device in FIG. 1.
  • the device may include the following modules in addition to the WiFi module 901 and the data processing module 902:
  • the data transmission module 903 is configured to: output the first prompt information according to the connection request; and/or output the quantity information of the device that accesses the WiFi access point.
  • the function of the data transmission module 903 can be implemented based on various output devices such as a display screen or a loudspeaker.
  • the access control module 904 is configured to determine whether the login information in the connection request is consistent with a preset login parameter of the WiFi access point, and if the login information is consistent with the login parameter, allowing the second The device accesses the WiFi access point.
  • the function of the access control module 904 can be implemented based on a control chip or a processor having a logic control function.
  • FIG. 11 is a schematic structural diagram of a second device in FIG. 1, and the device may include the following modules:
  • the WiFi module 1101 is configured to search for a WiFi access point in a surrounding environment where the second device is located, to obtain a list of WiFi access points that the second device can selectively access, where the WiFi access point list includes at least one WiFi. Access Point.
  • the function of the WiFi module 1101 can be implemented based on a WiFi chip, and is used to provide a WiFi connection, thereby implementing transmission of WiFi data and implementing a WiFi communication function.
  • the data processing module 1102 is configured to determine a target access point in the WiFi access point list, send a connection request to a device where the target access point is located, and receive the device where the target access point is located, based on the The feedback information returned by the connection request, the feedback information indicating whether the target access point is a portable WiFi hotspot;
  • the function of the data processing module 1102 can be implemented based on a chip such as a processor.
  • the data output module 1103 is configured to: if the feedback information indicates that the target access point is a portable WiFi hotspot, output second prompt information, where the second prompt information is used to remind the user of the second device of the target connection
  • the entry point is a portable WiFi hotspot.
  • the function of the data transmission module 1103 can be implemented based on an output device such as a display screen and/or a speaker.
  • the WiFi module 1101 is further configured to establish a WiFi connection with the target access point.
  • the data processing module 1102 may be further configured to: if the feedback information indicates that the target access point is a portable WiFi hotspot, determine whether to use a connection mode of a default connection, and if the connection mode of the default connection is adopted, the data transmission is performed by the data connection.
  • the module 1103 outputs the second prompt information, and the WiFi module 1101 establishes a WiFi connection with the target access point.
  • the data processing module 1102 is further configured to: if the connection mode of the default connection is not adopted, receive an input operation of the user, and determine whether the input operation indicates that the user of the second device needs to access the target access point, If the input operation indicates that the user of the second device needs to access the target access point, the second prompt information is output by the data transmission module, and the target is accessed by the WiFi module 1101. WiFi connection between the points.
  • the WiFi module 1101 is specifically configured to: determine whether the login information of the second device is consistent with the login parameter of the target access point; if the login information of the second device and the target access point The login parameters are aligned, and the target access point is accessed. It can also be used to monitor whether the login information in the connection request is searched for the WiFi access point that is consistent with the login parameter, and if so, the third prompt information is output by the data transmission module 1103;
  • the second device may further include: a data input module 1104, configured to collect an input operation, where the WiFi module 1101 is disconnected when the input operation indicates that it is required to switch to the searched WiFi access point.
  • the connection of the target access point establishes a WiFi connection with the searched WiFi access point.
  • the present embodiment can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device that provides the WiFi access point in time, so that the device accessing the WiFi access point can know the connected WiFi in time.
  • the access point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • FIG. 12 is a schematic structural diagram of the first device in FIG. 1.
  • the first device 1200 may include the following structures or components: a WiFi chip 1201, a memory 1202, a processor 1203, and a bus 1204, and the WiFi chip 1201 and the memory 1202 respectively Connected to processor 1203 via bus 1204, where:
  • the WiFi chip 1201 is configured to provide a WiFi connection, and after establishing a WiFi connection with the WiFi chip of other devices, the WiFi wireless data transmission can be performed.
  • the WiFi chip 1201 refers to a chip having a WiFi communication function, and may be an independent chip, or a chip integrated with other functions, such as a combined chip of WiFi, Bluetooth, FM, and GPS.
  • the chip also has WiFi communication capabilities.
  • the memory 1202 can store software programs and modules, and the processor 1203 can execute the following functions and data processing by running the software programs and modules stored in the memory: opening the WiFi access point by using the WiFi chip 1201, and receiving the second a connection request of the device, and based on the connection request, sending feedback information to the second device, the feedback information indicating whether the WiFi access point is a portable WiFi hotspot.
  • the device that provides the WiFi access point feeds back a device that can apply for the WiFi connection to indicate whether the WiFi access point is a portable WiFi hotspot, so as to promptly remind the device that applies for the WiFi connection to connect thereto.
  • the WiFi access point is a portable WiFi hotspot. Therefore, the device that accesses the WiFi access point can know that the connected WiFi access point is a portable WiFi hotspot, so as to avoid causing a large amount of traffic to the device providing the WiFi hotspot as early as possible. Loss situation.
  • the memory 1202 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as request reception, information transmission, etc.), and the storage data area may be stored according to the The data created by the use of a device 1200, etc., in addition, the memory 1202 can A high speed random access memory is included, and may also include a non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor 1203 is a control center of the first device 1200 that connects various portions of the entire first device 1200 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1202, and by calling stored in the memory.
  • the data in 1202 performs various functions and processing data of the first device 1200, thereby controlling the entire device 1200 (including the WiFi chip 1201).
  • the processor 1203 may include one or more processing units; preferably, the processor 1203 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above modem may also not be integrated into the processor 1203.
  • the first device 1200 may further include: a first output device 1205, configured to output first prompt information and/or quantity information of a device that accesses the WiFi access point according to the instruction of the processor 1203.
  • the first output device 1205 can be a display screen 1206, a sound player 1207, etc., and the display screen can be used to display the first prompt information and/or the number of devices accessing the WiFi access point, and can also receive user input. Specifically, it can be displayed in the display manner as shown in FIGS. 2c to 2e.
  • the specific display screen may include a display panel and a touch panel, wherein the display panel may be configured by using an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like;
  • the panel may also be referred to as a touch screen, a touch sensitive screen, etc., and may collect contact or non-contact operations on or near the user (such as a user using a finger, a stylus, or the like, any suitable object or accessory on the touch panel or
  • the operation near the touch panel may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and the corresponding connection device is driven according to a preset program.
  • the optional touch panel may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller;
  • the touch controller receives the touch information from the touch detection device, and converts the signal into a processor.
  • the processed information is sent to the processor 1203 and can receive commands from the processor 1203 and execute them.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, and touch panels can be implemented using any technology developed in the future.
  • the touch panel can cover the display panel, and the user can display the touch on the display panel according to the content displayed by the display panel (including but not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.)
  • the operation is performed on or near the panel, and after the touch panel detects the operation thereon or nearby, it is transmitted to the processor 1203 through the input/output bus or the like to determine the user input, and then the processor 1203 passes the input/output bus according to the user input on the display panel. Provide corresponding visual output on it.
  • the first device 1200 may be connected to the second output device 1100, where the second output device 1100 is configured to: output the first prompt information according to the instruction of the processor 1203 and/or access the WiFi access point. Information on the number of devices.
  • the second output device 1100 can be an output device on the wristband device associated with the first device 1200.
  • the first device 1200 is a mobile phone device
  • the smart wristband is associated with the mobile phone
  • the second output device 1100 is A smart bracelet with a display, a sound player, and the like.
  • the composition and implementation of the second output device 1100 reference may be made to the related content of the first output device 1205, which is not described in detail herein.
  • the sound player can be implemented by a structure such as an audio circuit and a speaker, and can be connected to the processor 1203 through an audio interface, and the audio circuit converts the information that the processor 1203 needs to output into an analog signal, and transmits the signal to the speaker.
  • the speaker is converted to a sound signal output.
  • the first device 1200 may further include a power source 1211 that has the touch panel 1208 and other input devices 1209 for supplying power to the respective components, and may further include a camera, a Bluetooth module, and the like, which are not described herein again.
  • the second device 1300 may include the following structures or components: a WiFi chip 1301, an output device 1302, a memory 1303, a processor 1304, and a bus 1305; and a WiFi chip 1301.
  • the device 1302 and the memory 1303 are respectively connected to the processor 1304 via a bus 1305, wherein:
  • the WiFi chip 1301 is configured to provide a WiFi connection, and after establishing a WiFi connection with the WiFi chip of other devices, the WiFi wireless data transmission can be performed.
  • the WiFi chip 1301 refers to a chip having a WiFi communication function, and may be an independent chip, or a chip integrated with other functions, such as a combined chip of WiFi, Bluetooth, FM, and GPS.
  • the chip also has WiFi communication capabilities.
  • the output device 1302 is configured to output data.
  • the output device 1302 can be a display 1306, a sound player 1307, etc., and the display 1306 can be used to display information and can also receive user input.
  • the specific display screen 1306 can include a display panel and a touch panel.
  • the display panel can be configured in the form of an LCD, an OLED, or the like.
  • the touch panel can also be called a touch screen, a touch sensitive screen, etc., and can collect users.
  • the optional touch panel may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the signal into a processor. The processed information is sent to processor 1304 and can receive commands from processor 1304 and execute them.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, and touch panels can be implemented using any technology developed in the future.
  • the touch panel can cover the display panel, and the user can display the touch on the display panel according to the content displayed by the display panel (including but not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.)
  • the operation is performed on or near the panel, and after the touch panel detects an operation thereon or nearby, it is transmitted to the processor 1304 through an input/output bus or the like to determine a user input, and then the processor 1304 passes the input/output bus according to the user input on the display panel. Provide corresponding visual output on it.
  • the memory 1303 is configured to store software programs and modules.
  • the memory 1303 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required by at least one function (eg, Requesting reception, information transmission, etc.); the storage data area may store data created according to the use of the first device, etc.
  • the memory 1303 may include a high speed random access memory, and may also include a nonvolatile memory, such as at least one Disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • the processor 1304 is configured to run the software program and the module stored in the memory 1303, so that the second device implements the following functions and data processing: searching for the WiFi access in the surrounding environment where the second device is located by using the WiFi chip 1301 After obtaining a list of WiFi access points that the second device can select to access, the WiFi access point list includes at least one WiFi access point, and the target access point in the list of the WiFi access points is determined.
  • the processor 1304 is a control center of the first device that connects the various portions of the entire first device with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1303, and by calling the memory stored in the memory 1303.
  • the data performing various functions and processing data of the first device, thereby controlling the entire device (including the WiFi chip 1301).
  • the processor 1304 may include one or more processing units; preferably, the processor 1304 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem may also not be integrated into the processor 1304.
  • the WiFi chip 1301 is further configured to: establish, according to an instruction of the processor 1304, a WiFi connection with the target access point, such as determining whether the login information of the second device is related to the login of the target access point. The parameter comparison is consistent. If the login information of the second device is consistent with the login parameter of the target access point, the target access point is accessed.
  • the processor 1304 is further configured to: if the feedback information indicates that the target access point is a portable WiFi hotspot, determine whether to adopt a connection mode of a default connection; if a connection mode of a default connection is adopted, triggering output of the output device 1302
  • the second prompt information triggers the WiFi chip 1301 to establish a WiFi connection with the target access point.
  • the second device can also include an input device 1308 coupled to the processor 1304 via the bus 1305 for acquiring input operations.
  • Input device 1308 can include a touch panel 1309 and other input devices 1310.
  • a particular input device 1308 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the second device.
  • the input device 1308 may include, but is not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, a light mouse (a light mouse is a touch sensitive surface that does not display a visual output). Or one or more of an extension of a touch sensitive surface formed by a touch screen.
  • the processor 1304 is further configured to: if the connection mode of the default connection is not adopted, obtain an input operation of the user received by the input device 1306, and determine whether the input operation indicates that the user of the second device needs to access a target access point; if the input operation indicates that the user of the second device needs to access the target access point, triggering the output device 1302 to output the second prompt information, and triggering the establishment of the WiFi chip 1301 The head WiFi connection between the standard access points.
  • the WiFi chip 1301 is further configured to: monitor whether the login information in the connection request is searched for the WiFi access point that is consistent with the login parameter, and correspondingly, the output device 1302 can be instructed by the processor 1304, When the WiFi chip 1301 searches for the WiFi access point whose login information is consistent with the login parameter, the third prompt information is output, and the input device 1308 is triggered to collect an input operation, so that the WiFi chip 1301 is based on the instruction of the processor 1304. When the input operation indicates that it is necessary to switch to the searched WiFi access point, the connection with the target access point is disconnected, and a WiFi connection with the searched WiFi access point is established.
  • the application can recognize the connected WiFi as a portable WiFi hotspot by receiving the feedback information sent by the device providing the WiFi access point in time, so that the device accessing the WiFi access point can know the connected WiFi connection in time.
  • the entry point is a portable WiFi hotspot, so as to avoid a large amount of traffic loss to the device providing the WiFi hotspot as early as possible.
  • the second device may further include a power supply 1311 for supplying power to each component, and may further include a camera, a Bluetooth module, and the like, which are not described herein again.
  • the embodiment further provides a computer readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform the methods described in the above aspects.
  • the computer readable storage medium in the present application may be a magnetic disk, an optical disk, a data card, a USB flash drive, various types of memories, and the like.
  • the present embodiment also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • 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 computing instructions that, when loaded and executed on a computer, produce, in whole or in part, a process or function in accordance with an embodiment of the present invention.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computing instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium.
  • the computer readable storage medium may be a magnetic disk, an optical disk, a data card, a USB flash drive, and various types of memories.
  • the computing instructions can be from one website site, computer, server, or data center to another website site by wire (eg, coaxial cable, light, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.) Transfer from a computer, server, or data center.
  • the computer readable storage medium may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a Digital Video Disk (DVD)), or a semiconductor medium (such as Solid State Drives (SSD)).

Landscapes

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

Abstract

本申请公开了一种WiFi连接方法及设备,方法包括:搜索设备所在周边环境中的WiFi接入点,以得到设备可选择接入的WiFi接入点列表,WiFi接入点列表中包括至少一个WiFi接入点,确定WiFi接入点列表中的目标接入点,向目标接入点所在的设备发送连接请求,接收目标接入点所在的设备基于连接请求所返回的反馈信息,反馈信息表明目标接入点是否为便携式WiFi热点,若所述反馈信息表明所述目标接入点为便携式WiFi热点,输出提示信息,所述提示信息用于提醒所述设备的用户所述目标接入点为便携式WiFi热点。可见,本申请能够知道WiFi接入点为便携式WiFi热点时,及时提醒用户,以避免在用户未知的情况下大量的流量消耗给用户带来损失的情况。

Description

一种WiFi连接方法和设备
本申请要求于2017年3月31提交中国专利局、申请号为201710209569.2、发明名称为“一种WiFi连接的方法和设备”的中国专利申请的优先权,以及于2016年9月27提交中国专利局、申请号为201610856216.7、发明名称为“一种WiFi连接的方法和设备”的中国专利申请的优先权,两者全部内容通过引用结合在本申请中。
技术领域
本申请涉及无线通信领域,尤其涉及一种WiFi连接方法及设备。
背景技术
随着无线通信的发展,终端上进行网络连接的方式越来越多,例如,一台设备可以通过设置基于IEEE 802.11b标准的无线局域网(Wireless Fidelity,WiFi)热点,另一个设备通过接入WiFi热点进行WiFi连接,实现两台设备同时连接网络。
而在两台设备进行WiFi连接时,请求WiFi连接的设备仅密码符合即可连接成功,而无法辨识到自己所连接到WiFi接入点是否为手机等需要付费的装置共享的便携式WiFi热点,可能回给提供WiFi连接的设备造成大量的流量流失的情况,给用户造成损失。
发明内容
有鉴于此,本申请提供了一种WiFi连接的方法和设备,目的在于解决现有技术中接入WiFi接入点的设备无法辨识到自己所连接WiFi接入点是否为便携式WiFi热点的技术问题。
本申请的第一方面提供了一种WiFi连接方法,通过在开启所述第一设备的WiFi接入点之后,接收第二设备的连接请求,进而基于连接请求,发送能够表明WiFi接入点是否为便携式WiFi热点的反馈信息给第二设备。可见,本申请在提供WiFi接入点的设备一侧向申请WiFi连接的设备反馈一个能够表明WiFi接入点是否为便携式WiFi热点的信息,从而及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第二方面提供了一种WiFi连接方法,通过搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的包括至少一个WiFi接入点的WiFi接入点列表,从而在确定WiFi接入点列表中的目标接入点之后,向目标接入点所在的设备发送连接请求,进而接收目标接入点所在的设备基于连接请求所返回的能够表明目标接入点是否为便携式WiFi热点的反馈信息,而若反馈信息表明目标接入点为便携式WiFi热点,则输出能够提醒所述第二设备的用户所述目标接入点为便携式WiFi热点的第二提示信息。可见,本申请能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从到接入WiFi接入点的设备能够及 时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第三方面提供了一种设备,可以包括以下模块:开启所述设备的WiFi接入点的WiFi模块及数据处理模块,该数据处理模块用于接收第二设备的连接请求,并基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。可见,本申请利用设置在提供WiFi接入点的设备上的WiFi连接装置向申请WiFi连接的设备反馈一个能够表明WiFi接入点是否为便携式WiFi热点的信息,从而及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第四方面提供了一种设备,可以包括以下模块:用于搜索所述第二设备所在周边环境中的WiFi接入点,以得到所述第二设备可选择接入的包括至少一个WiFi接入点的WiFi接入点列表的WiFi模块、用于确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,并接收所述目标接入点所在的设备基于所述连接请求所返回的表明所述目标接入点是否为便携式WiFi热点的反馈信息的数据处理模块及数据输出模块,该数据输出模块用于若所述反馈信息表明所述目标接入点为便携式WiFi热点,输出第二提示信息,所述第二提示信息用于提醒所述第二设备的用户所述目标接入点为便携式WiFi热点。可见,本申请能够利用设置在第二设备上的WiFi连接装置及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从而接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第五方面提供了一种设备,可以包括以下结构:用于提供WiFi连接的WiFi芯片、用于存储软件程序及模块的存储器、处理器和总线,所述WiFi芯片、所述存储器分别通过所述总线与所述处理器连接。该处理器用于运行存储在存储器中的软件程序以及模块,以使得所述设备实现以下功能及数据处理:利用所述WiFi芯片开启WiFi接入点,接收第二设备的连接请求,并基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。可见,本申请在提供WiFi接入点的设备一侧向申请WiFi连接的设备反馈一个能够表明WiFi接入点是否为便携式WiFi热点的信息,从而及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第六方面提供了一种设备,可以包括以下结构:用于提供WiFi连接的WiFi芯片、用于输出数据的输出设备、用于存储软件程序及模块的存储器、处理器和总线;所述WiFi芯片、所述输出设备、所述存储器分别通过所述总线与所述处理器连接,处理器用于运行所述存储器中存储的软件程序以及模块,以使得所述设备实现以下功能 及数据处理:在利用所述WiFi芯片搜索所述设备所在周边环境中的WiFi接入点,以得到所述设备可选择接入的WiFi接入点列表后,所述WiFi接入点列表中包括至少一个WiFi接入点,确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点,若所述反馈信息表明所述目标接入点为便携式WiFi热点,触发所述输出设备输出第二提示信息,所述第二提示信息用于提醒所述设备的用户所述目标接入点为便携式WiFi热点。可见,本申请能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一个实现方式中,第一设备基于连接请求输出第一提示信息。由此,在第一设备所提供的WiFi接入点为便携式WiFi热点时,能够及时提醒第一设备的用户与其他设备连接,从而避免第一设备的用户无法及时得知便携式WiFi热点的接入情况,进而避免因为不知不觉间消耗掉大量的流量数据而造成损失的情况。
在一个实现方式中,第一设备判断将连接请求中的登录信息与WiFi接入点的预设的登录参数是否一致,如果所述登录信息与所述登录参数一致允许第二设备接入WiFi接入点。由此,第一设备基于连接请求对第二设备对WiFi接入点的接入进行控制,实现第二设备的WiFi连接。
在一个实现方式中,第一设备可以输出接入所述WiFi接入点的设备的数量信息。由此,本申请通过实时提示用户当前WiFi接入点被连接的设备的数量,来给第一设备的用户提供参考数据,由用户决定是否断开某些设备的连接,从而保护第一设备的用户的利益。
在一个实现方式中,第二设备在输出所述第二提示信息之后,可以建立与所述目标接入点之间的WiFi连接。由此,本申请及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,再进行WiFi连接,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一个实现方式中,若所述反馈信息表明所述目标接入点为便携式WiFi热点,第二设备则判断是否采用默认连接的连接方式,若采用默认连接的连接方式,则输出所述第二提示信息,并建立与所述目标接入点之间的WiFi连接。可见,本申请在及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点时,对用户是否预先设置直接接入便携式WiFi热点进行判断,并在确定用户预先设置直接接入便携式WiFi热点时,显示第二提示信息并建立WiFi连接,由此进一步的尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一个实现方式中,若不采用默认连接的连接方式,第二设备则通过接收用户的输入操作,来判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点,若 所述输入操作表明所述第二设备的用户需要接入目标接入点,则输出所述第二提示信息,并建立与所述目标接入点之间的WiFi连接。可见,本申请在及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点时,对用户是否预先设置直接接入便携式WiFi热点进行判断,并在确定用户并没有预先设置直接接入便携式WiFi热点时,通过接收用户的输入操作来由用户决定接入便携式WiFi热点,即显示第二提示信息并建立WiFi连接,由此进一步的尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第二设备建立与所述目标接入点之间的WiFi连接可以通过以下方式实现:判断登录信息是否与目标接入点的登录参数比对一致,若一致则接入所述目标接入点。可见,本申请在及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点时,建立与目标接入点之间的WiFi连接,尽早避免给提供WiFi热点的设备造成大量的流量流失的情况的同时,实现WiFi连接。
在一种实现方式中,第二设备在建立与目标接入点之间的WiFi连接之后,监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,如果有,输出第三提示信息,并采集输入操作,在输入操作表明需要切换到搜索到的WiFi接入点时,断开与所述目标接入点的连接,并建立与搜索到的WiFi接入点之间的WiFi连接。可见,本申请中第二设备在发现可以连接的新的WiFi接入点时可以提醒第二设备的用户是否切换到新的WiFi接入点进行使用,并在用户操作允许时接入新的WiFi接入点,进一步避免给提供便携式WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备向第二设备发送反馈信息时,可以通过向第一设备传输AT命令,以达到及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点的目的,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备向第二设备发送反馈信息时,可以通过接口传输反馈信息给第二设备,以达到及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点的目的,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备将第一提示信息以屏幕显示的方式进行输出。可见,本申请通过显示第一提示信息来及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备将第一提示信息以屏幕显示的方式进行输出时,具体可以通过toast、通知栏或状态栏等方式显示第一提示信息。由此,接入WiFi接入点的设备能够及时通过显示的第一提示信息了解到自己所连接WiFi接入点为便携式 WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备将第一提示信息以声音播放的方式进行输出。可见本申请通过播放第一提示信息来及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
在一种实现方式中,第一设备可以通过音频输出设备播放第一提示信息。由此,接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第七方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
本申请的第八方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
本申请的第九方面提供了一种WiFi连接的方法,可以包括以下步骤:终端搜索周边WiFi;从搜索的WiFi列表中选择一个WiFi接入点判断是否为便携WiFi热点;若是便携WiFi热点,判断该终端是否设置了默认连接;若设置了默认连接,提醒用户该WiFi为便携WiFi热点;连接至所述便携WiFi热点。可见,本申请能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,并及时提醒用户且接入该WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本申请的第十方面提供了一种终端,可以包括以下结构:存储指令的存储器及处理器,其中,处理器调用存储器中存储的指令,以执行上述WiFi连接方法,如:搜索周边WiFi;从搜索的WiFi列表中选择一个WiFi接入点判断是否为便携WiFi热点;若是便携WiFi热点,判断该终端是否设置了默认连接;若设置了默认连接,提醒用户该WiFi为便携WiFi热点;连接至所述便携WiFi热点。可见,本申请能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,并及时提醒用户且接入该WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请中两台设备之间进行WiFi热点连接的通信连接示意图;
图2a为本申请实施例中第一设备进行WiFi连接的方法流程图;
图2b-图2e分别为本申请实施例的应用示例图;
图3为本申请实施例中第一设备进行WiFi连接的另一方法流程图;
图4a-图4d分别为本申请实施例中第二设备进行WiFi连接的方法流程图;
图5a为本申请实施例的另一应用示例图;
图5b及图5c分别为本申请实施例中第二设备进行WiFi连接的另一方法流程图;
图6-图8分别为本申请实施例的其他应用示例图;
图9及图10分别为本申请实施例中第一设备的结构示意图;
图11为本申请实施例中第二设备的结构示意图;
图12为本申请实施例中第一设备的另一结构示意图;
图13为本申请实施例中第二设备的另一结构示意图。
具体实施方式
图1所示为两台设备之间进行WiFi热点连接的通信连接示意图,设备可以包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等。图1中的第一设备通过设置WiFi芯片的参数提供WiFi接入点,该WiFi接入点可以是路由器提供的WiFi接入点,也可以是移动设备提供的便携式WiFi热点,第二设备通过密码进入该WiFi接入点。而在第一设备与第二设备之间WiFi热点连接之后,第二设备会记录第一设备的WiFi热点的名称和密码,下次可根据记录的WiFi热点的名称和密码直接进行连接。
第二设备在通过WiFi搜索功能到一个或多个WiFi接入点时,并不区分搜索到的WiFi接入点的类型,例如并不会区分该WiFi接入点是否为手机等装置提供的便携式WiFi热点,在第二设备再次靠近曾经成功接入WiFi连接的第一设备且该第二设备处于第一设备的WiFi热点的连接范围内时,第二设备会自动利用记录的密码接入第一设备的WiFi热点,而此时,既不会通知第一设备的用户有第二设备接入其便携式WiFi热点,也不会通知第二设备的用户其接入的是便携式WiFi热点。
而第一设备通常伴随通信运营商的移动数据流量提供其WiFi热点服务,因此,两台建立过WiFi热点连接的设备对用户来说,尤其是提供便携式WiFi热点的设备的用户来说,可能会在用户不知情的情况下消耗掉大量的流量数据,由于通讯运营商大多数提供的移动流量服务是按量计费的,因此,大量的流量消耗可能会给用户带来高额的流量费用,给用户利益造成严重影响。
因此,为了避免上述风险,需要对便携式WiFi热点的连接进行约束。
本申请为解决上述问题,提出以下方案:
图2a所示为图1中的第一设备通过开启WiFi接入点并进行WiFi连接控制的流程图,图2a中可以包括以下步骤:
步骤201:开启WiFi接入点。
其中,第一设备可以为手机等移动终端,其所开启的WiFi接入点为便携式WiFi 热点,或者,第一设备也可以是路由器等通讯设备,其所开启的WiFi接入点为非便携式WiFi热点。
本申请中可以通过对第一设备中的WiFi芯片进行参数设置,将WiFi接入点功能进行开启。如图2b中所示,用户在第一设备如手机的WiFi芯片设置界面上对WiFi芯片的开启控件进行操作,本实施例中接收用户对控件的操作之后,开启第一设备的WiFi热点,这个WiFi热点用于为其他设备提供网络连接。
需要说明的是,第一设备中的WiFi芯片可以是独立的WiFi芯片,或者,也可以是WiFi通信功能与其他功能集成在一起的联合芯片,该联合芯片能够提供WiFi通信功能。例如,该联合芯片可以为WiFi芯片与蓝牙、频率调制(Frequency Modulation,FM)及全球定位系统(Global Positioning System,GPS)的联合芯片。
步骤202:接收第二设备的连接请求。
其中,该连接请求可以为第二设备搜索到第一设备开启的WiFi接入点之后所生成的请求,连接请求用于第二设备向第一设备请求WiFi连接。
步骤203:基于连接请求,输出第一提示信息。
其中,该连接请求由第二设备发送到第一设备之后,第一设备对连接请求进行响应,输出第一提示信息。该第一提示信息表明第一设备所提供的WiFi接入点被第二设备搜索到并且第二设备向第一设备申请WiFi连接。
在一种实现方式中,第一设备将第一提示信息以屏幕显示的方式进行输出,例如,第一设备可以通过消息框toast、通知栏或状态栏等方式显示第一提示信息。或者,第一设备可以将第一提示信息以声音播放的方式进行输出,例如,第一设备可以通过喇叭或者耳机等音频输出设备播放第一提示信息。或者,第一设备可以将第一提示信息以屏幕显示结合声音播放的方式进行输出,例如,第一设备在显示屏上显示第一提示信息的同时利用喇叭播放该第一提示信息。
其中,第一设备通过输出第一提示信息来提醒第一设备的用户有第二设备申请连接第一设备所提供的WiFi接入点,由此,在第一设备所提供的WiFi接入点为便携式WiFi热点时,及时提醒第一设备的用户有第二设备申请WiFi连接,以避免第一设备的用户无法及时得知便携式WiFi热点的接入情况,从而避免由于第二设备自动连接到便携式WiFi热点而导致的不知不觉间消耗掉大量的流量数据,造成损失。
其中,toast是Android中用来显示信息的一种机制,在toast显示机制中,以无焦点的形式显示信息,且toast显示机制中显示信息的时间有限,在显示信息一定的时长之后会自动消失。
在本实施例中以toast显示机制显示第一提示信息,如图2c中所示,及时提醒第一设备的用户第二设备连接第一设备所提供的WiFi接入点,避免第一设备所提供的WiFi接入点为便携式WiFi热点时第一设备的用户无法及时得知其便携式WiFi热点的接入情况,从而可能会导致不知不觉间消耗掉大量的流量数据,造成损失;而第一提示消息以toast显示机制进行显示后可以在一定时长后消失,从而并不会影响第一设备的用户对设备的正常使用,改善用户使用体验。
其中,状态栏是指设备操作系统中显示设备各项参数或状态的显示机制,如电池剩余量等的显示机制。而通知栏是设备操作系统中以下拉方式显示各种推送消息的一种机制,在出现推送消息时,推送消息可以在显示屏幕的最上方的状态栏显示,并在一定时长后隐藏并在用户下拉显示通知栏时推送消息再次显示在显示屏幕上。
在本实施例中以状态栏显示机制显示第一提示信息,如图2d中所示,及时提醒第一设备的用户有第二设备连接第一设备所提供的WiFi接入点,避免第一设备所提供的WiFi接入点为便携式WiFi热点时第一设备的用户无法及时得知便携式WiFi热点的接入情况,从而可能会导致不知不觉间消耗掉大量的流量数据,造成损失。而在一定时长后第一提示信息隐藏,并在用户下拉显示通知栏时第一提示信息再次显示在显示屏幕上,如图2e中所示(通知栏中可能还存在“**正在运行”的消息),为用户保留信息,做到随时提醒用户有其他设备接入WiFi接入点,保护用户利益,改善用户使用体验。
另外,在第一设备接收到第二设备的连接请求之后,还可以执行以下步骤:
步骤204:判断连接请求中的登录信息与WiFi接入点的预设的登录参数是否一致,如果登录信息与登录参数一致则允许第二设备接入WiFi接入点。
其中,本申请中判断将登录信息与登录参数是否一致,是指:判断登录信息中的登录用户名与登录参数中的接入点用户名是否一致,且判断登录信息中的登录密码与登录参数中的接入点连接密码是否一致,进而只有在登录用户名和接入点用户名一致且登录密码与接入点连接密码一致时,第二设备才能作为合法的受惠设备被允许接入第一设备的WiFi接入点。
需要说明的是,在第一设备判断出第二设备为合法的受惠设备之后,第一设备与第二设备之间进行WiFi连接操作,即可成功实现WiFi连接。
或者,在第一设备判断出第二设备为合法和受惠设备之后,第一设备与第二设备进行WiFi连接操作,需要在等待第二设备向第一设备反馈确认连接的相关信息(如确认连接该WiFi接入点)之后,第一设备与第二设备之间的WiFi连接才能成功。
需要说明的是,连接请求中的登录信息可以是第二设备经过历史接入所记录下的历史登录信息,也可以是第二设备的用户即时输入的登录信息。
步骤205:向第二设备发送反馈信息。
其中,该反馈信息能够表明第二设备所连接的WiFi接入点为便携式WiFi热点还是非便携式WiFi热点。而该反馈信息可以以定义的AT命令实现,或者以标识符实现。
例如,本申请中第一设备向第二设备传输一条新增的AT命令,来通知到第二设备其连接的WiFi接入点是否为便携式WiFi热点。
其中,本申请中第一设备可以通过新增接口来传输反馈信息给第二设备,或者,可以使用原有数据传输接口将反馈信息传输给第二设备。
在一种实现方式中,步骤205的执行可以在步骤204之后,如图2a所示,也就是说,在第二设备成功接入到WiFi接入点之后,第一设备发送反馈信息给第二设备,以提示第二设备其所接入的WiFi接入点是否为便携式WiFi热点;
或者步骤205的执行可以在步骤202之后,如图3中所示,也就是说,在第二设备向第一设备发送连接请求申请WiFi接入之后,第一设备发送反馈信息给第二设备,由此来提示第二设备其所接入的WiFi接入点是否为便携式WiFi热点,第二设备根据反馈信息进行后续处理。
而在每次有设备接入到第一设备的便携式WiFi热点时,第一设备还可以执行以下步骤:
步骤206:将接入WiFi接入点的设备的数量信息进行输出。
其中,本申请中可以以屏幕显示和/或声音播放的方式输出数量信息,从而实时提示用户当前WiFi接入点被连接的设备的数量,来给第一设备的用户提供参考数据,由用户决定是否断开某些设备的连接。
例如,第一设备所提供的WiFi接入点为便携式WiFi热点,在每次有受惠设备接入到第一设备的便携式WiFi热点时,第一设备可以在获得接入便携式WiFi热点的第二设备的数量信息之后,将接入便携式WiFi热点的第二设备的数量信息进行显示,如在第一设备上显示“有2个连接”等等。
由此,本申请通过实时输出用户当前便携式WiFi热点分享被连接的设备的数量,来给第一设备的用户提供参考数据,由用户决定是否断开某些设备的连接,来保护自身的利益。
需要说明的是,本申请实施例中将接入WiFi接入点的设备的数量信息以屏幕显示的方式输出时,可以采用toast、通知栏或状态栏的显示机制实现,具体显示的效果可以参考前文中图2c~图2e中所示,此处不再详述。
图4a为图1中的第二设备在进行WiFi连接时的一种控制流程图,图4a中可以包括以下步骤:
步骤401:搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的WiFi接入点列表。
其中,第二设备可以通过设置界面中的控件来开启WiFi接入点的搜索功能,如图5a中所示,第二设备搜索到一个或多个第二设备可能接入的WiFi接入点列表,如WiFi接入点a、WiFi接入点b、WiFi接入点c等。
步骤402:确定WiFi接入点列表中的目标接入点。
其中,第二设备可以将WiFi接入点列表中信号覆盖能力最强的WiFi接入点作为目标接入点,或者,也可以将WiFi接入点列表中能够实现登录用户名和登录密码均匹配的WiFi接入点为目标接入点。
步骤403:生成连接请求,并向目标接入点所在的设备发送连接请求。
其中,该连接请求用于第二设备向目标接入点所在的设备如第一设备请求WiFi连接。
而目标接入点所在的设备在接收到连接请求之后,判断连接请求中的登录信息与WiFi接入点的预设的登录参数是否一致,如果登录信息与登录参数一致则允许第二设 备接入WiFi接入点,此时,向第二设备发送反馈信息,该反馈信息能够表明第二设备所连接的WiFi接入点为便携式WiFi热点还是非便携式WiFi热点。
步骤404:接收目标接入点所在的设备发送的反馈信息。
需要说明的是,第二设备在接收到目标接入点所在设备发送的反馈信息时,第二设备处于目标接入点所在的设备允许第二设备接入目标接入点但WiFi连接并未连接成功的状态。
步骤405:基于反馈信息,判断目标接入点是否为便携式WiFi热点,如果是,执行步骤406,否则,执行步骤407。
步骤406:判断是否采用默认连接的连接方式,如果是,执行步骤408,否则,执行步骤409。
其中,这里的默认连接的连接方式是指,第二设备的用户预先设置的需要直接接入便携式WiFi热点的连接方式。
步骤407:判断目标接入点所在的设备是否允许第二设备接入目标接入点,如果是,执行步骤410,否则,否则,返回执行步骤402或步骤401,重新确定一个新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接或者等待一定时长后重试。
步骤408:输出第二提示信息,执行步骤407。
其中,第二设备可以以屏幕显示和/或声音播放的形式输出第二提示信息,第二提示信息用以提示第二设备的用户第二设备目前所接入的WiFi接入点为便携式WiFi热点,进而提示大量的流量消耗可能会给提供便携式WiFi热点的设备用户带来不便,等等。
需要说明的是,第二设备可以通过toast、通知栏或状态栏等方式显示第二提示信息。而第二提示信息的具体显示的效果可以参考前文中图2c~图2e中所示,此处不再详述。
步骤409:接收用户的输入操作,执行步骤411。
其中,输入操作表明第二设备的用户是否需要接入这个属于便携式WiFi热点的目标接入点。也就是说,第二设备在接收到反馈信息之后,已经得知目标接入点为便携式WiFi热点,此时,可以选择由用户决定是否连接该便携式WiFi热点。
步骤410:接入目标接入点。
步骤411:判断输入操作是否表明第二设备的用户需要接入目标接入点,如果是,执行步骤408,否则,返回执行步骤402或步骤401,重新确定一个新的新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接或者等待一定时长后重试。
也就是说,如果第二设备根据反馈信息发现目标接入点并不是便携式WiFi热点,那么第二设备则不需要考虑会不会给设备用户带来损失,可以直接根据目标接入点所在的设备返回的比对结果来连接目标接入点或者返回重新。当然,第二设备在连接目标接入点时,第二设备所发送的连接请求中的登录信息与目标接入点的登录参数是比 对一致的。
或者,在一种实现方式中,图4a中无需执行步骤406、步骤409及步骤411,如图4b中所示:
步骤401:搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的WiFi接入点列表。
步骤402:确定WiFi接入点列表中的目标接入点。
步骤403:生成连接请求,并向目标接入点所在的设备发送连接请求。
而目标接入点所在的设备在接收到连接请求之后,判断连接请求中的登录信息与WiFi接入点的预设的登录参数是否一致,如果登录信息与登录参数一致则允许第二设备接入WiFi接入点。
步骤404:接收目标接入点所在的设备发送的反馈信息。
步骤405:基于反馈信息,判断目标接入点是否为便携式WiFi热点,如果是,执行步骤408,否则,执行步骤407。
步骤407:基于判断目标接入点所在的设备是否允许第二设备接入目标接入点,如果是,执行410,否则,返回执行步骤402或步骤401,重新确定一个新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接。
步骤408:输出第二提示信息,执行步骤407。
步骤410:接入目标接入点。
也就是说,第二设备在向目标接入点所在的设备发送连接请求并接收到反馈信息之后,得知目标接入点为便携式WiFi热点时,不需要再对用户是否设置过默认连接方式,而且不需要考虑用户的操作,而是在提示第二设备的用户其连接的是便携式WiFi热点之后,直接在目标接入点所在的设备允许第二设备接入时接入目标接入点,实现WiFi连接。
在另一种实现方式中,图4a中的执行步骤还可以采用以下执行顺序,如图4c中所示:
步骤401:搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的WiFi接入点列表。
步骤402:确定WiFi接入点列表中的目标接入点。
步骤404:接收目标接入点所在的设备发送的反馈信息。
步骤405:基于反馈信息,判断目标接入点是否为便携式WiFi热点,如果是,执行步骤406,否则,执行步骤403。
步骤406:判断是否采用默认连接的连接方式,如果是,执行步骤408,否则,执行步骤409。
步骤403:生成连接请求,并向目标接入点所在的设备发送连接请求。
而目标接入点所在的设备在接收到连接请求之后,判断连接请求中的登录信息与 WiFi接入点的预设的登录参数是否一致,如果登录信息与登录参数一致则允许第二设备接入WiFi接入点。
步骤407:基于判断目标接入点所在的设备是否允许第二设备接入目标接入点,如果是,执行410,否则,返回执行步骤402或步骤401,重新确定一个新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接。
步骤408:输出第二提示信息,执行步骤403。
步骤409:接收用户的输入操作,执行步骤411。
步骤410:接入目标接入点。
步骤411:判断输入操作是否表明第二设备的用户需要接入目标接入点,如果是,执行步骤408,否则,返回执行步骤402或步骤401,重新确定一个新的新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接。
或者,图4c中无需执行步骤406、步骤409和步骤411,如图4d中所示:
步骤401:搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的WiFi接入点列表。
步骤402:确定WiFi接入点列表中的目标接入点。
步骤404:接收目标接入点所在的设备发送的反馈信息。
步骤405:基于反馈信息,判断目标接入点是否为便携式WiFi热点,如果是,执行步骤408,否则,执行步骤403。
步骤403:生成连接请求,并向目标接入点所在的设备发送连接请求。
而目标接入点所在的设备在接收到连接请求之后,判断连接请求中的登录信息与WiFi接入点的预设的登录参数是否一致,如果登录信息与登录参数一致则允许第二设备接入WiFi接入点。
步骤407:基于判断目标接入点所在的设备是否允许第二设备接入目标接入点,如果是,执行410,否则,返回执行步骤402或步骤401,重新确定一个新的目标接入点,并以此循环,直到第二设备接入到WiFi接入点或者第二设备无法搜索到可接入的WiFi接入点,放弃WiFi连接。
步骤408:输出第二提示信息,执行步骤403。
步骤410:接入目标接入点。
也就是说,第二设备在接收到反馈信息之后,得知目标接入点为便携式WiFi热点时,不需要再对用户是否设置过默认连接方式,而且不需要考虑用户的操作,而是在提示第二设备的用户其连接的是便携式WiFi热点之后,直接向目标接入点所在的设备发送连接请求,进而在允许第二设备接入时直接接入目标接入点,实现WiFi连接。
另外,图1中的第二设备成功连接到便携式WiFi热点之后,重新搜索能够连接的 WiFi接入点,以便于尽快切换到非便携式WiFi热点中,避免给目标接入点所在的设备带来更多的流量消耗,如图5b中的步骤所示:
步骤501:监测是否能够搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,如果有,执行步骤502。
其中,搜索的WiFi接入点可以是新的便携式WiFi热点,也可以是非便携式WiFi接入点。
而连接请求是第二设备在搜索到WiFi接入点时向WiFi接入点所在的设备发送的指令,用于向WiFi接入点所在的设备请求WiFi接入。
步骤502:输出第三提示信息,执行步骤503。
其中,第三提示信息用以提醒第二设备的用户是否切换到新的便携式WiFi热点或切换到非便携式WiFi接入点,由此,用户可以根据需求进行输入操作。
需要说明的是,第二设备可以以屏幕显示和/或声音播放的方式输出第三提示信息。第二设备具体可以通过toast、通知栏或状态栏等方式显示第三提示信息。而第三提示信息的具体显示的效果可以参考前文中图2c~图2e中所示,此处不再详述。
步骤503:采集输入操作,执行步骤504。
其中,输入操作可以为第二设备的用户根据第三提示信息对控件的输入操作,以表示用户需要切换到搜索到的WiFi接入点或者继续保持与便携式WiFi热点之间的连接。
步骤504:如果输入操作表明需要切换到搜索到的WiFi接入点,那么断开与便携式WiFi热点之间的连接,并接入搜索到的WiFi接入点。
也就是说,本申请中,第二设备在发现可以连接的新的WiFi接入点(用户名和密码匹配成功的)时,提醒第二设备的用户是否切换到新的WiFi接入点进行使用。
或者,第二设备的用户可以预先对第二设备进行参数设置,授权在搜索到新的WiFi接入点时直接断开当前WiFi连接,并接入搜索到的新的WiFi接入点,如图5c中所示,在步骤501中监测到已经搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点时,可以直接执行步骤504,断开与便携式WiFi热点之间的连接,并接入搜索到的WiFi接入点,实现自动切换功能。
可见,本申请中,两台设备在建立wifi热点连接的时候,其中,提供WiFi热点的设备即供应设备方自己是知道自己正在发布便携式wifi热点的,而需要接入WiFi热点的设备即受惠设备方并不知道。此处需要两台设备在建立wifi连接中增加一条新定义的AT命令或者标识符作为参数(反馈信息)进行传递,使得受惠设备方收到供应设备的AT命令或标识符时可识别出供应设备方为便携式wifi热点,如手机WiFi热点,从而做出相应的操作,如提示相应信息给受惠设备房的用户。
因此,在本申请中,当供应设备提供的便携式wifi热点有新的连接时对用户提醒,供应设备还可以实时提示用户当前移动热点分享被连接的设备数量。
而在受惠设备方,在使用其他设备的便携式wifi热点时,可以根据用户需求定量或者定时的选择,例如,用户进行触发的输入操作后可断开连接;另外,在受惠设备 发现连接标记为便携式移动热点提供的wifi时,根据用户预先设置的选项确定是否自动连接;而在自动连接到便携式移动wifi热点时,提醒用户,如toast、通知栏、状态栏等方式;并且,在有可连接的wifi时(密码匹配成功的),提醒用户是否切换到新的wifi进行使用,在用户根据需求预先选择并授权时,受惠设备可以提供自动切换功能。
以图1中第一设备与第二设备均为手机为例,提供便携式WiFi热点的手机为供应手机601,需要接入WiFi接入点的手机为受惠手机602,如图6a所示,为图1中的两台手机进行之间进行WiFi连接的交互示例图,其中:
在供应手机601一侧,供应手机601在接收到受惠手机602发送的连接请求之后,向受惠手机602反馈带有特定参数的结果信息,这里的特定参数表明供应手机601提供的WiFi接入点是否为便携式WiFi热点。除此之外,供应手机601也会在受惠手机602连接到供应手机601提供的便携式WiFi热点之后,向供应手机601的用户输出第一提示信息并允许受惠手机602接入便携式WiFi热点。
而在受惠手机602一侧,受惠手机602通过WiFi搜索功能搜索到供应手机601所提供的WiFi热点时,向供应手机601发送连接请求并接收供应手机601反馈的特定参数,从而在识别到特定参数之后判断出其连接到的或者即将连接的WiFi接入点是否为便携式WiFi热点,并基于此来继续上层策略,如提醒受惠手机602的用户、匹配用户名和密码并接入便携式WiFi热点等。
需要说明的是,图6中仅体现了一种两台手机之间的WiFi连接方式,除此之外,还可以通过诸如新增AT命令、新增接口或定义特有参数等方式,以使得受惠手机602通过这些方式明确得知所连接的WiFi接入点为便携式WiFi热点,而在受惠手机602明确得知自己所连接WiFi接入点为便携式WiFi热点之后,可以做出下一步上层策略,如受惠手机602可以以各种途径展示给用户,其连接的WiFi接入点为某个移动终端的WiFi热点,可能会给他人造成数据流量损失,此时可以选择其他备用的数据流量使用方式,如重新搜索WiFi接入点等等。
如图7中所示,为图6中受惠手机602进行WiFi连接控制的示意图,在图7中,受惠手机602可以首先执行步骤701:搜索附近的WiFi接入点,之后通过步骤702获取到WiFi接入点列表,之后,受惠手机602在列表中选择一个WiFi接入点后,执行步骤703:判断这个WiFi接入点是否为便携式WiFi热点,如果这个WiFi接入点不是便携式WiFi热点那么执行步骤704:直接去匹配用户名和密码,在用户名和密码匹配成功时,执行步骤705:建立WiFi连接;如果这个WiFi接入点是便携式WiFi热点,那么需要执行步骤706:判断用户预先选择的是不是默认连接,如果是,那么在步骤707:提醒受惠手机602的用户之后,执行步骤704及步骤705去匹配用户名和密码并建立WiFi连接,如果不是,那么需要执行步骤708:采集用户的输入操作以确定用户是否需要进行便携式WiFi热点的WiFi连接,在用户确定进行WiFi连接时,执行步骤707:提醒受惠手机602的用户之后执行步骤704及步骤705去匹配用户名和密码并建立WiFi连接;而在用户名和密码没有匹配成功时,则可以返回执行步骤702在WiFi 接入点列表中重新选择一个WiFi接入点,重复以上处理流程,直到受惠手机602实现WiFi连接。
需要说明的是,图7中受惠手机602在WiFi连接成功时所实现的WiFi连接可能是便携式WiFi热点提供的WiFi连接,也可能是非便携式WiFi热点提供的WiFi连接。
如图8中所示,为图6中供应手机601进行WiFi连接控制的示意图,在图8中,供应手机601在通过步骤801:开放便携式Wi Fi热点之后,在步骤802中发现有受惠手机602进行WiFi连接申请时,可以执行步骤803以选择对供应手机601的用户进行提醒。例如,供应手机601可以有主动toast、状态栏和通知栏中提示或明确显示,如显示新连接的受惠手机602及当前连接数量等信息。由此,供应手机601在被受惠设备602进行WiFi热点连接时主动提示动作触发,而不是等待状态查询,进而及时提醒用户,避免用户流量流失而不自知。
由上述示例中可知,进行WiFi连接的两个设备中的受惠设备方在连接wifi时,如果判断出所连接的wifi源为便携式wifi热点,不能粗暴的自动连接,应获取到用户的实时操作意见或默认意见后进行是否连接的判断,同时如若需要连接也要明确的通知到用户其正在连接某便携式移动wifi热点。也可以说,受惠设备进行Wifi轮寻时碰到便携式移动热点wifi源会征询用户的意见(选择或预选择),并且在连接该类型wifi源时对用户有明显的提醒。
综上所述,本申请通过在提供便携式WiFi热点的设备被其他设备实现WiFi连接时及时提醒用户,解决了因用户忘记关闭WiFi热点或误触发而产生的大量流量费用的问题;也解决了用户打开WiFi热点后,在非主观意愿的情况下被其他设备连接而造成的流量损失的问题,例如用户仅想为一台设备开放WiFi热点,但热点覆盖范围内存在多个设备曾经与供应设备建立过连接,而在用户不明的情况下,多台设备同时在消耗用户移动数据流量的情况;同时,本申请会在受惠设备连接到便携式WiFi热点时及时提醒用户进行处理,如断开连接并申请其他WiFi连接等,解决了用户在非主观意愿下消耗其他设备的移动数据流量的问题。
图9所示为图1中的第一设备的结构示意图,该设备可以包括以下模块:
WiFi模块901,用于开启第一设备的WiFi接入点。
其中,WiFi模块901的功能可以基于WiFi芯片实现,用于提供WiFi连接,从而实现WiFi数据的传输,实现WiFi通信的功能。
数据处理模块902,用于接收第二设备的连接请求,并基于连接请求,发送反馈信息给第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。
其中,数据处理模块902的功能可以基于处理器等芯片实现。
在本实施例中,WiFi模块901与数据处理模块902具体的功能实现可以参见前文中方法部分,此处不再详述。
可见,本实施例在提供WiFi接入点的设备一侧向申请WiFi连接的设备反馈一个能够表明WiFi接入点是否为便携式WiFi热点的信息,从而及时提醒到申请WiFi连接 的设备其所连接的WiFi接入点为便携式WiFi热点,由此,达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
图10所示为图1中的第一设备的另一结构示意图,该设备中除了包括WiFi模块901和数据处理模块902之外,还可以包括以下模块:
数据传输模块903,用于:基于所述连接请求,输出第一提示信息;和/或,将接入所述WiFi接入点的设备的数量信息进行输出。
其中,数据传输模块903的功能可以基于各种输出设备如显示屏或扩音器等实现。
接入控制模块904,用于判断所述连接请求中的登录信息与所述WiFi接入点的预设的登录参数是否一致,如果所述登录信息与所述登录参数一致,允许所述第二设备接入所述WiFi接入点。
其中,接入控制模块904的功能可以基于具有逻辑控制功能的控制芯片或处理器等实现。
需要说明的是,数据传输模块903与接入控制模块904具体的功能实现可以参见前文中方法部分,此处不再详述。
图11所示为图1中的第二设备的结构示意图,该设备可以包括以下模块:
WiFi模块1101,用于搜索第二设备所在周边环境中的WiFi接入点,以得到所述第二设备可选择接入的WiFi接入点列表,所述WiFi接入点列表中包括至少一个WiFi接入点。
其中,WiFi模块1101的功能可以基于WiFi芯片实现,用于提供WiFi连接,从而实现WiFi数据的传输,实现WiFi通信功能。
数据处理模块1102,用于确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,并接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点;
其中,数据处理模块1102的功能可以基于处理器等芯片实现。
数据输出模块1103,用于若所述反馈信息表明所述目标接入点为便携式WiFi热点,输出第二提示信息,所述第二提示信息用于提醒所述第二设备的用户所述目标接入点为便携式WiFi热点。
其中,数据传输模块1103的功能可以基于显示屏和/或喇叭等输出设备实现。
另外,WiFi模块1101还用于建立与所述目标接入点之间的WiFi连接。
而数据处理模块1102,还可以用于若所述反馈信息表明所述目标接入点为便携式WiFi热点,判断是否采用默认连接的连接方式,若采用默认连接的连接方式,则由所述数据传输模块1103输出所述第二提示信息,并由所述WiFi模块1101建立与所述目标接入点之间的WiFi连接。
所述数据处理模块1102还可以用于:若不采用默认连接的连接方式,接收用户的输入操作,并判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点, 若所述输入操作表明所述第二设备的用户需要接入目标接入点,则由所述数据传输模块输出所述第二提示信息,并由所述WiFi模块1101建立与所述目标接入点之间的WiFi连接。
而所述WiFi模块1101具体用于:判断所述第二设备的登录信息是否与所述目标接入点的登录参数比对一致;如果所述第二设备的登录信息与所述目标接入点的登录参数比对一致,则接入所述目标接入点。它还可以用于监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,如果有,由所述数据传输模块1103输出第三提示信息;
除此之外,所述第二设备还可以包括:数据输入模块1104,用于采集输入操作,在输入操作表明需要切换到搜索到的WiFi接入点时,由所述WiFi模块1101断开与所述目标接入点的连接并建立与搜索到的WiFi接入点之间的WiFi连接。
可见,本实施例能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
本实施例中,各个模块功能的具体实现可以参考前文方法部分,此处不再详述。
图12所示为图1中第一设备的结构示意图,该第一设备1200可以包括有以下结构或组件:WiFi芯片1201、存储器1202、处理器1203和总线1204,而WiFi芯片1201、存储器1202分别通过总线1204与处理器1203连接,其中:
WiFi芯片1201,用于提供WiFi连接,通过与其他设备的WiFi芯片建立WiFi连接之后,能够进行WiFi无线数据传输。
其中,WiFi芯片1201是指具有WiFi通信功能的芯片,具体可以为独立的芯片,也可以为与其他功能集成在一起的芯片,如WiFi、蓝牙、FM及GPS集成在一起的联合芯片,该联合芯片同样具有WiFi通信功能。
存储器1202可以存储软件程序及模块,处理器1203通过运行存储在存储器中的软件程序以及模块,以使得第一设备1200实现以下功能及数据处理:利用WiFi芯片1201开启WiFi接入点,接收第二设备的连接请求,并基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。
可见,本实施例在提供WiFi接入点的设备一侧向申请WiFi连接的设备反馈一个能够表明WiFi接入点是否为便携式WiFi热点的信息,从而及时提醒到申请WiFi连接的设备其所连接的WiFi接入点为便携式WiFi热点,由此,达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
其中,存储器1202可主要包括存储程序区和存储数据区,其中存储程序区可以存储操作系统、至少一个功能所需要的应用程序(如请求接收、信息发送等)等;存储数据区可以存储根据第一设备1200的使用所创建的数据等,此外,存储器1202可以 包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1203是第一设备1200的控制中心,利用各种接口和线路连接整个第一设备1200的各个部分,通过运行或执行存储在存储器1202内的软件程序和/或模块,以及调用存储在存储器1202内的数据,执行第一设备1200的各种功能和处理数据,从而对第一设备1200进行整体(包括WiFi芯片1201)控制。可选的,处理器1203可以包括一个或多个处理单元;优选的,处理器1203可以集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调器处理器主要处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1203中。
另外,第一设备1200还可以包括有:第一输出设备1205,用于根据所述处理器1203的指示输出第一提示信息和/或接入所述WiFi接入点的设备的数量信息。
其中,第一输出设备1205可以为显示屏1206、声音播放器1207等,显示屏可以用于显示第一提示信息和/或接入WiFi接入点的设备的数量信息,还可以接收用户输入,具体可以采用如图2c~图2e中的所示的显示方式显示。具体的显示屏可以包括显示面板以及触控面板,其中,显示面板可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板;触控面板也可以称为触控屏、触敏屏等,可以收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。可选的触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器1203,并能接收处理器1203发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板,也可以采用未来发展的任何技术实现触控面板。进一步的,触控面板可覆盖显示面板,用户可以根据显示面板显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板上覆盖的触控面板上或者附近进行操作,触控面板检测到在其上或附近的操作后,通过输入输出总线等传送给处理器1203以确定用户输入,随后处理器1203根据用户输入通过输入输出总线在显示面板上提供相应的视觉输出。
或者,第一设备1200可以与第二输出设备1100相连接,其中:第二输出设备1100用于:根据所述处理器1203的指示输出第一提示信息和/或接入所述WiFi接入点的设备的数量信息。
其中,第二输出设备1100可以为与第一设备1200相关联的腕带式设备上的输出设备,如第一设备1200为手机设备,智能手环与手机相关联,第二输出设备1100即为智能手环,该智能手环上具有显示屏、声音播放器等。该第二输出设备1100的组成与实现可以参考以上第一输出设备1205的相关内容,此处不再详述。
需要说明的是,声音播放器可以为音频电路和扬声器等结构实现,与处理器1203之间可以通过音频接口连接,音频电路将处理器1203需要输出的信息转换成模拟信号,传输到扬声器,由扬声器转换为声音信号输出。
另外,第一设备1200还可以包括具有触控面板1208和其他输入设备1209的输入设备1210为各个部件供电的电源1211,还可以包括摄像头、蓝牙模块等,此处不再赘述。
而第一设备1200中各结构的功能的实现具体方式可以参见前文相应内容所示,此处不再赘述。
图13所示为图1中第二设备的结构示意图,该第二设备1300可以包括以下结构或组件:WiFi芯片1301、输出设备1302、存储器1303、处理器1304和总线1305;WiFi芯片1301、输出设备1302、存储器1303分别通过总线1305与处理器1304连接,其中:
WiFi芯片1301,用于提供WiFi连接,通过与其他设备的WiFi芯片建立WiFi连接之后,能够进行WiFi无线数据传输。
其中,WiFi芯片1301是指具有WiFi通信功能的芯片,具体可以为独立的芯片,也可以为与其他功能集成在一起的芯片,如WiFi、蓝牙、FM及GPS集成在一起的联合芯片,该联合芯片同样具有WiFi通信功能。
输出设备1302,用于输出数据。输出设备1302可以为显示屏1306、声音播放器1307等,显示屏1306可以用于显示信息,还可以接收用户输入。具体的显示屏1306可以包括显示面板以及触控面板,其中,显示面板可以采用LCD、OLED等形式来配置显示面板;触控面板也可以称为触控屏、触敏屏等,可以收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。可选的触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器1304,并能接收处理器1304发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板,也可以采用未来发展的任何技术实现触控面板。进一步的,触控面板可覆盖显示面板,用户可以根据显示面板显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板上覆盖的触控面板上或者附近进行操作,触控面板检测到在其上或附近的操作后,通过输入输出总线等传送给处理器1304以确定用户输入,随后处理器1304根据用户输入通过输入输出总线在显示面板上提供相应的视觉输出。
存储器1303,用于存储软件程序及模块。存储器1303可主要包括存储程序区和存储数据区,其中存储程序区可以存储操作系统、至少一个功能所需要的应用程序(如 请求接收、信息发送等)等;存储数据区可以存储根据第一设备的使用所创建的数据等,此外,存储器1303可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1304,用于运行所述存储器1303中存储的软件程序以及模块,以使得第二设备实现以下功能及数据处理:在利用所述WiFi芯片1301搜索第二设备所在周边环境中的WiFi接入点,以得到第二设备可选择接入的WiFi接入点列表后,所述WiFi接入点列表中包括至少一个WiFi接入点,确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点,若所述反馈信息表明所述目标接入点为便携式WiFi热点,触发所述输出设备1302输出第二提示信息,所述第二提示信息用于提醒所述设备的用户所述目标接入点为便携式WiFi热点。
处理器1304是第一设备的控制中心,利用各种接口和线路连接整个第一设备的各个部分,通过运行或执行存储在存储器1303内的软件程序和/或模块,以及调用存储在存储器1303内的数据,执行第一设备的各种功能和处理数据,从而对第一设备进行整体(包括WiFi芯片1301)控制。可选的,处理器1304可以包括一个或多个处理单元;优选的,处理器1304可以集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调器处理器主要处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1304中。
其中,WiFi芯片1301还用于:基于处理器1304的指示,建立与所述目标接入点之间的WiFi连接,如判断所述第二设备的登录信息是否与所述目标接入点的登录参数比对一致,如果所述第二设备的登录信息与所述目标接入点的登录参数比对一致,则接入所述目标接入点。而处理器1304还用于:若所述反馈信息表明所述目标接入点为便携式WiFi热点,判断是否采用默认连接的连接方式;若采用默认连接的连接方式,则触发所述输出设备1302输出所述第二提示信息,并触发所述WiFi芯片1301建立与所述目标接入点之间的WiFi连接。
另外,第二设备还可以包括有输入设备1308,通过所述总线1305与所述处理器1304相连接,用于采集输入操作。输入设备1308可以包括具有触控面板1309和其他输入设备1310。具体的输入设备1308可用于接收输入的数字或字符信息,以及产生与第二设备的用户设置以及功能控制有关的键信号输入。具体地,输入设备1308可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。
此时,处理器1304还用于:若不采用默认连接的连接方式,获得所述输入设备1306接收到的用户的输入操作,判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点;若所述输入操作表明所述第二设备的用户需要接入目标接入点,则触发所述输出设备1302输出所述第二提示信息,并触发所述WiFi芯片1301建立与所述目 标接入点之间的WiFi连接。
除此之外,WiFi芯片1301还用于:监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,相应的,输出设备1302可以在处理器1304的指示,在所述WiFi芯片1301搜索到登录信息与登录参数相一致的WiFi接入点时,输出第三提示信息,并触发所述输入设备1308采集输入操作,使得所述WiFi芯片1301基于所述处理器1304的指示在输入操作表明需要切换到搜索到的WiFi接入点时,断开与所述目标接入点的连接,并建立与搜索到的WiFi接入点之间的WiFi连接。
可见,本申请能够及时通过接收提供WiFi接入点的设备所发送的反馈信息来辨识出所连接的WiFi为便携式WiFi热点,从而达到接入WiFi接入点的设备能够及时了解到自己所连接WiFi接入点为便携式WiFi热点,从而尽早避免给提供WiFi热点的设备造成大量的流量流失的情况。
另外,第二设备还可以包括为各个部件供电的电源1311,还可以包括摄像头、蓝牙模块等,此处不再赘述。
而第二设备中各结构的功能的实现具体方式可以参见前文相应内容所示,此处不再赘述。
另外,本实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。本申请中的计算机可读存储介质可以为磁盘、光盘、数据卡、U盘及各类存储器等。
本实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或者部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算指令,在计算机上加载和执行计算指令时,全部或者部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。
另外,所述计算指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输。计算机可读存储介质可以为磁盘、光盘、数据卡、U盘及各类存储器。例如,所述计算指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光线、数字用户线)或无线(例如,红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。
其中,所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如数字化视频光盘(Digital Video Disk,DVD))或半导体介质(例如固态硬盘(Solid State Drives,SSD))等。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。

Claims (28)

  1. 一种WiFi连接方法,其特征在于,应用于第一设备,所述方法包括:
    开启所述第一设备的WiFi接入点;
    接收第二设备的连接请求;
    基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    基于所述连接请求,输出第一提示信息。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    判断所述连接请求中的登录信息与所述WiFi接入点的预设的登录参数是否一致,如果所述登录信息与所述登录参数一致,允许所述第二设备接入所述WiFi接入点。
  4. 根据权利要求1或2所述的方法,其特征在于,还包括:
    将接入所述WiFi接入点的设备的数量信息进行输出。
  5. 一种WiFi连接方法,其特征在于,应用于第二设备,所述方法包括:
    搜索所述第二设备所在周边环境中的WiFi接入点,以得到所述第二设备可选择接入的WiFi接入点列表,所述WiFi接入点列表中包括至少一个WiFi接入点;
    确定所述WiFi接入点列表中的目标接入点;
    向所述目标接入点所在的设备发送连接请求;
    接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点;
    若所述反馈信息表明所述目标接入点为便携式WiFi热点,输出第二提示信息,所述第二提示信息用于提醒所述第二设备的用户所述目标接入点为便携式WiFi热点。
  6. 根据权利要求5所述的方法,其特征在于,在输出所述第二提示信息之后,所述方法还包括:
    建立与所述目标接入点之间的WiFi连接。
  7. 根据权利要求5所述的方法,其特征在于,若所述反馈信息表明所述目标接入点为便携式WiFi热点,所述方法还包括:
    判断是否采用默认连接的连接方式;
    若采用默认连接的连接方式,则执行所述输出所述第二提示信息,并建立与所述目标接入点之间的WiFi连接。
  8. 根据权利要求7所述的方法,其特征在于,若不采用默认连接的连接方式,所述方法还包括:
    接收用户的输入操作;
    判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点;
    若所述输入操作表明所述第二设备的用户需要接入目标接入点,则执行所述输出所述第二提示信息,并建立与所述目标接入点之间的WiFi连接。
  9. 根据权利要求6、7或8所述的方法,其特征在于,所述建立与所述目标接入 点之间的WiFi连接,包括:
    判断所述第二设备的登录信息是否与所述目标接入点的登录参数比对一致;
    如果所述第二设备的登录信息与所述目标接入点的登录参数比对一致,则接入所述目标接入点。
  10. 根据权利要求6所述的方法,其特征在于,在所述建立与所述目标接入点之间的WiFi连接之后,所述方法还包括:
    监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,如果有,输出第三提示信息;
    采集输入操作,在输入操作表明需要切换到搜索到的WiFi接入点时,断开与所述目标接入点的连接,并建立与搜索到的WiFi接入点之间的WiFi连接。
  11. 一种设备,其特征在于,包括:
    WiFi模块,用于开启所述设备的WiFi接入点;
    数据处理模块,用于接收第二设备的连接请求,并基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。
  12. 根据权利要求11所述的设备,其特征在于,还包括:
    数据输出模块用于:基于所述连接请求,输出第一提示信息,和/或,将接入所述WiFi接入点的设备的数量信息进行输出。
  13. 根据权利要求11或12所述的设备,其特征在于,还包括:
    接入控制模块,用于判断所述连接请求中的登录信息与所述WiFi接入点的预设的登录参数是否一致,如果所述登录信息与所述登录参数一致,允许所述第二设备接入所述WiFi接入点。
  14. 一种设备,其特征在于,包括:
    WiFi模块,用于搜索所述第二设备所在周边环境中的WiFi接入点,以得到所述第二设备可选择接入的WiFi接入点列表,所述WiFi接入点列表中包括至少一个WiFi接入点;
    数据处理模块,用于确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,并接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点;
    数据输出模块,用于若所述反馈信息表明所述目标接入点为便携式WiFi热点,输出第二提示信息,所述第二提示信息用于提醒所述第二设备的用户所述目标接入点为便携式WiFi热点。
  15. 根据权利要求14所述的设备,其特征在于,所述WiFi模块还用于建立与所述目标接入点之间的WiFi连接。
  16. 根据权利要求14所述的设备,其特征在于,所述数据处理模块,还用于若所述反馈信息表明所述目标接入点为便携式WiFi热点,判断是否采用默认连接的连接方式,若采用默认连接的连接方式,则由所述数据传输模块输出所述第二提示信息,并由所述WiFi模块建立与所述目标接入点之间的WiFi连接。
  17. 根据权利要求16所述的设备,其特征在于,所述数据处理模块还用于:若不采用默认连接的连接方式,接收用户的输入操作,并判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点,若所述输入操作表明所述第二设备的用户需要接入目标接入点,则由所述数据传输模块输出所述第二提示信息,并由所述WiFi模块建立与所述目标接入点之间的WiFi连接。
  18. 根据权利要求15所述的设备,其特征在于,所述WiFi模块具体用于:判断所述第二设备的登录信息是否与所述目标接入点的登录参数比对一致;如果所述第二设备的登录信息与所述目标接入点的登录参数比对一致,则接入所述目标接入点。
  19. 根据权利要求15所述的设备,其特征在于,所述WiFi模块还用于监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点,如果有,由所述数据传输模块输出第三提示信息;
    所述设备还包括:数据输入模块,用于采集输入操作,在输入操作表明需要切换到搜索到的WiFi接入点时,由所述WiFi模块断开与所述目标接入点的连接并建立与搜索到的WiFi接入点之间的WiFi连接。
  20. 一种设备,其特征在于,包括:WiFi芯片、存储器、处理器和总线,所述WiFi芯片、所述存储器分别通过所述总线与所述处理器连接;
    所述WiFi芯片,用于提供WiFi连接;
    所述存储器,用于存储软件程序及模块;
    所述处理器,用于运行存储在存储器中的软件程序以及模块,以使得所述设备实现以下功能及数据处理:利用所述WiFi芯片开启WiFi接入点,接收第二设备的连接请求,并基于所述连接请求,发送反馈信息给所述第二设备,所述反馈信息表明所述WiFi接入点是否为便携式WiFi热点。
  21. 根据权利要求20所述的设备,其特征在于,还包括:
    第一输出设备,用于根据所述处理器的指示输出第一提示信息和/或接入所述WiFi接入点的设备的数量信息。
  22. 根据权利要求20或21所述的设备,其特征在于,所述设备与第二输出设备相连接,其中:
    所述第二输出设备用于:根据所述处理器的指示输出第一提示信息和/或接入所述WiFi接入点的设备的数量信息。
  23. 一种设备,其特征在于,包括:WiFi芯片、输出设备、存储器、处理器和总线;所述WiFi芯片、所述输出设备、所述存储器分别通过所述总线与所述处理器连接;
    所述WiFi芯片,用于提供WiFi连接;
    所述输出设备,用于输出数据;
    所述存储器,用于存储软件程序及模块;
    所述处理器,用于运行所述存储器中存储的软件程序以及模块,以使得所述设备实现以下功能及数据处理:在利用所述WiFi芯片搜索所述设备所在周边环境中的WiFi接入点,以得到所述设备可选择接入的WiFi接入点列表后,所述WiFi接入点列表中 包括至少一个WiFi接入点,确定所述WiFi接入点列表中的目标接入点,向所述目标接入点所在的设备发送连接请求,接收所述目标接入点所在的设备基于所述连接请求所返回的反馈信息,所述反馈信息表明所述目标接入点是否为便携式WiFi热点,若所述反馈信息表明所述目标接入点为便携式WiFi热点,触发所述输出设备输出第二提示信息,所述第二提示信息用于提醒所述设备的用户所述目标接入点为便携式WiFi热点。
  24. 根据权利要求23所述的设备,其特征在于,所述WiFi芯片还用于:基于所述处理器的指示,建立与所述目标接入点之间的WiFi连接。
  25. 根据权利要求23所述的设备,其特征在于,所述处理器还用于:若所述反馈信息表明所述目标接入点为便携式WiFi热点,判断是否采用默认连接的连接方式;若采用默认连接的连接方式,则触发所述输出设备输出所述第二提示信息,并触发所述WiFi芯片建立与所述目标接入点之间的WiFi连接。
  26. 根据权利要求25所述的设备,其特征在于,还包括:
    输入设备,通过所述总线与所述处理器相连接,用于采集输入操作;
    所述处理器还用于:若不采用默认连接的连接方式,获得所述输入设备接收到的用户的输入操作,判断所述输入操作是否表明所述第二设备的用户需要接入目标接入点;若所述输入操作表明所述第二设备的用户需要接入目标接入点,则触发所述输出设备输出所述第二提示信息,并触发所述WiFi芯片建立与所述目标接入点之间的WiFi连接。
  27. 根据权利要求24、25或26所述的设备,其特征在于,所述WiFi芯片具体用于:判断所述第二设备的登录信息是否与所述目标接入点的登录参数比对一致,如果所述第二设备的登录信息与所述目标接入点的登录参数比对一致,则接入所述目标接入点。
  28. 根据权利要求26所述的设备,其特征在于,所述WiFi芯片还用于:监测是否搜索到连接请求中的登录信息与登录参数相一致的WiFi接入点;
    所述输出设备还用于:基于所述处理器的指示,在所述WiFi芯片搜索到登录信息与登录参数相一致的WiFi接入点时,输出第三提示信息,并触发所述输入设备采集输入操作,使得所述WiFi芯片基于所述处理器的指示在输入操作表明需要切换到搜索到的WiFi接入点时,断开与所述目标接入点的连接,并建立与搜索到的WiFi接入点之间的WiFi连接。
PCT/CN2017/091291 2016-09-27 2017-06-30 一种WiFi连接方法和设备 WO2018059045A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201780002636.1A CN108432292A (zh) 2016-09-27 2017-06-30 一种WiFi连接方法和设备
EP17854499.5A EP3509353B1 (en) 2016-09-27 2017-06-30 Wifi connection method and device
US16/336,836 US11553541B2 (en) 2016-09-27 2017-06-30 Wi-fi connection method and device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610856216.7 2016-09-27
CN201610856216 2016-09-27
CN201710209569 2017-03-31
CN201710209569.2 2017-03-31

Publications (1)

Publication Number Publication Date
WO2018059045A1 true WO2018059045A1 (zh) 2018-04-05

Family

ID=61763669

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091291 WO2018059045A1 (zh) 2016-09-27 2017-06-30 一种WiFi连接方法和设备

Country Status (4)

Country Link
US (1) US11553541B2 (zh)
EP (1) EP3509353B1 (zh)
CN (1) CN108432292A (zh)
WO (1) WO2018059045A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068360A (zh) * 2018-09-17 2018-12-21 珠海格力电器股份有限公司 一种网络WiFi与热点WiFi的切换连接方法、系统及智能终端
CN113993103A (zh) * 2021-10-22 2022-01-28 安徽江淮汽车集团股份有限公司 用于车载终端的网络自动互联方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099427A (zh) * 2018-01-31 2019-08-06 阿里巴巴集团控股有限公司 一种待配网设备接入网络热点设备的方法和系统
JP7292861B2 (ja) * 2018-11-22 2023-06-19 キヤノン株式会社 情報処理装置、制御方法及びプログラム
CN109451518B (zh) * 2018-12-27 2022-07-15 青岛海信移动通信技术股份有限公司 一种区分终端接入wlan方式的方法及设备
CN111782048A (zh) * 2020-07-02 2020-10-16 Oppo(重庆)智能科技有限公司 一种消息提醒方法、装置及计算机可读存储介质
CN112512067B (zh) * 2020-12-10 2023-06-13 中国联合网络通信集团有限公司 微基站的配置方法、微基站、终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349401A (zh) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 用于在终端中调整数据策略的设备和方法
CN105307235A (zh) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 一种热点共享方法、装置和系统
CN105323782A (zh) * 2014-07-30 2016-02-10 宇龙计算机通信科技(深圳)有限公司 显示便携Wifi热点连接数量的方法、装置及终端
CN105848193A (zh) * 2016-03-18 2016-08-10 北京小米移动软件有限公司 控制无线局域网wlan热点功能开关的方法及装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6269395B1 (en) * 1998-12-21 2001-07-31 Nortel Networks Limited Method and system in a computer-based system for providing access to services associated with different access points
US20070180499A1 (en) * 2006-01-31 2007-08-02 Van Bemmel Jeroen Authenticating clients to wireless access networks
US8600344B2 (en) * 2012-02-15 2013-12-03 Bright House Networks, Llc Integrating a mobile hotspot into a larger network environment
US20140086179A1 (en) * 2012-09-21 2014-03-27 Tencent Technology (Shenzhen) Company Limited Methods, terminals, and systems for facilitating data sharing
CN103096384B (zh) 2012-12-17 2016-04-06 东莞宇龙通信科技有限公司 限制从机上网流量的方法及其系统
CN103117906B (zh) 2013-02-27 2016-12-28 广东欧珀移动通信有限公司 一种移动终端共享WiFi热点时的流量监控方法
CN104144515A (zh) 2013-05-08 2014-11-12 中兴通讯股份有限公司 终端及其实现wifi热点网络共享的方法
EP3869766B1 (en) * 2014-05-31 2022-09-28 Huawei Technologies Co., Ltd. Network connection method, hotspot terminal and management terminal
US9936528B2 (en) * 2014-06-29 2018-04-03 Tetherball Technology, LLC Automatic wireless grid access sharing and monetization from a mobile device app
CN105451269A (zh) * 2014-07-04 2016-03-30 阿里巴巴集团控股有限公司 一种无线上网流量控制的方法和装置
WO2016156439A1 (en) * 2015-03-31 2016-10-06 British Telecommunications Public Limited Company Interface selection in a wireless router
US20160366638A1 (en) * 2015-04-27 2016-12-15 Qualcomm Incorporated Lte network assisted power saving for access points with multiple clients
CN104853405B (zh) * 2015-05-12 2018-11-30 浙江生辉照明有限公司 智能联网方法及智能设备
CN105430713A (zh) * 2015-11-30 2016-03-23 东莞酷派软件技术有限公司 一种无线保真WiFi热点的识别方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349401A (zh) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 用于在终端中调整数据策略的设备和方法
CN105323782A (zh) * 2014-07-30 2016-02-10 宇龙计算机通信科技(深圳)有限公司 显示便携Wifi热点连接数量的方法、装置及终端
CN105307235A (zh) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 一种热点共享方法、装置和系统
CN105848193A (zh) * 2016-03-18 2016-08-10 北京小米移动软件有限公司 控制无线局域网wlan热点功能开关的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3509353A4

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068360A (zh) * 2018-09-17 2018-12-21 珠海格力电器股份有限公司 一种网络WiFi与热点WiFi的切换连接方法、系统及智能终端
WO2020056964A1 (zh) * 2018-09-17 2020-03-26 珠海格力电器股份有限公司 网络WiFi与热点WiFi的切换连接方法、系统及智能终端
CN113993103A (zh) * 2021-10-22 2022-01-28 安徽江淮汽车集团股份有限公司 用于车载终端的网络自动互联方法
CN113993103B (zh) * 2021-10-22 2024-01-19 安徽江淮汽车集团股份有限公司 用于车载终端的网络自动互联方法

Also Published As

Publication number Publication date
US11553541B2 (en) 2023-01-10
EP3509353A4 (en) 2019-07-10
EP3509353B1 (en) 2021-10-27
CN108432292A (zh) 2018-08-21
US20200288517A1 (en) 2020-09-10
EP3509353A1 (en) 2019-07-10

Similar Documents

Publication Publication Date Title
WO2018059045A1 (zh) 一种WiFi连接方法和设备
KR101842047B1 (ko) 와이 파이 다이렉트 통신 시스템에서 그룹 프로파일 관리를 위한 방법 및 장치
KR102249413B1 (ko) 이미지 공유 방법 및 전자 디바이스
TWI450558B (zh) 對應多行動裝置之線上服務的提供方法與系統、伺服器、行動裝置與電腦程式產品
JP6924783B2 (ja) ブルートゥース接続管理方法、マスタ・ブルートゥース・デバイス、及び装置
US9125002B2 (en) Apparatus and method for connecting with bluetooth device in portable terminal
WO2017107714A1 (zh) 一种屏幕界面的切换方法、装置和终端
WO2016107501A1 (zh) 智能设备控制方法及装置
WO2016150270A1 (zh) 群组会话消息处理方法和装置
US10084729B2 (en) Apparatuses and methods for web page sharing
WO2015143900A1 (zh) 网络会议中进行数据共享的方法、装置及系统
CN110168942A (zh) 选择蓝牙设备的方法、终端和系统
WO2015032249A1 (zh) 多媒体播放设备网络初始化的方法、系统、设备与终端
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2019000411A1 (zh) 一种无线通信连接建立的方法及设备
WO2017012423A1 (zh) 一种显示即时通信消息的方法和终端
WO2015085951A1 (zh) 邀请好友观看视频的方法、终端、服务器及系统
US9462332B2 (en) Method and apparatus for controlling a media device
WO2014206143A1 (zh) 未读消息数目显示方法、装置和设备
JP6140910B2 (ja) ネットワークにアクセスする方法、装置、プログラム及び記録媒体
WO2021022720A1 (zh) 基于蓝牙的数据传输方法、存储介质及终端
WO2018161788A1 (zh) 多媒体数据共享方法及装置
WO2015101302A1 (zh) 数据共享方法、系统、用户端及后台服务器
WO2019057119A1 (zh) 基于移动终端的wifi热点连接方法及移动终端、存储介质
WO2019095156A1 (zh) 一种信息搜索的方法、终端、网络设备和系统

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: 17854499

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017854499

Country of ref document: EP

Effective date: 20190404