WO2017148354A1 - Mobile terminal, computer storage medium and network sharing method - Google Patents

Mobile terminal, computer storage medium and network sharing method Download PDF

Info

Publication number
WO2017148354A1
WO2017148354A1 PCT/CN2017/075061 CN2017075061W WO2017148354A1 WO 2017148354 A1 WO2017148354 A1 WO 2017148354A1 CN 2017075061 W CN2017075061 W CN 2017075061W WO 2017148354 A1 WO2017148354 A1 WO 2017148354A1
Authority
WO
WIPO (PCT)
Prior art keywords
processing module
module
hotspot
mobile terminal
network
Prior art date
Application number
PCT/CN2017/075061
Other languages
French (fr)
Chinese (zh)
Inventor
易晓柯
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017148354A1 publication Critical patent/WO2017148354A1/en

Links

Images

Classifications

    • 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

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to a mobile terminal, a computer storage medium, and a network sharing method.
  • mobile terminals such as smart phones and PADs (tablets) are already indispensable in life.
  • An important function of these mobile terminals is to realize network sharing based on Wi-Fi (Wireless Fidelity) technology.
  • Wi-Fi Wireless Fidelity
  • the mobile terminal can turn on its own hotspot function to provide network access services for other mobile terminals that need to access the network.
  • the Wi-Fi signal receiving function will be turned off, the mobile terminal can no longer access the Internet through the external hotspot, and the current data service must be migrated to the mobile network, and the mobile terminal needs to open the hotspot function.
  • the user's carrier traffic can be used to achieve network sharing, resulting in higher network sharing costs.
  • Embodiments of the present invention provide a mobile terminal, a computer storage medium, and a network sharing method, which are intended to reduce the cost of network sharing.
  • an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control module, and multiple Wi-Fi application modules respectively connected to the control module, and connected to multiple Wi-Fi application modules.
  • a Wi-Fi service module and a plurality of processing modules connected to the Wi-Fi service module and corresponding to the plurality of the Wi-Fi application modules, wherein
  • the control module is configured to: when receiving a network sharing operation, determine a first processing module that does not establish a Wi-Fi connection with an external hotspot in each processing module; and send an open command of the hotspot function to the first processing module a first Wi-Fi application module for the first Wi-Fi application The module sends the open command to the Wi-Fi service module;
  • the Wi-Fi service module is configured to send the open command to the first processing module when receiving the open command;
  • the first processing module is configured to: when receiving the opening instruction sent by the Wi-Fi service module, start a hotspot function according to the opening instruction;
  • the Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • control module is further configured to: when each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module; Transmitting an instruction to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and share, by the fourth processing module, network resources of the third processing module that is in a Wi-Fi connection state.
  • control module is further configured to: when each of the processing modules establishes a Wi-Fi connection with an external hotspot, determine a third processing module that has the largest available bandwidth in each of the processing modules, and determine each a fourth processing module having the smallest available bandwidth in the processing module;
  • control module is further configured to: when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, obtain a default network sharing configuration; and when the obtaining the default network sharing configuration fails, Determining a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determining a fourth processing module with the smallest available bandwidth in each processing module.
  • control module is further configured to: when the default network sharing configuration is obtained, send the opening instruction to the fifth Wi-Fi application module specified by the default network sharing configuration, to start the fifth The hotspot function of the fifth processing module corresponding to the Wi-Fi application module;
  • the Wi-Fi service module is further configured to start a routing configuration of the network sharing when the hotspot function is successfully started, and the fifth processing module shares the network resource of the sixth processing module specified by the default network sharing configuration.
  • control module is further configured to switch the data service carried by the processing module of the hotspot function to be started to the processing module of the network resource to be shared.
  • the Wi-Fi service module is further configured to: after successfully starting the route configuration of the network share, output prompt information about successful network sharing, to display on the preset display interface.
  • control module is further configured to: when the data service of the processing module based on the hotspot function is not detected, send a shutdown command of the hotspot function to a processing module that activates the hotspot function to close the data service. Hotspot function.
  • the embodiment of the invention further provides a network sharing method, where the network sharing method comprises the following steps:
  • control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • the control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
  • the Wi-Fi service module sends the open command to the first processing module when receiving the open command
  • the first processing module when receiving the opening instruction, starts a hotspot function according to the opening instruction
  • the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the method further includes:
  • control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • the control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  • control module determines the third processing module and the fourth processing module, based on the available bandwidth of each processing module, including:
  • the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module.
  • the fourth processing module with the smallest available bandwidth.
  • control module before the step of determining, by the control module, the third processing module that has the largest available bandwidth in each processing module of the mobile terminal, and the determining the fourth processing module that has the smallest available bandwidth in each processing module, the control module further includes:
  • the control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
  • control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  • the method further includes:
  • control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module.
  • the hotspot function of the fifth processing module
  • the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  • the method before the sending, by the control module, the start command, the method further includes:
  • the control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  • the method further includes:
  • the Wi-Fi service module After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the method further includes:
  • the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
  • the embodiment of the invention further provides a mobile terminal, including:
  • a storage medium configured to store computer executable instructions
  • a processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions comprising:
  • control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • the control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
  • the Wi-Fi service module sends the open command to the first processing module when receiving the open command
  • the first processing module when receiving the opening instruction, starts a hotspot function according to the opening instruction
  • the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the computer executable instructions further comprising:
  • control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • the control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  • the computer executable instructions further comprising:
  • the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module.
  • the fourth processing module with the smallest available bandwidth.
  • the computer executable instructions further comprising:
  • the control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
  • control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  • the computer executable instructions further comprising:
  • the method further includes:
  • control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module.
  • the hotspot function of the fifth processing module
  • the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  • the computer executable instructions further comprising:
  • the control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  • the computer executable instructions further comprising:
  • the Wi-Fi service module After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the computer executable instructions further comprising:
  • control module When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function. To turn off its hotspot feature.
  • the embodiment of the invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
  • control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • the control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
  • the Wi-Fi service module sends the open command to the first processing module when receiving the open command
  • the first processing module when receiving the opening instruction, starts a hotspot function according to the opening instruction
  • the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • the control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module.
  • the fourth processing module with the smallest available bandwidth.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
  • control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module.
  • the hotspot function of the fifth processing module
  • the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the Wi-Fi service module After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
  • the mobile terminal, the computer storage medium and the network sharing method are provided by the embodiment of the present invention.
  • a processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot
  • the hotspot function of another processing module may be activated, and the mobile terminal is connected.
  • the Wi-Fi network is shared with other mobile terminals to provide network access services for other mobile terminals.
  • the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention
  • FIG. 2 is a schematic structural diagram of a frame of a mobile terminal according to the present invention.
  • FIG. 3 is a diagram showing an example of a network sharing interface of a mobile terminal according to the present invention.
  • FIG. 4 is a schematic structural diagram of a refinement frame of a mobile terminal according to the present invention.
  • FIG. 5 is another exemplary diagram of a network sharing interface of a mobile terminal according to the present invention.
  • FIG. 6 is a schematic flowchart of a first embodiment of a network sharing method according to the present invention.
  • FIG. 7 is a schematic flowchart diagram of a second embodiment of a network sharing method according to the present invention.
  • the mobile terminal can be implemented in various forms.
  • the mobile terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
  • PDA Personal Digital Assistant
  • PAD Tablett
  • PMP Portable Multimedia Player
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
  • the wireless communication unit can include at least one of the mobile communication module 111 and the wireless internet module 112.
  • the mobile communication module 111 transmits radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 112 supports wireless internet access for mobile terminals.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
  • the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
  • the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and A keyboard, a pot, a touchpad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel, a rocker, and the like can be included.
  • a touch screen can be formed.
  • the sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal.
  • the sensing unit 140 can sense whether the slide type phone is turned on or off.
  • the sensing unit 140 can detect whether the power supply unit 190 provides power or whether the interface unit 170 is coupled to an external device.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like.
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
  • the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display unit 151, an audio output module 152, and the like.
  • the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in the phone call mode, the display unit 151 can display a call or other communication (for example, Text messaging, multimedia file downloads, etc.) related user interface (UI) or graphical user interface (GUI). 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 displaying a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function 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.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • 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 a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • 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 can be used to detect touch input pressure as well as touch input position and touch input area.
  • the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
  • the audio signal is output as sound.
  • the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100.
  • the audio output module 152 can include a speaker, a buzzer, and the like.
  • the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, for example, may store a software program implementing the network access method of the present invention, or may temporarily store data that has been output or is to be output (for example, , phone book, message, still image, video, etc.). Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 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.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal 100 includes a control module 10, a plurality of Wi-Fi application modules respectively connected to the control module 10, and a plurality of Wi-Fi
  • the application module is connected to the Wi-Fi service module 20, and the plurality of processing modules connected to the Wi-Fi service module 20 and corresponding to the plurality of Wi-Fi application modules, and further includes a data module 30 connected to the control module 10,
  • the control module 10 can be the controller 180 in FIG. 1, and the Wi-Fi application module, the Wi-Fi service module 20, and the processing module can be included in the wireless internet module 112 in FIG.
  • the control module 10 is configured to: when receiving the network sharing operation, determine a first processing module that does not establish a Wi-Fi connection with an external hotspot in each processing module; and send an open command of the hotspot function to the first Wi corresponding to the first processing module a Fi application module, for the first Wi-Fi application module to send the received open command to the Wi-Fi service module 20;
  • the Wi-Fi service module 20 is configured to send the received open command when receiving the open command. To the first processing module;
  • the first processing module is configured to: when receiving the open command sent by the Wi-Fi service module 20, start the hotspot function according to the received open command and the corresponding driver;
  • the Wi-Fi service module 20 is further configured to start a route configuration of the network share when the hotspot function is successfully started, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application.
  • the interface performs corresponding control and operation.
  • the first Wi-Fi application module and the second Wi-Fi application module may respectively control the connection/disconnection of the first processing module and the second processing module through the Wi-Fi service module 20.
  • the first processing module and the second processing module respectively process instructions issued by the first Wi-Fi application module and the second Wi-Fi application module, connection status information of the Wi-Fi hotspot, and the like.
  • the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100.
  • a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal.
  • the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal 100.
  • the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot.
  • the processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
  • the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the first Wi-Fi application module corresponding to the first processing module.
  • the first Wi-Fi application module sends the received open command to the Wi-Fi service module 20 upon receiving the open command.
  • the Wi-Fi service module 20 When receiving the open command, the Wi-Fi service module 20 sends the received open command to the first processing module.
  • the hotspot function is activated according to the open command and the corresponding driver.
  • the first processing module includes a first frame subunit, a first protocol subunit, a first driving subunit, and a first Wi-Fi chip, wherein the first frame sub
  • the unit Upon receiving the open command sent by the Wi-Fi service module 20, the unit sends the received open command to the first protocol subunit.
  • the first protocol subunit Upon receiving the open command, the first protocol subunit sends the indication information to the first driver subunit to instruct the first driver subunit to load the preset AP driver; the first protocol subunit further selects a protocol corresponding to the AP driver.
  • the selected protocol and the received open command are sent to the first Wi-Fi chip via the first driving subunit.
  • the first Wi-Fi chip works in the AP mode, that is, the hotspot function is enabled, correspondingly, the first
  • the Wi-Fi chip performs an air interface interaction with other mobile terminals according to the protocol to establish a Wi-Fi connection.
  • the first Wi-Fi chip returns an indication of successful startup to the control module 10.
  • the control module 10 After receiving the indication information indicating that the first Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30.
  • the data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration.
  • the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state to implement network sharing.
  • the Wi-Fi service module 20 outputs prompt information for successful network sharing to be displayed on the preset display interface.
  • the Wi-Fi service module 20 outputs the prompt information to the first Wi-Fi application module, and the first Wi-Fi application module outputs the prompt information to the control module 10, and the prompt information is output by the control module 10.
  • the display unit 151 of the mobile terminal 100 When receiving the prompt information, the display unit 151 outputs based on the foregoing network sharing interface. For example, the hotspot activation button is switched from the off state shown in FIG. 3 to the on state shown in FIG. 5 to prompt the user that the current network sharing function has been Turn on to provide network access services for other mobile terminals.
  • the control module 10 when receiving the prompt information of successful network sharing, the control module 10 starts a timer to perform timing, and detects data services of other mobile terminals carried by the processing module that activates the hotspot function, if When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module 10 sends a shutdown command of the hotspot function to the processing module that activates the hotspot function to turn off the hotspot function.
  • the Wi-Fi technology has the advantages of high data transmission rate and no need to consume operator traffic of the mobile terminal, it has high energy consumption at the same time. High heat and other issues. For example, after the mobile phone is turned on and the portable Wi-Fi hotspot provides the network access service for the notebook computer, even if the notebook computer does not have a large data throughput, the battery power of the mobile phone will be exhausted in a short time, affecting the mobile phone. Normal use of the user.
  • control module 10 processes the first processing module, so as to avoid unnecessary power consumption of the mobile terminal, after the hotspot function of the first processing module is turned on, and the network access operation of the other mobile terminal is not received for a long time.
  • the data services of other mobile terminals carried are detected.
  • the control module 10 sends a shutdown command of the hotspot function to the first Wi-Fi application module; the first Wi-Fi application module is receiving When the shutdown command is received, the received shutdown command is sent to the Wi-Fi service module 20; when receiving the shutdown command, the Wi-Fi service module 20 sends the received shutdown command to the first frame sub-unit; the first frame When receiving the shutdown instruction sent by the Wi-Fi service module 20, the subunit sends the received shutdown instruction to the first protocol subunit; when receiving the shutdown instruction sent by the first frame subunit, the first protocol subunit will The received shutdown command is sent to the first driver subunit; when receiving the shutdown command, the first driver subunit unloads the currently loaded AP driver and disconnects the power supply of the first Wi-Fi chip.
  • control module 10 maintains the hotspot function of the first processing module and continues to provide network access services for other mobile terminals.
  • the value of the preset time period is not limited, and may be set according to the battery capacity of the mobile terminal. For example, if the battery capacity is large, a longer preset time period may be set. If the battery capacity is small, a shorter preset time period can be set, as in the embodiment, the default setting is 3 minutes. It can be understood by those skilled in the art that the preset time period can also be specified by the user.
  • the control module 10 is carried by the processing module that activates the hotspot function. While detecting the data service of the other mobile terminal, the Wi-Fi connection status of the current processing module sharing the network resource is detected, and the current processing module of the shared network resource and the Wi-Fi of the external hot spot are detected.
  • the indication information indicating that the Wi-Fi service module 20 updates the routing configuration is sent to the Wi-Fi service module 20; the Wi-Fi service module 20 is further configured to update the indication information sent by the control module 10 when receiving the indication information.
  • the Wi-Fi service module 20 can interact with each processing module separately, the redundancy caused by independently operating the multiple Wi-Fi service modules 20 is avoided, the flow of the data communication is simplified, and the data communication efficiency can be improved.
  • the mobile terminal provided in this embodiment includes multiple processing modules.
  • the hotspot function of another processing module may be activated to share the Wi-Fi network connected to the mobile terminal.
  • the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
  • the mobile terminal includes a control module 10, a plurality of Wi-Fi application modules respectively connected to the control module 10, and multiple Wi-Fi applications.
  • the module-connected Wi-Fi service module 20, and the plurality of processing modules connected to the Wi-Fi service module 20 and corresponding to the plurality of Wi-Fi application modules further include a data module 30 connected to the control module 10, wherein
  • the control module 10 can be the controller 180 in FIG. 1, the Wi-Fi application module, the Wi-Fi service module 20, and the processing module can be included in the wireless internet module 112 in FIG.
  • the control module 10 is configured to receive During the network sharing operation, the first processing module that does not establish a Wi-Fi connection with the external hotspot in each processing module is determined; and when each processing module establishes a Wi-Fi connection with the external hotspot, the maximum available bandwidth in each processing module is determined. a third processing module, and determining a fourth processing module that supports the largest bandwidth among the processing modules except the third processing module; and transmitting an opening instruction of the hotspot function to the corresponding fourth processing module Four Wi-Fi application modules to activate the hotspot function of the fourth processing module;
  • the Wi-Fi service module 20 is configured to start a route configuration of the network share when the hotspot function is successfully started, and share the network resource of the third processing module in the Wi-Fi connection state by the fourth processing module.
  • the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application.
  • the interface performs corresponding control and operation.
  • the third Wi-Fi application module and the fourth Wi-Fi application module can be separately controlled by the Wi-Fi service module 20
  • the connection/disconnection of the third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like.
  • the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100.
  • a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal.
  • the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
  • the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot.
  • the processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
  • the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
  • control module 10 After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application module corresponding to the fourth processing module.
  • the fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
  • the Wi-Fi service module 20 When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
  • the hotspot function is activated according to the open command and the corresponding driver.
  • the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi
  • the service module 20 sends an open command, it will receive the open command.
  • the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver.
  • the fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver.
  • the subunit is sent to the fourth Wi-Fi chip.
  • the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode.
  • the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection.
  • the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
  • the control module 10 After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30.
  • the data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration.
  • the Wi-Fi service module starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
  • the control module 10 is further configured to establish Wi-Fi with external hotspots in each processing module, in order to provide an access service for the external network.
  • the hotspot function is sent to the fifth Wi-Fi application module specified by the default network sharing configuration to activate the hotspot function of the fifth processing module corresponding to the fifth Wi-Fi application module;
  • the Wi-Fi service module 20 is further configured to start a routing configuration of the network sharing when the hotspot function is successfully started, and the fifth processing module shares the network resource of the sixth processing module specified by the default network sharing configuration.
  • control module 10 starts the fifth processing module to share the first specified by the default network sharing configuration.
  • the default network sharing configuration is set by the control module 10 based on data input by the user in advance.
  • the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
  • control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
  • the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module, The part of the data service is interrupted.
  • the control module 10 is further configured to switch the data service carried by the processing module of the hotspot function to be to be shared.
  • the processing module of the resource For example, the control module 10 switches the data service carried by the fourth processing module to the third processing module before starting the hotspot function of the fourth processing module.
  • control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated.
  • the data service carried by the processing module is switched to the processing module of the network resource to be shared.
  • the embodiment of the present invention further provides a network sharing method.
  • the network sharing method includes:
  • Step S10 when receiving the network sharing operation, the control module 10 determines that the first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • step S20 the control module 10 sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, for the first Wi-Fi application module to send the received open command to the Wi-Fi service module 20;
  • Step S30 the Wi-Fi service module 20 sends the received open command to the first processing module when receiving the open command
  • Step S40 When receiving the open command sent by the Wi-Fi service module 20, the first processing module starts the hotspot function according to the received open command;
  • step S50 when the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state.
  • the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application.
  • the interface performs corresponding control and operation.
  • the first Wi-Fi application module and the second Wi-Fi application module may respectively control the connection/disconnection of the first processing module and the second processing module through the Wi-Fi service module 20.
  • the first processing module and the second processing module respectively process instructions issued by the first Wi-Fi application module and the second Wi-Fi application module, connection status information of the Wi-Fi hotspot, and the like.
  • the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100.
  • a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal.
  • the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal 100.
  • the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot.
  • the processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
  • the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the first Wi-Fi application module corresponding to the first processing module.
  • the first Wi-Fi application module sends the received open command to the Wi-Fi service module 20 upon receiving the open command.
  • the Wi-Fi service module 20 When receiving the open command, the Wi-Fi service module 20 sends the received open command to the first processing module.
  • the hotspot function is activated according to the open command and the corresponding driver.
  • the first processing module includes a first frame subunit, a first protocol subunit, a first driving subunit, and a first Wi-Fi chip, wherein the first frame subunit receives the Wi-Fi
  • the service module 20 sends an open command, it will receive the open command.
  • the first protocol subunit Upon receiving the open command, the first protocol subunit sends the indication information to the first driver subunit to instruct the first driver subunit to load the preset AP driver; the first protocol subunit further selects a protocol corresponding to the AP driver.
  • the selected protocol and the received open command are sent to the first Wi-Fi chip via the first driving subunit.
  • the first Wi-Fi chip works in the AP mode, that is, the hotspot function is enabled, correspondingly, the first
  • the Wi-Fi chip performs an air interface interaction with other mobile terminals according to the protocol to establish a Wi-Fi connection.
  • the first Wi-Fi chip returns an indication of successful startup to the control module 10.
  • the control module 10 After receiving the indication information indicating that the first Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30.
  • the data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration.
  • the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state to implement network sharing.
  • step S50 the method further includes:
  • the Wi-Fi service module 20 After successfully starting the route configuration of the network share, the Wi-Fi service module 20 outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the Wi-Fi service module 20 outputs the prompt information to the first Wi-Fi application module, and the first Wi-Fi application module outputs the prompt information to the control module 10, and the prompt information is output by the control module 10.
  • the display unit 151 of the mobile terminal 100 When receiving the prompt information, the display unit 151 outputs based on the foregoing network sharing interface. For example, the hotspot activation button is switched from the off state shown in FIG. 3 to the on state shown in FIG. 5 to prompt the user that the current network sharing function has been Turn on to provide network access services for other mobile terminals.
  • step S50 the method further includes:
  • control module 10 sends a shutdown command of the hotspot function to the processing module that activates the hotspot function to turn off the hotspot function.
  • the control module 10 when receiving the prompt information that the network sharing succeeds, the control module 10 starts a timer to perform timing, and detects data services of other mobile terminals carried by the first processing module, if not detected within a preset time period. Detecting the data service based on the first processing module, then passing the first The Wi-Fi application module sends a close command of the hotspot function to the first processing module to turn off the hotspot function of the first processing module.
  • the Wi-Fi technology has the advantages of high data transmission rate and no need to consume operator traffic of the mobile terminal, it has problems of high energy consumption, high heat generation and the like.
  • the portable Wi-Fi hotspot provides the network access service for the notebook computer
  • the battery power of the mobile phone will be exhausted in a short time, affecting the mobile phone. Normal use of the user.
  • control module 10 processes the first processing module, so as to avoid unnecessary power consumption of the mobile terminal, after the hotspot function of the first processing module is turned on, and the network access operation of the other mobile terminal is not received for a long time.
  • the data services of other mobile terminals carried are detected.
  • the control module 10 sends a shutdown command of the hotspot function to the first Wi-Fi application module; the first Wi-Fi application module is receiving When the shutdown command is received, the received shutdown command is sent to the Wi-Fi service module 20; when receiving the shutdown command, the Wi-Fi service module 20 sends the received shutdown command to the first frame sub-unit; the first frame When receiving the shutdown instruction sent by the Wi-Fi service module 20, the subunit sends the received shutdown instruction to the first protocol subunit; when receiving the shutdown instruction sent by the first frame subunit, the first protocol subunit will The received shutdown command is sent to the first driver subunit; when receiving the shutdown command, the first driver subunit unloads the currently loaded AP driver and disconnects the power supply of the first Wi-Fi chip.
  • control module 10 maintains the hotspot function of the first processing module and continues to provide network access services for other mobile terminals.
  • the value of the preset time period is not limited, and may be set according to the battery capacity of the mobile terminal. For example, if the battery capacity is large, a longer preset time period may be set. If the battery capacity is small, a shorter preset time period can be set, as in the embodiment, the default setting is 3 minutes. It can be understood by those skilled in the art that the preset time period can also be specified by the user.
  • the control module 10 is carried by the processing module that activates the hotspot function. Data service detection of other mobile terminals At the same time, the Wi-Fi connection status of the processing module of the current shared network resource is detected, and the Wi-Fi indication is sent when detecting that the current shared network resource processing module is disconnected from the external hotspot Wi-Fi connection.
  • the service module 20 updates the routing configuration indication information to the Wi-Fi service module 20; when receiving the indication information sent by the control module 10, the Wi-Fi service module 20 updates the routing configuration of the currently started network share to share the current Network resources of other processing modules in the Wi-Fi connection state.
  • the Wi-Fi service module 20 can interact with each processing module separately, the redundancy caused by independently operating the multiple Wi-Fi service modules 20 is avoided, the flow of the data communication is simplified, and the data communication efficiency can be improved.
  • the network sharing method in this embodiment is applied to a mobile terminal that includes multiple processing modules.
  • the hotspot function of another processing module may be activated, and the mobile terminal is connected.
  • the Wi-Fi network is shared with other mobile terminals to provide network access services for other mobile terminals.
  • the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
  • the network sharing method includes:
  • Step S10 when receiving the network sharing operation, the control module 10 determines a first processing module that does not establish a Wi-Fi connection with the external hotspot in each processing module;
  • Step S60 when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • control module 10 determines a third processing module with the largest available bandwidth in each processing module, and then determines a fourth processing module that supports the smallest bandwidth among the processing modules except the third processing module.
  • Step S70 The control module 10 sends an open command to the fourth Wi-Fi application module corresponding to the fourth processing module to start the hotspot function of the fourth processing module.
  • step S80 when the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state.
  • the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application.
  • the operation interface is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to perform corresponding control and operation through the Wi-Fi application operation interface.
  • the third Wi-Fi application module and the fourth Wi-Fi application module may respectively control connection/disconnection of the third processing module and the fourth processing module through the Wi-Fi service module 20.
  • the third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like.
  • the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100.
  • a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal.
  • the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
  • the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot.
  • the processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
  • the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
  • control module 10 After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application module corresponding to the fourth processing module.
  • the fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
  • the Wi-Fi service module 20 When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
  • the fourth processing module When the fourth processing module receives the open command, according to the open command and the corresponding drive Start the hotspot function.
  • the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi
  • the service module 20 sends an open command
  • the received open command is sent to the fourth protocol subunit.
  • the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver.
  • the fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver.
  • the subunit is sent to the fourth Wi-Fi chip.
  • the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode.
  • the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection.
  • the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
  • the control module 10 After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30.
  • the data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration.
  • the Wi-Fi service module starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
  • the method further includes:
  • control module 10 acquires a default network sharing configuration
  • step S60 When the acquisition of the default network share configuration fails, the process proceeds to step S60;
  • control module 10 further includes:
  • control module 10 When obtaining the default network sharing configuration, the control module 10 sends an open command of the hotspot function to the fifth Wi-Fi application module specified by the default network sharing configuration to start the fifth Wi-Fi application module.
  • the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fifth processing module shares the network resources of the sixth processing module specified by the default network sharing configuration.
  • the process of the control module 10 for initiating the fifth processing module to share the network resource of the sixth processing module specified by the default network sharing configuration may be referred to the foregoing embodiment, and details are not described herein again.
  • the default network sharing configuration is set by the control module 10 based on data input by the user in advance. For example, the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
  • control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
  • the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module,
  • the data service of the bearer is interrupted.
  • the control module 10 before the control module 10 sends the hot-start function, the control module 10 further includes:
  • the control module 10 switches the data service carried by the processing module to be activated to the hotspot function to the processing module of the network resource to be shared.
  • control module 10 switches the data service carried by the fourth processing module to the third processing module before sending the open command of the hotspot function to the fourth application module corresponding to the fourth processing module.
  • control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated.
  • the data service carried by the processing module is switched to the processing module of the network resource to be shared.
  • the embodiment of the invention further provides a mobile terminal, including:
  • a storage medium configured to store computer executable instructions
  • a processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions comprising:
  • control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • the control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
  • the Wi-Fi service module sends the open command to the first processing module when receiving the open command
  • the first processing module when receiving the opening instruction, starts a hotspot function according to the opening instruction
  • the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the computer executable instructions further comprising:
  • control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • the control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  • the computer executable instructions further comprising:
  • the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module.
  • the fourth processing module with the smallest available bandwidth.
  • the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application.
  • the interface performs corresponding control and operation.
  • the third Wi-Fi application module and the fourth Wi-Fi application module may respectively control connection/disconnection of the third processing module and the fourth processing module through the Wi-Fi service module 20.
  • the third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like.
  • the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100.
  • a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal.
  • the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
  • the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot.
  • the processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
  • the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
  • control module 10 After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application corresponding to the fourth processing module. Module.
  • the computer executable instructions further comprising:
  • the control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
  • control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  • the fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
  • the Wi-Fi service module 20 When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
  • the hotspot function is activated according to the open command and the corresponding driver.
  • the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi
  • the service module 20 sends an open command
  • the received open command is sent to the fourth protocol subunit.
  • the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver.
  • the fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver.
  • the subunit is sent to the fourth Wi-Fi chip.
  • the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode.
  • the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection.
  • the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
  • the control module 10 After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30.
  • the data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration.
  • the Wi-Fi service module receives the network When the shared route configuration is configured, the route configuration of the network share is started, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
  • the method further includes:
  • control module 10 acquires a default network sharing configuration
  • step S60 When the acquisition of the default network share configuration fails, the process proceeds to step S60;
  • control module 10 further includes:
  • control module 10 sends an open command of the hotspot function to the fifth Wi-Fi application module specified by the default network share configuration to start the hotspot of the fifth processing module corresponding to the fifth Wi-Fi application module.
  • the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fifth processing module shares the network resources of the sixth processing module specified by the default network sharing configuration.
  • the process of the control module 10 for initiating the fifth processing module to share the network resource of the sixth processing module specified by the default network sharing configuration may be referred to the foregoing embodiment, and details are not described herein again.
  • the default network sharing configuration is set by the control module 10 based on data input by the user in advance. For example, the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
  • control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
  • the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module,
  • the data service of the bearer is interrupted.
  • the control module 10 before the control module 10 sends the hot-start function, the control module 10 further includes:
  • the control module 10 switches the data service carried by the processing module to be activated to the hotspot function to the processing module of the network resource to be shared.
  • control module 10 switches the data service carried by the fourth processing module to the third processing module before sending the open command of the hotspot function to the fourth application module corresponding to the fourth processing module.
  • control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated.
  • the data service carried by the processing module is switched to the processing module of the network resource to be shared.
  • the computer executable instructions further comprising:
  • the method further includes:
  • control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module.
  • the hotspot function of the fifth processing module
  • the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  • the computer executable instructions further comprising:
  • the control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  • the computer executable instructions further comprising:
  • the Wi-Fi service module After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the computer executable instructions further comprising:
  • the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off its hotspot function.
  • the embodiment of the invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
  • control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
  • the control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
  • the Wi-Fi service module sends the open command to the first processing module when receiving the open command
  • the first processing module when receiving the opening instruction, starts a hotspot function according to the opening instruction
  • the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
  • the control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
  • the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines a fourth processing module with the smallest available bandwidth in each processing module.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
  • control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module.
  • the hotspot function of the fifth processing module
  • the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the Wi-Fi service module After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  • the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off its hotspot function.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

Disclosed is a mobile terminal, comprising a control module, a plurality of Wi-Fi application modules respectively connected to the control module, a Wi-Fi service module connected to the plurality of Wi-Fi application modules, and a plurality of processing modules connected to the Wi-Fi service module and corresponding to the plurality of Wi-Fi application modules on a one-to-one basis, wherein the control module is used for determining a first processing module, not establishing a Wi-Fi connection with an external hotspot, in all the processing modules when receiving a network sharing operation, and a first Wi-Fi application module sending a start instruction of a hotspot function to a corresponding first processing module, so that the first Wi-Fi application module starts the hotspot function of the first processing module based on the Wi-Fi service module, the Wi-Fi service module starts a routing configuration of network sharing, and the first processing module shares a network resource of a second processing module in a Wi-Fi connection state. Also disclosed is a computer storage medium and a network sharing method. The present invention reduces the cost of network sharing.

Description

移动终端、计算机存储介质及网络共享方法Mobile terminal, computer storage medium and network sharing method 技术领域Technical field
本申请涉及移动终端技术领域,具体涉及一种移动终端、计算机存储介质及网络共享方法。The present application relates to the field of mobile terminal technologies, and in particular, to a mobile terminal, a computer storage medium, and a network sharing method.
背景技术Background technique
随着现代人生活水平的提高,智能手机、PAD(平板电脑)等移动终端已是生活中的必需品,这些移动终端一个重要功能是基于Wi-Fi(Wireless Fidelity,无线保真)技术实现网络共享,例如,移动终端可以开启自身的热点功能,来为其它需要接入网络的移动终端提供网络接入服务。但是,移动终端在启动热点功能时,Wi-Fi信号接收功能将被关闭,移动终端无法再通过外部热点上网,必须将当前的数据业务迁移到移动网络,而且,移动终端在开启热点功能后需要消耗用户的运营商流量才能实现网络共享,导致网络共享的成本较高。With the improvement of living standards of modern people, mobile terminals such as smart phones and PADs (tablets) are already indispensable in life. An important function of these mobile terminals is to realize network sharing based on Wi-Fi (Wireless Fidelity) technology. For example, the mobile terminal can turn on its own hotspot function to provide network access services for other mobile terminals that need to access the network. However, when the mobile terminal activates the hotspot function, the Wi-Fi signal receiving function will be turned off, the mobile terminal can no longer access the Internet through the external hotspot, and the current data service must be migrated to the mobile network, and the mobile terminal needs to open the hotspot function. The user's carrier traffic can be used to achieve network sharing, resulting in higher network sharing costs.
发明内容Summary of the invention
本发明实施例提供一种移动终端、计算机存储介质及网络共享方法,旨在降低网络共享的成本。Embodiments of the present invention provide a mobile terminal, a computer storage medium, and a network sharing method, which are intended to reduce the cost of network sharing.
为实现上述目的,本发明实施例提供一种移动终端,所述移动终端包括控制模块,与所述控制模块分别连接的多个Wi-Fi应用模块、与多个所述Wi-Fi应用模块连接的Wi-Fi服务模块、以及与所述Wi-Fi服务模块连接且与多个所述Wi-Fi应用模块一一对应的多个处理模块,其中,To achieve the above objective, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control module, and multiple Wi-Fi application modules respectively connected to the control module, and connected to multiple Wi-Fi application modules. a Wi-Fi service module, and a plurality of processing modules connected to the Wi-Fi service module and corresponding to the plurality of the Wi-Fi application modules, wherein
所述控制模块用于在接收到网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块;以及发送热点功能的开启指令至对应所述第一处理模块的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用 模块将所述开启指令发送至Wi-Fi服务模块;The control module is configured to: when receiving a network sharing operation, determine a first processing module that does not establish a Wi-Fi connection with an external hotspot in each processing module; and send an open command of the hotspot function to the first processing module a first Wi-Fi application module for the first Wi-Fi application The module sends the open command to the Wi-Fi service module;
所述Wi-Fi服务模块用于在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module is configured to send the open command to the first processing module when receiving the open command;
所述第一处理模块用于在接收到所述Wi-Fi服务模块发送的所述开启指令时,根据所述开启指令启动热点功能;The first processing module is configured to: when receiving the opening instruction sent by the Wi-Fi service module, start a hotspot function according to the opening instruction;
所述Wi-Fi服务模块还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。The Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,所述控制模块还用于在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;以及发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;Optionally, the control module is further configured to: when each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module; Transmitting an instruction to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
所述Wi-Fi服务模块,还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。The Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and share, by the fourth processing module, network resources of the third processing module that is in a Wi-Fi connection state.
可选的,所述控制模块,还用于在各个所述处理模块均与外部热点建立有Wi-Fi连接时,确定各个所述处理模块中可用带宽最大的第三处理模块,以及确定各个所述处理模块中可用带宽最小的第四处理模块;Optionally, the control module is further configured to: when each of the processing modules establishes a Wi-Fi connection with an external hotspot, determine a third processing module that has the largest available bandwidth in each of the processing modules, and determine each a fourth processing module having the smallest available bandwidth in the processing module;
可选的,所述控制模块还用于在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,获取默认网络共享配置;以及在获取所述默认网络共享配置失败时,确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块.Optionally, the control module is further configured to: when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, obtain a default network sharing configuration; and when the obtaining the default network sharing configuration fails, Determining a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determining a fourth processing module with the smallest available bandwidth in each processing module.
可选的,所述控制模块还用于在获取到所述默认网络共享配置时,发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;Optionally, the control module is further configured to: when the default network sharing configuration is obtained, send the opening instruction to the fifth Wi-Fi application module specified by the default network sharing configuration, to start the fifth The hotspot function of the fifth processing module corresponding to the Wi-Fi application module;
所述Wi-Fi服务模块还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。The Wi-Fi service module is further configured to start a routing configuration of the network sharing when the hotspot function is successfully started, and the fifth processing module shares the network resource of the sixth processing module specified by the default network sharing configuration.
可选的,所述控制模块还用于将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。 Optionally, the control module is further configured to switch the data service carried by the processing module of the hotspot function to be started to the processing module of the network resource to be shared.
可选的,所述Wi-Fi服务模块还用于在成功启动网络共享的路由配置之后,输出网络共享成功的提示信息,以在预设显示界面显示。Optionally, the Wi-Fi service module is further configured to: after successfully starting the route configuration of the network share, output prompt information about successful network sharing, to display on the preset display interface.
可选的,所述控制模块还用于在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。Optionally, the control module is further configured to: when the data service of the processing module based on the hotspot function is not detected, send a shutdown command of the hotspot function to a processing module that activates the hotspot function to close the data service. Hotspot function.
本发明实施例还提供了一种网络共享方法,所述网络共享方法包括以下步骤:The embodiment of the invention further provides a network sharing method, where the network sharing method comprises the following steps:
在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,所述控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块的步骤之后,还包括:Optionally, after the step of determining, by the control module, the first processing module that does not establish a Wi-Fi connection with the external hotspot, the method further includes:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
可选的,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块,包括: Optionally, the control module determines the third processing module and the fourth processing module, based on the available bandwidth of each processing module, including:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
可选的,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤之前,还包括:Optionally, before the step of determining, by the control module, the third processing module that has the largest available bandwidth in each processing module of the mobile terminal, and the determining the fourth processing module that has the smallest available bandwidth in each processing module, the control module further includes:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
可选的,所述控制模块获取默认网络共享配置的步骤之后,还包括:Optionally, after the step of acquiring the default network share configuration by the control module, the method further includes:
在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
可选的,所述控制模块发送所述开启指令之前,还包括:Optionally, before the sending, by the control module, the start command, the method further includes:
所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
可选的,所述Wi-Fi服务模块启动网络共享的路由配置之后,还包括:Optionally, after the Wi-Fi service module starts the route configuration of the network share, the method further includes:
在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
可选的,所述Wi-Fi服务模块启动网络共享的路由配置的步骤之后,还包括:Optionally, after the step of starting the routing configuration of the network sharing by the Wi-Fi service module, the method further includes:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
本发明实施例还提供了一种移动终端,包括: The embodiment of the invention further provides a mobile terminal, including:
存储介质,配置为存储计算机可执行指令;a storage medium configured to store computer executable instructions;
处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令包括:a processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions comprising:
在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。 When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
所述控制模块获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration by the control module, the method further includes:
在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块, 以关闭其热点功能。When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function. To turn off its hotspot feature.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The embodiment of the invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。 When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。 When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
本发明实施例提出的移动终端、计算机存储介质及网络共享方法,当移动终端其中一处理模块与外部热点建立有Wi-Fi连接时,可启动另一处理模块的热点功能,将移动终端连接的Wi-Fi网络共享给其它移动终端,为其它移动终端提供网络接入服务。相较于现有技术,本发明避免了对移动终端自身流量的消耗,能够降低网络共享的成本。The mobile terminal, the computer storage medium and the network sharing method are provided by the embodiment of the present invention. When a processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the hotspot function of another processing module may be activated, and the mobile terminal is connected. The Wi-Fi network is shared with other mobile terminals to provide network access services for other mobile terminals. Compared with the prior art, the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
附图说明DRAWINGS
图1为实现本发明各个实施例的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention;
图2为本发明移动终端的框架结构示意图;2 is a schematic structural diagram of a frame of a mobile terminal according to the present invention;
图3为本发明移动终端网络共享界面的一种示例图;3 is a diagram showing an example of a network sharing interface of a mobile terminal according to the present invention;
图4为本发明移动终端的细化框架结构示意图;4 is a schematic structural diagram of a refinement frame of a mobile terminal according to the present invention;
图5为本发明移动终端网络共享界面的另一种示例图;FIG. 5 is another exemplary diagram of a network sharing interface of a mobile terminal according to the present invention; FIG.
图6为本发明网络共享方法第一实施例的流程示意图;6 is a schematic flowchart of a first embodiment of a network sharing method according to the present invention;
图7为本发明网络共享方法第二实施例的流程示意图。FIG. 7 is a schematic flowchart diagram of a second embodiment of a network sharing method according to the present invention.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互任意结合。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that the embodiments in the present invention and the features in the embodiments may be arbitrarily combined with each other without conflict.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的移动终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。 The mobile terminal can be implemented in various forms. For example, the mobile terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc. Those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
图1为实现本发明各个实施例一个可选的移动终端的硬件结构示意图。FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention.
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more. Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块111和无线互联网模块112中的至少一个。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit can include at least one of the mobile communication module 111 and the wireless internet module 112.
移动通信模块111将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 111 transmits radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
无线互联网模块112支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless internet module 112 supports wireless internet access for mobile terminals. The module can be internally or externally coupled to the terminal. The wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 120 is for receiving an audio or video signal. The A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode. The processed image frame can be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal. The microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data. The processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode. The microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且 可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。The user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal. The user input unit 130 allows the user to input various types of information, and A keyboard, a pot, a touchpad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel, a rocker, and the like can be included. In particular, when the touch panel is superimposed on the display unit 151 in the form of a layer, a touch screen can be formed.
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。The sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal. The orientation of 100, the acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling the operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide type mobile phone, the sensing unit 140 can sense whether the slide type phone is turned on or off. In addition, the sensing unit 140 can detect whether the power supply unit 190 provides power or whether the interface unit 170 is coupled to an external device.
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more. The identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like. In addition, the device having the identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device. The interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、音频输出模块152等。In addition, when the mobile terminal 100 is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal. Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base. Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如, 文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、显示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in the phone call mode, the display unit 151 can display a call or other communication (for example, Text messaging, multimedia file downloads, etc.) related user interface (UI) or graphical user interface (GUI). 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 displaying a video or image and related functions, and the like.
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display unit 151 and the touch panel are superposed on each other in the form of a layer to form a touch screen, the display unit 151 can function 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 a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, 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 can be used to detect touch input pressure as well as touch input position and touch input area.
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. The audio signal is output as sound. Moreover, the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100. The audio output module 152 can include a speaker, a buzzer, and the like.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,例如,可以存储实现本发明网络接入方法的软件程序,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like for processing and control operations performed by the controller 180, for example, may store a software program implementing the network access method of the present invention, or may temporarily store data that has been output or is to be output (for example, , phone book, message, still image, video, etc.). Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。 The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like. The controller 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.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
基于上述移动终端硬件结构,提出本发明移动终端各个实施例。Based on the hardware structure of the mobile terminal described above, various embodiments of the mobile terminal of the present invention are proposed.
结合参照图1和图2,在本发明移动终端的第一实施例中,该移动终端100包括控制模块10,与控制模块10分别连接的多个Wi-Fi应用模块、与多个Wi-Fi应用模块连接的Wi-Fi服务模块20、以及与Wi-Fi服务模块20连接且与多个Wi-Fi应用模块一一对应的多个处理模块,还包括与控制模块10连接的数据模块30,其中,控制模块10可为图1中的控制器180,Wi-Fi应用模块、Wi-Fi服务模块20以及处理模块可以包括在图1中的无线互联网模块112中,Referring to FIG. 1 and FIG. 2, in a first embodiment of the mobile terminal of the present invention, the mobile terminal 100 includes a control module 10, a plurality of Wi-Fi application modules respectively connected to the control module 10, and a plurality of Wi-Fi The application module is connected to the Wi-Fi service module 20, and the plurality of processing modules connected to the Wi-Fi service module 20 and corresponding to the plurality of Wi-Fi application modules, and further includes a data module 30 connected to the control module 10, The control module 10 can be the controller 180 in FIG. 1, and the Wi-Fi application module, the Wi-Fi service module 20, and the processing module can be included in the wireless internet module 112 in FIG.
控制模块10用于在接收到网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块;以及发送热点功能的开启指令至对应第一处理模块的第一Wi-Fi应用模块,以供第一Wi-Fi应用模块将接收的开启指令发送至Wi-Fi服务模块20;The control module 10 is configured to: when receiving the network sharing operation, determine a first processing module that does not establish a Wi-Fi connection with an external hotspot in each processing module; and send an open command of the hotspot function to the first Wi corresponding to the first processing module a Fi application module, for the first Wi-Fi application module to send the received open command to the Wi-Fi service module 20;
Wi-Fi服务模块20用于在接收到开启指令时,将接收的开启指令发送 至第一处理模块;The Wi-Fi service module 20 is configured to send the received open command when receiving the open command. To the first processing module;
第一处理模块用于在接收到Wi-Fi服务模块20发送的开启指令时,根据接收的开启指令以及对应的驱动启动热点功能;The first processing module is configured to: when receiving the open command sent by the Wi-Fi service module 20, start the hotspot function according to the received open command and the corresponding driver;
Wi-Fi服务模块20还用于在热点功能启动成功时,启动网络共享的路由配置,由第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。The Wi-Fi service module 20 is further configured to start a route configuration of the network share when the hotspot function is successfully started, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
本实施例中,该移动终端100的Wi-Fi应用模块提供相应的Wi-Fi应用操作界面,并基于控制模块10通过移动终端100的显示单元151呈现给用户,供用户通过Wi-Fi应用操作界面进行相应的控制与操作。例如,第一Wi-Fi应用模块和第二Wi-Fi应用模块可用通过Wi-Fi服务模块20分别控制第一处理模块和第二处理模块的连接/断开。第一处理模块和第二处理模块分别处理第一Wi-Fi应用模块和第二Wi-Fi应用模块下发的指令以及Wi-Fi热点的连接状态信息等。此外,Wi-Fi应用模块还基于控制模块10通过移动终端100的显示单元151向用户提供网络共享界面,如图3所示,在该网络共享界面提供有热点启动按钮,当用户需要共享移动终端100连接的Wi-Fi热点网络资源时,用户可以点击该网络共享界面的热点启动按钮,开启移动终端100的网络共享功能。In this embodiment, the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application. The interface performs corresponding control and operation. For example, the first Wi-Fi application module and the second Wi-Fi application module may respectively control the connection/disconnection of the first processing module and the second processing module through the Wi-Fi service module 20. The first processing module and the second processing module respectively process instructions issued by the first Wi-Fi application module and the second Wi-Fi application module, connection status information of the Wi-Fi hotspot, and the like. In addition, the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100. As shown in FIG. 3, a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal. When 100 connected Wi-Fi hotspot network resources are available, the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal 100.
具体的,控制模块10在接收到用户的网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块。其中,处理模块未与外部热点建立Wi-Fi连接是指处理模块未工作在STA(Station,站点)模式,包括处理模块工作在AP(Access Point,接入点)模式,以及处理模块处于关闭状态等。控制模块10在确定第一处理模块之后,触发热点功能的开启指令,并将该开启指令发送至第一处理模块对应的第一Wi-Fi应用模块。Specifically, when receiving the network sharing operation of the user, the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot. The processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait. After determining the first processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the first Wi-Fi application module corresponding to the first processing module.
第一Wi-Fi应用模块在接收到该开启指令时,将接收的开启指令发送至Wi-Fi服务模块20。The first Wi-Fi application module sends the received open command to the Wi-Fi service module 20 upon receiving the open command.
Wi-Fi服务模块20接收到该开启指令时,将接收的开启指令发送至第一处理模块。When receiving the open command, the Wi-Fi service module 20 sends the received open command to the first processing module.
当第一处理模块接收到该开启指令时,根据该开启指令以及对应的驱动启动热点功能。具体的,参照图4,第一处理模块包括第一框架子单元、第一协议子单元、第一驱动子单元以及第一Wi-Fi芯片,其中,第一框架子 单元在接收到Wi-Fi服务模块20发送的开启指令时,将接收的开启指令发送至第一协议子单元。第一协议子单元在接收到该开启指令时,发送指示信息至第一驱动子单元,以指示第一驱动子单元加载预设的AP驱动;第一协议子单元还选择对应AP驱动的协议,并将选中的协议以及接收的开启指令经由第一驱动子单元发送至第一Wi-Fi芯片,此时,第一Wi-Fi芯片工作在AP模式,即开启了热点功能,相应的,第一Wi-Fi芯片在接收到工作在STA模式的其它移动终端发送的网络接入请求时,根据该协议与其它移动终端进行空口交互,建立Wi-Fi连接。同时,第一Wi-Fi芯片在启动热点功能之后,返回启动成功的指示信息至控制模块10。When the first processing module receives the open command, the hotspot function is activated according to the open command and the corresponding driver. Specifically, referring to FIG. 4, the first processing module includes a first frame subunit, a first protocol subunit, a first driving subunit, and a first Wi-Fi chip, wherein the first frame sub Upon receiving the open command sent by the Wi-Fi service module 20, the unit sends the received open command to the first protocol subunit. Upon receiving the open command, the first protocol subunit sends the indication information to the first driver subunit to instruct the first driver subunit to load the preset AP driver; the first protocol subunit further selects a protocol corresponding to the AP driver. And the selected protocol and the received open command are sent to the first Wi-Fi chip via the first driving subunit. At this time, the first Wi-Fi chip works in the AP mode, that is, the hotspot function is enabled, correspondingly, the first When receiving the network access request sent by other mobile terminals working in the STA mode, the Wi-Fi chip performs an air interface interaction with other mobile terminals according to the protocol to establish a Wi-Fi connection. At the same time, after the hotspot function is activated, the first Wi-Fi chip returns an indication of successful startup to the control module 10.
控制模块10在接收到第一Wi-Fi芯片返回的启动成功的指示信息之后,发送指示数据模块30完成路由配置的指示信息至数据模块30。数据模块30在接收到该完成路由配置的指示信息时,将预设的网络共享的路由配置经由控制模块10下发至Wi-Fi服务模块20。Wi-Fi服务模块20在接收到该网络共享的路由配置时,启动该网络共享的路由配置,由第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源,实现网络共享。After receiving the indication information indicating that the first Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30. The data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration. When receiving the routing configuration of the network sharing, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state to implement network sharing.
进一步的,在本实施例中,Wi-Fi服务模块20在成功启动网络共享的路由配置之后,输出网络共享成功的提示信息,以在预设显示界面显示。Further, in this embodiment, after successfully starting the routing configuration of the network sharing, the Wi-Fi service module 20 outputs prompt information for successful network sharing to be displayed on the preset display interface.
具体的,Wi-Fi服务模块20将该提示信息输出至第一Wi-Fi应用模块,供第一Wi-Fi应用模块将该提示信息输出至控制模块10,由控制模块10将该提示信息输出至移动终端100的显示单元151。显示单元151在接收到该提示信息时,基于前述网络共享界面进行输出,例如,热点启动按钮由图3所示的关闭状态切换至图5所示的开启状态,以提示用户当前网络共享功能已开启,可为其它移动终端提供网络接入服务。Specifically, the Wi-Fi service module 20 outputs the prompt information to the first Wi-Fi application module, and the first Wi-Fi application module outputs the prompt information to the control module 10, and the prompt information is output by the control module 10. To the display unit 151 of the mobile terminal 100. When receiving the prompt information, the display unit 151 outputs based on the foregoing network sharing interface. For example, the hotspot activation button is switched from the off state shown in FIG. 3 to the on state shown in FIG. 5 to prompt the user that the current network sharing function has been Turn on to provide network access services for other mobile terminals.
进一步的,在本实施例中,控制模块10在接收到网络共享成功的提示信息时,启动定时器进行计时,并对启动热点功能的处理模块承载的其它移动终端的数据业务进行侦测,若在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,控制模块10发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。Further, in this embodiment, when receiving the prompt information of successful network sharing, the control module 10 starts a timer to perform timing, and detects data services of other mobile terminals carried by the processing module that activates the hotspot function, if When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module 10 sends a shutdown command of the hotspot function to the processing module that activates the hotspot function to turn off the hotspot function.
本领域技术人员可以理解的是,虽然Wi-Fi技术具有较高的数据传输速率以及不需要消耗移动终端的运营商流量等优点,但是其同时具有高能耗、 高发热量等问题。例如,在手机开启便携式Wi-Fi热点为笔记本电脑提供网络接入服务后,即使在笔记本电脑没有较大数据吞吐量的情况下,手机电池的电量也会在较短时间内耗尽,影响手机用户的正常使用。Those skilled in the art can understand that although the Wi-Fi technology has the advantages of high data transmission rate and no need to consume operator traffic of the mobile terminal, it has high energy consumption at the same time. High heat and other issues. For example, after the mobile phone is turned on and the portable Wi-Fi hotspot provides the network access service for the notebook computer, even if the notebook computer does not have a large data throughput, the battery power of the mobile phone will be exhausted in a short time, affecting the mobile phone. Normal use of the user.
因此,为避免在开启第一处理模块的热点功能后,长期未接收到其它移动终端的网络访问操作,造成移动终端不必要的电量浪费,在本实施例中,控制模块10对第一处理模块承载的其它移动终端的数据业务进行侦测。其中,若在预设时间段内未侦测到基于第一处理模块的数据业务,则控制模块10发送热点功能的关闭指令至第一Wi-Fi应用模块;第一Wi-Fi应用模块在接收到该关闭指令时,将接收的关闭指令发送至Wi-Fi服务模块20;Wi-Fi服务模块20在接收到该关闭指令时,将接收的关闭指令发送至第一框架子单元;第一框架子单元在接收到Wi-Fi服务模块20发送的关闭指令时,将接收的关闭指令发送至第一协议子单元;第一协议子单元在接收到第一框架子单元发送的关闭指令时,将接收的关闭指令发送至第一驱动子单元;第一驱动子单元在接收到关闭指令时,卸载当前加载的AP驱动,并断开第一Wi-Fi芯片的供电。Therefore, in the embodiment, the control module 10 processes the first processing module, so as to avoid unnecessary power consumption of the mobile terminal, after the hotspot function of the first processing module is turned on, and the network access operation of the other mobile terminal is not received for a long time. The data services of other mobile terminals carried are detected. If the data service based on the first processing module is not detected within the preset time period, the control module 10 sends a shutdown command of the hotspot function to the first Wi-Fi application module; the first Wi-Fi application module is receiving When the shutdown command is received, the received shutdown command is sent to the Wi-Fi service module 20; when receiving the shutdown command, the Wi-Fi service module 20 sends the received shutdown command to the first frame sub-unit; the first frame When receiving the shutdown instruction sent by the Wi-Fi service module 20, the subunit sends the received shutdown instruction to the first protocol subunit; when receiving the shutdown instruction sent by the first frame subunit, the first protocol subunit will The received shutdown command is sent to the first driver subunit; when receiving the shutdown command, the first driver subunit unloads the currently loaded AP driver and disconnects the power supply of the first Wi-Fi chip.
此外,若在预设时间段内侦测到基于第一处理模块的数据业务,则控制模块10维持第一处理模块的热点功能,继续为其它移动终端提供网络接入服务。In addition, if the data service based on the first processing module is detected within the preset time period, the control module 10 maintains the hotspot function of the first processing module and continues to provide network access services for other mobile terminals.
需要说明的是,本实施例并不限制前述预设时间段的取值,具体可根据移动终端的电池容量进行设置,例如,若电池容量较大,则可设置较长的预设时间段,若电池容量较小,则可设置较短的预设时间段,如本实施例缺省设置为3分钟。本领域技术人员可以理解的是,该预设时间段还可由用户指定。It should be noted that, in this embodiment, the value of the preset time period is not limited, and may be set according to the battery capacity of the mobile terminal. For example, if the battery capacity is large, a longer preset time period may be set. If the battery capacity is small, a shorter preset time period can be set, as in the embodiment, the default setting is 3 minutes. It can be understood by those skilled in the art that the preset time period can also be specified by the user.
进一步的,为避免共享网络资源的处理模块断开与外部热点的Wi-Fi连接导致移动终端提供的网络共享服务中断,在本实施例中,控制模块10在对启动热点功能的处理模块承载的其它移动终端的数据业务进行侦测的同时,还对当前共享网络资源的处理模块的Wi-Fi连接状态进行侦测,并在侦测到当前共享网络资源的处理模块与外部热点的Wi-Fi连接断开时,发送指示Wi-Fi服务模块20更新路由配置的指示信息至Wi-Fi服务模块20;Wi-Fi服务模块20还用于在接收到控制模块10发送的该指示信息时,更新 当前启动的网络共享的路由配置,以共享当前处于Wi-Fi连接状态的其它处理模块的网络资源。Further, in order to prevent the processing module sharing the network resource from disconnecting the Wi-Fi connection with the external hotspot, the network sharing service provided by the mobile terminal is interrupted. In this embodiment, the control module 10 is carried by the processing module that activates the hotspot function. While detecting the data service of the other mobile terminal, the Wi-Fi connection status of the current processing module sharing the network resource is detected, and the current processing module of the shared network resource and the Wi-Fi of the external hot spot are detected. When the connection is disconnected, the indication information indicating that the Wi-Fi service module 20 updates the routing configuration is sent to the Wi-Fi service module 20; the Wi-Fi service module 20 is further configured to update the indication information sent by the control module 10 when receiving the indication information. The routing configuration of the currently started network share to share the network resources of other processing modules currently in the Wi-Fi connection state.
此外,由于Wi-Fi服务模块20可分别与各个处理模块进行交互,避免了独立运行多个Wi-Fi服务模块20造成的冗余,对数据通信的流程进行了简化,能够提高数据通信效率。In addition, since the Wi-Fi service module 20 can interact with each processing module separately, the redundancy caused by independently operating the multiple Wi-Fi service modules 20 is avoided, the flow of the data communication is simplified, and the data communication efficiency can be improved.
本实施例提出的移动终端,包括多个处理模块,当其中一处理模块与外部热点建立有Wi-Fi连接时,可启动另一处理模块的热点功能,将移动终端连接的Wi-Fi网络共享给其它移动终端,为其它移动终端提供网络接入服务。相较于现有技术,本发明避免了对移动终端自身流量的消耗,能够降低网络共享的成本。The mobile terminal provided in this embodiment includes multiple processing modules. When one of the processing modules establishes a Wi-Fi connection with an external hotspot, the hotspot function of another processing module may be activated to share the Wi-Fi network connected to the mobile terminal. For other mobile terminals, provide network access services for other mobile terminals. Compared with the prior art, the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
继续参照图1和图2,在本发明移动终端的第二实施例中,该移动终端包括控制模块10,与控制模块10分别连接的多个Wi-Fi应用模块、与多个Wi-Fi应用模块连接的Wi-Fi服务模块20、以及与Wi-Fi服务模块20连接且与多个Wi-Fi应用模块一一对应的多个处理模块,还包括与控制模块10连接的数据模块30,其中,控制模块10可为图1中的控制器180,Wi-Fi应用模块、Wi-Fi服务模块20以及处理模块可以包括在图1中的无线互联网模块112中,控制模块10用于在接收到网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块;以及在各个处理模块均与外部热点建立有Wi-Fi连接时,确定各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中除第三处理模块之外支持带宽最大的第四处理模块;以及发送热点功能的开启指令至对应第四处理模块的第四Wi-Fi应用模块,以启动第四处理模块的热点功能;With reference to FIG. 1 and FIG. 2, in a second embodiment of the mobile terminal of the present invention, the mobile terminal includes a control module 10, a plurality of Wi-Fi application modules respectively connected to the control module 10, and multiple Wi-Fi applications. The module-connected Wi-Fi service module 20, and the plurality of processing modules connected to the Wi-Fi service module 20 and corresponding to the plurality of Wi-Fi application modules, further include a data module 30 connected to the control module 10, wherein The control module 10 can be the controller 180 in FIG. 1, the Wi-Fi application module, the Wi-Fi service module 20, and the processing module can be included in the wireless internet module 112 in FIG. 1, and the control module 10 is configured to receive During the network sharing operation, the first processing module that does not establish a Wi-Fi connection with the external hotspot in each processing module is determined; and when each processing module establishes a Wi-Fi connection with the external hotspot, the maximum available bandwidth in each processing module is determined. a third processing module, and determining a fourth processing module that supports the largest bandwidth among the processing modules except the third processing module; and transmitting an opening instruction of the hotspot function to the corresponding fourth processing module Four Wi-Fi application modules to activate the hotspot function of the fourth processing module;
Wi-Fi服务模块20用于在热点功能启动成功时,启动网络共享的路由配置,由第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。The Wi-Fi service module 20 is configured to start a route configuration of the network share when the hotspot function is successfully started, and share the network resource of the third processing module in the Wi-Fi connection state by the fourth processing module.
本实施例中,该移动终端100的Wi-Fi应用模块提供相应的Wi-Fi应用操作界面,并基于控制模块10通过移动终端100的显示单元151呈现给用户,供用户通过Wi-Fi应用操作界面进行相应的控制与操作。例如,第三Wi-Fi应用模块和第四Wi-Fi应用模块可用通过Wi-Fi服务模块20分别控 制第三处理模块和第四处理模块的连接/断开。第三处理模块和第四处理模块分别处理第三Wi-Fi应用模块和第四Wi-Fi应用模块下发的指令以及Wi-Fi热点的连接状态信息等。此外,Wi-Fi应用模块还基于控制模块10通过移动终端100的显示单元151向用户提供网络共享界面,如图3所示,在该网络共享界面提供有热点启动按钮,当用户需要共享移动终端连接的Wi-Fi热点网络资源时,用户可以点击该网络共享界面的热点启动按钮,开启移动终端的网络共享功能。In this embodiment, the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application. The interface performs corresponding control and operation. For example, the third Wi-Fi application module and the fourth Wi-Fi application module can be separately controlled by the Wi-Fi service module 20 The connection/disconnection of the third processing module and the fourth processing module. The third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like. In addition, the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100. As shown in FIG. 3, a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal. When the connected Wi-Fi hotspot network resource is available, the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
具体的,控制模块10在接收到用户的网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块。其中,处理模块未与外部热点建立Wi-Fi连接是指处理模块未工作在STA(Station,站点)模式,包括处理模块工作在AP(Access Point,接入点)模式,以及处理模块处于关闭状态等。Specifically, when receiving the network sharing operation of the user, the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot. The processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
可以理解的是,若控制模块10侦测到各个处理模块均与外部热点建立有Wi-Fi连接,说明此时可基于任一处理模块连接的Wi-Fi网络提供网络接入服务。为提供较高的网络接入质量,本实施例基于当前连接的Wi-Fi网络中网络质量较好的Wi-Fi网络提供网络接入服务。本实施例中,控制模块10在各个处理模块均与外部热点建立有Wi-Fi连接时,进一步确定各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中除第三处理模块之外支持带宽最大的第四处理模块。It can be understood that if the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
在确定第三处理模块以及第四处理模块之后,控制模块10触发热点功能的开启指令,并将该开启指令发送至第四处理模块对应的第四Wi-Fi应用模块。After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application module corresponding to the fourth processing module.
第四Wi-Fi应用模块在接收到该开启指令时,将接收的开启指令发送至Wi-Fi服务模块20。The fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
Wi-Fi服务模块20接收到该开启指令时,将接收的开启指令发送至第四处理模块。When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
当第四处理模块接收到该开启指令时,根据该开启指令以及对应的驱动启动热点功能。具体的,参照图4,第四处理模块包括第四框架子单元、第四协议子单元、第四驱动子单元以及第四Wi-Fi芯片,其中,第四框架子单元在接收到Wi-Fi服务模块20发送的开启指令时,将接收的开启指令发 送至第四协议子单元。第四协议子单元在接收到该开启指令时,发送指示信息至第四驱动子单元,以指示第四驱动子单元加载预设的AP驱动,其中,第四驱动子单元在加载AP驱动时,需要重新初始化第四Wi-Fi芯片,并卸载当前加载的STA驱动,再加载AP驱动;第四协议子单元还选择对应AP驱动的协议,并将选中的协议以及接收的开启指令经由第四驱动子单元发送至第四Wi-Fi芯片,此时,第四Wi-Fi芯片工作在AP模式,即开启了热点功能,相应的,第四Wi-Fi芯片在接收到工作在STA模式的其它移动终端发送的网络接入请求时,根据该协议与其它移动终端进行空口交互,建立Wi-Fi连接。同时,第四Wi-Fi芯片在启动热点功能之后,返回启动成功的指示信息至控制模块10。When the fourth processing module receives the open command, the hotspot function is activated according to the open command and the corresponding driver. Specifically, referring to FIG. 4, the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi When the service module 20 sends an open command, it will receive the open command. Send to the fourth protocol subunit. When receiving the open command, the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver. The fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver. The subunit is sent to the fourth Wi-Fi chip. At this time, the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode. When the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection. At the same time, after the hotspot function is activated, the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
控制模块10在接收到第四Wi-Fi芯片返回的启动成功的指示信息之后,发送指示数据模块30完成路由配置的指示信息至数据模块30。数据模块30在接收到该完成路由配置的指示信息时,将预设的网络共享的路由配置经由控制模块10下发至Wi-Fi服务模块20。Wi-Fi服务模块在接收到该网络共享的路由配置时,启动该网络共享的路由配置,由第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源,实现网络共享。After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30. The data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration. When receiving the routing configuration of the network sharing, the Wi-Fi service module starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
需要说明的是,在实际应用场景中,外部热点提供的网络接入服务并不都是免费的,而且,存在处理模块连接内网热点的情况,若共享该内网热点的网络资源,将不能够为其它移动终端提供外网的接入服务,因此,为满足特定的用户需求,提升用户体验,本实施例中,控制模块10还用于在各个处理模块均与外部热点建立有Wi-Fi连接时,获取默认网络共享配置;以及在获取默认网络共享配置失败时,确定各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块;以及在获取到默认网络共享配置时,发送热点功能的开启指令至默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;It should be noted that, in the actual application scenario, the network access services provided by the external hotspots are not all free, and there is a case where the processing module connects to the intranet hotspot. If the network resources of the intranet hotspot are shared, In the present embodiment, the control module 10 is further configured to establish Wi-Fi with external hotspots in each processing module, in order to provide an access service for the external network. When connecting, obtaining a default network sharing configuration; and determining, when the default network sharing configuration fails, determining a third processing module having the largest available bandwidth in each processing module, and determining a fourth processing module having the smallest available bandwidth in each processing module; When the default network sharing configuration is obtained, the hotspot function is sent to the fifth Wi-Fi application module specified by the default network sharing configuration to activate the hotspot function of the fifth processing module corresponding to the fifth Wi-Fi application module;
Wi-Fi服务模块20还用于在热点功能启动成功时,启动网络共享的路由配置,由第五处理模块共享默认网络共享配置指定的第六处理模块的网络资源。The Wi-Fi service module 20 is further configured to start a routing configuration of the network sharing when the hotspot function is successfully started, and the fifth processing module shares the network resource of the sixth processing module specified by the default network sharing configuration.
其中,控制模块10启动第五处理模块共享默认网络共享配置指定的第 六处理模块的网络资源的过程可参照前述实施例,此处不再赘述。此外,该默认网络共享配置由控制模块10基于用户预先输入的数据设置,例如,用户可将连接流量免费的外部热点的处理模块设置为第六处理模块,还可将连接内网热点的处理模块设置为第五处理模块,将连接外网热点的处理模块设置为第六处理模块。Wherein, the control module 10 starts the fifth processing module to share the first specified by the default network sharing configuration. For the process of processing the network resources of the module, refer to the foregoing embodiment, and details are not described herein again. In addition, the default network sharing configuration is set by the control module 10 based on data input by the user in advance. For example, the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
进一步的,为便于用户使用,使得用户能够在需要时对该默认网络共享配置进行修改,在本实施例中,控制模块10还用于在接收到默认网络共享配置的更新指令时,基于接收的所述更新指令对当前的默认网络共享配置进行调整。其中,用户对默认网络共享配置的调整可按实际需要进行。Further, for the user to use, the user can modify the default network sharing configuration when needed. In this embodiment, the control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
进一步的,由于在启动处理模块的热点功能之前,处理模块与外部热点建立有Wi-Fi连接,其承载有其所在移动终端100的部分数据业务,为避免启动处理模块的热点功能后导致其之前承载的部分数据业务中断,在本实施例中,在启动待启动热点功能的处理模块的热点功能之前,控制模块10还用于将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。例如,控制模块10在启动第四处理模块的热点功能之前,将第四处理模块承载的数据业务切换至第三处理模块。Further, before the hotspot function of the processing module is started, the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module, The part of the data service is interrupted. In this embodiment, before the hotspot function of the processing module of the hotspot function is started, the control module 10 is further configured to switch the data service carried by the processing module of the hotspot function to be to be shared. The processing module of the resource. For example, the control module 10 switches the data service carried by the fourth processing module to the third processing module before starting the hotspot function of the fourth processing module.
具体的,控制模块10发送指示数据模块30完成数据业务切换的指示信息至数据模块30;数据模块30在接收到该数据业务切换的指示信息时,更改对应的网络配置,将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。Specifically, the control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated. The data service carried by the processing module is switched to the processing module of the network resource to be shared.
进一步的,本发明实施例还提供了一种网络共享方法,结合参照图1、图2和图6,在本发明网络共享方法的第一实施例中,该网络共享方法包括:Further, the embodiment of the present invention further provides a network sharing method. In the first embodiment of the network sharing method of the present invention, the network sharing method includes:
步骤S10,在接收到网络共享操作时,控制模块10确定未与外部热点建立Wi-Fi连接的第一处理模块;Step S10, when receiving the network sharing operation, the control module 10 determines that the first processing module that does not establish a Wi-Fi connection with the external hotspot;
步骤S20,控制模块10发送热点功能的开启指令至第一处理模块对应的第一Wi-Fi应用模块,以供第一Wi-Fi应用模块将接收的开启指令发送至Wi-Fi服务模块20;In step S20, the control module 10 sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, for the first Wi-Fi application module to send the received open command to the Wi-Fi service module 20;
步骤S30,Wi-Fi服务模块20在接收到开启指令时,将接收的开启指令发送至第一处理模块; Step S30, the Wi-Fi service module 20 sends the received open command to the first processing module when receiving the open command;
步骤S40,第一处理模块在接收到Wi-Fi服务模块20发送的开启指令时,根据接收的开启指令启动热点功能;Step S40: When receiving the open command sent by the Wi-Fi service module 20, the first processing module starts the hotspot function according to the received open command;
步骤S50,在所述热点功能启动成功时,Wi-Fi服务模块20启动网络共享的路由配置,由第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。In step S50, when the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state.
本实施例中,该移动终端100的Wi-Fi应用模块提供相应的Wi-Fi应用操作界面,并基于控制模块10通过移动终端100的显示单元151呈现给用户,供用户通过Wi-Fi应用操作界面进行相应的控制与操作。例如,第一Wi-Fi应用模块和第二Wi-Fi应用模块可用通过Wi-Fi服务模块20分别控制第一处理模块和第二处理模块的连接/断开。第一处理模块和第二处理模块分别处理第一Wi-Fi应用模块和第二Wi-Fi应用模块下发的指令以及Wi-Fi热点的连接状态信息等。此外,Wi-Fi应用模块还基于控制模块10通过移动终端100的显示单元151向用户提供网络共享界面,如图3所示,在该网络共享界面提供有热点启动按钮,当用户需要共享移动终端100连接的Wi-Fi热点网络资源时,用户可以点击该网络共享界面的热点启动按钮,开启移动终端100的网络共享功能。In this embodiment, the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application. The interface performs corresponding control and operation. For example, the first Wi-Fi application module and the second Wi-Fi application module may respectively control the connection/disconnection of the first processing module and the second processing module through the Wi-Fi service module 20. The first processing module and the second processing module respectively process instructions issued by the first Wi-Fi application module and the second Wi-Fi application module, connection status information of the Wi-Fi hotspot, and the like. In addition, the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100. As shown in FIG. 3, a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal. When 100 connected Wi-Fi hotspot network resources are available, the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal 100.
具体的,控制模块10在接收到用户的网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块。其中,处理模块未与外部热点建立Wi-Fi连接是指处理模块未工作在STA(Station,站点)模式,包括处理模块工作在AP(Access Point,接入点)模式,以及处理模块处于关闭状态等。控制模块10在确定第一处理模块之后,触发热点功能的开启指令,并将该开启指令发送至第一处理模块对应的第一Wi-Fi应用模块。Specifically, when receiving the network sharing operation of the user, the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot. The processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait. After determining the first processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the first Wi-Fi application module corresponding to the first processing module.
第一Wi-Fi应用模块在接收到该开启指令时,将接收的开启指令发送至Wi-Fi服务模块20。The first Wi-Fi application module sends the received open command to the Wi-Fi service module 20 upon receiving the open command.
Wi-Fi服务模块20接收到该开启指令时,将接收的开启指令发送至第一处理模块。When receiving the open command, the Wi-Fi service module 20 sends the received open command to the first processing module.
当第一处理模块接收到该开启指令时,根据该开启指令以及对应的驱动启动热点功能。具体的,参照图4,第一处理模块包括第一框架子单元、第一协议子单元、第一驱动子单元以及第一Wi-Fi芯片,其中,第一框架子单元在接收到Wi-Fi服务模块20发送的开启指令时,将接收的开启指令发 送至第一协议子单元。第一协议子单元在接收到该开启指令时,发送指示信息至第一驱动子单元,以指示第一驱动子单元加载预设的AP驱动;第一协议子单元还选择对应AP驱动的协议,并将选中的协议以及接收的开启指令经由第一驱动子单元发送至第一Wi-Fi芯片,此时,第一Wi-Fi芯片工作在AP模式,即开启了热点功能,相应的,第一Wi-Fi芯片在接收到工作在STA模式的其它移动终端发送的网络接入请求时,根据该协议与其它移动终端进行空口交互,建立Wi-Fi连接。同时,第一Wi-Fi芯片在启动热点功能之后,返回启动成功的指示信息至控制模块10。When the first processing module receives the open command, the hotspot function is activated according to the open command and the corresponding driver. Specifically, referring to FIG. 4, the first processing module includes a first frame subunit, a first protocol subunit, a first driving subunit, and a first Wi-Fi chip, wherein the first frame subunit receives the Wi-Fi When the service module 20 sends an open command, it will receive the open command. Send to the first protocol subunit. Upon receiving the open command, the first protocol subunit sends the indication information to the first driver subunit to instruct the first driver subunit to load the preset AP driver; the first protocol subunit further selects a protocol corresponding to the AP driver. And the selected protocol and the received open command are sent to the first Wi-Fi chip via the first driving subunit. At this time, the first Wi-Fi chip works in the AP mode, that is, the hotspot function is enabled, correspondingly, the first When receiving the network access request sent by other mobile terminals working in the STA mode, the Wi-Fi chip performs an air interface interaction with other mobile terminals according to the protocol to establish a Wi-Fi connection. At the same time, after the hotspot function is activated, the first Wi-Fi chip returns an indication of successful startup to the control module 10.
控制模块10在接收到第一Wi-Fi芯片返回的启动成功的指示信息之后,发送指示数据模块30完成路由配置的指示信息至数据模块30。数据模块30在接收到该完成路由配置的指示信息时,将预设的网络共享的路由配置经由控制模块10下发至Wi-Fi服务模块20。Wi-Fi服务模块20在接收到该网络共享的路由配置时,启动该网络共享的路由配置,由第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源,实现网络共享。After receiving the indication information indicating that the first Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30. The data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration. When receiving the routing configuration of the network sharing, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the first processing module shares the network resources of the second processing module in the Wi-Fi connection state to implement network sharing.
进一步的,在本实施例中,步骤S50之后,还包括:Further, in this embodiment, after step S50, the method further includes:
在成功启动网络共享的路由配置之后,Wi-Fi服务模块20输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module 20 outputs a prompt message for successful network sharing to be displayed on the preset display interface.
具体的,Wi-Fi服务模块20将该提示信息输出至第一Wi-Fi应用模块,供第一Wi-Fi应用模块将该提示信息输出至控制模块10,由控制模块10将该提示信息输出至移动终端100的显示单元151。显示单元151在接收到该提示信息时,基于前述网络共享界面进行输出,例如,热点启动按钮由图3所示的关闭状态切换至图5所示的开启状态,以提示用户当前网络共享功能已开启,可为其它移动终端提供网络接入服务。Specifically, the Wi-Fi service module 20 outputs the prompt information to the first Wi-Fi application module, and the first Wi-Fi application module outputs the prompt information to the control module 10, and the prompt information is output by the control module 10. To the display unit 151 of the mobile terminal 100. When receiving the prompt information, the display unit 151 outputs based on the foregoing network sharing interface. For example, the hotspot activation button is switched from the off state shown in FIG. 3 to the on state shown in FIG. 5 to prompt the user that the current network sharing function has been Turn on to provide network access services for other mobile terminals.
进一步的,在本实施例中,步骤S50之后,还包括:Further, in this embodiment, after step S50, the method further includes:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,控制模块10发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module 10 sends a shutdown command of the hotspot function to the processing module that activates the hotspot function to turn off the hotspot function.
具体的,控制模块10在接收到网络共享成功的提示信息时,启动定时器进行计时,并对第一处理模块承载的其它移动终端的数据业务进行侦测,若在预设时间段内未侦测到基于第一处理模块的数据业务,则经由第一 Wi-Fi应用模块发送热点功能的关闭指令至第一处理模块,以关闭第一处理模块的热点功能。本领域技术人员可以理解的是,虽然Wi-Fi技术具有较高的数据传输速率以及不需要消耗移动终端的运营商流量等优点,但是其同时具有高能耗、高发热量等问题。例如,在手机开启便携式Wi-Fi热点为笔记本电脑提供网络接入服务后,即使在笔记本电脑没有较大数据吞吐量的情况下,手机电池的电量也会在较短时间内耗尽,影响手机用户的正常使用。Specifically, when receiving the prompt information that the network sharing succeeds, the control module 10 starts a timer to perform timing, and detects data services of other mobile terminals carried by the first processing module, if not detected within a preset time period. Detecting the data service based on the first processing module, then passing the first The Wi-Fi application module sends a close command of the hotspot function to the first processing module to turn off the hotspot function of the first processing module. Those skilled in the art can understand that although the Wi-Fi technology has the advantages of high data transmission rate and no need to consume operator traffic of the mobile terminal, it has problems of high energy consumption, high heat generation and the like. For example, after the mobile phone is turned on and the portable Wi-Fi hotspot provides the network access service for the notebook computer, even if the notebook computer does not have a large data throughput, the battery power of the mobile phone will be exhausted in a short time, affecting the mobile phone. Normal use of the user.
因此,为避免在开启第一处理模块的热点功能后,长期未接收到其它移动终端的网络访问操作,造成移动终端不必要的电量浪费,在本实施例中,控制模块10对第一处理模块承载的其它移动终端的数据业务进行侦测。其中,若在预设时间段内未侦测到基于第一处理模块的数据业务,则控制模块10发送热点功能的关闭指令至第一Wi-Fi应用模块;第一Wi-Fi应用模块在接收到该关闭指令时,将接收的关闭指令发送至Wi-Fi服务模块20;Wi-Fi服务模块20在接收到该关闭指令时,将接收的关闭指令发送至第一框架子单元;第一框架子单元在接收到Wi-Fi服务模块20发送的关闭指令时,将接收的关闭指令发送至第一协议子单元;第一协议子单元在接收到第一框架子单元发送的关闭指令时,将接收的关闭指令发送至第一驱动子单元;第一驱动子单元在接收到关闭指令时,卸载当前加载的AP驱动,并断开第一Wi-Fi芯片的供电。Therefore, in the embodiment, the control module 10 processes the first processing module, so as to avoid unnecessary power consumption of the mobile terminal, after the hotspot function of the first processing module is turned on, and the network access operation of the other mobile terminal is not received for a long time. The data services of other mobile terminals carried are detected. If the data service based on the first processing module is not detected within the preset time period, the control module 10 sends a shutdown command of the hotspot function to the first Wi-Fi application module; the first Wi-Fi application module is receiving When the shutdown command is received, the received shutdown command is sent to the Wi-Fi service module 20; when receiving the shutdown command, the Wi-Fi service module 20 sends the received shutdown command to the first frame sub-unit; the first frame When receiving the shutdown instruction sent by the Wi-Fi service module 20, the subunit sends the received shutdown instruction to the first protocol subunit; when receiving the shutdown instruction sent by the first frame subunit, the first protocol subunit will The received shutdown command is sent to the first driver subunit; when receiving the shutdown command, the first driver subunit unloads the currently loaded AP driver and disconnects the power supply of the first Wi-Fi chip.
此外,若在预设时间段内侦测到基于第一处理模块的数据业务,则控制模块10维持第一处理模块的热点功能,继续为其它移动终端提供网络接入服务。In addition, if the data service based on the first processing module is detected within the preset time period, the control module 10 maintains the hotspot function of the first processing module and continues to provide network access services for other mobile terminals.
需要说明的是,本实施例并不限制前述预设时间段的取值,具体可根据移动终端的电池容量进行设置,例如,若电池容量较大,则可设置较长的预设时间段,若电池容量较小,则可设置较短的预设时间段,如本实施例缺省设置为3分钟。本领域技术人员可以理解的是,该预设时间段还可由用户指定。It should be noted that, in this embodiment, the value of the preset time period is not limited, and may be set according to the battery capacity of the mobile terminal. For example, if the battery capacity is large, a longer preset time period may be set. If the battery capacity is small, a shorter preset time period can be set, as in the embodiment, the default setting is 3 minutes. It can be understood by those skilled in the art that the preset time period can also be specified by the user.
进一步的,为避免共享网络资源的处理模块断开与外部热点的Wi-Fi连接导致移动终端提供的网络共享服务中断,在本实施例中,控制模块10在对启动热点功能的处理模块承载的其它移动终端的数据业务进行侦测的 同时,还对当前共享网络资源的处理模块的Wi-Fi连接状态进行侦测,并在侦测到当前共享网络资源的处理模块与外部热点的Wi-Fi连接断开时,发送指示Wi-Fi服务模块20更新路由配置的指示信息至Wi-Fi服务模块20;Wi-Fi服务模块20在接收到控制模块10发送的该指示信息时,更新当前启动的网络共享的路由配置,以共享当前处于Wi-Fi连接状态的其它处理模块的网络资源。Further, in order to prevent the processing module sharing the network resource from disconnecting the Wi-Fi connection with the external hotspot, the network sharing service provided by the mobile terminal is interrupted. In this embodiment, the control module 10 is carried by the processing module that activates the hotspot function. Data service detection of other mobile terminals At the same time, the Wi-Fi connection status of the processing module of the current shared network resource is detected, and the Wi-Fi indication is sent when detecting that the current shared network resource processing module is disconnected from the external hotspot Wi-Fi connection. The service module 20 updates the routing configuration indication information to the Wi-Fi service module 20; when receiving the indication information sent by the control module 10, the Wi-Fi service module 20 updates the routing configuration of the currently started network share to share the current Network resources of other processing modules in the Wi-Fi connection state.
此外,由于Wi-Fi服务模块20可分别与各个处理模块进行交互,避免了独立运行多个Wi-Fi服务模块20造成的冗余,对数据通信的流程进行了简化,能够提高数据通信效率。In addition, since the Wi-Fi service module 20 can interact with each processing module separately, the redundancy caused by independently operating the multiple Wi-Fi service modules 20 is avoided, the flow of the data communication is simplified, and the data communication efficiency can be improved.
本实施例提出的网络共享方法,应用于包括多个处理模块的移动终端,当其中一处理模块与外部热点建立有Wi-Fi连接时,可启动另一处理模块的热点功能,将移动终端连接的Wi-Fi网络共享给其它移动终端,为其它移动终端提供网络接入服务。相较于现有技术,本发明避免了对移动终端自身流量的消耗,能够降低网络共享的成本。The network sharing method in this embodiment is applied to a mobile terminal that includes multiple processing modules. When one of the processing modules establishes a Wi-Fi connection with an external hotspot, the hotspot function of another processing module may be activated, and the mobile terminal is connected. The Wi-Fi network is shared with other mobile terminals to provide network access services for other mobile terminals. Compared with the prior art, the present invention avoids the consumption of the mobile terminal's own traffic and can reduce the cost of network sharing.
结合参照图1、图2以及图7,在本发明网络共享方法的第二实施例中,该网络共享方法包括:With reference to FIG. 1 , FIG. 2 and FIG. 7 , in the second embodiment of the network sharing method of the present invention, the network sharing method includes:
步骤S10,在接收到网络共享操作时,控制模块10确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块;Step S10, when receiving the network sharing operation, the control module 10 determines a first processing module that does not establish a Wi-Fi connection with the external hotspot in each processing module;
步骤S60,在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块10基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;Step S60, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
具体可以为,控制模块10确定各个处理模块中可用带宽最大的第三处理模块,再确定各个处理模块中除第三处理模块之外支持带宽最小的第四处理模块;Specifically, the control module 10 determines a third processing module with the largest available bandwidth in each processing module, and then determines a fourth processing module that supports the smallest bandwidth among the processing modules except the third processing module.
步骤S70,控制模块10发送开启指令至对应第四处理模块的第四Wi-Fi应用模块,以启动第四处理模块的热点功能;Step S70: The control module 10 sends an open command to the fourth Wi-Fi application module corresponding to the fourth processing module to start the hotspot function of the fourth processing module.
步骤S80,在热点功能启动成功时,Wi-Fi服务模块20启动网络共享的路由配置,由第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。In step S80, when the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state.
本实施例中,该移动终端100的Wi-Fi应用模块提供相应的Wi-Fi应用 操作界面,并基于控制模块10通过移动终端100的显示单元151呈现给用户,供用户通过Wi-Fi应用操作界面进行相应的控制与操作。例如,第三Wi-Fi应用模块和第四Wi-Fi应用模块可用通过Wi-Fi服务模块20分别控制第三处理模块和第四处理模块的连接/断开。第三处理模块和第四处理模块分别处理第三Wi-Fi应用模块和第四Wi-Fi应用模块下发的指令以及Wi-Fi热点的连接状态信息等。此外,Wi-Fi应用模块还基于控制模块10通过移动终端100的显示单元151向用户提供网络共享界面,如图3所示,在该网络共享界面提供有热点启动按钮,当用户需要共享移动终端连接的Wi-Fi热点网络资源时,用户可以点击该网络共享界面的热点启动按钮,开启移动终端的网络共享功能。In this embodiment, the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application. The operation interface is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to perform corresponding control and operation through the Wi-Fi application operation interface. For example, the third Wi-Fi application module and the fourth Wi-Fi application module may respectively control connection/disconnection of the third processing module and the fourth processing module through the Wi-Fi service module 20. The third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like. In addition, the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100. As shown in FIG. 3, a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal. When the connected Wi-Fi hotspot network resource is available, the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
具体的,控制模块10在接收到用户的网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块。其中,处理模块未与外部热点建立Wi-Fi连接是指处理模块未工作在STA(Station,站点)模式,包括处理模块工作在AP(Access Point,接入点)模式,以及处理模块处于关闭状态等。Specifically, when receiving the network sharing operation of the user, the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot. The processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
可以理解的是,若控制模块10侦测到各个处理模块均与外部热点建立有Wi-Fi连接,说明此时可基于任一处理模块连接的Wi-Fi网络提供网络接入服务。为提供较高的网络接入质量,本实施例基于当前连接的Wi-Fi网络中网络质量较好的Wi-Fi网络提供网络接入服务。本实施例中,控制模块10在各个处理模块均与外部热点建立有Wi-Fi连接时,进一步确定各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中除第三处理模块之外支持带宽最大的第四处理模块。It can be understood that if the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
在确定第三处理模块以及第四处理模块之后,控制模块10触发热点功能的开启指令,并将该开启指令发送至第四处理模块对应的第四Wi-Fi应用模块。After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application module corresponding to the fourth processing module.
第四Wi-Fi应用模块在接收到该开启指令时,将接收的开启指令发送至Wi-Fi服务模块20。The fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
Wi-Fi服务模块20接收到该开启指令时,将接收的开启指令发送至第四处理模块。When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
当第四处理模块接收到该开启指令时,根据该开启指令以及对应的驱 动启动热点功能。具体的,参照图4,第四处理模块包括第四框架子单元、第四协议子单元、第四驱动子单元以及第四Wi-Fi芯片,其中,第四框架子单元在接收到Wi-Fi服务模块20发送的开启指令时,将接收的开启指令发送至第四协议子单元。第四协议子单元在接收到该开启指令时,发送指示信息至第四驱动子单元,以指示第四驱动子单元加载预设的AP驱动,其中,第四驱动子单元在加载AP驱动时,需要重新初始化第四Wi-Fi芯片,并卸载当前加载的STA驱动,再加载AP驱动;第四协议子单元还选择对应AP驱动的协议,并将选中的协议以及接收的开启指令经由第四驱动子单元发送至第四Wi-Fi芯片,此时,第四Wi-Fi芯片工作在AP模式,即开启了热点功能,相应的,第四Wi-Fi芯片在接收到工作在STA模式的其它移动终端发送的网络接入请求时,根据该协议与其它移动终端进行空口交互,建立Wi-Fi连接。同时,第四Wi-Fi芯片在启动热点功能之后,返回启动成功的指示信息至控制模块10。When the fourth processing module receives the open command, according to the open command and the corresponding drive Start the hotspot function. Specifically, referring to FIG. 4, the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi When the service module 20 sends an open command, the received open command is sent to the fourth protocol subunit. When receiving the open command, the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver. The fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver. The subunit is sent to the fourth Wi-Fi chip. At this time, the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode. When the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection. At the same time, after the hotspot function is activated, the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
控制模块10在接收到第四Wi-Fi芯片返回的启动成功的指示信息之后,发送指示数据模块30完成路由配置的指示信息至数据模块30。数据模块30在接收到该完成路由配置的指示信息时,将预设的网络共享的路由配置经由控制模块10下发至Wi-Fi服务模块20。Wi-Fi服务模块在接收到该网络共享的路由配置时,启动该网络共享的路由配置,由第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源,实现网络共享。After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30. The data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration. When receiving the routing configuration of the network sharing, the Wi-Fi service module starts the routing configuration of the network sharing, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
需要说明的是,在实际应用场景中,外部热点提供的网络接入服务并不都是免费的,而且,存在处理模块连接内网热点的情况,若共享该内网热点的网络资源,将不能够为其它移动终端提供外网的接入服务,因此,为满足特定的用户需求,提升用户体验,本实施例中,步骤S60之前,还包括:It should be noted that, in the actual application scenario, the network access services provided by the external hotspots are not all free, and there is a case where the processing module connects to the intranet hotspot. If the network resources of the intranet hotspot are shared, The access service of the external network can be provided for other mobile terminals. Therefore, in order to meet the specific user requirements and improve the user experience, in the embodiment, before step S60, the method further includes:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块10获取默认网络共享配置;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 acquires a default network sharing configuration;
在获取默认网络共享配置失败时,转入执行步骤S60;When the acquisition of the default network share configuration fails, the process proceeds to step S60;
控制模块10获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration, the control module 10 further includes:
在获取到默认网络共享配置时,控制模块10发送热点功能的开启指令至默认网络共享配置指定的第五Wi-Fi应用模块,以启动第五Wi-Fi应用模 块对应的第五处理模块的热点功能;When obtaining the default network sharing configuration, the control module 10 sends an open command of the hotspot function to the fifth Wi-Fi application module specified by the default network sharing configuration to start the fifth Wi-Fi application module. The hotspot function of the fifth processing module corresponding to the block;
在热点功能启动成功时,Wi-Fi服务模块20启动网络共享的路由配置,由第五处理模块共享默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fifth processing module shares the network resources of the sixth processing module specified by the default network sharing configuration.
其中,控制模块10启动第五处理模块共享默认网络共享配置指定的第六处理模块的网络资源的过程可参照前述实施例,此处不再赘述。此外,该默认网络共享配置由控制模块10基于用户预先输入的数据设置,例如,用户可将连接流量免费的外部热点的处理模块设置为第六处理模块,还可将连接内网热点的处理模块设置为第五处理模块,将连接外网热点的处理模块设置为第六处理模块。The process of the control module 10 for initiating the fifth processing module to share the network resource of the sixth processing module specified by the default network sharing configuration may be referred to the foregoing embodiment, and details are not described herein again. In addition, the default network sharing configuration is set by the control module 10 based on data input by the user in advance. For example, the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
进一步的,为便于用户使用,使得用户能够在需要时对该默认网络共享配置进行修改,在本实施例中,控制模块10还用于在接收到默认网络共享配置的更新指令时,基于接收的所述更新指令对当前的默认网络共享配置进行调整。其中,用户对默认网络共享配置的调整可按实际需要进行。Further, for the user to use, the user can modify the default network sharing configuration when needed. In this embodiment, the control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
进一步的,由于在启动处理模块的热点功能之前,处理模块与外部热点建立有Wi-Fi连接,其承载有其所在移动终端100的部分数据业务,为避免启动处理模块的热点功能后导致其之前承载的部分数据业务中断,在本实施例中,控制模块10发送热点功能的开启指令之前,还包括:Further, before the hotspot function of the processing module is started, the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module, The data service of the bearer is interrupted. In this embodiment, before the control module 10 sends the hot-start function, the control module 10 further includes:
控制模块10将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module 10 switches the data service carried by the processing module to be activated to the hotspot function to the processing module of the network resource to be shared.
例如,控制模块10在发送热点功能的开启指令至第四处理模块对应的第四应用模块之前,将第四处理模块承载的数据业务切换至第三处理模块。For example, the control module 10 switches the data service carried by the fourth processing module to the third processing module before sending the open command of the hotspot function to the fourth application module corresponding to the fourth processing module.
具体的,控制模块10发送指示数据模块30完成数据业务切换的指示信息至数据模块30;数据模块30在接收到该数据业务切换的指示信息时,更改对应的网络配置,将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。Specifically, the control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated. The data service carried by the processing module is switched to the processing module of the network resource to be shared.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制 的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements not explicitly listed, or elements that are inherent to such a process, method, article, or device. No more restrictions In the case of an element defined by the phrase "comprising a ...", it is not excluded that the same element is present in the process, method, article or device including the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本发明实施例还提供了一种移动终端,包括:The embodiment of the invention further provides a mobile terminal, including:
存储介质,配置为存储计算机可执行指令;a storage medium configured to store computer executable instructions;
处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令包括:a processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions comprising:
在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。 When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
本实施例中,该移动终端100的Wi-Fi应用模块提供相应的Wi-Fi应用操作界面,并基于控制模块10通过移动终端100的显示单元151呈现给用户,供用户通过Wi-Fi应用操作界面进行相应的控制与操作。例如,第三Wi-Fi应用模块和第四Wi-Fi应用模块可用通过Wi-Fi服务模块20分别控制第三处理模块和第四处理模块的连接/断开。第三处理模块和第四处理模块分别处理第三Wi-Fi应用模块和第四Wi-Fi应用模块下发的指令以及Wi-Fi热点的连接状态信息等。此外,Wi-Fi应用模块还基于控制模块10通过移动终端100的显示单元151向用户提供网络共享界面,如图3所示,在该网络共享界面提供有热点启动按钮,当用户需要共享移动终端连接的Wi-Fi热点网络资源时,用户可以点击该网络共享界面的热点启动按钮,开启移动终端的网络共享功能。In this embodiment, the Wi-Fi application module of the mobile terminal 100 provides a corresponding Wi-Fi application operation interface, and is presented to the user through the display unit 151 of the mobile terminal 100 based on the control module 10 for the user to operate through the Wi-Fi application. The interface performs corresponding control and operation. For example, the third Wi-Fi application module and the fourth Wi-Fi application module may respectively control connection/disconnection of the third processing module and the fourth processing module through the Wi-Fi service module 20. The third processing module and the fourth processing module respectively process instructions issued by the third Wi-Fi application module and the fourth Wi-Fi application module, and connection state information of the Wi-Fi hotspot, and the like. In addition, the Wi-Fi application module further provides a network sharing interface to the user through the display unit 151 of the mobile terminal 100. As shown in FIG. 3, a hotspot activation button is provided on the network sharing interface, when the user needs to share the mobile terminal. When the connected Wi-Fi hotspot network resource is available, the user can click the hotspot start button of the network sharing interface to enable the network sharing function of the mobile terminal.
具体的,控制模块10在接收到用户的网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块。其中,处理模块未与外部热点建立Wi-Fi连接是指处理模块未工作在STA(Station,站点)模式,包括处理模块工作在AP(Access Point,接入点)模式,以及处理模块处于关闭状态等。Specifically, when receiving the network sharing operation of the user, the control module 10 determines a first processing module of each processing module that does not establish a Wi-Fi connection with an external hotspot. The processing module does not establish a Wi-Fi connection with the external hotspot, that is, the processing module does not work in the STA (Station) mode, and the processing module works in the AP (Access Point) mode, and the processing module is in the closed state. Wait.
可以理解的是,若控制模块10侦测到各个处理模块均与外部热点建立有Wi-Fi连接,说明此时可基于任一处理模块连接的Wi-Fi网络提供网络接入服务。为提供较高的网络接入质量,本实施例基于当前连接的Wi-Fi网络中网络质量较好的Wi-Fi网络提供网络接入服务。本实施例中,控制模块10在各个处理模块均与外部热点建立有Wi-Fi连接时,进一步确定各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中除第三处理模块之外支持带宽最大的第四处理模块。It can be understood that if the control module 10 detects that each processing module has a Wi-Fi connection with an external hotspot, it indicates that the network access service can be provided based on the Wi-Fi network connected by any processing module. In order to provide a high network access quality, the present embodiment provides a network access service based on a Wi-Fi network with better network quality in the currently connected Wi-Fi network. In this embodiment, when each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 further determines a third processing module with the largest available bandwidth in each processing module, and determines a third processing module among the processing modules. The fourth processing module with the largest bandwidth is supported.
在确定第三处理模块以及第四处理模块之后,控制模块10触发热点功能的开启指令,并将该开启指令发送至第四处理模块对应的第四Wi-Fi应用 模块。After determining the third processing module and the fourth processing module, the control module 10 triggers an opening instruction of the hotspot function, and sends the opening instruction to the fourth Wi-Fi application corresponding to the fourth processing module. Module.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
第四Wi-Fi应用模块在接收到该开启指令时,将接收的开启指令发送至Wi-Fi服务模块20。The fourth Wi-Fi application module sends the received open command to the Wi-Fi service module 20 when receiving the open command.
Wi-Fi服务模块20接收到该开启指令时,将接收的开启指令发送至第四处理模块。When receiving the open command, the Wi-Fi service module 20 sends the received open command to the fourth processing module.
当第四处理模块接收到该开启指令时,根据该开启指令以及对应的驱动启动热点功能。具体的,参照图4,第四处理模块包括第四框架子单元、第四协议子单元、第四驱动子单元以及第四Wi-Fi芯片,其中,第四框架子单元在接收到Wi-Fi服务模块20发送的开启指令时,将接收的开启指令发送至第四协议子单元。第四协议子单元在接收到该开启指令时,发送指示信息至第四驱动子单元,以指示第四驱动子单元加载预设的AP驱动,其中,第四驱动子单元在加载AP驱动时,需要重新初始化第四Wi-Fi芯片,并卸载当前加载的STA驱动,再加载AP驱动;第四协议子单元还选择对应AP驱动的协议,并将选中的协议以及接收的开启指令经由第四驱动子单元发送至第四Wi-Fi芯片,此时,第四Wi-Fi芯片工作在AP模式,即开启了热点功能,相应的,第四Wi-Fi芯片在接收到工作在STA模式的其它移动终端发送的网络接入请求时,根据该协议与其它移动终端进行空口交互,建立Wi-Fi连接。同时,第四Wi-Fi芯片在启动热点功能之后,返回启动成功的指示信息至控制模块10。When the fourth processing module receives the open command, the hotspot function is activated according to the open command and the corresponding driver. Specifically, referring to FIG. 4, the fourth processing module includes a fourth frame subunit, a fourth protocol subunit, a fourth driving subunit, and a fourth Wi-Fi chip, wherein the fourth frame subunit receives the Wi-Fi When the service module 20 sends an open command, the received open command is sent to the fourth protocol subunit. When receiving the open command, the fourth protocol subunit sends the indication information to the fourth driver subunit to instruct the fourth driver subunit to load the preset AP driver, where the fourth driver subunit is loaded with the AP driver. The fourth Wi-Fi chip needs to be re-initialized, and the currently loaded STA driver is uninstalled, and then the AP driver is loaded; the fourth protocol sub-unit further selects a protocol corresponding to the AP driver, and the selected protocol and the received opening command are transmitted via the fourth driver. The subunit is sent to the fourth Wi-Fi chip. At this time, the fourth Wi-Fi chip operates in the AP mode, that is, the hotspot function is enabled, and correspondingly, the fourth Wi-Fi chip receives other mobiles working in the STA mode. When the network access request is sent by the terminal, the air interface is exchanged with other mobile terminals according to the protocol to establish a Wi-Fi connection. At the same time, after the hotspot function is activated, the fourth Wi-Fi chip returns an indication of successful startup to the control module 10.
控制模块10在接收到第四Wi-Fi芯片返回的启动成功的指示信息之后,发送指示数据模块30完成路由配置的指示信息至数据模块30。数据模块30在接收到该完成路由配置的指示信息时,将预设的网络共享的路由配置经由控制模块10下发至Wi-Fi服务模块20。Wi-Fi服务模块在接收到该网 络共享的路由配置时,启动该网络共享的路由配置,由第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源,实现网络共享。After receiving the indication information indicating that the fourth Wi-Fi chip returns success, the control module 10 sends indication information indicating that the data module 30 completes the routing configuration to the data module 30. The data module 30 sends the preset network shared routing configuration to the Wi-Fi service module 20 via the control module 10 when receiving the indication information of the completed routing configuration. The Wi-Fi service module receives the network When the shared route configuration is configured, the route configuration of the network share is started, and the fourth processing module shares the network resources of the third processing module in the Wi-Fi connection state to implement network sharing.
需要说明的是,在实际应用场景中,外部热点提供的网络接入服务并不都是免费的,而且,存在处理模块连接内网热点的情况,若共享该内网热点的网络资源,将不能够为其它移动终端提供外网的接入服务,因此,为满足特定的用户需求,提升用户体验,本实施例中,步骤S60之前,还包括:It should be noted that, in the actual application scenario, the network access services provided by the external hotspots are not all free, and there is a case where the processing module connects to the intranet hotspot. If the network resources of the intranet hotspot are shared, The access service of the external network can be provided for other mobile terminals. Therefore, in order to meet the specific user requirements and improve the user experience, in the embodiment, before step S60, the method further includes:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块10获取默认网络共享配置;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module 10 acquires a default network sharing configuration;
在获取默认网络共享配置失败时,转入执行步骤S60;When the acquisition of the default network share configuration fails, the process proceeds to step S60;
控制模块10获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration, the control module 10 further includes:
在获取到默认网络共享配置时,控制模块10发送热点功能的开启指令至默认网络共享配置指定的第五Wi-Fi应用模块,以启动第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network share configuration is obtained, the control module 10 sends an open command of the hotspot function to the fifth Wi-Fi application module specified by the default network share configuration to start the hotspot of the fifth processing module corresponding to the fifth Wi-Fi application module. Features;
在热点功能启动成功时,Wi-Fi服务模块20启动网络共享的路由配置,由第五处理模块共享默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module 20 starts the routing configuration of the network sharing, and the fifth processing module shares the network resources of the sixth processing module specified by the default network sharing configuration.
其中,控制模块10启动第五处理模块共享默认网络共享配置指定的第六处理模块的网络资源的过程可参照前述实施例,此处不再赘述。此外,该默认网络共享配置由控制模块10基于用户预先输入的数据设置,例如,用户可将连接流量免费的外部热点的处理模块设置为第六处理模块,还可将连接内网热点的处理模块设置为第五处理模块,将连接外网热点的处理模块设置为第六处理模块。The process of the control module 10 for initiating the fifth processing module to share the network resource of the sixth processing module specified by the default network sharing configuration may be referred to the foregoing embodiment, and details are not described herein again. In addition, the default network sharing configuration is set by the control module 10 based on data input by the user in advance. For example, the processing module that the user can connect the external hotspot with free connection traffic is set as the sixth processing module, and the processing module that connects the intranet hotspot may also be configured. It is set as the fifth processing module, and the processing module that connects the external hotspot is set as the sixth processing module.
进一步的,为便于用户使用,使得用户能够在需要时对该默认网络共享配置进行修改,在本实施例中,控制模块10还用于在接收到默认网络共享配置的更新指令时,基于接收的所述更新指令对当前的默认网络共享配置进行调整。其中,用户对默认网络共享配置的调整可按实际需要进行。Further, for the user to use, the user can modify the default network sharing configuration when needed. In this embodiment, the control module 10 is further configured to receive the update command of the default network sharing configuration based on the received The update instruction adjusts the current default network share configuration. The adjustment of the default network sharing configuration by the user can be performed as needed.
进一步的,由于在启动处理模块的热点功能之前,处理模块与外部热点建立有Wi-Fi连接,其承载有其所在移动终端100的部分数据业务,为避免启动处理模块的热点功能后导致其之前承载的部分数据业务中断,在本实施例中,控制模块10发送热点功能的开启指令之前,还包括: Further, before the hotspot function of the processing module is started, the processing module establishes a Wi-Fi connection with the external hotspot, which carries a part of the data service of the mobile terminal 100, so as to avoid starting the hotspot function of the processing module, The data service of the bearer is interrupted. In this embodiment, before the control module 10 sends the hot-start function, the control module 10 further includes:
控制模块10将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module 10 switches the data service carried by the processing module to be activated to the hotspot function to the processing module of the network resource to be shared.
例如,控制模块10在发送热点功能的开启指令至第四处理模块对应的第四应用模块之前,将第四处理模块承载的数据业务切换至第三处理模块。For example, the control module 10 switches the data service carried by the fourth processing module to the third processing module before sending the open command of the hotspot function to the fourth application module corresponding to the fourth processing module.
具体的,控制模块10发送指示数据模块30完成数据业务切换的指示信息至数据模块30;数据模块30在接收到该数据业务切换的指示信息时,更改对应的网络配置,将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。Specifically, the control module 10 sends the indication information indicating that the data module 30 completes the data service switching to the data module 30; when receiving the indication information of the data service switching, the data module 30 changes the corresponding network configuration, and the hotspot function is to be activated. The data service carried by the processing module is switched to the processing module of the network resource to be shared.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
所述控制模块获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration by the control module, the method further includes:
在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
可选的,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:Optionally, configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务 时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。Data service based on the processing module that activates the hotspot function is not detected within the preset time period The control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off its hotspot function.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The embodiment of the invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所 述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, The control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines a fourth processing module with the smallest available bandwidth in each processing module.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
可选的,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:Optionally, the computer storage medium stores computer executable instructions, where the computer executable instructions include:
在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务 时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。Data service based on the processing module that activates the hotspot function is not detected within the preset time period The control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off its hotspot function.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
出于解释的目的,前面的描述使用了特定的术语,以提供对本发明的透彻理解。然而,对本领域的技术人员来说显而易见的是,为了实践本发明并不需要具体的细节。本发明的具体实施例的前述描述是为了图示和说明的目的而呈现。它们并不意在详尽的或将本发明限于所公开的准确形式。鉴于上面的教义,许多修改和变化是可能的。为了最好地解释本发明的原理及其实际应用而示出并描述了这些实施例,从而使本领域的其他技术人员能够最好地利用本发明和具有适于预期的特定使用的各种修改的各种实施例。意在本发明的范围由随后的权利要求和其等同物来限定。 For purposes of explanation, the foregoing description has been used in a specific However, it will be apparent to those skilled in the art that <RTIgt; The foregoing description of the specific embodiments of the invention has been presented They are not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiments are shown and described in order to best explain the principles of the invention and the embodiments of the invention Various embodiments. The scope of the invention is intended to be defined by the appended claims and their equivalents.

Claims (32)

  1. 一种移动终端,所述移动终端包括控制模块,与所述控制模块分别连接的多个Wi-Fi应用模块、与多个所述Wi-Fi应用模块连接的Wi-Fi服务模块、以及与所述Wi-Fi服务模块连接且与多个所述Wi-Fi应用模块一一对应的多个处理模块,其中,A mobile terminal, comprising: a control module, a plurality of Wi-Fi application modules respectively connected to the control module, a Wi-Fi service module connected to the plurality of the Wi-Fi application modules, and a a plurality of processing modules connected to the Wi-Fi service module and corresponding to the plurality of the Wi-Fi application modules, wherein
    所述控制模块用于在接收到网络共享操作时,确定各个处理模块中未与外部热点建立Wi-Fi连接的第一处理模块;以及发送热点功能的开启指令至对应所述第一处理模块的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module is configured to: when receiving a network sharing operation, determine a first processing module that does not establish a Wi-Fi connection with an external hotspot in each processing module; and send an open command of the hotspot function to the first processing module a first Wi-Fi application module, configured to send, by the first Wi-Fi application module, the open command to a Wi-Fi service module;
    所述Wi-Fi服务模块用于在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module is configured to send the open command to the first processing module when receiving the open command;
    所述第一处理模块用于在接收到所述Wi-Fi服务模块发送的所述开启指令时,根据所述开启指令启动热点功能;The first processing module is configured to: when receiving the opening instruction sent by the Wi-Fi service module, start a hotspot function according to the opening instruction;
    所述Wi-Fi服务模块还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。The Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  2. 根据权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述控制模块还用于在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;以及发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module is further configured to: when each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module; and sends the opening instruction And a fourth Wi-Fi application module corresponding to the fourth processing module to activate a hotspot function of the fourth processing module;
    所述Wi-Fi服务模块,还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。The Wi-Fi service module is further configured to start a route configuration of the network share when the hotspot function is successfully started, and share, by the fourth processing module, network resources of the third processing module that is in a Wi-Fi connection state.
  3. 根据权利要求2所述的移动终端,其中, The mobile terminal of claim 2, wherein
    所述控制模块,还用于在各个所述处理模块均与外部热点建立有Wi-Fi连接时,确定各个所述处理模块中可用带宽最大的第三处理模块,以及确定各个所述处理模块中可用带宽最小的第四处理模块;The control module is further configured to: when each of the processing modules establishes a Wi-Fi connection with an external hotspot, determine a third processing module that has the largest available bandwidth in each of the processing modules, and determine each of the processing modules a fourth processing module with the smallest available bandwidth;
  4. 根据权利要求3所述的移动终端,其中,所述控制模块还用于在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,获取默认网络共享配置;以及在获取所述默认网络共享配置失败时,确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块.The mobile terminal according to claim 3, wherein the control module is further configured to acquire a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot; When the default network sharing configuration fails, determining a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determining a fourth processing module with the smallest available bandwidth in each processing module.
  5. 根据权利要求3所述的移动终端,其中,所述控制模块还用于在获取到所述默认网络共享配置时,发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;The mobile terminal according to claim 3, wherein the control module is further configured to: when the default network sharing configuration is acquired, send the opening instruction to the fifth Wi-Fi application specified by the default network sharing configuration a module, configured to activate a hotspot function of a fifth processing module corresponding to the fifth Wi-Fi application module;
    所述Wi-Fi服务模块还用于在热点功能启动成功时,启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。The Wi-Fi service module is further configured to start a routing configuration of the network sharing when the hotspot function is successfully started, and the fifth processing module shares the network resource of the sixth processing module specified by the default network sharing configuration.
  6. 根据权利要求2或3所述的移动终端,其中,所述控制模块还用于将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The mobile terminal according to claim 2 or 3, wherein the control module is further configured to switch the data service carried by the processing module of the hotspot function to be switched to the processing module of the network resource to be shared.
  7. 根据权利要求1-4任一项所述的移动终端,其中,所述Wi-Fi服务模块还用于在成功启动网络共享的路由配置之后,输出网络共享成功的提示信息,以在预设显示界面显示。The mobile terminal according to any one of claims 1 to 4, wherein the Wi-Fi service module is further configured to output prompt information of successful network sharing after the routing configuration of the network sharing is successfully started, to display in a preset manner. The interface is displayed.
  8. 根据权利要求1-4任一项所述的移动终端,其中,所述控制模块还用于在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。 The mobile terminal according to any one of claims 1 to 4, wherein the control module is further configured to send a hotspot function when a data service based on a processing module that activates a hotspot function is not detected within a preset time period. Close the command to the processing module that starts the hotspot function to turn off its hotspot function.
  9. 一种网络共享方法,所述网络共享方法包括以下步骤:A network sharing method, the network sharing method comprising the following steps:
    在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
    所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
    所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
    所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  10. 根据权利要求9所述的网络共享方法,其中,所述控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块的步骤之后,还包括:The network sharing method according to claim 9, wherein after the step of determining, by the control module, the first processing module that does not establish a Wi-Fi connection with the external hotspot, the method further includes:
    在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
    所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  11. 根据权利要求10所述的网络共享方法,其中,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块,包括:The network sharing method according to claim 10, wherein the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module, including:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所 述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, The control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines a fourth processing module with the smallest available bandwidth in each processing module.
  12. 根据权利要求11所述的网络共享方法,其中,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤之前,还包括:The network sharing method according to claim 11, wherein the control module determines a third processing module having the largest available bandwidth among the processing modules of the mobile terminal, and determining a fourth processing module having the smallest available bandwidth in each processing module. Before the steps, it also includes:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
    在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  13. 根据权利要求11所述的网络共享方法,其中,The network sharing method according to claim 11, wherein
    所述控制模块获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration by the control module, the method further includes:
    在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  14. 根据权利要求10或12所述的网络共享方法,其中,所述控制模块发送所述开启指令之前,还包括:The network sharing method according to claim 10 or 12, further comprising: before the sending, by the control module, the:
    所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  15. 根据权利要求9-12任一项所述的网络共享方法,其中,所述Wi-Fi服务模块启动网络共享的路由配置之后,还包括:The network sharing method according to any one of claims 9 to 12, wherein after the Wi-Fi service module starts the route configuration of the network share, the method further includes:
    在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共 享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a total network Enjoy successful prompt information to display on the preset display interface.
  16. 根据权利要求9-12任一项所述的网络共享方法,其中,所述Wi-Fi服务模块启动网络共享的路由配置的步骤之后,还包括:The network sharing method according to any one of claims 9 to 12, wherein after the step of starting the routing configuration of the network sharing by the Wi-Fi service module, the method further comprises:
    在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
  17. 一种移动终端,包括:A mobile terminal includes:
    存储介质,配置为存储计算机可执行指令;a storage medium configured to store computer executable instructions;
    处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令包括:a processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions comprising:
    在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
    所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块;The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
    所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
    所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  18. 根据权利要求17所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal of claim 17, the processor being configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个 处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module is based on each Processing the available bandwidth of the module, determining the third processing module and the fourth processing module;
    所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  19. 根据权利要求18所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal of claim 18, the processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
  20. 根据权利要求19所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal of claim 19, the processor being configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置;The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
    在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  21. 根据权利要求18所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal of claim 18, the processor configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    所述控制模块获取默认网络共享配置的步骤之后,还包括:After the step of obtaining the default network sharing configuration by the control module, the method further includes:
    在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配 置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts the route matching of the network share. And the network resource of the sixth processing module specified by the default network sharing configuration is shared by the fifth processing module.
  22. 根据权利要求19或21所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal of claim 19 or 21, the processor being configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  23. 根据权利要求17-20任一项所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal according to any one of claims 17 to 20, wherein the processor is configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  24. 根据权利要求17-20任一项所述的移动终端,所述处理器,配置为执行存储在所述存储介质上的计算机可执行指令,所述计算机可执行指令还包括:The mobile terminal according to any one of claims 17 to 20, wherein the processor is configured to execute computer executable instructions stored on the storage medium, the computer executable instructions further comprising:
    在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
  25. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:A computer storage medium having stored therein computer executable instructions, the computer executable instructions comprising:
    在接收到网络共享操作时,控制模块确定未与外部热点建立Wi-Fi连接的第一处理模块;Upon receiving the network sharing operation, the control module determines a first processing module that does not establish a Wi-Fi connection with the external hotspot;
    所述控制模块发送热点功能的开启指令至所述第一处理模块对应的第一Wi-Fi应用模块,以供所述第一Wi-Fi应用模块将所述开启指令发送至Wi-Fi服务模块; The control module sends an open command of the hotspot function to the first Wi-Fi application module corresponding to the first processing module, where the first Wi-Fi application module sends the open command to the Wi-Fi service module. ;
    所述Wi-Fi服务模块在接收到所述开启指令时,将所述开启指令发送至所述第一处理模块;The Wi-Fi service module sends the open command to the first processing module when receiving the open command;
    所述第一处理模块在接收到所述开启指令时,根据所述开启指令启动热点功能;The first processing module, when receiving the opening instruction, starts a hotspot function according to the opening instruction;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第一处理模块共享处于Wi-Fi连接状态的第二处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the first processing module shares the network resource of the second processing module in the Wi-Fi connection state.
  26. 根据权利要求25所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The computer storage medium of claim 25, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在各个处理模块均与外部热点建立有Wi-Fi连接时,控制模块基于各个处理模块的可用带宽,确定第三处理模块以及第四处理模块;When each processing module establishes a Wi-Fi connection with an external hotspot, the control module determines the third processing module and the fourth processing module based on the available bandwidth of each processing module;
    所述控制模块发送所述开启指令至对应所述第四处理模块的第四Wi-Fi应用模块,以启动所述第四处理模块的热点功能;The control module sends the open command to a fourth Wi-Fi application module corresponding to the fourth processing module to start a hotspot function of the fourth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第四处理模块共享处于Wi-Fi连接状态的第三处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a routing configuration of the network sharing, and the fourth processing module shares the network resource of the third processing module in the Wi-Fi connection state.
  27. 根据权利要求26所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The computer storage medium of claim 26, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块。When each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot, the control module determines a third processing module with the largest available bandwidth among the processing modules of the mobile terminal, and determines each processing module. The fourth processing module with the smallest available bandwidth.
  28. 根据权利要求27所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The computer storage medium of claim 27, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在所述移动终端的各个处理模块均与外部热点建立有Wi-Fi连接时,所述控制模块获取默认网络共享配置; The control module acquires a default network sharing configuration when each processing module of the mobile terminal establishes a Wi-Fi connection with an external hotspot;
    在获取所述默认网络共享配置失败时,执行所述控制模块确定所述移动终端的各个处理模块中可用带宽最大的第三处理模块,以及确定各个处理模块中可用带宽最小的第四处理模块的步骤。When the obtaining the default network sharing configuration fails, the control module is configured to determine a third processing module with the largest available bandwidth in each processing module of the mobile terminal, and determine a fourth processing module with the smallest available bandwidth in each processing module. step.
  29. 根据权利要求26所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:The computer storage medium of claim 26, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在获取到所述默认网络共享配置时,所述控制模块发送所述开启指令至所述默认网络共享配置指定的第五Wi-Fi应用模块,以启动所述第五Wi-Fi应用模块对应的第五处理模块的热点功能;When the default network sharing configuration is obtained, the control module sends the opening command to the fifth Wi-Fi application module specified by the default network sharing configuration, to start corresponding to the fifth Wi-Fi application module. The hotspot function of the fifth processing module;
    在热点功能启动成功时,所述Wi-Fi服务模块启动网络共享的路由配置,由所述第五处理模块共享所述默认网络共享配置指定的第六处理模块的网络资源。When the hotspot function is successfully started, the Wi-Fi service module starts a route configuration of the network share, and the fifth processing module shares the network resource of the sixth processing module specified by the default network share configuration.
  30. 根据权利要求26或28所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:A computer storage medium according to claim 26 or 28, wherein said computer storage medium stores computer executable instructions, said computer executable instructions comprising:
    所述控制模块将待启动热点功能的处理模块承载的数据业务切换至待共享网络资源的处理模块。The control module switches the data service carried by the processing module to be activated by the hotspot function to the processing module of the network resource to be shared.
  31. 根据权利要求25-28任一项所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:A computer storage medium according to any one of claims 25 to 28, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在成功启动网络共享的路由配置之后,所述Wi-Fi服务模块输出网络共享成功的提示信息,以在预设显示界面显示。After successfully starting the route configuration of the network share, the Wi-Fi service module outputs a prompt message for successful network sharing to be displayed on the preset display interface.
  32. 根据权利要求25-28任一项所述的计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令包括:A computer storage medium according to any one of claims 25 to 28, wherein the computer storage medium stores computer executable instructions, the computer executable instructions comprising:
    在预设时间段内未侦测到基于启动热点功能的处理模块的数据业务时,所述控制模块发送热点功能的关闭指令至启动热点功能的处理模块,以关闭其热点功能。 When the data service of the processing module based on the hotspot function is not detected within the preset time period, the control module sends a shutdown command of the hotspot function to a processing module that activates the hotspot function to turn off the hotspot function.
