CN105682007B - Mobile terminal and WIFI control method - Google Patents

Mobile terminal and WIFI control method Download PDF

Info

Publication number
CN105682007B
CN105682007B CN201610067941.6A CN201610067941A CN105682007B CN 105682007 B CN105682007 B CN 105682007B CN 201610067941 A CN201610067941 A CN 201610067941A CN 105682007 B CN105682007 B CN 105682007B
Authority
CN
China
Prior art keywords
module
processing module
connection
application
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610067941.6A
Other languages
Chinese (zh)
Other versions
CN105682007A (en
Inventor
易晓柯
王佰祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610067941.6A priority Critical patent/CN105682007B/en
Publication of CN105682007A publication Critical patent/CN105682007A/en
Priority to PCT/CN2016/092086 priority patent/WO2017128663A1/en
Application granted granted Critical
Publication of CN105682007B publication Critical patent/CN105682007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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

Landscapes

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

Abstract

The invention discloses a mobile terminal which comprises a first Wi-Fi application module, a second Wi-Fi application module, a Wi-Fi service module connected with the first Wi-Fi application module and the second Wi-Fi application module, a first processing module and a second processing module connected with the Wi-Fi service module, wherein the first processing module is connected with the first Wi-Fi application module; the first Wi-Fi application module or the second Wi-Fi application module is used for sending a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user; the Wi-Fi service module is used for sending the received Wi-Fi connection instruction to the corresponding first processing module or second processing module; the first processing module or the second processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol; the Wi-Fi service module is also used for starting the routing configuration of the double Wi-Fi internet surfing data when the Wi-Fi connection is successful and the first processing module and the second processing module are both in a normal data communication state, and the first processing module and the second processing module carry out data communication at the same time. The invention also discloses a Wi-Fi control method, which improves the network access efficiency.

Description

Mobile terminal and WIFI control method
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal and a Wi-Fi control method.
Background
With the improvement of the living standard of modern people, mobile terminals such as smart phones and PADs (PAD computers) are necessities in life, and one of the most important functions of the mobile terminals is to realize the internet surfing function through the communication between a Wi-Fi module and the internet. Because a Wi-Fi module of an existing mobile terminal generally only has one Wi-Fi chip, a corresponding protocol stack and upper-layer applications, only connection to one Wi-Fi hotspot is supported, and due to the influence of factors such as the bandwidth limitation of Wi-Fi and the excessive number of mobile terminals connected with the Wi-Fi hotspot, the access efficiency of a network is low.
Disclosure of Invention
The invention provides a mobile terminal and a Wi-Fi control method, aiming at improving the access efficiency of a network.
The technical scheme of the invention for solving the technical problems is as follows.
In order to achieve the above object, the present invention provides a mobile terminal, which includes a first Wi-Fi application module, a second Wi-Fi application module, a Wi-Fi service module connected to the first Wi-Fi application module and the second Wi-Fi application module, and a first processing module and a second processing module connected to the Wi-Fi service module;
the first Wi-Fi application module or the second Wi-Fi application module is used for sending a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user;
the Wi-Fi service module is used for sending the Wi-Fi connection instruction to the corresponding first processing module or second processing module when receiving the Wi-Fi connection instruction;
the first processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the second processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module;
the Wi-Fi service module is further used for starting routing configuration of double Wi-Fi internet surfing data when Wi-Fi connection is successful and the first processing module and the second processing module are detected to be in a normal data communication state, and the first processing module and the second processing module carry out data communication at the same time.
Optionally, the first processing module includes a first Wi-Fi processing unit and a first Wi-Fi chip; the second processing module comprises a second Wi-Fi processing unit and a second Wi-Fi chip;
the first Wi-Fi processing unit is used for sending the Wi-Fi connection instruction and a corresponding protocol to the first Wi-Fi chip when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the second Wi-Fi processing unit is used for sending the Wi-Fi connection instruction and a corresponding protocol to the second Wi-Fi chip when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module;
the first Wi-Fi chip or the second Wi-Fi chip is used for establishing Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
Optionally, the Wi-Fi service module is further configured to send the connection status information to the corresponding first Wi-Fi application module or second Wi-Fi application module when receiving the connection status information sent by the first processing module or the second processing module;
the first Wi-Fi application module or the second Wi-Fi application module is further configured to display the connection state information on an application interface corresponding to the first Wi-Fi application module or the second Wi-Fi application module when the connection state information sent by the Wi-Fi service module is received.
Optionally, the Wi-Fi service module is configured to send an IP address acquisition instruction to the first processing module and the second processing module when Wi-Fi connection is successful; and when receiving a first IP address fed back by the first processing module and a second IP address fed back by the second processing module, determining whether both the first processing module and the second processing module are in a normal data communication state.
Optionally, the Wi-Fi service module is further configured to:
and when the Wi-Fi connection is successful and the first processing module or the second processing module is detected to be in a normal data communication state, starting the routing configuration of single Wi-Fi internet surfing data, and performing data communication by the first processing module or the second processing module.
In addition, for the above object of the invention, the present invention also provides a Wi-Fi control method, comprising the steps of:
the first Wi-Fi application module or the second Wi-Fi application module sends a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user;
when the Wi-Fi service module receives the Wi-Fi connection instruction, the Wi-Fi service module sends the Wi-Fi connection instruction to the corresponding first processing module or second processing module;
when the first processing module or the second processing module receives a Wi-Fi connection instruction sent by the Wi-Fi service module, establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol;
when the Wi-Fi connection is successful and the first processing module and the second processing module are both in a normal data communication state, the Wi-Fi service module starts the routing configuration of double Wi-Fi internet surfing data, and the first processing module and the second processing module perform data communication at the same time.
Optionally, the first processing module includes a first Wi-Fi processing unit and a first Wi-Fi chip; the second processing module comprises a second Wi-Fi processing unit and a second Wi-Fi chip; when the first processing module or the second processing module receives a Wi-Fi connection instruction sent by the Wi-Fi service module, the step of establishing the Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol comprises the following steps:
when the first Wi-Fi processing unit or the second Wi-Fi processing unit receives a Wi-Fi connection instruction sent by the Wi-Fi service module, the Wi-Fi connection instruction and a corresponding protocol are sent to a corresponding first Wi-Fi chip or a corresponding second Wi-Fi chip;
and when the first Wi-Fi chip or the second Wi-Fi chip receives the Wi-Fi connection instruction and the corresponding protocol, establishing Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol.
Optionally, after the step of establishing a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when the first processing module or the second processing module receives the Wi-Fi connection instruction sent by the Wi-Fi service module, the method further includes:
when the Wi-Fi service module receives the connection state information sent by the first processing module or the second processing module, the Wi-Fi service module sends the connection state information to the corresponding first Wi-Fi application module or the corresponding second Wi-Fi application module;
when the first Wi-Fi application module or the second Wi-Fi application module receives the connection state information sent by the Wi-Fi service module, the connection state information is displayed on an application interface corresponding to the first Wi-Fi application module or the second Wi-Fi application module.
Optionally, after the step of establishing a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when the first processing module or the second processing module receives the Wi-Fi connection instruction sent by the Wi-Fi service module, the method further includes:
when the Wi-Fi connection is successful, the Wi-Fi service module sends an IP address acquisition instruction to the first processing module and the second processing module;
the first processing module feeds back a first IP address to the Wi-Fi service module when receiving the IP address acquisition instruction, and the second processing module feeds back a second IP address to the Wi-Fi service module when receiving the IP address acquisition instruction;
and when the Wi-Fi service module receives a first IP address fed back by the first processing module and a second IP address fed back by the second processing module, judging whether the first processing module and the second processing module are both in a normal data communication state.
Optionally, the Wi-Fi control method further includes the steps of:
when the Wi-Fi connection is successful and the first processing module or the second processing module is in a normal data communication state, the Wi-Fi service module starts the routing configuration of single Wi-Fi internet surfing data, and the first processing module or the second processing module carries out data communication.
The mobile terminal in the embodiment of the invention comprises a first Wi-Fi application module, a second Wi-Fi application module, a Wi-Fi service module connected with the first Wi-Fi application module and the second Wi-Fi application module, and a first processing module and a second processing module connected with the Wi-Fi service module; the first Wi-Fi application module or the second Wi-Fi application module is used for sending a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user; the Wi-Fi service module is used for sending the Wi-Fi connection instruction to the corresponding first processing module or second processing module when receiving the Wi-Fi connection instruction; the first processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the second processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the Wi-Fi service module is further used for starting routing configuration of double Wi-Fi internet surfing data when Wi-Fi connection is successful and the first processing module and the second processing module are detected to be in a normal data communication state, and the first processing module and the second processing module carry out data communication at the same time, so that a user can access the same network through the first processing module and the second processing module at the same time or access different networks through the first processing module and the second processing module respectively, and the network access efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a schematic diagram of a frame structure of a mobile terminal according to a first embodiment of the present invention;
FIG. 4 is a detailed functional block diagram of a first processing block of the mobile terminal according to the present invention;
FIG. 5 is a detailed functional block diagram of a second processing block of the mobile terminal according to the present invention;
FIG. 6 is a schematic diagram of a detailed framework structure of the mobile terminal according to the present invention;
FIG. 7 is a flowchart illustrating a Wi-Fi control method according to a first embodiment of the present invention;
fig. 8 is a flowchart illustrating a Wi-Fi control method according to a second embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include the wireless communication unit 110, the processor 180, the power supply unit 190, the display unit 151, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 generally includes one or more components, such as a Wi-Fi chip, a wireless communication chip, a bluetooth chip, an NFC chip, etc., which allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115. In addition, the wireless communication unit 110 is connected to the processor 180, and is configured to acquire a currently available data service interaction mode of the mobile terminal, and detect a data transmission rate corresponding to each data service interaction mode in the acquired data service interaction modes.
The processor 180 generally controls the overall operation of the mobile terminal. For example, the processor 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the processor 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the processor 180 or may be constructed separately from the processor 180. The processor 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. And the mobile terminal is further used for determining whether to switch the current data service interaction mode of the mobile terminal according to the data transmission rate and/or the power consumption corresponding to each data service interaction mode.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate the elements and components under the control of the processor 180. And the method is also used for calculating the power consumption corresponding to each data service interaction mode according to the transmission rate.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the processor 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 160 and executed by processor 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal. The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or Xdsl. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25mhz,5mhz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100. It is understood that fig. 2 is a communication system architecture diagram of a 2G mobile network, and in the following embodiments of the present invention, a communication system of 3G and 4G mobile networks may also be adopted.
With reference to fig. 1 and fig. 2, the mobile terminal according to various embodiments of the present invention is provided based on the above-mentioned mobile terminal hardware structure and communication system.
Referring to fig. 3, a first embodiment of the mobile terminal of the present invention is provided, and in this embodiment, the mobile terminal includes a first Wi-Fi application module 10, a second Wi-Fi application module 20, a Wi-Fi service module 30 connected to the first Wi-Fi application module 10 and the second Wi-Fi application module 20, and a first processing module 40 and a second processing module 50 connected to the Wi-Fi service module 30;
the first Wi-Fi application module 10 or the second Wi-Fi application module 20 is configured to send a Wi-Fi connection instruction to the Wi-Fi service module 30 when receiving a Wi-Fi connection operation input by a user;
the Wi-Fi service module 30 is configured to send a Wi-Fi connection instruction to the corresponding first processing module 40 or second processing module 50 when receiving the Wi-Fi connection instruction;
the first processing module 40 is configured to establish a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30; the second processing module 50 is configured to establish a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30;
the Wi-Fi service module 30 is further configured to start routing configuration of the dual Wi-Fi internet data when the Wi-Fi connection is successful and it is detected that the first processing module 40 and the second processing module 50 are both in a normal data communication state, and the first processing module 40 and the second processing module 50 perform data communication at the same time.
The mobile terminal provided by the invention mainly comprises terminal equipment with Wi-Fi function, such as a mobile phone, a PAD (PAD computer) and the like. In this embodiment, the mobile terminal is mainly applied to dual Wi-Fi communication, and certainly, in other embodiments, the mobile terminal is not limited to the dual Wi-Fi communication mode provided by the present invention, and may also be a multi Wi-Fi communication mode of three Wi-Fi and more than three Wi-Fi.
The first Wi-Fi application module 10 and the second Wi-Fi application module 20 of the mobile terminal provide corresponding Wi-Fi application operation interfaces, so that a user can perform corresponding control and operation through the Wi-Fi application operation interfaces. For example, the first Wi-Fi application module 10 and the second Wi-Fi application module 20 may control the connection and disconnection of the first processing module 40 and the second processing module 50, respectively, through the Wi-Fi service module 30. The first processing module 40 and the second processing module 50 respectively process the instruction issued by the first Wi-Fi application module 10 and the second Wi-Fi application module 20, the connection state information of the Wi-Fi hotspot, and the like.
When a user wants to connect with a Wi-Fi hotspot through a mobile terminal to perform operations such as surfing the internet, the user may select one of the Wi-Fi hotspots through a Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10 or a Wi-Fi application operation interface corresponding to the second Wi-Fi application module 20 to perform Wi-Fi connection operation, and when the first Wi-Fi application module 10 or the second Wi-Fi application module 20 receives the Wi-Fi connection operation, the Wi-Fi connection instruction is triggered and sent to the Wi-Fi service module 30. For example, when the user performs a Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10, and when the first Wi-Fi application module 10 receives the Wi-Fi connection operation, the Wi-Fi connection instruction is triggered and sent to the Wi-Fi service module 30.
When the Wi-Fi service module 30 receives the Wi-Fi connection instruction, the Wi-Fi service module 30 determines whether the processing module corresponding to the Wi-Fi connection instruction is the first processing module 40 or the second processing module 50, that is, determines whether the user performs the Wi-Fi connection operation based on the first Wi-Fi application module 10 or performs the Wi-Fi connection operation based on the second Wi-Fi application module 20. Specifically, when the user executes a Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10 and the first Wi-Fi application module 10 sends a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the first processing module 40; when the user performs the Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the second Wi-Fi application module 20 and the second Wi-Fi application module 20 sends a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the second processing module 50. When the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the first processing module 40, the Wi-Fi service module 30 sends the Wi-Fi connection instruction to the first processing module 40; when the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the second processing module 50, the Wi-Fi service module 30 sends the Wi-Fi connection instruction to the second processing module 50.
When the first processing module 40 receives the Wi-Fi connection instruction, establishing a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol; when the second processing module 50 receives the Wi-Fi connection instruction, a Wi-Fi connection is established according to the Wi-Fi connection instruction and the corresponding protocol. Specifically, as shown in fig. 4, the first processing module 40 includes a first Wi-Fi processing unit 41 and a first Wi-Fi chip 42. When receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first Wi-Fi processing unit 41 sends the Wi-Fi connection instruction and the corresponding protocol to the first Wi-Fi chip 42. The first Wi-Fi chip 42 establishes a Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol. As shown in fig. 5, the second processing module 50 includes a second Wi-Fi processing unit 51 and a second Wi-Fi chip 52. When receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the second Wi-Fi processing unit 51 sends the Wi-Fi connection instruction and the corresponding protocol to the second Wi-Fi chip 52. And the second Wi-Fi chip 52 establishes the Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
As shown in fig. 6, specifically, the application layer of the mobile terminal includes a first Wi-Fi application module 10 and a second Wi-Fi application module 20, the framework layer of the mobile terminal includes a Wi-Fi service module 30, a first framework subunit 411 and a second framework subunit 511, the protocol layer of the mobile terminal includes a first protocol subunit 412 and a second protocol subunit 512, and the driver layer of the mobile terminal includes a first driver subunit 413 and a second driver subunit 513. The Wi-Fi service module 30 is respectively connected with the first frame subunit 411 and the second frame subunit 511, the first frame subunit 411 is connected with the first protocol subunit 412, the first protocol subunit 412 is connected with the first driving subunit 413, the first driving subunit 413 is connected with the first Wi-Fi chip 42, the second frame subunit 511 is connected with the second protocol subunit 512, the second protocol subunit 512 is connected with the second driving subunit 513, and the second driving subunit 513 is connected with the second Wi-Fi chip 52.
When the first frame sub-unit 411 receives a Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first frame sub-unit 411 sends the Wi-Fi connection instruction to the first protocol sub-unit 412. When receiving the Wi-Fi connection instruction, the first protocol subunit 412 writes the Wi-Fi hotspot information into the corresponding configuration file, selects a specified protocol according to the protocol corresponding to the Wi-Fi hotspot, and sends the protocol and the Wi-Fi connection instruction to the first Wi-Fi chip 42. And the first Wi-Fi chip 42 executes air interface interaction operation to establish Wi-Fi connection. The first Wi-Fi chip or the second Wi-Fi chip is used for establishing Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
When the second frame subunit 511 receives the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the second frame subunit 511 sends the Wi-Fi connection instruction to the second protocol subunit 512. When receiving the Wi-Fi connection instruction, the second protocol subunit 512 writes the Wi-Fi hotspot information into the corresponding configuration file, selects a specified protocol according to the protocol corresponding to the Wi-Fi hotspot, and sends the protocol and the Wi-Fi connection instruction to the second Wi-Fi chip 52. And the second Wi-Fi chip 52 executes air interface interaction operation to establish Wi-Fi connection.
In this embodiment, a routing configuration of single Wi-Fi internet access data and a routing configuration of dual Wi-Fi internet access data are preset. When the Wi-Fi connection is successful and the first processing module 40 and the second processing module 50 are both in a normal data communication state, the Wi-Fi service module 30 starts the routing configuration of the dual Wi-Fi internet data, and the first processing module 40 and the second processing module 50 perform data communication at the same time. Therefore, the user can access the same network through the first processing module 40 and the second processing module 50 at the same time, or access different networks through the first processing module 40 and the second processing module 50, respectively, such as an extranet and an office network, a web and a printer, respectively. Further, when the first processing module 40 and the second processing module 50 perform data communication simultaneously, for example, when the first processing module 40 and the second processing module 50 access the same network simultaneously, the Wi-Fi service module 30 may further perform operations of controlling bandwidth allocation of the first processing module 40 and the second processing module 50. For example, the first processing module 40 and the second processing module 50 are allocated with respective bandwidths according to respective rules such as equal division or preset proportion.
Moreover, since the Wi-Fi service module 30 can interact with both the first processing module 40 and the second processing module 50, redundancy caused by independently operating the two Wi-Fi modules is avoided, and a data communication process is simplified, thereby improving data communication efficiency.
In the solution provided in this embodiment, the mobile terminal includes a first Wi-Fi application module 10, a second Wi-Fi application module 20, a Wi-Fi service module 30 connected to the first Wi-Fi application module 10 and the second Wi-Fi application module 20, and a first processing module 40 and a second processing module 50 connected to the Wi-Fi service module 30. When receiving a Wi-Fi connection operation input by a user, the first Wi-Fi application module 10 or the second Wi-Fi application module 20 sends a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 sends the received Wi-Fi connection instruction to the corresponding first processing module 40 or the second processing module 50, when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first processing module 40 or the second processing module 50 establishes a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol, when the Wi-Fi connection is successful and the first processing module 40 and the second processing module 50 are both in a normal data communication state, the Wi-Fi service module 30 starts a routing configuration of double Wi-Fi internet surfing data, and the first processing module 40 and the second processing module 50 perform data communication simultaneously, therefore, a user can access the same network through the first processing module 40 and the second processing module 50 at the same time, or access different networks through the first processing module 40 and the second processing module 50, respectively, thereby improving the access efficiency of the network. Meanwhile, the operation that the user manually switches Wi-Fi hotspot connections is avoided, and the user experience is improved.
Further, a second embodiment of the mobile terminal of the present invention is proposed based on the first embodiment, in which the Wi-Fi service module 30 is configured to:
when the Wi-Fi connection is successful, an IP address acquisition instruction is sent to the first processing module 40 and the second processing module 50; and when receiving the first IP address fed back by the first processing module 40 and the second IP address fed back by the second processing module 50, determining that both the first processing module 40 and the second processing module 50 are in a normal data communication state.
In this embodiment, when the first processing module 40 or the second processing module 50 successfully establishes the Wi-Fi connection, the first processing module 40 or the second processing module 50 sends information that the Wi-Fi connection is successful to the Wi-Fi service module 30. When the Wi-Fi service module 30 receives the information that the Wi-Fi connection is successful, the Wi-Fi service module 30 simultaneously sends an IP address acquisition instruction to the first processing module 40 and the second processing module 50. When the first processing module 40 receives an IP address obtaining instruction, the first processing module 40 obtains a corresponding first IP address, and when the first IP address is obtained, the first IP address is sent to the Wi-Fi service module 30, and when the Wi-Fi service module 30 receives the first IP address sent by the first processing module 40, if the first IP address is not empty, it is determined that the first processing module 40 is in a normal communication state; when receiving the empty address sent by the first processing module 40, the Wi-Fi service module 30 determines that the first processing module 40 is in an abnormal communication state.
When the second processing module 50 receives the IP address obtaining instruction, the second processing module 50 obtains a corresponding second IP address, and when the second IP address is obtained, the second IP address is sent to the Wi-Fi service module 30, and when the Wi-Fi service module 30 receives the second IP address sent by the second processing module 50, if the second IP address is not empty, it is determined that the second processing module 50 is in a normal communication state; when receiving the empty address sent by the second processing module 50, the Wi-Fi service module 30 determines that the second processing module 50 is in an abnormal communication state.
When the Wi-Fi service module 30 receives that the first IP address sent by the first processing module 40 and the second IP address sent by the second processing module 50 are not empty, it is determined that both the first processing module 40 and the second processing module 50 are in a normal data communication state.
Specifically, for example, when the first processing module 40 successfully establishes the Wi-Fi connection, when the Wi-Fi service module 30 receives information that the Wi-Fi connection is successful, the Wi-Fi service module 30 simultaneously sends an IP address obtaining instruction to the first frame subunit 411 and the second frame subunit 511. The first frame subunit 411 starts a DHCP service to acquire a first IP address, and sends an IP address acquisition instruction to the first driving unit 413 through an operating system interface, the first driving unit 413 drives and controls the first Wi-Fi chip 42 to complete air interface interaction with a Wi-Fi hotspot successfully connected, and the first Wi-Fi chip 42 acquires the first IP address allocated to the Wi-Fi hotspot and uploads the first IP address to the first frame subunit 411. The first frame subunit 411, upon receiving the first IP address, stores the first IP address in the cache of the first frame subunit 411. Meanwhile, in this enumerated example, since the Wi-Fi connection state of the second processing module 50 is not changed, the second framework subunit 511, upon receiving the IP address acquisition instruction sent by the Wi-Fi service module 30, sends the second IP address stored in the cache of the second framework subunit 511 to the Wi-Fi service module 30.
Further, in this embodiment, the Wi-Fi service module 30 is further configured to:
and when the Wi-Fi connection is successful and the first processing module 40 or the second processing module 50 is detected to be in a normal data communication state, starting the routing configuration of the single Wi-Fi internet surfing data, and performing data communication by the first processing module 40 or the second processing module 50.
When the Wi-Fi connection is successful and the Wi-Fi service module 30 detects that the first processing module 40 or the second processing module 50 is in a normal data communication state, that is, when one of the first processing module 40 or the second processing module 50 is in an abnormal data communication state, the Wi-Fi service module 30 starts routing configuration of single Wi-Fi internet data, and the first processing module 40 or the second processing module 50 performs data communication.
Further, in this embodiment, the Wi-Fi service module 30 is further configured to send the connection status information to the corresponding first Wi-Fi application module 10 or second Wi-Fi application module 20 when receiving the connection status information sent by the first processing module 40 or the second processing module 50;
the first Wi-Fi application module 10 or the second Wi-Fi application module 20 is further configured to display the connection state information on an application interface corresponding to the first Wi-Fi application module 10 or the second Wi-Fi application module 20 when receiving the connection state information sent by the Wi-Fi service module 30.
When the first processing module 40 or the second processing module 50 establishes the Wi-Fi connection, the first processing module 40 or the second processing module 50 sends the connection status information to the Wi-Fi service module 30 in real time. When the Wi-Fi service module 30 receives the connection state information, it sends the connection state information to the corresponding first Wi-Fi application module 10 or second Wi-Fi application module 20. Specifically, when the Wi-Fi service module 30 receives the connection state information sent by the first processing module 40, the connection state information is sent to the first Wi-Fi application module 10; when the Wi-Fi service module 30 receives the connection state information transmitted by the second processing module 50, it transmits the connection state information to the second Wi-Fi application module 20.
When the first Wi-Fi application module 10 receives the connection state information sent by the Wi-Fi service module 30, the connection state information is displayed on the application interface corresponding to the first Wi-Fi application module 10. The user may learn the connection status information by viewing the application interface corresponding to the first Wi-Fi application module 10. When the second Wi-Fi application module 20 receives the connection state information sent by the Wi-Fi service module 30, the connection state information is displayed on the application interface corresponding to the second Wi-Fi application module 20. The user may learn the connection status information by viewing the application interface corresponding to the second Wi-Fi application module 20.
When the Wi-Fi connection fails, the Wi-Fi service module 30 sends a prompt message of the connection failure to the corresponding first Wi-Fi application module 10 or second Wi-Fi application module 20. The user may know that the Wi-Fi connection has failed by viewing the application interface corresponding to the first Wi-Fi application module 10 or the application interface corresponding to the second Wi-Fi application module 20.
According to the scheme provided by the embodiment, when the Wi-Fi connection is successful and the first processing module 40 or the second processing module 50 is detected to be in a normal data communication state, the Wi-Fi service module 30 starts routing configuration of single Wi-Fi internet data, the first processing module 40 or the second processing module 50 performs data communication, and therefore a user can access a network through the available Wi-Fi module to perform internet access and other operations, the user does not need to manually perform network switching, and user experience is further improved.
Referring to fig. 3, a first embodiment of the Wi-Fi control method of the present invention is provided, as shown in fig. 6, in this embodiment, the Wi-Fi control method includes:
step S10, when receiving the Wi-Fi connection operation input by the user, the first Wi-Fi application module 10 or the second Wi-Fi application module 20 sends a Wi-Fi connection instruction to the Wi-Fi service module 30;
step S20, when receiving the Wi-Fi connection instruction, the Wi-Fi service module 30 sends the Wi-Fi connection instruction to the corresponding first processing module 40 or second processing module 50;
step S30, when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first processing module 40 or the second processing module 50 establishes a Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol;
step S40, when the Wi-Fi connection is successful and both the first processing module 40 and the second processing module 50 are in the normal state of data communication, the Wi-Fi service module 30 starts the routing configuration of the dual Wi-Fi internet data, and the first processing module 40 and the second processing module 50 perform data communication simultaneously.
The mobile terminal provided by the invention mainly comprises terminal equipment with Wi-Fi function, such as a mobile phone, a PAD (PAD computer) and the like. In this embodiment, the mobile terminal is mainly applied to dual Wi-Fi communication, and certainly, in other embodiments, the mobile terminal is not limited to the dual Wi-Fi communication mode provided by the present invention, and may also be a multi Wi-Fi communication mode of three Wi-Fi and more than three Wi-Fi.
The first Wi-Fi application module 10 and the second Wi-Fi application module 20 of the mobile terminal provide corresponding Wi-Fi application operation interfaces, so that a user can perform corresponding control and operation through the Wi-Fi application operation interfaces. For example, the first Wi-Fi application module 10 and the second Wi-Fi application module 20 may control the connection and disconnection of the first processing module 40 and the second processing module 50, respectively, through the Wi-Fi service module 30. The first processing module 40 and the second processing module 50 respectively process the instruction issued by the first Wi-Fi application module 10 and the second Wi-Fi application module 20, the connection state information of the Wi-Fi hotspot, and the like.
When a user wants to connect with a Wi-Fi hotspot through a mobile terminal to perform operations such as surfing the internet, the user may select one of the Wi-Fi hotspots through a Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10 or a Wi-Fi application operation interface corresponding to the second Wi-Fi application module 20 to perform Wi-Fi connection operation, and when the first Wi-Fi application module 10 or the second Wi-Fi application module 20 receives the Wi-Fi connection operation, the Wi-Fi connection instruction is triggered and sent to the Wi-Fi service module 30. For example, when the user performs a Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10, and when the first Wi-Fi application module 10 receives the Wi-Fi connection operation, the Wi-Fi connection instruction is triggered and sent to the Wi-Fi service module 30.
When the Wi-Fi service module 30 receives the Wi-Fi connection instruction, the Wi-Fi service module 30 determines whether the processing module corresponding to the Wi-Fi connection instruction is the first processing module 40 or the second processing module 50, that is, determines whether the user performs the Wi-Fi connection operation based on the first Wi-Fi application module 10 or performs the Wi-Fi connection operation based on the second Wi-Fi application module 20. Specifically, when the user executes a Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the first Wi-Fi application module 10 and the first Wi-Fi application module 10 sends a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the first processing module 40; when the user performs the Wi-Fi connection operation based on the Wi-Fi application operation interface corresponding to the second Wi-Fi application module 20 and the second Wi-Fi application module 20 sends a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the second processing module 50. When the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the first processing module 40, the Wi-Fi service module 30 sends the Wi-Fi connection instruction to the first processing module 40; when the Wi-Fi service module 30 determines that the Wi-Fi connection instruction corresponds to the second processing module 50, the Wi-Fi service module 30 sends the Wi-Fi connection instruction to the second processing module 50.
In the present embodiment, as shown in fig. 4, the first processing module 40 includes a first Wi-Fi processing unit 41 and a first Wi-Fi chip 42. As shown in fig. 5, the second processing module 50 includes a second Wi-Fi processing unit 51 and a second Wi-Fi chip 52. Specifically, the step S30 includes:
step A, when receiving a Wi-Fi connection instruction sent by a Wi-Fi service module 30, a first Wi-Fi processing unit 41 or a second Wi-Fi processing unit 51 sends the Wi-Fi connection instruction and a corresponding protocol to a corresponding first Wi-Fi chip 42 or a corresponding second Wi-Fi chip 52;
and step B, when the first Wi-Fi chip 42 or the second Wi-Fi chip 52 receives the Wi-Fi connection instruction and the corresponding protocol, establishing the Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol.
Specifically, when receiving a Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first Wi-Fi processing unit 41 sends the Wi-Fi connection instruction and a corresponding protocol to the first Wi-Fi chip 42. The first Wi-Fi chip 42 establishes a Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol. When receiving the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the second Wi-Fi processing unit 51 sends the Wi-Fi connection instruction and the corresponding protocol to the second Wi-Fi chip 52. And the second Wi-Fi chip 52 establishes the Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
As shown in fig. 6, specifically, the application layer of the mobile terminal includes a first Wi-Fi application module 10 and a second Wi-Fi application module 20, the framework layer of the mobile terminal includes a Wi-Fi service module 30, a first framework subunit 411 and a second framework subunit 511, the protocol layer of the mobile terminal includes a first protocol subunit 412 and a second protocol subunit 512, and the driver layer of the mobile terminal includes a first driver subunit 413 and a second driver subunit 513. The Wi-Fi service module 30 is respectively connected with the first frame subunit 411 and the second frame subunit 511, the first frame subunit 411 is connected with the first protocol subunit 412, the first protocol subunit 412 is connected with the first driving subunit 413, the first driving subunit 413 is connected with the first Wi-Fi chip 42, the second frame subunit 511 is connected with the second protocol subunit 512, the second protocol subunit 512 is connected with the second driving subunit 513, and the second driving subunit 513 is connected with the second Wi-Fi chip 52.
When the first frame sub-unit 411 receives a Wi-Fi connection instruction sent by the Wi-Fi service module 30, the first frame sub-unit 411 sends the Wi-Fi connection instruction to the first protocol sub-unit 412. When receiving the Wi-Fi connection instruction, the first protocol subunit 412 writes the Wi-Fi hotspot information into the corresponding configuration file, selects a specified protocol according to the protocol corresponding to the Wi-Fi hotspot, and sends the protocol and the Wi-Fi connection instruction to the first Wi-Fi chip 42. And the first Wi-Fi chip 42 executes air interface interaction operation to establish Wi-Fi connection. The first Wi-Fi chip or the second Wi-Fi chip is used for establishing Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
When the second frame subunit 511 receives the Wi-Fi connection instruction sent by the Wi-Fi service module 30, the second frame subunit 511 sends the Wi-Fi connection instruction to the second protocol subunit 512. When receiving the Wi-Fi connection instruction, the second protocol subunit 512 writes the Wi-Fi hotspot information into the corresponding configuration file, selects a specified protocol according to the protocol corresponding to the Wi-Fi hotspot, and sends the protocol and the Wi-Fi connection instruction to the second Wi-Fi chip 52. And the second Wi-Fi chip 52 executes air interface interaction operation to establish Wi-Fi connection.
In this embodiment, a routing configuration of single Wi-Fi internet access data and a routing configuration of dual Wi-Fi internet access data are preset. When the Wi-Fi connection is successful and the first processing module 40 and the second processing module 50 are both in a normal data communication state, the Wi-Fi service module 30 starts the routing configuration of the dual Wi-Fi internet data, and the first processing module 40 and the second processing module 50 perform data communication at the same time. Therefore, the user can access the same network through the first processing module 40 and the second processing module 50 at the same time, or access different networks through the first processing module 40 and the second processing module 50, respectively, such as an extranet and an office network, a web and a printer, respectively. Further, when the first processing module 40 and the second processing module 50 perform data communication simultaneously, for example, when the first processing module 40 and the second processing module 50 access the same network simultaneously, the Wi-Fi service module 30 may further perform operations of controlling bandwidth allocation of the first processing module 40 and the second processing module 50. For example, the first processing module 40 and the second processing module 50 are allocated with respective bandwidths according to respective rules such as equal division or preset proportion.
Moreover, since the Wi-Fi service module 30 can interact with both the first processing module 40 and the second processing module 50, redundancy caused by independently operating the two Wi-Fi modules is avoided, and a data communication process is simplified, thereby improving data communication efficiency.
According to the scheme provided by this embodiment, when the first Wi-Fi application module 10 or the second Wi-Fi application module 20 receives a Wi-Fi connection operation input by a user, send a Wi-Fi connection instruction to the Wi-Fi service module 30, the Wi-Fi service module 30 sends the received Wi-Fi connection instruction to the corresponding first processing module 40 or the corresponding second processing module 50, when the first processing module 40 or the second processing module 50 receives the Wi-Fi connection instruction sent by the Wi-Fi service module 30, establish a Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol, and when the Wi-Fi connection is successful and the first processing module 40 and the second processing module 50 are both in a normal data communication state, the Wi-Fi service module 30 starts a routing configuration of dual Wi-Fi internet access data, the first processing module 40 and the second processing module 50 perform data communication simultaneously, so that a user can access the same network simultaneously through the first processing module 40 and the second processing module 50, or access different networks respectively through the first processing module 40 and the second processing module 50, thereby improving the access efficiency of the network. Meanwhile, the operation that the user manually switches Wi-Fi hotspot connections is avoided, and the user experience is improved.
Further, as shown in fig. 7, a second embodiment of the Wi-Fi control method according to the present invention is proposed based on the first embodiment, and in this embodiment, a step between the step S30 and the step S40 further includes:
step S50, when the Wi-Fi connection is successful, the Wi-Fi service module 30 sends an IP address acquisition instruction to the first processing module 40 and the second processing module 50;
step S60, the first processing module 40 feeds back the first IP address to the Wi-Fi service module 30 when receiving the IP address obtaining instruction, and the second processing module 50 feeds back the second IP address to the Wi-Fi service module 30 when receiving the IP address obtaining instruction;
in step S70, when the Wi-Fi service module 30 receives the first IP address fed back by the first processing module 40 and the second IP address fed back by the second processing module 50, it determines that both the first processing module 40 and the second processing module 50 are in a normal data communication state.
In this embodiment, when the first processing module 40 or the second processing module 50 successfully establishes the Wi-Fi connection, the first processing module 40 or the second processing module 50 sends information that the Wi-Fi connection is successful to the Wi-Fi service module 30. When the Wi-Fi service module 30 receives the information that the Wi-Fi connection is successful, the Wi-Fi service module 30 simultaneously sends an IP address acquisition instruction to the first processing module 40 and the second processing module 50. When the first processing module 40 receives an IP address obtaining instruction, the first processing module 40 obtains a corresponding first IP address, and when the first IP address is obtained, the first IP address is sent to the Wi-Fi service module 30, and when the Wi-Fi service module 30 receives the first IP address sent by the first processing module 40, if the first IP address is not empty, it is determined that the first processing module 40 is in a normal communication state; when receiving the empty address sent by the first processing module 40, the Wi-Fi service module 30 determines that the first processing module 40 is in an abnormal communication state.
When the second processing module 50 receives the IP address obtaining instruction, the second processing module 50 obtains a corresponding second IP address, and when the second IP address is obtained, the second IP address is sent to the Wi-Fi service module 30, and when the Wi-Fi service module 30 receives the second IP address sent by the second processing module 50, if the second IP address is not empty, it is determined that the second processing module 50 is in a normal communication state; when receiving the empty address sent by the second processing module 50, the Wi-Fi service module 30 determines that the second processing module 50 is in an abnormal communication state.
When the Wi-Fi service module 30 receives that the first IP address sent by the first processing module 40 and the second IP address sent by the second processing module 50 are not empty, it is determined that both the first processing module 40 and the second processing module 50 are in a normal data communication state.
Specifically, for example, when the first processing module 40 successfully establishes the Wi-Fi connection, when the Wi-Fi service module 30 receives information that the Wi-Fi connection is successful, the Wi-Fi service module 30 simultaneously sends an IP address obtaining instruction to the first frame subunit 411 and the second frame subunit 511. The first frame subunit 411 starts a DHCP service to acquire a first IP address, and sends an IP address acquisition instruction to the first driving unit 413 through an operating system interface, the first driving unit 413 drives and controls the first Wi-Fi chip 42 to complete air interface interaction with a Wi-Fi hotspot successfully connected, and the first Wi-Fi chip 42 acquires the first IP address allocated to the Wi-Fi hotspot and uploads the first IP address to the first frame subunit 411. The first frame subunit 411, upon receiving the first IP address, stores the first IP address in the cache of the first frame subunit 411. Meanwhile, in this enumerated example, since the Wi-Fi connection state of the second processing module 50 is not changed, the second framework subunit 511, upon receiving the IP address acquisition instruction sent by the Wi-Fi service module 30, sends the second IP address stored in the cache of the second framework subunit 511 to the Wi-Fi service module 30.
Further, in this embodiment, the Wi-Fi control method further includes the steps of:
and step C, when the Wi-Fi connection is successful and the first processing module 40 or the second processing module 50 is in a normal data communication state, starting the routing configuration of single Wi-Fi internet surfing data by the Wi-Fi service module 30, and performing data communication by the first processing module 40 or the second processing module 50.
When the Wi-Fi connection is successful and the Wi-Fi service module 30 detects that the first processing module 40 or the second processing module 50 is in a normal data communication state, that is, when one of the first processing module 40 or the second processing module 50 is in an abnormal data communication state, the Wi-Fi service module 30 starts routing configuration of single Wi-Fi internet data, and the first processing module 40 or the second processing module 50 performs data communication.
Further, in this embodiment, the Wi-Fi control method further includes the steps of:
step D, when the Wi-Fi service module 30 receives the connection state information sent by the first processing module 40 or the second processing module 50, sending the connection state information to the corresponding first Wi-Fi application module 10 or the second Wi-Fi application module 20;
and step E, when the first Wi-Fi application module 10 or the second Wi-Fi application module 20 receives the connection state information sent by the Wi-Fi service module 30, displaying the connection state information on an application interface corresponding to the first Wi-Fi application module 10 or the second Wi-Fi application module 20.
When the first processing module 40 or the second processing module 50 establishes the Wi-Fi connection, the first processing module 40 or the second processing module 50 sends the connection status information to the Wi-Fi service module 30 in real time. When the Wi-Fi service module 30 receives the connection state information, it sends the connection state information to the corresponding first Wi-Fi application module 10 or second Wi-Fi application module 20. Specifically, when the Wi-Fi service module 30 receives the connection state information sent by the first processing module 40, the connection state information is sent to the first Wi-Fi application module 10; when the Wi-Fi service module 30 receives the connection state information transmitted by the second processing module 50, it transmits the connection state information to the second Wi-Fi application module 20.
When the first Wi-Fi application module 10 receives the connection state information sent by the Wi-Fi service module 30, the connection state information is displayed on the application interface corresponding to the first Wi-Fi application module 10. The user may learn the connection status information by viewing the application interface corresponding to the first Wi-Fi application module 10. When the second Wi-Fi application module 20 receives the connection state information sent by the Wi-Fi service module 30, the connection state information is displayed on the application interface corresponding to the second Wi-Fi application module 20. The user may learn the connection status information by viewing the application interface corresponding to the second Wi-Fi application module 20.
When the Wi-Fi connection fails, the Wi-Fi service module 30 sends a prompt message of the connection failure to the corresponding first Wi-Fi application module 10 or second Wi-Fi application module 20. The user may know that the Wi-Fi connection has failed by viewing the application interface corresponding to the first Wi-Fi application module 10 or the application interface corresponding to the second Wi-Fi application module 20.
According to the scheme provided by the embodiment, when the Wi-Fi connection is successful and the first processing module 40 or the second processing module 50 is detected to be in a normal data communication state, the Wi-Fi service module 30 starts routing configuration of single Wi-Fi internet data, the first processing module 40 or the second processing module 50 performs data communication, and therefore a user can access a network through the available Wi-Fi module to perform internet access and other operations, the user does not need to manually perform network switching, and user experience is further improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The invention provides a method and a device for quickly adjusting screen brightness, which can avoid misoperation and enable a mobile terminal to judge whether the current operation of a user is brightness adjustment, but not other volume adjustments and the like, so that the terminal can acquire screen brightness adjustment information more accurately, and the operation of the mobile terminal by the user is more in line with the mind.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the invention. The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments are shown and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.

Claims (8)

1. A mobile terminal is characterized by comprising a first Wi-Fi application module, a second Wi-Fi application module, a Wi-Fi service module connected with the first Wi-Fi application module and the second Wi-Fi application module, and a first processing module and a second processing module connected with the Wi-Fi service module;
the first Wi-Fi application module or the second Wi-Fi application module is used for sending a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user;
the Wi-Fi service module is used for sending the Wi-Fi connection instruction to a corresponding first processing module or a corresponding second processing module when receiving the Wi-Fi connection instruction, wherein the first Wi-Fi application module corresponds to the first processing module, and the second Wi-Fi application module corresponds to the second processing module;
the first processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the second processing module is used for establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module;
the Wi-Fi service module is further used for starting routing configuration of double Wi-Fi internet surfing data when Wi-Fi connection is successful and the first processing module and the second processing module are both detected to be in a normal data communication state, and the first processing module and the second processing module carry out data communication at the same time to access the same network or access different networks respectively; the method comprises the steps that the route configuration of single Wi-Fi internet surfing data and the route configuration of double Wi-Fi internet surfing data are preset;
the Wi-Fi service module is further used for sending the connection state information to the corresponding first Wi-Fi application module or second Wi-Fi application module when receiving the connection state information sent by the first processing module or the second processing module;
the first Wi-Fi application module or the second Wi-Fi application module is further configured to display the connection state information on an application interface corresponding to the first Wi-Fi application module or the second Wi-Fi application module when the connection state information sent by the Wi-Fi service module is received.
2. The mobile terminal of claim 1, wherein the first processing module comprises a first Wi-Fi processing unit and a first Wi-Fi chip; the second processing module comprises a second Wi-Fi processing unit and a second Wi-Fi chip;
the first Wi-Fi processing unit is used for sending the Wi-Fi connection instruction and a corresponding protocol to the first Wi-Fi chip when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module; the second Wi-Fi processing unit is used for sending the Wi-Fi connection instruction and a corresponding protocol to the second Wi-Fi chip when receiving the Wi-Fi connection instruction sent by the Wi-Fi service module;
the first Wi-Fi chip or the second Wi-Fi chip is used for establishing Wi-Fi connection according to the received Wi-Fi connection instruction and the corresponding protocol.
3. The mobile terminal of claim 1, wherein the Wi-Fi service module is to: when the Wi-Fi connection is successful, sending an IP address acquisition instruction to the first processing module and the second processing module; and when receiving a first IP address fed back by the first processing module and a second IP address fed back by the second processing module, determining whether both the first processing module and the second processing module are in a normal data communication state.
4. The mobile terminal of any of claims 1 to 3, wherein the service module is further configured to:
and when the Wi-Fi connection is successful and the first processing module or the second processing module is detected to be in a normal data communication state, starting the routing configuration of single Wi-Fi internet surfing data, and performing data communication by the first processing module or the second processing module.
5. A Wi-Fi control method, comprising:
the first Wi-Fi application module or the second Wi-Fi application module sends a Wi-Fi connection instruction to the Wi-Fi service module when receiving a Wi-Fi connection operation input by a user;
when the Wi-Fi service module receives the Wi-Fi connection instruction, the Wi-Fi service module sends the Wi-Fi connection instruction to a corresponding first processing module or a corresponding second processing module, wherein the first Wi-Fi application module corresponds to the first processing module, and the second Wi-Fi application module corresponds to the second processing module;
when the first processing module or the second processing module receives a Wi-Fi connection instruction sent by the Wi-Fi service module, establishing Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol;
when the Wi-Fi connection is successful and the first processing module and the second processing module are both in a normal data communication state, the Wi-Fi service module starts the routing configuration of double Wi-Fi internet surfing data, and the first processing module and the second processing module simultaneously perform data communication to access the same network or respectively access different networks; the method comprises the steps that the route configuration of single Wi-Fi internet surfing data and the route configuration of double Wi-Fi internet surfing data are preset;
when the first processing module or the second processing module receives a Wi-Fi connection instruction sent by the Wi-Fi service module, after the step of establishing a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol, the method further includes:
when the Wi-Fi service module receives the connection state information sent by the first processing module or the second processing module, the Wi-Fi service module sends the connection state information to the corresponding first Wi-Fi application module or the corresponding second Wi-Fi application module;
when the first Wi-Fi application module or the second Wi-Fi application module receives the connection state information sent by the Wi-Fi service module, the connection state information is displayed on an application interface corresponding to the first Wi-Fi application module or the second Wi-Fi application module.
6. The Wi-Fi control method of claim 5, wherein the first processing module comprises a first Wi-Fi processing unit and a first Wi-Fi chip; the second processing module comprises a second Wi-Fi processing unit and a second Wi-Fi chip; when the first processing module or the second processing module receives a Wi-Fi connection instruction sent by the Wi-Fi service module, the step of establishing the Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol comprises the following steps:
when the first Wi-Fi processing unit or the second Wi-Fi processing unit receives a Wi-Fi connection instruction sent by the Wi-Fi service module, the Wi-Fi connection instruction and a corresponding protocol are sent to a corresponding first Wi-Fi chip or a corresponding second Wi-Fi chip;
and when the first Wi-Fi chip or the second Wi-Fi chip receives the Wi-Fi connection instruction and the corresponding protocol, establishing Wi-Fi connection according to the Wi-Fi connection instruction and the corresponding protocol.
7. The Wi-Fi control method of claim 5, wherein the first processing module or the second processing module, upon receiving a Wi-Fi connection instruction sent by the Wi-Fi service module, further comprises, after the step of establishing a Wi-Fi connection according to the Wi-Fi connection instruction and a corresponding protocol:
when the Wi-Fi connection is successful, the Wi-Fi service module sends an IP address acquisition instruction to the first processing module and the second processing module;
the first processing module feeds back a first IP address to the Wi-Fi service module when receiving the IP address acquisition instruction, and the second processing module feeds back a second IP address to the Wi-Fi service module when receiving the IP address acquisition instruction;
and when the Wi-Fi service module receives a first IP address fed back by the first processing module and a second IP address fed back by the second processing module, the Wi-Fi service module judges that the first processing module and the second processing module are both in a normal data communication state.
8. The Wi-Fi control method of any of claims 5-7, wherein the Wi-Fi control method further comprises the steps of:
when the Wi-Fi connection is successful and the first processing module or the second processing module is in a normal data communication state, the Wi-Fi service module starts the routing configuration of single Wi-Fi internet surfing data, and the first processing module or the second processing module carries out data communication.
CN201610067941.6A 2016-01-30 2016-01-30 Mobile terminal and WIFI control method Active CN105682007B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610067941.6A CN105682007B (en) 2016-01-30 2016-01-30 Mobile terminal and WIFI control method
PCT/CN2016/092086 WO2017128663A1 (en) 2016-01-30 2016-07-28 Mobile terminal, wifi control method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610067941.6A CN105682007B (en) 2016-01-30 2016-01-30 Mobile terminal and WIFI control method

Publications (2)

Publication Number Publication Date
CN105682007A CN105682007A (en) 2016-06-15
CN105682007B true CN105682007B (en) 2020-03-17

Family

ID=56304430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610067941.6A Active CN105682007B (en) 2016-01-30 2016-01-30 Mobile terminal and WIFI control method

Country Status (2)

Country Link
CN (1) CN105682007B (en)
WO (1) WO2017128663A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682007B (en) * 2016-01-30 2020-03-17 努比亚技术有限公司 Mobile terminal and WIFI control method
CN110493779B (en) * 2019-08-23 2022-01-25 Oppo广东移动通信有限公司 Wireless network connection method and related device
CN111901897A (en) * 2020-07-28 2020-11-06 Tcl通讯(宁波)有限公司 Data downloading method and device, storage medium and terminal
CN112040564B (en) * 2020-08-25 2023-02-28 北京大米科技有限公司 Information transmission method, readable storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096328A (en) * 2011-11-02 2013-05-08 西门子公司 Device, system and method used for multilink wireless data transmission
CN103533614A (en) * 2012-07-02 2014-01-22 三星电子株式会社 Method for WI-FI association and electronic device thereof
CN104186007A (en) * 2012-03-07 2014-12-03 高通股份有限公司 Multi-radio interference mitigation via frequency selectivity
CN104579610A (en) * 2013-10-14 2015-04-29 网件公司 Systems and methods for simultaneously using multiple wlan modules operating in different wireless bands
CN105656500A (en) * 2015-09-30 2016-06-08 努比亚技术有限公司 Mobile terminal and communication method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793772B2 (en) * 2006-04-26 2014-07-29 At&T Intellectual Property I, L.P. Wireless local area network access controlled by cellular communications
KR20130004964A (en) * 2011-07-05 2013-01-15 주식회사 엘지유플러스 Dual wifi apparatus and wireless internet system using the same
CN103491653A (en) * 2013-05-13 2014-01-01 上海盛本通讯科技有限公司 WiFi and 3G coexisting method based on Android intelligent terminal
CN104640166B (en) * 2014-10-29 2018-11-06 小米科技有限责任公司 Communication means and device
CN105744597B (en) * 2014-12-12 2019-06-21 华为终端有限公司 A kind of terminal and its wireless connection method
CN105682007B (en) * 2016-01-30 2020-03-17 努比亚技术有限公司 Mobile terminal and WIFI control method
CN105682191B (en) * 2016-03-10 2020-07-31 江苏立派新媒体科技有限公司 Mobile terminal and Wi-Fi control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096328A (en) * 2011-11-02 2013-05-08 西门子公司 Device, system and method used for multilink wireless data transmission
CN104186007A (en) * 2012-03-07 2014-12-03 高通股份有限公司 Multi-radio interference mitigation via frequency selectivity
CN103533614A (en) * 2012-07-02 2014-01-22 三星电子株式会社 Method for WI-FI association and electronic device thereof
CN104579610A (en) * 2013-10-14 2015-04-29 网件公司 Systems and methods for simultaneously using multiple wlan modules operating in different wireless bands
CN105656500A (en) * 2015-09-30 2016-06-08 努比亚技术有限公司 Mobile terminal and communication method

Also Published As

Publication number Publication date
WO2017128663A1 (en) 2017-08-03
CN105682007A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105681567B (en) Mobile terminal and communication method based on dual channels
CN105188098B (en) Network switching device and network switching method of mobile terminal
CN106413128B (en) Projection method and mobile terminal
US10206075B2 (en) Method, apparatus, and system for processing incoming calls
CN105682007B (en) Mobile terminal and WIFI control method
CN105554869B (en) Mobile terminal communication method, equipment and communication system
CN109101447B (en) Method and terminal for parallel execution of OTG function and charging function
CN107071263B (en) Image processing method and terminal
CN105515619B (en) Bluetooth communication method and system
WO2017185865A1 (en) Antenna, mobile terminal and control method therefor, and storage medium
CN107135546B (en) Method and device for selecting wireless network operation channel
CN106412878B (en) Activation device and method for subscriber identity module card
CN106686672B (en) Network connection method and terminal
CN106455009B (en) Network searching device and method
CN105722246B (en) Network speed superposition device and method
CN106028286B (en) Wireless local area network access device and method
CN104639428B (en) Self-adaptive method for session scene in instant messaging and mobile terminal
CN106791567B (en) Switching method and terminal
CN105959301B (en) Multimedia call optimization method and optimization system thereof
CN105764155B (en) Mobile terminal
CN106897044B (en) Screen color temperature consistency fault-tolerant method and terminal
CN108289241B (en) Wireless projection device, system and method
CN106534438B (en) Mobile terminal control device and method
CN105094733B (en) Split screen display method and device
CN106658630B (en) Communication terminal, base station, system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant