WO2019015649A1 - Wireless network connecting method and mobile terminal - Google Patents

Wireless network connecting method and mobile terminal Download PDF

Info

Publication number
WO2019015649A1
WO2019015649A1 PCT/CN2018/096296 CN2018096296W WO2019015649A1 WO 2019015649 A1 WO2019015649 A1 WO 2019015649A1 CN 2018096296 W CN2018096296 W CN 2018096296W WO 2019015649 A1 WO2019015649 A1 WO 2019015649A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
scan
network connection
scanning
wireless network
Prior art date
Application number
PCT/CN2018/096296
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 WO2019015649A1 publication Critical patent/WO2019015649A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a wireless network connection method and a mobile terminal.
  • Wi-Fi technology has become popular in mobile terminals. With the development of wireless networks, its usage rate is also increasing. Decreasing the power consumption of Wi-Fi modules will also greatly help each vendor to improve its own market competitiveness.
  • the Wi-Fi module includes an application processor (AP) and a modem (modem).
  • AP application processor
  • modem modem
  • a wireless network connection method is provided, which is applied to a mobile terminal, where the mobile terminal includes an application processor AP end and a modem end, and the method includes:
  • the AP end After the mobile terminal is off the screen, the AP end enters a sleep state; after the modem end establishes a wireless network connection with the target router, the connection information is sent to the AP end; the AP end enters an awake state, and the The modem side establishes a data transmission channel.
  • a mobile terminal including an AP end and a modem end, where the AP end is configured to enter a sleep state after the mobile terminal is off screen; upon receiving the slave modem end After the information is connected, the awake state is entered, and a data transmission channel is established with the modem end.
  • the modem terminal is configured to send connection information to the AP end after establishing a wireless network connection with the target router.
  • a mobile terminal including: a memory, a processor, and a program stored on the memory and executable on the processor, when the program is executed by the processor.
  • a computer readable storage medium wherein the computer readable storage medium stores a program thereon, the program being executed by a processor to implement the steps of the wireless network connection method as described above .
  • FIG. 1 is a flow chart showing the steps of a wireless network connection method, in accordance with some embodiments of the present disclosure
  • FIG. 2 is a flow chart showing the steps of a wireless network connection method according to further embodiments of the present disclosure
  • FIG. 3 is a flow chart showing the steps of a wireless network connection method according to further embodiments of the present disclosure.
  • FIG. 4 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure.
  • FIG. 5 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure.
  • FIG. 6 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure.
  • FIG. 7 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure.
  • the embodiments of the present disclosure provide a wireless network connection method and a mobile terminal, so as to solve the problem that the mobile terminal consumes a large amount of power in the wireless network connection process existing in the related art.
  • the wireless network connection method of the embodiment of the present disclosure includes the following steps 101 to 103.
  • Step 101 After the mobile terminal is off the screen, the AP end enters a sleep state.
  • the wireless network connection method in the embodiment of the present disclosure is applicable to a mobile terminal.
  • the mobile terminal includes an AP end and a modem end, that is, a modem end.
  • the AP end and the modem end are in a working state; after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state to scan and connect to the target router.
  • Step 102 After establishing a wireless network connection with the target router, the modem end sends the connection information to the AP end.
  • the router information may be a router identifier.
  • the modem side establishes a wireless network connection with each router one by one until the wireless network connection with a certain router is established successfully.
  • the modem end After scanning the plurality of routers, the modem end determines at least one router to be connected from the scanned routers according to the stored router information in the mobile terminal; and then establishes wirelessly with each router to be connected one by one. Network connection until the wireless network connection to a router to be connected is established.
  • Step 103 The AP end enters an awake state, and establishes a data transmission channel with the modem end. After receiving the connection information sent by the modem, the AP enters the awake state and establishes a data transmission channel with the modem. After the AP and the modem establish a data transmission channel, the AP can transmit the data to be transmitted to the modem through the data transmission channel. At the end, the modem sends the data to be transmitted to the target router through the established wireless network connection.
  • the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art.
  • the power consumption of the mobile terminal can be reduced in terms of the modem terminal always working.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal.
  • FIG. 2 a wireless network connection method of further embodiments of the present disclosure is illustrated.
  • the wireless network connection method of the embodiment of the present disclosure includes the following steps 201 to 204.
  • Step 201 After the mobile terminal is off the screen, the AP end enters a sleep state.
  • the AP After the mobile terminal is off, the AP sends the router scan information to the modem and enters the sleep state.
  • the modem is in the working state and scans the target router according to the received router scan information.
  • Step 202 The modem end scans according to the router scan information sent by the AP, and establishes a wireless network connection with the scanned target router.
  • the router scan information includes at least one of the following: stored router information, a scan period, and a preset number of scans.
  • the preset scan times and scan cycles are preset by the developer in the mobile terminal.
  • an optional modem side scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
  • the modem side performs a router scan
  • the modem side determines whether the stored router information is included in the scan result
  • the target router corresponding to the scanned stored router information establishes a wireless network connection.
  • the modem can establish a wireless network connection with router A first, if this wireless network connection If the establishment is successful, Router A is directly determined as the target router. If the establishment of the wireless network connection fails, the modem end establishes a wireless network connection with the router B, and if it still fails, establishes a wireless network connection with the router C; if the wireless network connection establishment with the three routers fails, the router scan is performed again. Until the successful establishment of a wireless network connection with the target router.
  • an optional modem end scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
  • the modem side performs router scanning according to the scanning period
  • the specific value of the scan period can be set by a person skilled in the art according to actual needs, and is not specifically limited in the embodiment of the present disclosure, for example, the scan period is set to 2 seconds, 3 seconds, or 5 seconds.
  • the modem side when scanning to the target router, the modem side establishes a wireless network connection with the target router.
  • an optional modem terminal scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
  • the modem side scans the router and updates the number of router scans
  • the number of scans can be set by a person skilled in the art according to actual needs, for example, set to 5 times, 8 times, 10 times, and the like.
  • the modem end when scanning to the target router, the modem end establishes a wireless network connection with the target router;
  • the modem side When the modem side scans the router, it may scan multiple routers, so it is necessary to determine one target router from among the multiple routers scanned. When connecting to the target router from the scanned router, you can connect the scanned routers one by one until the network connection is successfully established with a scanned router. The currently connected router is the target router.
  • the modem determines if the number of router scans exceeds the preset number of scans; if so, stops the router scan operation; otherwise, continues the router scan.
  • connection target router is scanned according to a single parameter of the stored router information, the scanning period, and the preset scanning times.
  • any two of the three may be Or combine the three to scan the connection target router.
  • Step 203 The modem sends the connection information to the AP.
  • the connection information carries the target router information.
  • Step 204 The AP end enters an awake state, and establishes a data transmission channel with the modem end.
  • the AP end After the AP end establishes a data transmission channel with the modem end, the AP end can transmit the data to be transmitted to the modem end through the data transmission channel, and the modem end sends the data to be transmitted to the target router through the established wireless network connection.
  • the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art.
  • the power consumption of the mobile terminal can be reduced in terms of the modem terminal always working.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal.
  • FIG. 3 a wireless network connection method of further embodiments of the present disclosure is illustrated.
  • the wireless network connection method of the embodiment of the present disclosure includes the following steps 301 to 309.
  • Step 301 After the mobile terminal is off the screen, the AP end enters a sleep state.
  • the AP After the mobile terminal is off, the AP sends the router scan information to the modem and enters the sleep state.
  • the modem is in the working state and scans the target router according to the received router scan information.
  • the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
  • the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step as an example for description.
  • the parameters of the preset scan times, the initial scan period, the maximum scan period, and the scan period increment step are preset by the developer in the mobile terminal.
  • the specific procedure for the modem side to scan the target router to establish a wireless network connection is as described in steps 302 through.
  • Step 302 The modem end performs router scanning according to an initial scanning period.
  • Step 303 Determine whether to scan the target router and update the number of router scans.
  • step 303 is performed once.
  • Step 304 When scanning to the target router, the modem end establishes a wireless network connection with the target router; then step 308 is performed.
  • the modem side When the modem side scans the router, it may scan multiple routers, so it is necessary to determine one target router from among the multiple routers scanned. When connecting to the target router from the scanned router, you can connect the scanned routers one by one until the network connection is successfully established with a scanned router. The currently connected router is the target router.
  • Step 305 When the number of scans is equal to the preset number of scans and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period.
  • the initial scan period is 10 seconds
  • the scan period is incremented by 5 seconds
  • the adjusted scan period is 15 seconds.
  • Step 306 Determine whether the adjusted scan period is greater than the maximum scan period; if yes, stop the router scan operation; if not, execute step 307.
  • Step 307 Perform a router scan according to the adjusted scan period, and return to step 303.
  • steps 303 to 307 The flow shown in steps 303 to 307 is repeatedly executed until the target router is successfully scanned, or the scan cycle is adjusted to exceed the maximum scan period, and the router scan operation is stopped.
  • the initial scan period is 10 seconds
  • the preset scan count is 3 times
  • the scan period increment step is 5 seconds
  • the maximum scan period is 20 seconds.
  • the router scan the router scans the router for 10 seconds in the initial scan cycle. If the target router is not scanned after 3 scans, the scan cycle is adjusted to 15 seconds and then the router scans. If the scan is still not scanned after 3 scans. To the target router, the scan cycle is adjusted to 20 seconds and then the router scans. If the target router is not scanned after 3 scans, the scan cycle is not adjusted, but the router scan operation is stopped.
  • the router scan when the adjusted scan period is equal to the maximum scan period, the router scan may be performed according to the maximum scan period until the target router is successfully scanned, and the object of the present disclosure may also be achieved. .
  • Step 308 The modem sends the connection information to the AP.
  • the connection information carries the target router information.
  • Step 309 The AP end enters an awake state, and establishes a data transmission channel with the modem end.
  • the AP end After the AP end establishes a data transmission channel with the modem end, the AP end can transmit the data to be transmitted to the modem end through the data transmission channel, and the modem end sends the data to be transmitted to the target router through the established wireless network connection.
  • the AP end after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art.
  • the power consumption of the mobile terminal can be reduced in terms of the modem terminal always working.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal.
  • the scanning period is flexibly adjusted and the scanning period is extended along with the increase of the number of scanning failures, thereby avoiding frequent scanning and increasing the workload of the AP end.
  • FIG. 4 a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
  • the mobile terminal of the embodiment of the present disclosure includes: an AP end 401 and a modem end 402; the AP end 401 is configured to enter a sleep state after the mobile terminal is turned off; and enter a awake state after receiving the connection information from the modem end. And establishing a data transmission channel with the modem end; the modem end 402 is configured to send connection information to the AP end 401 after establishing a wireless network connection with the target router.
  • the AP end After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
  • FIG. 5 a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
  • the mobile terminal of the embodiment of the present disclosure is configured to perform the wireless network connection method shown in the foregoing method embodiment.
  • the mobile terminal of the embodiment of the present disclosure includes: an AP end 501 and a modem end 502; and the AP end 501 is used as a mobile terminal. After the screen is off, the sleep state is entered; after receiving the connection information from the modem end, entering a wake state, establishing a data transmission channel with the modem end; the modem end 502 is configured to establish a wireless network connection with the target router After that, the connection information is sent to the AP end 501.
  • the modem end 502 includes: a scanning module 5021, configured to perform scanning according to router scanning information sent by the AP end, and establish a wireless network connection with the scanned target router; and send module 5022, for After the target router establishes a wireless network connection, the connection information is sent to the AP end 501;
  • the router scan information includes: the stored router information; the scan module includes: a router scan submodule 50211, configured to perform a router scan; and a determination submodule 50212, configured to determine whether the scan result includes the
  • the stored router information is used by the first network connection sub-module 50213, and configured to establish a wireless network connection with the target router corresponding to the router information when the stored router information is included in the scan result.
  • the router scan information includes: a scan period; the scan module includes: a periodic scan submodule 50214, configured to perform router scan according to the scan period; and a second network connection submodule 50215, configured to scan When the target router is connected to the target router, a wireless network connection is established.
  • the router scanning information includes: a preset number of scans; the scanning module includes:
  • the scan update sub-module 50216 is configured to perform router scan and update the router scan times; the third network connection sub-module 50217 is configured to establish a wireless network connection with the target router when scanning to the target router; The sub-module 50218 is configured to determine whether the router scan times exceed the preset scan times when the target router is not scanned; if yes, stop the router scan operation; otherwise, invoke the scan update sub-module to continue the router scan.
  • the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step;
  • the scan module includes: an initial scan submodule 50219, configured to use the modem end The initial scanning period performs router scanning;
  • the second number determining sub-module 502110 is configured to determine whether to scan the target router and update the router scanning times;
  • the fourth network connection sub-module 502111 is configured to: when scanning to the target router, The modem end establishes a wireless network connection with the target router;
  • the period adjustment submodule 502112 is configured to: when the number of scans is equal to the preset number of scans, and is not scanned to the target router, increase the step size according to the scan period a scan period;
  • a period determination sub-module 502113, configured to determine whether the adjusted scan period is greater than the maximum scan period, and if not, perform a router scan according to the adjusted scan period, and return to execute the second number of determination sub-modules 50
  • the AP end After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
  • FIG. 6 a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
  • the mobile terminal 700 of the embodiment of the present disclosure includes at least one processor 701, a memory 702, at least one network interface 704, and other user interfaces 703.
  • the various components in mobile terminal 700 are coupled together by a bus system 705.
  • the bus system 705 is used to implement connection communication between these components.
  • the bus system 705 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 705 in FIG.
  • the user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a track ball, a touch pad, or a touch screen, etc.).
  • a pointing device eg, a mouse, a track ball, a touch pad, or a touch screen, etc.
  • the memory 702 in an embodiment of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
  • the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
  • RAM Random Access Memory
  • many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM).
  • the memory 702 of the systems and methods described in the embodiments of the present disclosure is intended to comprise, without being limited to, these and any other suitable types of memory.
  • memory 702 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 7021 and application 7022.
  • the operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 7022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services.
  • a program implementing the method of the embodiments of the present disclosure may be included in the application 7022.
  • the processor 701 includes a program or an instruction stored by the AP and the modem by calling the memory 702.
  • the program or the instruction stored in the application 7022 may be used to perform a wireless network connection, specifically: After the mobile terminal is off the screen, the AP end enters a sleep state; after the modem end establishes a wireless network connection with the target router, the connection information is sent to the AP end; the AP end enters an awake state, and is established with the modem end. Data transmission channel.
  • Processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in a form of software.
  • the processor 701 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
  • the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other for performing the functions described herein In an electronic unit or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device Digital Signal Processing Equipment
  • PLD programmable Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • the techniques described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software code can be stored in memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • the modem end when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
  • the router scan information includes: stored router information; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem Performing a router scan; the modem determines whether the stored router information is included in the scan result; and when the scan result includes the stored router information, the target router corresponding to the router information Establish a wireless network connection.
  • the router scan information includes: a scan period; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end according to the The scanning period performs router scanning; when scanning to the target router, the modem end establishes a wireless network connection with the target router.
  • the router scan information includes: a preset scan count; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end Performing a router scan and updating the number of router scans; when scanning to the target router, the modem end establishes a wireless network connection with the target router; when the target router is not scanned, the modem end determines whether the router scan times exceed the pre-preview Set the number of scans; if yes, stop the router scan operation; otherwise, continue the router scan.
  • the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the modem end scans, and scans according to the router scan information sent by the AP end.
  • the target router to establish a wireless network connection comprising: the modem end performs router scanning according to the initial scan period; determines whether the target router is scanned, and updates the number of router scans; when scanning to the target router, the modem end
  • the target router establishes a wireless network connection; when the number of scans is equal to the preset number of scans, and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period; and whether the adjusted scan period is greater than
  • the maximum scan period if not, performs a router scan according to the adjusted scan period, and returns to perform the step of determining whether to scan to the target router and update the number of router scans.
  • the mobile terminal 700 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again.
  • the AP end After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
  • FIG. 7 a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
  • the mobile terminal in the embodiment of the present disclosure may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or a car computer.
  • PDA personal digital assistant
  • the mobile terminal in FIG. 7 includes a radio frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a WiFi (Wireless Fidelity) module 880, and a power supply 890.
  • RF radio frequency
  • the input unit 830 can be configured to receive digital or character information input by the user, and generate signal input related to user settings and function control of the mobile terminal.
  • the input unit 830 may include a touch panel 831.
  • the touch panel 831 also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using any suitable object or accessory such as a finger or a stylus on the touch panel 831), and according to the preset
  • the programmed program drives the corresponding connection device.
  • the touch panel 831 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 860 is provided and can receive commands from the processor 860 and execute them.
  • the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 830 may further include other input devices 832, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
  • the display unit 840 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal.
  • the display unit 840 can include a display panel 841.
  • the display panel 841 can be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
  • the touch panel 831 can cover the display panel 841 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 860 to determine the type of the touch event, and then the processor The 860 provides a corresponding visual output on the touch display depending on the type of touch event.
  • the touch display includes an application interface display area and a common control display area.
  • the arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like.
  • the application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application icon and/or widget desktop control.
  • the application interface display area can also be an empty interface that does not contain any content.
  • the common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
  • the processor 860 is a control center of the mobile terminal, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 821, and calling the second memory.
  • the data in 822 performs various functions and processing data of the mobile terminal, thereby performing overall monitoring on the mobile terminal.
  • processor 860 can include one or more processing units.
  • the processor 860 includes an AP end and a modem end, and performs a wireless network connection by calling a software program and/or a module stored in the first memory 821 and/or data in the second memory 822, specifically And: when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
  • the modem end when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
  • the router scan information includes: stored router information; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem Performing a router scan; the modem determines whether the stored router information is included in the scan result; and when the scan result includes the stored router information, the target router corresponding to the router information Establish a wireless network connection.
  • the router scan information includes: a scan period; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end according to the The scanning period performs router scanning; when scanning to the target router, the modem end establishes a wireless network connection with the target router.
  • the router scan information includes: a preset scan count; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end Performing a router scan and updating the number of router scans; when scanning to the target router, the modem end establishes a wireless network connection with the target router; when the target router is not scanned, the modem end determines whether the router scan times exceed the pre-preview Set the number of scans; if yes, stop the router scan operation; otherwise, continue the router scan.
  • the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the modem end scans, and scans according to the router scan information sent by the AP end.
  • the target router to establish a wireless network connection comprising: the modem end performs router scanning according to the initial scan period; determines whether the target router is scanned, and updates the number of router scans; when scanning to the target router, the modem end
  • the target router establishes a wireless network connection; when the number of scans is equal to the preset number of scans, and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period; and whether the adjusted scan period is greater than
  • the maximum scan period if not, performs a router scan according to the adjusted scan period, and returns to perform the step of determining whether to scan to the target router and update the number of router scans.
  • the AP end After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced.
  • the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
  • An embodiment of the present disclosure further provides a mobile terminal, including: a memory, a processor, and a wireless network connection program stored on the memory and operable on the processor, where the wireless network connection program is processed The steps of implementing the wireless network connection method are implemented when the device is executed.
  • the embodiment of the present disclosure further provides a computer readable storage medium having a wireless network connection program stored thereon, and the wireless network connection program is implemented by a processor to implement the wireless network connection method. step.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the wireless network connection schemes provided herein are not inherently related to any particular computer, virtual system, or other device.
  • Various general purpose systems can also be used with the teaching based on the teachings herein. From the above description, it is apparent that the structure required to construct the system having the presently disclosed aspect is apparent.
  • the present disclosure is not directed to any particular programming language. It is to be understood that the subject matter of the present disclosure, which is described herein, may be described in a particular language.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • Various component embodiments of the present disclosure may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the wireless network connection scheme in accordance with embodiments of the present disclosure.
  • the present disclosure may also be implemented as a device or device program (eg, a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

Landscapes

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

Abstract

Provided in embodiments of the present disclosure are a wireless network connecting method and a mobile terminal. The mobile terminal comprises an application processor (AP) end and a modem end. The method comprises: when a mobile terminal turns off a screen thereof, an AP end enters into a sleep mode; after a modem end establishes a wireless network connection with a target router, transmitting connection information to the AP end; and the AP end entering into a wake-up mode, and establishing a data transmission channel with the modem end.

Description

无线网络连接方法及移动终端Wireless network connection method and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请主张在2017年7月21日在中国提交的中国专利申请No.201710601616.8的优先权,其全部内容通过引用包含于此。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本公开涉及通信技术领域,特别是涉及一种无线网络连接方法及移动终端。The present disclosure relates to the field of communications technologies, and in particular, to a wireless network connection method and a mobile terminal.
背景技术Background technique
随着移动终端的不断发展,移动终端通讯领域竞争也越来越激烈,减少移动终端功耗,增加移动终端待机时长也成为每个厂商提高自身市场竞争力的重要组成部分。Wi-Fi技术已在移动终端中普及,随着无线网络的发展,其使用率也越来越来,降低Wi-Fi模块的功耗对每个厂商提高自身市场竞争力也有很大的帮忙。With the continuous development of mobile terminals, the competition in the field of mobile terminal communication is becoming more and more fierce. Reducing the power consumption of mobile terminals and increasing the standby time of mobile terminals have become an important part of each manufacturer to improve its own market competitiveness. Wi-Fi technology has become popular in mobile terminals. With the development of wireless networks, its usage rate is also increasing. Decreasing the power consumption of Wi-Fi modules will also greatly help each vendor to improve its own market competitiveness.
Wi-Fi模块包括应用处理器(Application Processor,AP)端与调制解调器端(modem端),移动终端在进行无线网络连接时,AP端和modem端需要频繁交互,导致移动终端的功耗较大。The Wi-Fi module includes an application processor (AP) and a modem (modem). When the mobile terminal is connected to the wireless network, the AP and the modem need to interact frequently, resulting in a large power consumption of the mobile terminal.
发明内容Summary of the invention
依据本公开的一个方面,提供了一种无线网络连接方法,应用于移动终端,所述移动终端包括应用处理器AP端和调制解调器端,所述方法包括:According to an aspect of the present disclosure, a wireless network connection method is provided, which is applied to a mobile terminal, where the mobile terminal includes an application processor AP end and a modem end, and the method includes:
当所述移动终端灭屏后,所述AP端进入休眠状态;所述调制解调器端与目标路由器建立无线网络连接后,向所述AP端发送连接信息;所述AP端进入唤醒状态,与所述调制解调器端建立数据传输通道。After the mobile terminal is off the screen, the AP end enters a sleep state; after the modem end establishes a wireless network connection with the target router, the connection information is sent to the AP end; the AP end enters an awake state, and the The modem side establishes a data transmission channel.
根据本公开的另一方面,提供了一种移动终端,包括AP端和调制解调器端,所述AP端,用于当所述移动终端灭屏后,进入休眠状态;在接收到来自所述调制解调器端的连接信息后,进入唤醒状态,与所述调制解调器端 建立数据传输通道;所述调制解调器端,用于在与目标路由器建立无线网络连接后,向所述AP端发送连接信息。According to another aspect of the present disclosure, a mobile terminal is provided, including an AP end and a modem end, where the AP end is configured to enter a sleep state after the mobile terminal is off screen; upon receiving the slave modem end After the information is connected, the awake state is entered, and a data transmission channel is established with the modem end. The modem terminal is configured to send connection information to the AP end after establishing a wireless network connection with the target router.
根据本公开的另一方面,提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上述的无线网络连接方法的步骤。According to another aspect of the present disclosure, a mobile terminal is provided, including: a memory, a processor, and a program stored on the memory and executable on the processor, when the program is executed by the processor The steps of the wireless network connection method as described above are implemented.
根据本公开的另一方面,提供了一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如上述的无线网络连接方法的步骤。According to another aspect of the present disclosure, there is provided a computer readable storage medium, wherein the computer readable storage medium stores a program thereon, the program being executed by a processor to implement the steps of the wireless network connection method as described above .
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solutions of the present disclosure, and the above-described and other objects, features and advantages of the present disclosure can be more clearly understood. Specific embodiments of the present disclosure are specifically described below.
附图说明DRAWINGS
通过阅读下文可选实施方式的详细描述,各种优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出可选实施方式,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various advantages and benefits will become apparent to those of ordinary skill in the art in the <RTIgt; The drawings are only used to illustrate alternative embodiments and are not to be considered as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1是根据本公开的一些实施例的一种无线网络连接方法的步骤流程图;1 is a flow chart showing the steps of a wireless network connection method, in accordance with some embodiments of the present disclosure;
图2是根据本公开的另一些实施例的一种无线网络连接方法的步骤流程图;2 is a flow chart showing the steps of a wireless network connection method according to further embodiments of the present disclosure;
图3是根据本公开的另一些实施例的一种无线网络连接方法的步骤流程图;3 is a flow chart showing the steps of a wireless network connection method according to further embodiments of the present disclosure;
图4是根据本公开的另一些实施例的一种移动终端的结构框图;4 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure;
图5是根据本公开的另一些实施例的一种移动终端的结构框图;FIG. 5 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure; FIG.
图6是根据本公开的另一些实施例的一种移动终端的结构框图;6 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure;
图7是根据本公开的另一些实施例的一种移动终端的结构框图。FIG. 7 is a structural block diagram of a mobile terminal according to further embodiments of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示 了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本公开实施例提供一种无线网络连接方法及移动终端,以解决相关技术中存在的无线网络连接过程中移动终端功耗较大的问题。The embodiments of the present disclosure provide a wireless network connection method and a mobile terminal, so as to solve the problem that the mobile terminal consumes a large amount of power in the wireless network connection process existing in the related art.
参照图1,示出了本公开的一些实施例的一种无线网络连接方法的步骤流程图。Referring to Figure 1, a flow chart of the steps of a wireless network connection method of some embodiments of the present disclosure is shown.
本公开实施例的无线网络连接方法包括以下步骤101至103。The wireless network connection method of the embodiment of the present disclosure includes the following steps 101 to 103.
步骤101:移动终端灭屏后,AP端进入休眠状态。Step 101: After the mobile terminal is off the screen, the AP end enters a sleep state.
本公开实施例中的无线网络连接方法适用于移动终端。移动终端包括AP端以及调制解调器端即modem端。本公开实施例中,移动终端处于亮屏状态下时,AP端以及调制解调器端均处于工作状态;移动终端灭屏后,AP端进入休眠状态,调制解调器端处于工作状态扫描并连接目标路由器。The wireless network connection method in the embodiment of the present disclosure is applicable to a mobile terminal. The mobile terminal includes an AP end and a modem end, that is, a modem end. In the embodiment of the present disclosure, when the mobile terminal is in a bright screen state, the AP end and the modem end are in a working state; after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state to scan and connect to the target router.
步骤102:调制解调器端与目标路由器建立无线网络连接后,向AP端发送连接信息。Step 102: After establishing a wireless network connection with the target router, the modem end sends the connection information to the AP end.
一种可选的调制解调器端与目标路由器建立无线网络连接的方式如下:An optional way for the modem to establish a wireless network connection with the target router is as follows:
调整解调器端周期性进行路由器扫描,进行路由器扫描后可以得到一个或多个路由器对应的路由器信息。其中,路由器信息可以为路由器标识。Adjust the demodulator side to periodically scan the router, and after router scanning, you can get the router information corresponding to one or more routers. The router information may be a router identifier.
调制解调器端逐个与各路由器建立无线网络连接,直至与某一路由器间的无线网络连接建立成功为止。The modem side establishes a wireless network connection with each router one by one until the wireless network connection with a certain router is established successfully.
当然并不限于此,调制解调器端在扫描到多个路由器后,依据移动终端中已存储的路由器信息,从扫描到的路由器中确定至少一个待连接的路由器;然后逐个与各待连接的路由器建立无线网络连接,直至与某一待连接路由器间的无线网络连接建立成功为止。Of course, it is not limited to this. After scanning the plurality of routers, the modem end determines at least one router to be connected from the scanned routers according to the stored router information in the mobile terminal; and then establishes wirelessly with each router to be connected one by one. Network connection until the wireless network connection to a router to be connected is established.
步骤103:AP端进入唤醒状态,与调制解调器端建立数据传输通道。AP端接收到调制解调器端发送的连接信息后,进入唤醒状态,与调制解调器端建立数据传输通道,AP端与调制解调器端建立数据传输通道后,AP端即可将待传输数据通过数据传输通道传输至调制解调器端,调制解调器端通过已建立的无线网络连接,将待传输数据发送至目标路由器上。Step 103: The AP end enters an awake state, and establishes a data transmission channel with the modem end. After receiving the connection information sent by the modem, the AP enters the awake state and establishes a data transmission channel with the modem. After the AP and the modem establish a data transmission channel, the AP can transmit the data to be transmitted to the modem through the data transmission channel. At the end, the modem sends the data to be transmitted to the target router through the established wireless network connection.
本公开实施例提供的无线网络连接方法,移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的无线网络连接方案,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。In the wireless network connection method provided by the embodiment of the present disclosure, after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art. The power consumption of the mobile terminal can be reduced in terms of the modem terminal always working. In addition, in the wireless network connection solution provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal.
参照图2,示出了本公开的另一些实施例的一种无线网络连接方法。Referring to FIG. 2, a wireless network connection method of further embodiments of the present disclosure is illustrated.
本公开实施例的无线网络连接方法包括以下步骤201至204。The wireless network connection method of the embodiment of the present disclosure includes the following steps 201 to 204.
步骤201:当移动终端灭屏后,AP端进入休眠状态。Step 201: After the mobile terminal is off the screen, the AP end enters a sleep state.
移动终端灭屏后,AP端将路由器扫描信息发送至调制解调器端后进入休眠状态,调制解调器端处于工作状态,依据所接收到的路由器扫描信息扫描目标路由器。After the mobile terminal is off, the AP sends the router scan information to the modem and enters the sleep state. The modem is in the working state and scans the target router according to the received router scan information.
步骤202:调制解调器端依据AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。Step 202: The modem end scans according to the router scan information sent by the AP, and establishes a wireless network connection with the scanned target router.
路由器扫描信息包括以下至少之一:已存储的路由器信息、扫描周期以及预设扫描次数。预设扫描次数、扫描周期这些参数由研发人员预先设置在移动终端中。The router scan information includes at least one of the following: stored router information, a scan period, and a preset number of scans. The preset scan times and scan cycles are preset by the developer in the mobile terminal.
当路由器扫描信息中包括已存储的路由器信息时,一种可选的调制解调器端依据路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接的方式如下:When the router scan information includes the stored router information, an optional modem side scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
首先,调制解调器端进行路由器扫描;First, the modem side performs a router scan;
其次,调制解调端判断扫描结果中是否包含已存储的路由器信息;Second, the modem side determines whether the stored router information is included in the scan result;
最后,当扫描结果中包含已存储的路由器信息时,与扫描到的已存储的路由器信息对应的目标路由器建立无线网络连接。Finally, when the scan result contains the stored router information, the target router corresponding to the scanned stored router information establishes a wireless network connection.
需要说的是,若本次扫描到的、已存储的路由器信息为三个,分别对应A、B以及C三个路由器,调制解调器端可以先与路由器A建立无线网络连接,若本次无线网络连接建立成功,则直接将路由器A确定为目标路由器。若本次无线网络连接建立失败,则调制解调器端与路由器B建立无线网络连 接,若依然失败则与路由器C建立无线网络连接;若与三个路由器的无线网络连接建立均失败,则重新进行路由器扫描,直至与目标路由器成功建立无线网络连接为止。It should be said that if the scanned and stored router information is three, corresponding to three routers A, B and C, the modem can establish a wireless network connection with router A first, if this wireless network connection If the establishment is successful, Router A is directly determined as the target router. If the establishment of the wireless network connection fails, the modem end establishes a wireless network connection with the router B, and if it still fails, establishes a wireless network connection with the router C; if the wireless network connection establishment with the three routers fails, the router scan is performed again. Until the successful establishment of a wireless network connection with the target router.
当路由器扫描信息中包括扫描周期时,一种可选的调制解调器端依据路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接的方式如下:When the scan information of the router includes the scan period, an optional modem end scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
首先,调制解调器端按照扫描周期进行路由器扫描;First, the modem side performs router scanning according to the scanning period;
扫描周期的具体值可以由本领域技术人员根据实际需求进行设置,本公开实施例中对此不做具体限制,例如:将扫描周期设置为2秒、3秒或5秒等。The specific value of the scan period can be set by a person skilled in the art according to actual needs, and is not specifically limited in the embodiment of the present disclosure, for example, the scan period is set to 2 seconds, 3 seconds, or 5 seconds.
其次,当扫描到目标路由器时,调制解调器端与目标路由器建立无线网络连接。Second, when scanning to the target router, the modem side establishes a wireless network connection with the target router.
从所扫描到的路由器中连接目标路由器时,可以逐个连接扫描到的各路由器直至与某一扫描到的路由器成功建立网络连接为止,当前所连接的路由器即为目标路由器。When connecting to the target router from the scanned router, you can connect the scanned routers one by one until the network connection is successfully established with a scanned router. The currently connected router is the target router.
当路由器扫描信息中包括预设扫描次数时,一种可选的调制解调器端依据路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接的方式如下:When the router scan information includes the preset number of scans, an optional modem terminal scans according to the router scan information and establishes a wireless network connection with the scanned target router as follows:
首先,调制解调器端进行路由器扫描,并更新路由器扫描次数;First, the modem side scans the router and updates the number of router scans;
扫描次数可以由本领域技术人员根据实际需求进行设置,例如:设置为5次、8次、10次等。The number of scans can be set by a person skilled in the art according to actual needs, for example, set to 5 times, 8 times, 10 times, and the like.
其次,当扫描到目标路由器时,调制解调器端与目标路由器建立无线网络连接;Second, when scanning to the target router, the modem end establishes a wireless network connection with the target router;
调制解调器端进行路由器扫描时,可能扫描到多个路由器,因此需要从扫描到的多个路由器中确定一个目标路由器。从所扫描到的路由器中连接目标路由器时,可以逐个连接扫描到的各路由器直至与某一扫描到的路由器成功建立网络连接为止,当前所连接的路由器即为目标路由器。When the modem side scans the router, it may scan multiple routers, so it is necessary to determine one target router from among the multiple routers scanned. When connecting to the target router from the scanned router, you can connect the scanned routers one by one until the network connection is successfully established with a scanned router. The currently connected router is the target router.
再次,当未扫描到目标路由器时,调制解调器端判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,继续进行路由 器扫描。Again, when the target router is not scanned, the modem determines if the number of router scans exceeds the preset number of scans; if so, stops the router scan operation; otherwise, continues the router scan.
需要说明的是,上述仅是分别依据已存储的路由器信息、扫描周期以及预设扫描次数中的单一参数来扫描连接目标路由器,在具体实现过程中,还可以将三者中的任意二者、或将三者结合来扫描连接目标路由器。It should be noted that, in the foregoing, only the connection target router is scanned according to a single parameter of the stored router information, the scanning period, and the preset scanning times. In the specific implementation process, any two of the three may be Or combine the three to scan the connection target router.
步骤203:调制解调器端向AP端发送连接信息。Step 203: The modem sends the connection information to the AP.
其中,连接信息中携带目标路由器信息。The connection information carries the target router information.
步骤204:AP端进入唤醒状态,与调制解调器端建立数据传输通道。Step 204: The AP end enters an awake state, and establishes a data transmission channel with the modem end.
AP端与调制解调器端建立数据传输通道后,AP端即可将待传输数据通过数据传输通道传输至调制解调器端,调制解调器端通过已建立的无线网络连接,将待传输数据发送至目标路由器上。After the AP end establishes a data transmission channel with the modem end, the AP end can transmit the data to be transmitted to the modem end through the data transmission channel, and the modem end sends the data to be transmitted to the target router through the established wireless network connection.
本公开实施例提供的无线网络连接方法,移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的无线网络连接方案,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。In the wireless network connection method provided by the embodiment of the present disclosure, after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art. The power consumption of the mobile terminal can be reduced in terms of the modem terminal always working. In addition, in the wireless network connection solution provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal.
参照图3,示出了本公开的另一些实施例的一种无线网络连接方法。Referring to FIG. 3, a wireless network connection method of further embodiments of the present disclosure is illustrated.
本公开实施例的无线网络连接方法包括以下步骤301至309。The wireless network connection method of the embodiment of the present disclosure includes the following steps 301 to 309.
步骤301:当移动终端灭屏后,AP端进入休眠状态。Step 301: After the mobile terminal is off the screen, the AP end enters a sleep state.
移动终端灭屏后,AP端将路由器扫描信息发送至调制解调器端后进入休眠状态,调制解调器端处于工作状态,依据所接收到的路由器扫描信息扫描目标路由器。After the mobile terminal is off, the AP sends the router scan information to the modem and enters the sleep state. The modem is in the working state and scans the target router according to the received router scan information.
AP端进入休眠状态后,调制解调器端依据AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。After the AP end enters the sleep state, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
本公开实施例中以路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长为例进行说明。其中,预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长这些参数由研发人员预先设置在移动终端中。调制解调器端扫描目标路由器建立无线网络连接的具 体流程如步骤302至步骤中所述。In the embodiment of the present disclosure, the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step as an example for description. The parameters of the preset scan times, the initial scan period, the maximum scan period, and the scan period increment step are preset by the developer in the mobile terminal. The specific procedure for the modem side to scan the target router to establish a wireless network connection is as described in steps 302 through.
步骤302:调制解调器端依据初始扫描周期进行路由器扫描。Step 302: The modem end performs router scanning according to an initial scanning period.
步骤303:判断是否扫描到目标路由器,并更新路由器扫描次数。Step 303: Determine whether to scan the target router and update the number of router scans.
调制解调器每进行一次理由器扫描,则执行一次步骤303。Each time the modem scans the reasoner, step 303 is performed once.
步骤304:当扫描到目标路由器时,调制解调器端与目标路由器建立无线网络连接;然后执行步骤308。Step 304: When scanning to the target router, the modem end establishes a wireless network connection with the target router; then step 308 is performed.
调制解调器端进行路由器扫描时,可能扫描到多个路由器,因此需要从扫描到的多个路由器中确定一个目标路由器。从所扫描到的路由器中连接目标路由器时,可以逐个连接扫描到的各路由器直至与某一扫描到的路由器成功建立网络连接为止,当前所连接的路由器即为目标路由器。When the modem side scans the router, it may scan multiple routers, so it is necessary to determine one target router from among the multiple routers scanned. When connecting to the target router from the scanned router, you can connect the scanned routers one by one until the network connection is successfully established with a scanned router. The currently connected router is the target router.
步骤305:当扫描次数等于预设扫描次数、且未扫描到目标路由器时,依据扫描周期递增步长调整扫描周期。Step 305: When the number of scans is equal to the preset number of scans and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period.
例如:初始扫描周期为10秒,扫描周期递增步长为5秒,则调整后的扫描周期为15秒。For example, the initial scan period is 10 seconds, the scan period is incremented by 5 seconds, and the adjusted scan period is 15 seconds.
步骤306:判断调整后的扫描周期是否大于最大扫描周期;若是,则停止路由器扫描操作;若否,则执行步骤307。Step 306: Determine whether the adjusted scan period is greater than the maximum scan period; if yes, stop the router scan operation; if not, execute step 307.
步骤307:依据调整后的扫描周期进行路由器扫描,并返回执行步骤303。Step 307: Perform a router scan according to the adjusted scan period, and return to step 303.
重复执行步骤303至步骤307中所示的流程,直至成功扫描到目标路由器、或扫描周期调整至超出最大扫描周期后,停止路由器扫描操作。The flow shown in steps 303 to 307 is repeatedly executed until the target router is successfully scanned, or the scan cycle is adjusted to exceed the maximum scan period, and the router scan operation is stopped.
例如:初始扫描周期为10秒,预设扫描次数为3次,扫描周期递增步长为5秒,最大扫描周期为20秒。则在进行路由器扫描时,首先以初始扫描周期10秒进行路由器扫描,若3次扫描后未扫描到目标路由器,则将扫描周期调整为15秒再进行路由器扫描,若经过3次扫描依然未扫描到目标路由器,则将扫描周期调整为20秒再进行路由器扫描,若3次扫描后仍然未扫描到目标路由器则不再对扫描周期进行调整,而是停止路由器扫描操作。For example, the initial scan period is 10 seconds, the preset scan count is 3 times, the scan period increment step is 5 seconds, and the maximum scan period is 20 seconds. In the router scan, the router scans the router for 10 seconds in the initial scan cycle. If the target router is not scanned after 3 scans, the scan cycle is adjusted to 15 seconds and then the router scans. If the scan is still not scanned after 3 scans. To the target router, the scan cycle is adjusted to 20 seconds and then the router scans. If the target router is not scanned after 3 scans, the scan cycle is not adjusted, but the router scan operation is stopped.
需要说明的是,在本公开的其他实施方式中,当调整后的扫描周期等于最大扫描周期时,可以依照最大扫描周期进行路由器扫描,直至成功扫描到目标路由器,同样可以实现本公开的发明目的。It should be noted that, in other embodiments of the present disclosure, when the adjusted scan period is equal to the maximum scan period, the router scan may be performed according to the maximum scan period until the target router is successfully scanned, and the object of the present disclosure may also be achieved. .
步骤308:调制解调器端向AP端发送连接信息。Step 308: The modem sends the connection information to the AP.
其中,连接信息中携带目标路由器信息。The connection information carries the target router information.
步骤309:AP端进入唤醒状态,与调制解调器端建立数据传输通道。Step 309: The AP end enters an awake state, and establishes a data transmission channel with the modem end.
AP端与调制解调器端建立数据传输通道后,AP端即可将待传输数据通过数据传输通道传输至调制解调器端,调制解调器端通过已建立的无线网络连接,将待传输数据发送至目标路由器上。After the AP end establishes a data transmission channel with the modem end, the AP end can transmit the data to be transmitted to the modem end through the data transmission channel, and the modem end sends the data to be transmitted to the target router through the established wireless network connection.
本公开实施例提供的无线网络连接方法,移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的无线网络连接方法,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。此外,本公开实施例中在进行路由器扫描时,灵活调整扫描周期并伴随着扫描失败次数的增加将扫描周期延长,避免频繁扫描增加AP端的工作负荷。In the wireless network connection method provided by the embodiment of the present disclosure, after the mobile terminal is off the screen, the AP end enters a sleep state, and the modem end is in a working state, and the router side performs router scanning and connection, which is required by the AP end and the related art. The power consumption of the mobile terminal can be reduced in terms of the modem terminal always working. In addition, in the wireless network connection method provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the work of the mobile terminal. Consumption, extending the battery life of the mobile terminal. In addition, in the embodiment of the present disclosure, when performing router scanning, the scanning period is flexibly adjusted and the scanning period is extended along with the increase of the number of scanning failures, thereby avoiding frequent scanning and increasing the workload of the AP end.
参照图4,示出了本公开的另一些实施例的一种移动终端的结构框图。Referring to FIG. 4, a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
本公开实施例的移动终端包括:AP端401和调制解调器端402;所述AP端401用于当移动终端灭屏后,进入休眠状态;在接收到来自所述调制解调器端的连接信息后,进入唤醒状态,与所述调制解调器端建立数据传输通道;所述调制解调器端402,用于在与目标路由器建立无线网络连接后,向所述AP端401发送连接信息。The mobile terminal of the embodiment of the present disclosure includes: an AP end 401 and a modem end 402; the AP end 401 is configured to enter a sleep state after the mobile terminal is turned off; and enter a awake state after receiving the connection information from the modem end. And establishing a data transmission channel with the modem end; the modem end 402 is configured to send connection information to the AP end 401 after establishing a wireless network connection with the target router.
本公开实施例提供的移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的移动终端,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced. In addition, in the mobile terminal provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
参照图5,示出了本公开的另一些实施例的一种移动终端的结构框图。Referring to FIG. 5, a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
本公开实施例的移动终端用于执行上述方法实施例中所示的无线网络连 接方法,本公开实施例的移动终端包括:AP端501和调制解调器端502;所述AP端501用于当移动终端灭屏后,进入休眠状态;在接收到来自所述调制解调器端的连接信息后,进入唤醒状态,与所述调制解调器端建立数据传输通道;所述调制解调器端502,用于在与目标路由器建立无线网络连接后,向所述AP端501发送连接信息。The mobile terminal of the embodiment of the present disclosure is configured to perform the wireless network connection method shown in the foregoing method embodiment. The mobile terminal of the embodiment of the present disclosure includes: an AP end 501 and a modem end 502; and the AP end 501 is used as a mobile terminal. After the screen is off, the sleep state is entered; after receiving the connection information from the modem end, entering a wake state, establishing a data transmission channel with the modem end; the modem end 502 is configured to establish a wireless network connection with the target router After that, the connection information is sent to the AP end 501.
可选地,所述调制解调器端502包括:扫描模块5021,用于依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接;发送模块5022,用于在与目标路由器建立无线网络连接后,向所述AP端501发送连接信息;Optionally, the modem end 502 includes: a scanning module 5021, configured to perform scanning according to router scanning information sent by the AP end, and establish a wireless network connection with the scanned target router; and send module 5022, for After the target router establishes a wireless network connection, the connection information is sent to the AP end 501;
可选地,所述路由器扫描信息包括:已存储的路由器信息;所述扫描模块包括:路由器扫描子模块50211,用于进行路由器扫描;判定子模块50212,用于判断扫描结果中是否包含所述已存储的路由器信息;第一网络连接子模块50213,用于当所述扫描结果中包含所述已存储的路由器信息时,与所述路由器信息对应的目标路由器建立无线网络连接。Optionally, the router scan information includes: the stored router information; the scan module includes: a router scan submodule 50211, configured to perform a router scan; and a determination submodule 50212, configured to determine whether the scan result includes the The stored router information is used by the first network connection sub-module 50213, and configured to establish a wireless network connection with the target router corresponding to the router information when the stored router information is included in the scan result.
可选地,所述路由器扫描信息包括:扫描周期;所述扫描模块包括:周期扫描子模块50214,用于按照所述扫描周期进行路由器扫描;第二网络连接子模块50215,用于当扫描到目标路由器时,与所述目标路由器建立无线网络连接。Optionally, the router scan information includes: a scan period; the scan module includes: a periodic scan submodule 50214, configured to perform router scan according to the scan period; and a second network connection submodule 50215, configured to scan When the target router is connected to the target router, a wireless network connection is established.
可选地,所述路由器扫描信息包括:预设扫描次数;所述扫描模块包括:Optionally, the router scanning information includes: a preset number of scans; the scanning module includes:
扫描更新子模块50216,用于进行路由器扫描,并更新路由器扫描次数;第三网络连接子模块50217,用于当扫描到目标路由器时,与所述目标路由器建立无线网络连接;第一次数判定子模块50218,用于当未扫描到目标路由器时,判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,调用扫描更新子模块继续进行路由器扫描。The scan update sub-module 50216 is configured to perform router scan and update the router scan times; the third network connection sub-module 50217 is configured to establish a wireless network connection with the target router when scanning to the target router; The sub-module 50218 is configured to determine whether the router scan times exceed the preset scan times when the target router is not scanned; if yes, stop the router scan operation; otherwise, invoke the scan update sub-module to continue the router scan.
可选地,所述路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长;所述扫描模块包括:初始扫描子模块50219,用于所述调制解调器端依据所述初始扫描周期进行路由器扫描;第二次数判定子模块502110,用于判断是否扫描到目标路由器,并更新路由器扫描次数;第四网络连接子模块502111,用于当扫描到目标路由器时,所述调 制解调器端与所述目标路由器建立无线网络连接;周期调整子模块502112,用于当所述扫描次数等于所述预设扫描次数、且未扫描到目标路由器时,依据所述扫描周期递增步长调整扫描周期;周期判断子模块502113,用于判断调整后的扫描周期是否大于所述最大扫描周期,若否,则依据调整后的扫描周期进行路由器扫描,并返回执行所述第二次数判定子模块502110。Optionally, the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the scan module includes: an initial scan submodule 50219, configured to use the modem end The initial scanning period performs router scanning; the second number determining sub-module 502110 is configured to determine whether to scan the target router and update the router scanning times; and the fourth network connection sub-module 502111 is configured to: when scanning to the target router, The modem end establishes a wireless network connection with the target router; the period adjustment submodule 502112 is configured to: when the number of scans is equal to the preset number of scans, and is not scanned to the target router, increase the step size according to the scan period a scan period; a period determination sub-module 502113, configured to determine whether the adjusted scan period is greater than the maximum scan period, and if not, perform a router scan according to the adjusted scan period, and return to execute the second number of determination sub-modules 502110.
本公开实施例提供的移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的移动终端,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced. In addition, in the mobile terminal provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
参照图6,示出了本公开的另一些实施例的一种移动终端的结构框图。Referring to FIG. 6, a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
本公开实施例的移动终端700包括:至少一个处理器701、存储器702、至少一个网络接口704和其他用户接口703。移动终端700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统705。The mobile terminal 700 of the embodiment of the present disclosure includes at least one processor 701, a memory 702, at least one network interface 704, and other user interfaces 703. The various components in mobile terminal 700 are coupled together by a bus system 705. It will be appreciated that the bus system 705 is used to implement connection communication between these components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 705 in FIG.
其中,用户接口703可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a track ball, a touch pad, or a touch screen, etc.).
可以理解,本公开实施例中的存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器 (Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Ram bus RAM,DRRAM)。本公开实施例描述的系统和方法的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It is to be understood that the memory 702 in an embodiment of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. The volatile memory can be a Random Access Memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM). SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (SDRAM) and Direct Memory Bus Random Access Memory (DRRAM). The memory 702 of the systems and methods described in the embodiments of the present disclosure is intended to comprise, without being limited to, these and any other suitable types of memory.
在一些实施方式中,存储器702存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统7021和应用程序7022。In some implementations, memory 702 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 7021 and application 7022.
其中,操作系统7021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本公开实施例方法的程序可以包含在应用程序7022中。The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services. A program implementing the method of the embodiments of the present disclosure may be included in the application 7022.
在本公开实施例中,处理器701包含AP端和调制解调器端通过调用存储器702存储的程序或指令,具体的,可以是应用程序7022中存储的程序或指令,进行无线网络连接,具体地:当移动终端灭屏后,所述AP端进入休眠状态;所述调制解调器端与目标路由器建立无线网络连接后,向所述AP端发送连接信息;所述AP端进入唤醒状态,与所述调制解调器端建立数据传输通道。In the embodiment of the present disclosure, the processor 701 includes a program or an instruction stored by the AP and the modem by calling the memory 702. Specifically, the program or the instruction stored in the application 7022 may be used to perform a wireless network connection, specifically: After the mobile terminal is off the screen, the AP end enters a sleep state; after the modem end establishes a wireless network connection with the target router, the connection information is sent to the AP end; the AP end enters an awake state, and is established with the modem end. Data transmission channel.
上述本公开实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the above embodiments of the present disclosure may be applied to the processor 701 or implemented by the processor 701. Processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in a form of software. The processor 701 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present disclosure may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other for performing the functions described herein In an electronic unit or a combination thereof.
对于软件实现,可通过执行本公开实施例中所述功能的模块(例如过程、函数等)来实现本公开实施例中所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure. The software code can be stored in memory and executed by the processor. The memory can be implemented in the processor or external to the processor.
可选地,所述调制解调器端与目标路由器建立无线网络连接时,所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。Optionally, when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
可选地,所述路由器扫描信息包括:已存储的路由器信息;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接时:所述调制解调器端进行路由器扫描;所述调制解调端判断扫描结果中是否包含所述已存储的路由器信息;当所述扫描结果中包含所述已存储的路由器信息时,与所述路由器信息对应的目标路由器建立无线网络连接。Optionally, the router scan information includes: stored router information; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem Performing a router scan; the modem determines whether the stored router information is included in the scan result; and when the scan result includes the stored router information, the target router corresponding to the router information Establish a wireless network connection.
可选地,所述路由器扫描信息包括:扫描周期;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接时:所述调制解调器端按照所述扫描周期进行路由器扫描;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连 接。Optionally, the router scan information includes: a scan period; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end according to the The scanning period performs router scanning; when scanning to the target router, the modem end establishes a wireless network connection with the target router.
可选地,所述路由器扫描信息包括:预设扫描次数;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接时:所述调制解调器端进行路由器扫描,并更新路由器扫描次数;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;当未扫描到目标路由器时,所述调制解调器端判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,继续进行路由器扫描。Optionally, the router scan information includes: a preset scan count; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end Performing a router scan and updating the number of router scans; when scanning to the target router, the modem end establishes a wireless network connection with the target router; when the target router is not scanned, the modem end determines whether the router scan times exceed the pre-preview Set the number of scans; if yes, stop the router scan operation; otherwise, continue the router scan.
可选地,所述路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:所述调制解调器端依据所述初始扫描周期进行路由器扫描;判断是否扫描到目标路由器,并更新路由器扫描次数;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;当所述扫描次数等于所述预设扫描次数、且未扫描到目标路由器时,依据所述扫描周期递增步长调整扫描周期;判断调整后的扫描周期是否大于所述最大扫描周期,若否,则依据调整后的扫描周期进行路由器扫描,并返回执行所述判断是否扫描到目标路由器,并更新路由器扫描次数的步骤。Optionally, the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the modem end scans, and scans according to the router scan information sent by the AP end. The target router to establish a wireless network connection, comprising: the modem end performs router scanning according to the initial scan period; determines whether the target router is scanned, and updates the number of router scans; when scanning to the target router, the modem end The target router establishes a wireless network connection; when the number of scans is equal to the preset number of scans, and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period; and whether the adjusted scan period is greater than The maximum scan period, if not, performs a router scan according to the adjusted scan period, and returns to perform the step of determining whether to scan to the target router and update the number of router scans.
移动终端700能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 700 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again.
本公开实施例提供的移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的移动终端,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced. In addition, in the mobile terminal provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
参照图7,示出了本公开的另一些实施例的一种移动终端的结构框图。Referring to FIG. 7, a block diagram of a structure of a mobile terminal of still another embodiment of the present disclosure is shown.
本公开实施例中的移动终端可以为手机、平板电脑、个人数字助理 (Personal Digital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present disclosure may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or a car computer.
图7中的移动终端包括射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、处理器860、音频电路870、WiFi(Wireless Fidelity)模块880和电源890。The mobile terminal in FIG. 7 includes a radio frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a WiFi (Wireless Fidelity) module 880, and a power supply 890.
其中,输入单元830可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本公开实施例中,该输入单元830可以包括触控面板831。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器860,并能接收处理器860发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 830 can be configured to receive digital or character information input by the user, and generate signal input related to user settings and function control of the mobile terminal. Specifically, in the embodiment of the present disclosure, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using any suitable object or accessory such as a finger or a stylus on the touch panel 831), and according to the preset The programmed program drives the corresponding connection device. Optionally, the touch panel 831 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 860 is provided and can receive commands from the processor 860 and execute them. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 831, the input unit 830 may further include other input devices 832, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
其中,显示单元840可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元840可包括显示面板841,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。The display unit 840 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 840 can include a display panel 841. Alternatively, the display panel 841 can be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
应注意,触控面板831可以覆盖显示面板841,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器860以确定触摸事件的类型,随后处理器860根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 831 can cover the display panel 841 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 860 to determine the type of the touch event, and then the processor The 860 provides a corresponding visual output on the touch display depending on the type of touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或 widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display includes an application interface display area and a common control display area. The arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like. The application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application icon and/or widget desktop control. The application interface display area can also be an empty interface that does not contain any content. The common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
其中处理器860是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器821内的软件程序和/或模块,以及调用存储在第二存储器822内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器860可包括一个或多个处理单元。The processor 860 is a control center of the mobile terminal, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 821, and calling the second memory. The data in 822 performs various functions and processing data of the mobile terminal, thereby performing overall monitoring on the mobile terminal. Alternatively, processor 860 can include one or more processing units.
在本公开实施例中,处理器860包含AP端和调制解调器端,通过调用存储该第一存储器821内的软件程序和/或模块和/或该第二存储器822内的数据进行无线网络连接,具体地:所述调制解调器端与目标路由器建立无线网络连接时,所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。In the embodiment of the present disclosure, the processor 860 includes an AP end and a modem end, and performs a wireless network connection by calling a software program and/or a module stored in the first memory 821 and/or data in the second memory 822, specifically And: when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
可选地,所述调制解调器端与目标路由器建立无线网络连接时,所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。Optionally, when the modem end establishes a wireless network connection with the target router, the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
可选地,所述路由器扫描信息包括:已存储的路由器信息;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接时:所述调制解调器端进行路由器扫描;所述调制解调端判断扫描结果中是否包含所述已存储的路由器信息;当所述扫描结果中包含所述已存储的路由器信息时,与所述路由器信息对应的目标路由器建立无线网络连接。Optionally, the router scan information includes: stored router information; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem Performing a router scan; the modem determines whether the stored router information is included in the scan result; and when the scan result includes the stored router information, the target router corresponding to the router information Establish a wireless network connection.
可选地,所述路由器扫描信息包括:扫描周期;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接时:所述调制解调器端按照所述扫描周期进行路由器扫描;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接。Optionally, the router scan information includes: a scan period; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end according to the The scanning period performs router scanning; when scanning to the target router, the modem end establishes a wireless network connection with the target router.
可选地,所述路由器扫描信息包括:预设扫描次数;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器 建立无线网络连接时:所述调制解调器端进行路由器扫描,并更新路由器扫描次数;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;当未扫描到目标路由器时,所述调制解调器端判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,继续进行路由器扫描。Optionally, the router scan information includes: a preset scan count; the modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router: the modem end Performing a router scan and updating the number of router scans; when scanning to the target router, the modem end establishes a wireless network connection with the target router; when the target router is not scanned, the modem end determines whether the router scan times exceed the pre-preview Set the number of scans; if yes, stop the router scan operation; otherwise, continue the router scan.
可选地,所述路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长;所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:所述调制解调器端依据所述初始扫描周期进行路由器扫描;判断是否扫描到目标路由器,并更新路由器扫描次数;当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;当所述扫描次数等于所述预设扫描次数、且未扫描到目标路由器时,依据所述扫描周期递增步长调整扫描周期;判断调整后的扫描周期是否大于所述最大扫描周期,若否,则依据调整后的扫描周期进行路由器扫描,并返回执行所述判断是否扫描到目标路由器,并更新路由器扫描次数的步骤。Optionally, the router scan information includes: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the modem end scans, and scans according to the router scan information sent by the AP end. The target router to establish a wireless network connection, comprising: the modem end performs router scanning according to the initial scan period; determines whether the target router is scanned, and updates the number of router scans; when scanning to the target router, the modem end The target router establishes a wireless network connection; when the number of scans is equal to the preset number of scans, and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period; and whether the adjusted scan period is greater than The maximum scan period, if not, performs a router scan according to the adjusted scan period, and returns to perform the step of determining whether to scan to the target router and update the number of router scans.
本公开实施例提供的移动终端灭屏后,AP端进入休眠状态,此时调制解调器端处于工作状态,由调制解调器端进行路由器扫描、连接,相较于相关技术中需要AP端和调制解调器端均始终保持工作状态而言,能够降低移动终端的功耗。此外,本公开实施例提供的移动终端,调制解调器端仅在与目标路由器成功建立网络连接后,才唤醒AP端建立数据传输通道,能够避免频繁唤醒AP端,因此同样能够降低移动终端的功耗,延长移动终端的续航时间。After the mobile terminal is off the screen, the AP end enters the sleep state, and the modem end is in the working state, and the modem scans and connects the router. Compared with the related art, the AP end and the modem end are always maintained. In terms of working state, the power consumption of the mobile terminal can be reduced. In addition, in the mobile terminal provided by the embodiment of the present disclosure, the modem end only wakes up the AP end to establish a data transmission channel after successfully establishing a network connection with the target router, and can avoid frequently waking up the AP end, thereby also reducing the power consumption of the mobile terminal. Extend the battery life of the mobile terminal.
本公开实施例还提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的无线网络连接程序,所述无线网络连接程序被所述处理器执行时实现所述的无线网络连接方法的步骤。An embodiment of the present disclosure further provides a mobile terminal, including: a memory, a processor, and a wireless network connection program stored on the memory and operable on the processor, where the wireless network connection program is processed The steps of implementing the wireless network connection method are implemented when the device is executed.
本公开实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有无线网络连接程序,所述无线网络连接程序被处理器执行时实现所述的无线网络连接方法的步骤。The embodiment of the present disclosure further provides a computer readable storage medium having a wireless network connection program stored thereon, and the wireless network connection program is implemented by a processor to implement the wireless network connection method. step.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较 简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
在此提供的无线网络连接方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本公开方案的系统所要求的结构是显而易见的。此外,本公开也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。The wireless network connection schemes provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. From the above description, it is apparent that the structure required to construct the system having the presently disclosed aspect is apparent. Moreover, the present disclosure is not directed to any particular programming language. It is to be understood that the subject matter of the present disclosure, which is described herein, may be described in a particular language.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the present disclosure may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本公开的单独实施例。Similarly, the various features of the present disclosure are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the present disclosure, in order to simplify the disclosure and to facilitate understanding of one or more of the various inventive aspects. Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects lie in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the specific embodiments, and each of the claims as a separate embodiment of the present disclosure.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组 合意味着处于本公开的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present disclosure. Different embodiments are formed and formed. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的无线网络连接方案中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present disclosure may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the wireless network connection scheme in accordance with embodiments of the present disclosure. The present disclosure may also be implemented as a device or device program (eg, a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments are illustrative of the present disclosure and are not intended to limit the scope of the disclosure, and those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The present disclosure can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.

Claims (14)

  1. 一种无线网络连接方法,应用于移动终端,所述移动终端包括应用处理器AP端和调制解调器端,其中,所述方法包括:A wireless network connection method is applied to a mobile terminal, where the mobile terminal includes an application processor AP end and a modem end, wherein the method includes:
    当所述移动终端灭屏后,所述AP端进入休眠状态;After the mobile terminal is off the screen, the AP end enters a sleep state;
    所述调制解调器端与目标路由器建立无线网络连接后,向所述AP端发送连接信息;After the modem end establishes a wireless network connection with the target router, the connection information is sent to the AP end;
    所述AP端进入唤醒状态,与所述调制解调器端建立数据传输通道。The AP end enters an awake state, and establishes a data transmission channel with the modem end.
  2. 根据权利要求1所述的方法,其中,所述调制解调器端与目标路由器建立无线网络连接的步骤包括:The method of claim 1 wherein the step of the modem to establish a wireless network connection with the target router comprises:
    所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接。The modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router.
  3. 根据权利要求2所述的方法,其中,所述路由器扫描信息包括:已存储的路由器信息;The method of claim 2, wherein the router scan information comprises: stored router information;
    所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:The modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router, including:
    所述调制解调器端进行路由器扫描;The modem end performs router scanning;
    所述调制解调端判断扫描结果中是否包含所述已存储的路由器信息;Determining, by the modem, whether the stored router information is included in the scan result;
    当所述扫描结果中包含所述已存储的路由器信息时,与所述路由器信息对应的目标路由器建立无线网络连接。When the stored router information is included in the scan result, the target router corresponding to the router information establishes a wireless network connection.
  4. 根据权利要求2所述的方法,其中,所述路由器扫描信息包括:扫描周期;The method of claim 2, wherein the router scan information comprises: a scan period;
    所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:The modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router, including:
    所述调制解调器端按照所述扫描周期进行路由器扫描;The modem end performs router scanning according to the scanning period;
    当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接。When scanning to the target router, the modem end establishes a wireless network connection with the target router.
  5. 根据权利要求2所述的方法,其中,所述路由器扫描信息包括:预设扫描次数;The method of claim 2, wherein the router scan information comprises: a preset number of scans;
    所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:The modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router, including:
    所述调制解调器端进行路由器扫描,并更新路由器扫描次数;The modem end performs router scanning and updates the number of router scans;
    当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;When scanning to the target router, the modem end establishes a wireless network connection with the target router;
    当未扫描到目标路由器时,所述调制解调器端判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,继续进行路由器扫描。When the target router is not scanned, the modem determines whether the number of router scans exceeds the preset number of scans; if so, stops the router scan operation; otherwise, continues the router scan.
  6. 根据权利要求2所述的方法,其中,所述路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长;The method according to claim 2, wherein the router scan information comprises: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step;
    所述调制解调器端依据所述AP端发送的路由器扫描信息进行扫描,并与扫描到的目标路由器建立无线网络连接,包括:The modem end scans according to the router scan information sent by the AP end, and establishes a wireless network connection with the scanned target router, including:
    所述调制解调器端依据所述初始扫描周期进行路由器扫描;The modem end performs router scanning according to the initial scanning period;
    判断是否扫描到目标路由器,并更新路由器扫描次数;Determine whether to scan the target router and update the number of router scans;
    当扫描到目标路由器时,所述调制解调器端与所述目标路由器建立无线网络连接;When scanning to the target router, the modem end establishes a wireless network connection with the target router;
    当所述扫描次数等于所述预设扫描次数、且未扫描到目标路由器时,依据所述扫描周期递增步长调整扫描周期;When the number of scans is equal to the preset number of scans and the target router is not scanned, the scan period is adjusted according to the step of increasing the scan period;
    判断调整后的扫描周期是否大于所述最大扫描周期,若否,则依据调整后的扫描周期进行路由器扫描,并返回执行所述判断是否扫描到目标路由器,并更新路由器扫描次数的步骤。Determining whether the adjusted scan period is greater than the maximum scan period. If not, performing a router scan according to the adjusted scan period, and returning to the step of performing the determination of whether to scan to the target router and updating the number of router scans.
  7. 一种移动终端,包括AP端和调制解调器端,其中:A mobile terminal includes an AP end and a modem end, wherein:
    所述AP端,用于在所述移动终端灭屏后,进入休眠状态;在接收到来自所述调制解调器端的连接信息后,进入唤醒状态,与所述调制解调器端建立数据传输通道;The AP end is configured to enter a sleep state after the mobile terminal is off the screen; after receiving the connection information from the modem end, enter an awake state, and establish a data transmission channel with the modem end;
    所述调制解调器端,用于在与目标路由器建立无线网络连接后,向所述AP端发送连接信息。The modem end is configured to send connection information to the AP end after establishing a wireless network connection with the target router.
  8. 根据权利要求7所述的移动终端,其中,所述调制解调器端包括:The mobile terminal of claim 7, wherein the modem end comprises:
    扫描模块,用于依据所述AP端发送的路由器扫描信息进行扫描,并与 扫描到的目标路由器建立无线网络连接。The scanning module is configured to perform scanning according to the router scanning information sent by the AP end, and establish a wireless network connection with the scanned target router.
  9. 根据权利要求8所述的移动终端,其中,所述路由器扫描信息包括:已存储的路由器信息;The mobile terminal of claim 8, wherein the router scan information comprises: stored router information;
    所述扫描模块包括:The scanning module includes:
    路由器扫描子模块,用于进行路由器扫描;A router scanning submodule for performing router scanning;
    判定子模块,用于判断扫描结果中是否包含所述已存储的路由器信息;a determining submodule, configured to determine whether the stored router information is included in the scan result;
    第一网络连接子模块,用于当所述扫描结果中包含所述已存储的路由器信息时,与所述路由器信息对应的目标路由器建立无线网络连接。The first network connection submodule is configured to establish a wireless network connection with the target router corresponding to the router information when the stored router information is included in the scan result.
  10. 根据权利要求8所述的移动终端,其中,所述路由器扫描信息包括:扫描周期;所述扫描模块包括:The mobile terminal of claim 8, wherein the router scan information comprises: a scan period; the scan module comprises:
    周期扫描子模块,用于按照所述扫描周期进行路由器扫描;a periodic scanning submodule, configured to perform router scanning according to the scanning period;
    第二网络连接子模块,用于当扫描到目标路由器时,与所述目标路由器建立无线网络连接。The second network connection submodule is configured to establish a wireless network connection with the target router when scanning to the target router.
  11. 根据权利要求8所述的移动终端,其中,所述路由器扫描信息包括:预设扫描次数;所述扫描模块包括:The mobile terminal of claim 8, wherein the router scan information comprises: a preset number of scans; the scanning module comprises:
    扫描更新子模块,用于进行路由器扫描,并更新路由器扫描次数;Scan update sub-module for router scanning and updating the number of router scans;
    第三网络连接子模块,用于当扫描到目标路由器时,与所述目标路由器建立无线网络连接;a third network connection submodule, configured to establish a wireless network connection with the target router when scanning to the target router;
    第一次数判定子模块,用于当未扫描到目标路由器时,判断路由器扫描次数是否超出预设扫描次数;若是,则停止路由器扫描操作;否则,调用扫描更新子模块继续进行路由器扫描。The first number determining sub-module is configured to determine whether the router scanning times exceed the preset scanning times when the target router is not scanned; if yes, stop the router scanning operation; otherwise, invoke the scanning update sub-module to continue the router scanning.
  12. 根据权利要求8所述的移动终端,其中,所述路由器扫描信息包括:预设扫描次数、初始扫描周期、最大扫描周期以及扫描周期递增步长;所述扫描模块包括:The mobile terminal of claim 8, wherein the router scan information comprises: a preset scan count, an initial scan period, a maximum scan period, and a scan period increment step; the scan module includes:
    初始扫描子模块,用于所述调制解调器端依据所述初始扫描周期进行路由器扫描;An initial scanning submodule, configured to perform, by the modem end, a router scan according to the initial scanning period;
    第二次数判定子模块,用于判断是否扫描到目标路由器,并更新路由器扫描次数;a second number determining sub-module, configured to determine whether to scan the target router, and update the number of router scans;
    第四网络连接子模块,用于当扫描到目标路由器时,所述调制解调器端 与所述目标路由器建立无线网络连接;a fourth network connection submodule, configured to establish a wireless network connection with the target router when scanning to the target router;
    周期调整子模块,用于当所述扫描次数等于所述预设扫描次数、且未扫描到目标路由器时,依据所述扫描周期递增步长调整扫描周期;a period adjustment submodule, configured to: when the number of scans is equal to the preset number of scans, and not scanned to the target router, adjust the scan period according to the step of increasing the scan period;
    周期判断子模块,用于判断调整后的扫描周期是否大于所述最大扫描周期,若否,则依据调整后的扫描周期进行路由器扫描,并返回执行所述第二次数判定子模块。The period determining sub-module is configured to determine whether the adjusted scan period is greater than the maximum scan period, and if not, perform a router scan according to the adjusted scan period, and return to execute the second number determination sub-module.
  13. 一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至6中任一项所述的无线网络连接方法的步骤。A mobile terminal comprising: a memory, a processor, and a program stored on the memory and executable on the processor, the program being executed by the processor to implement any one of claims 1 to 6 The steps of the wireless network connection method described in the item.
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如权利要求1至6中任一项所述的无线网络连接方法的步骤。A computer readable storage medium, wherein the computer readable storage medium stores a program, the program being executed by a processor to implement the steps of the wireless network connection method according to any one of claims 1 to 6. .
PCT/CN2018/096296 2017-07-21 2018-07-19 Wireless network connecting method and mobile terminal WO2019015649A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710601616.8A CN107295608A (en) 2017-07-21 2017-07-21 A kind of wireless network connecting method and mobile terminal
CN201710601616.8 2017-07-21

Publications (1)

Publication Number Publication Date
WO2019015649A1 true WO2019015649A1 (en) 2019-01-24

Family

ID=60102800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/096296 WO2019015649A1 (en) 2017-07-21 2018-07-19 Wireless network connecting method and mobile terminal

Country Status (2)

Country Link
CN (1) CN107295608A (en)
WO (1) WO2019015649A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295608A (en) * 2017-07-21 2017-10-24 维沃移动通信有限公司 A kind of wireless network connecting method and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420775A (en) * 2008-11-13 2009-04-29 华为技术有限公司 Communication device and signal transferring method
CN103402246A (en) * 2013-08-02 2013-11-20 北京电子科技职业学院 Method for reducing energy consumption of mobile communications terminal
US20150106637A1 (en) * 2013-10-11 2015-04-16 Huawei Device Co., Ltd. Data Processing Method, Modem, and Terminal
CN105933962A (en) * 2016-05-18 2016-09-07 深圳天珑无线科技有限公司 Wi-Fi power-saving method and mobile terminal
CN107295608A (en) * 2017-07-21 2017-10-24 维沃移动通信有限公司 A kind of wireless network connecting method and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9294996B2 (en) * 2012-02-24 2016-03-22 Intel Deutschland Gmbh Enhanced power management in communication device
US20130238915A1 (en) * 2012-03-12 2013-09-12 Broadcom Corporation Application processor wake-up suppression
CN105379362B (en) * 2013-07-11 2019-06-14 诺基亚技术有限公司 The method and device and equipment of communication under processing suspend mode
US9699732B2 (en) * 2014-04-29 2017-07-04 Samsung Electronics Co., Ltd. Apparatus and method for controlling communication module
CN104284326A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal power saving method, system, application processor and wireless module
CN104486824A (en) * 2014-12-12 2015-04-01 上海斐讯数据通信技术有限公司 Energy-saving method and energy-saving device of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420775A (en) * 2008-11-13 2009-04-29 华为技术有限公司 Communication device and signal transferring method
CN103402246A (en) * 2013-08-02 2013-11-20 北京电子科技职业学院 Method for reducing energy consumption of mobile communications terminal
US20150106637A1 (en) * 2013-10-11 2015-04-16 Huawei Device Co., Ltd. Data Processing Method, Modem, and Terminal
CN105933962A (en) * 2016-05-18 2016-09-07 深圳天珑无线科技有限公司 Wi-Fi power-saving method and mobile terminal
CN107295608A (en) * 2017-07-21 2017-10-24 维沃移动通信有限公司 A kind of wireless network connecting method and mobile terminal

Also Published As

Publication number Publication date
CN107295608A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US20210271306A1 (en) Apparatus and method for waking up a processor
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
RU2603258C1 (en) Method, device, equipment and system for control of connection and disconnection of a wireless network
WO2018082542A1 (en) Method for configuring discontinuous reception parameter, mobile terminal and base station
CN103699409B (en) Awakening state switching-in method, device and system for electronic device
WO2018219104A1 (en) Power saving control method and related product
WO2018040891A1 (en) Information display method and mobile terminal
US20200244429A1 (en) Method for controlling activation of bwp, user equipment and base station
CN104375886B (en) Information processing method, device and electronic equipment
US20140035853A1 (en) Method and apparatus for providing user interaction based on multi touch finger gesture
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN103389863A (en) Display control method and device
WO2014206138A1 (en) Webpage data update method, apparatus and terminal device
US20130227175A1 (en) Electronic devices and methods for sharing peripheral devices in dual operating systems
WO2018209555A1 (en) Bluetooth device connection method and terminal device
WO2015078145A1 (en) Method and apparatus for enlarging display font
WO2017206853A1 (en) Swiping response acceleration method and related products
CN105807891A (en) Screen control method and device, and electronic equipment
WO2018166169A1 (en) Fingerprint recognition method and related product
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
CN105940368A (en) Pattern lock unlocking method and terminal
WO2019015649A1 (en) Wireless network connecting method and mobile terminal
US20200260374A1 (en) Method and apparatus for scanning access points in a portable terminal
CN107734610B (en) Message processing method, mobile terminal and computer readable storage medium
CN107203377B (en) Mobile terminal and awakening method thereof

Legal Events

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

Ref document number: 18836190

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18836190

Country of ref document: EP

Kind code of ref document: A1