PCT/CN2017/075061 2016-03-04 2017-02-27 Mobile terminal, computer storage medium and network sharing method WO2017148354A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610126096.5A CN105813232B (en) 2016-03-04 2016-03-04 Mobile terminal and network share method
CN201610126096.5 2016-03-04

Publications (1)

Publication Number Publication Date
WO2017148354A1 true WO2017148354A1 (en) 2017-09-08

Family

ID=56467770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075061 WO2017148354A1 (en) 2016-03-04 2017-02-27 Mobile terminal, computer storage medium and network sharing method

Country Status (2)

Country Link
CN (1) CN105813232B (en)
WO (1) WO2017148354A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822740A (en) * 2020-12-28 2021-05-18 广州绿怡信息科技有限公司 Hotspot emission control method and device
CN114938528A (en) * 2022-06-20 2022-08-23 中国联合网络通信集团有限公司 Hotspot switching method, device and system and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813232B (en) * 2016-03-04 2019-09-06 努比亚技术有限公司 Mobile terminal and network share method
CN108307433B (en) * 2017-09-29 2021-06-15 努比亚技术有限公司 Wireless hotspot sharing method, mobile terminal and computer readable storage medium
CN109803249A (en) * 2019-02-25 2019-05-24 努比亚技术有限公司 A kind of WIFI network sharing method, terminal and computer readable storage medium
CN110430604B (en) * 2019-08-02 2022-03-25 深圳市康冠商用科技有限公司 Network control method, system, electronic equipment and storage medium
CN113568751A (en) * 2021-07-29 2021-10-29 深圳康佳电子科技有限公司 Task processing method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120264474A1 (en) * 2011-04-14 2012-10-18 Pantech Co., Ltd. Communication method and wireless device
CN104144515A (en) * 2013-05-08 2014-11-12 中兴通讯股份有限公司 Terminal and method for achieving network sharing of WIFI hot spots of terminal
CN104185309A (en) * 2014-08-12 2014-12-03 深圳市元征科技股份有限公司 On-board wireless local area network equipment
CN105578620A (en) * 2015-12-21 2016-05-11 努比亚技术有限公司 Network access device and method
CN105813232A (en) * 2016-03-04 2016-07-27 努比亚技术有限公司 Mobile terminal and network sharing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103619077A (en) * 2013-11-26 2014-03-05 深圳市诺威达科技有限公司 Method for sharing WIFI of mobile terminal
CN103813353A (en) * 2014-01-17 2014-05-21 深圳市金立通信设备有限公司 Method for sharing communication flows, control device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120264474A1 (en) * 2011-04-14 2012-10-18 Pantech Co., Ltd. Communication method and wireless device
CN104144515A (en) * 2013-05-08 2014-11-12 中兴通讯股份有限公司 Terminal and method for achieving network sharing of WIFI hot spots of terminal
CN104185309A (en) * 2014-08-12 2014-12-03 深圳市元征科技股份有限公司 On-board wireless local area network equipment
CN105578620A (en) * 2015-12-21 2016-05-11 努比亚技术有限公司 Network access device and method
CN105813232A (en) * 2016-03-04 2016-07-27 努比亚技术有限公司 Mobile terminal and network sharing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822740A (en) * 2020-12-28 2021-05-18 广州绿怡信息科技有限公司 Hotspot emission control method and device
CN114938528A (en) * 2022-06-20 2022-08-23 中国联合网络通信集团有限公司 Hotspot switching method, device and system and storage medium
CN114938528B (en) * 2022-06-20 2023-10-31 中国联合网络通信集团有限公司 Hot spot switching method, device, system and storage medium

Also Published As

Publication number Publication date
CN105813232B (en) 2019-09-06
CN105813232A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
WO2017148354A1 (en) Mobile terminal, computer storage medium and network sharing method
US11082815B2 (en) Method of operating function and resource of electronic device
WO2022041245A1 (en) Paging cause sending method and apparatus, and paging cause acquisition method and apparatus
WO2017219503A1 (en) Method for switching right of control, and control terminal
WO2017128708A1 (en) Mobile terminal, method for multiplexing usb interface, and storage medium
CN105578620A (en) Network access device and method
WO2020199080A1 (en) Network separation method and apparatus
WO2017210971A1 (en) Thermal imaging method and device based on mobile terminal and mobile terminal
WO2017128663A1 (en) Mobile terminal, wifi control method and storage medium
US20230180126A1 (en) Methods, and apparatuses for controlling terminal
JP2021141561A (en) Method, device and medium for handling paging collision of dual sim portable phone, device and medium
KR20180105676A (en) How to set up service connection, device, program and storage medium
WO2022217473A1 (en) Method and apparatus for distinguishing paging capability of base station, and communication device
WO2022174393A1 (en) Capability exchange method and apparatus, and exchange triggering method and apparatus
WO2022052070A1 (en) Connection control method and connection control apparatus
WO2020056740A1 (en) Access control barring method and apparatus
WO2022227074A1 (en) Indication transceiving method, indication method, and response determination method
CN116708046B (en) Router closing method, system and router
US11659613B2 (en) Communication method and communication apparatus
WO2022217471A1 (en) Method and apparatus for distinguishing paging capability of base station, and communication device
WO2024011528A1 (en) Port switching method and apparatus, and port switching indication method and apparatus
WO2024031387A1 (en) Information processing method and apparatus, communication device, and storage medium
WO2022213394A1 (en) Indication method and apparatus, and paging control method and apparatus
WO2024031391A1 (en) Ranging or sidelink positioning method and apparatus, communication device, and storage medium
WO2024031400A1 (en) Method for determining to activate or deactivate secondary cell, and apparatus and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17759205

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17759205

Country of ref document: EP

Kind code of ref document: A1