[go: up one dir, main page]

CN106358225B - Network data processing method and device and mobile terminal - Google Patents

Network data processing method and device and mobile terminal Download PDF

Info

Publication number
CN106358225B
CN106358225B CN201610836823.7A CN201610836823A CN106358225B CN 106358225 B CN106358225 B CN 106358225B CN 201610836823 A CN201610836823 A CN 201610836823A CN 106358225 B CN106358225 B CN 106358225B
Authority
CN
China
Prior art keywords
network
mobile data
mobile
local area
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610836823.7A
Other languages
Chinese (zh)
Other versions
CN106358225A (en
Inventor
肖龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610836823.7A priority Critical patent/CN106358225B/en
Publication of CN106358225A publication Critical patent/CN106358225A/en
Application granted granted Critical
Publication of CN106358225B publication Critical patent/CN106358225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Landscapes

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

Abstract

The invention provides a network data processing method, a device and a mobile terminal, wherein the method comprises the following steps: when the mobile terminal detects a closing instruction of the wireless local area network, acquiring an initial time point; starting calculation from the initial time point, and controlling to continue to carry out network access through the wireless local area network within a preset time period; starting a mobile data network of the mobile terminal in the preset time period; and when the preset time period is over, responding to the closing instruction of the wireless local area network, and performing network access through the mobile data network. According to the invention, timing is started after the closing instruction of the wireless local area network is detected, the wireless local area network is continuously used for network access within the preset time, the mobile data network is started, timing is finished, the wireless local area network is closed, and the mobile data network is used for network access.

Description

一种网络数据的处理方法、装置及移动终端Method, device and mobile terminal for processing network data

技术领域technical field

本发明涉及移动终端网络技术领域,尤其涉及一种网络数据的处理方法、装置及移动终端。The present invention relates to the field of mobile terminal network technology, in particular to a network data processing method, device and mobile terminal.

背景技术Background technique

随着无线局域网(WLAN,Wireless Local Area Networks)的普及,用户经常可以通过无线保真(Wi-Fi,Wireless-Fidelity)网络访问互联网,通过Wi-Fi网络访问互联网的优先级高于通过移动数据网络访问互联网的优先级,比如,移动终端在Wi-Fi网络接通时,只通过Wi-Fi网络访问互联网。With the popularization of wireless local area network (WLAN, Wireless Local Area Networks), users can often access the Internet through a wireless fidelity (Wi-Fi, Wireless-Fidelity) network, and the priority of accessing the Internet through a Wi-Fi network is higher than that through mobile data. The priority of network access to the Internet. For example, when the Wi-Fi network is connected, the mobile terminal only accesses the Internet through the Wi-Fi network.

在通过Wi-Fi网络访问互联网时,很多时候由于Wi-Fi网络信号较弱或者网络数据阻塞,导致移动终端访问互联网的速率过慢,此时用户需要关闭Wi-Fi功能,接入移动数据网络来访问互联网,现有技术在关闭Wi-Fi时到移动数据网络开启时,需要一定的时间,在这段时间内,移动终端无法访问网络,可能导致网页出错、加载失败等情况。When accessing the Internet through a Wi-Fi network, the speed of mobile terminals accessing the Internet is often too slow due to weak Wi-Fi network signals or network data congestion. At this time, users need to turn off the Wi-Fi function and access the mobile data network. To access the Internet, in the prior art, it takes a certain amount of time from when the Wi-Fi is turned off to when the mobile data network is turned on. During this time, the mobile terminal cannot access the network, which may cause web page errors, loading failures, and the like.

发明内容Contents of the invention

本发明的目的在于提供一种网络数据的处理方法、装置及移动终端,旨在避免因为网络中断而导致网络使用异常的情况,提升网络访问效率,节省数据流量。The purpose of the present invention is to provide a network data processing method, device and mobile terminal, aiming at avoiding abnormal network use caused by network interruption, improving network access efficiency, and saving data traffic.

为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:

一种网络数据的处理方法,包括:A method for processing network data, comprising:

当移动终端检测到无线局域网的关闭指令时,获取初始时间点;When the mobile terminal detects the closing instruction of the wireless local area network, obtain the initial time point;

从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;Counting from the initial time point, controlling to continue network access through the wireless local area network within a preset time period;

在所述预设时间段内开启移动终端的移动数据网络;Turn on the mobile data network of the mobile terminal within the preset time period;

在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。At the end of the preset time period, respond to the closing instruction of the wireless local area network, and perform network access through the mobile data network.

为解决上述技术问题,本发明实施例还提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention also provide the following technical solutions:

一种网络数据的处理装置,包括:A network data processing device, comprising:

获取模块,用于当移动终端检测到无线局域网的关闭指令时,获取初始时间点;An acquisition module, configured to acquire an initial time point when the mobile terminal detects a closing instruction of the wireless local area network;

控制模块,用于从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;A control module, configured to start counting from the initial time point, and control to continue network access through the wireless local area network within a preset time period;

开启模块,用于在所述预设时间段内开启移动终端的移动数据网络;Opening a module, used to open the mobile data network of the mobile terminal within the preset time period;

响应模块,用于在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。The response module is configured to respond to the shutdown instruction of the wireless local area network and perform network access through the mobile data network at the end of the preset time period.

为解决上述技术问题,本发明实施例还提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention also provide the following technical solutions:

一种移动终端,包括:A mobile terminal, comprising:

存储有可执行程序代码的存储器;a memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例提供的任一种网络数据的处理方法。The processor invokes the executable program code stored in the memory to execute any method for processing network data provided in the embodiments of the present invention.

相对于现有技术,本实施例提供的一种网络数据的处理方法、装置及移动终端,通过在检测到无线局域网的关闭指令后开始计时,在计时时间段内继续使用无线局域网进行网络访问,并开启移动数据网络,计时结束后,关闭无线局域网,并使用移动数据网络进行网络访问,避免了无线局域网关闭后启动移动数据网络时的时间延迟问题,极大的节省了用户的时间与数据流量。Compared with the prior art, the network data processing method, device, and mobile terminal provided in this embodiment start counting after detecting the closing command of the wireless local area network, and continue to use the wireless local area network for network access within the timing period, And turn on the mobile data network, after the timing is over, turn off the wireless LAN, and use the mobile data network for network access, avoiding the time delay problem when starting the mobile data network after the wireless LAN is turned off, and greatly saving the user's time and data traffic .

附图说明Description of drawings

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

图1是本发明实施例提供的网络数据的处理方法的流程示意图。FIG. 1 is a schematic flowchart of a method for processing network data provided by an embodiment of the present invention.

图2为本发明实施例提供的网页加载失败的界面示意图。FIG. 2 is a schematic diagram of an interface of a webpage loading failure provided by an embodiment of the present invention.

图3为本发明实施例提供的网络数据的处理方法的另一流程示意图。FIG. 3 is another schematic flowchart of a method for processing network data provided by an embodiment of the present invention.

图4为本发明实施例提供的网络数据的处理装置的模块示意图。FIG. 4 is a block diagram of a device for processing network data provided by an embodiment of the present invention.

图5为本发明实施例提供的网络数据的处理装置的另一模块示意图。FIG. 5 is a schematic diagram of another module of a device for processing network data provided by an embodiment of the present invention.

图6为本发明实施例提供的移动终端结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式detailed description

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.

本文所使用的术语「模块」可看做为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法优选的以软件的方式进行实施,当然也可在硬件上进行实施,均在本发明保护范围之内。The term "module" as used herein may be considered a software object that executes on the computing system. The various components, modules, engines and services described herein can be considered as implementation objects on the computing system. The devices and methods described herein are preferably implemented in the form of software, and of course they can also be implemented in hardware, all of which are within the protection scope of the present invention.

以下进行具体分析说明。The specific analysis will be described below.

在本实施例中,将从网络数据的处理装置的角度进行描述,该网络数据的处理装置具体可以集成在移动终端,比如手机、平板电脑、掌上电脑(PDA,Personal DigitalAssistant)等。In this embodiment, description will be made from the perspective of a network data processing device. The network data processing device may specifically be integrated in a mobile terminal, such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant) and the like.

一种网络数据的处理方法,包括:当移动终端检测到无线局域网的关闭指令时,获取初始时间点;从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;在所述预设时间段内开启移动终端的移动数据网络;在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。A method for processing network data, comprising: when a mobile terminal detects a closing instruction of a wireless local area network, obtaining an initial time point; starting from the initial time point, the control continues to be performed through the wireless local area network within a preset time period Network access: turn on the mobile data network of the mobile terminal within the preset time period; when the preset time period ends, respond to the closing instruction of the wireless local area network, and perform network access through the mobile data network.

请参阅图1,图1是本发明实施例提供的网络数据的处理方法的流程示意图。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for processing network data provided by an embodiment of the present invention.

具体而言,所述方法包括:Specifically, the methods include:

在步骤S101中,当移动终端检测到无线局域网的关闭指令时,获取初始时间点。In step S101, when the mobile terminal detects an instruction to shut down the wireless local area network, an initial time point is acquired.

可以理解的是,所述无线局域网WLAN利用无线技术在空中传输数据、话音和视频信号。作为传统布线网络的一种替代方案或延伸,无线局域网把个人从办公桌边解放了出来,使他们可以随时随地获取信息,提高了员工的办公效率,而无线保真Wi-Fi是一种允许电子设备连接到一个无线局域网的技术,通常使用2.4G UHF或5G SHF ISM射频频段。连接到无线局域网通常是有密码保护的,但也可是开放的,这样就允许任何在WLAN范围内的设备可以连接上,是当今使用最广的一种无线网络传输技术,所述移动数据网络是指使用第二代手机通信技术规格2G、第三代移动通信技术3G、第四代移动通信技术4G等移动通信技术进行网络访问的网络访问方式。It can be understood that the wireless local area network WLAN uses wireless technology to transmit data, voice and video signals in the air. As an alternative or extension of the traditional wiring network, wireless local area network liberates individuals from their desks, enabling them to obtain information anytime and anywhere, improving the office efficiency of employees, and wireless fidelity Wi-Fi is a technology that allows A technology for connecting electronic devices to a wireless local area network, usually using 2.4G UHF or 5G SHF ISM radio frequency bands. Connecting to a wireless local area network is usually password-protected, but it can also be open, allowing any device within the range of the WLAN to connect. It is the most widely used wireless network transmission technology today. The mobile data network is Refers to the network access method that uses mobile communication technologies such as the second-generation mobile communication technology specification 2G, the third-generation mobile communication technology 3G, and the fourth-generation mobile communication technology 4G for network access.

其中,所述初始时间点指移动终端检测发现无线局域网的关闭指令时当前的时间点,所述无线局域网的关闭指令是指将移动终端上的Wi-Fi关闭的指令,所述关闭指令可以是用户因为当前无线局域网的网速过慢手动关闭移动终端上的Wi-Fi所产生的,也可以是移动终端检测到无线局域网信号强度太低而产生的。Wherein, the initial time point refers to the current time point when the mobile terminal detects and discovers the shutdown instruction of the wireless local area network, and the shutdown instruction of the wireless local area network refers to an instruction to turn off Wi-Fi on the mobile terminal, and the shutdown instruction may be The user manually turns off the Wi-Fi on the mobile terminal because the network speed of the current wireless local area network is too slow, or the mobile terminal detects that the signal strength of the wireless local area network is too low.

比如,用户点击手机关闭手机上的Wi-Fi时,产生Wi-Fi的关闭指令,并获取当前的初始时间点,如18:00:20。For example, when the user clicks on the mobile phone to turn off the Wi-Fi on the mobile phone, a Wi-Fi shutdown command is generated and the current initial time point, such as 18:00:20, is obtained.

在步骤S102中,从初始时间点开始计算,控制在预设时间段内继续通过无线局域网进行网络访问。In step S102, counting from the initial time point, the control continues to perform network access through the wireless local area network within a preset time period.

可以理解的是,在移动终端开启移动数据网络时,移动数据网络需要一定时间才可以访问网络,此时若将无线局域网关闭,则可能导致一些网页因为无法访问网络而弹出网页加载失败的界面,如图2所示,图2为网页加载失败的界面示意图,此时用户需要点击刷新页面,界面才会重新获取数据,这样不仅导致用户的体验感差,而且在需要重新加载在无线局域网中缓冲的数据,极大的浪费了数据流量。It is understandable that when the mobile terminal turns on the mobile data network, the mobile data network needs a certain period of time to access the network. If the wireless LAN is turned off at this time, it may cause some webpages to pop up an interface that failed to load the webpage because they cannot access the network. As shown in Figure 2, Figure 2 is a schematic diagram of the interface where the web page fails to load. At this time, the user needs to click to refresh the page, and the interface will re-acquire the data. data, a great waste of data traffic.

其中,所述预设时间段为缓冲时间,在此时间段内,保持继续通过无线局域网进行网络访问,以使移动数据网络可以在此时间段内完成访问网络的准备。Wherein, the preset time period is a buffer time, and within this time period, the network access through the wireless local area network is maintained, so that the mobile data network can complete the preparation for accessing the network within this time period.

在步骤S103中,在预设时间段内开启移动终端的移动数据网络。In step S103, the mobile data network of the mobile terminal is turned on within a preset time period.

具体而言,所述在预设时间段内开启移动终端的移动数据网络包括:Specifically, the opening of the mobile data network of the mobile terminal within the preset time period includes:

(1)在预设时间段内开启移动数据网络的网络适配器。(1) Turn on the network adapter of the mobile data network within a preset time period.

可以理解的是,所述网络适配器也称网卡,是工作在链路层的网络组件,能实现与局域网传输介质之间的物理连接和电信号匹配,还涉及帧的发送与接收、帧的封装与拆封、介质访问控制、数据的编码与解码以及数据缓存的功能等。It can be understood that the network adapter is also called a network card, which is a network component working at the link layer, which can realize the physical connection and electrical signal matching with the transmission medium of the LAN, and also involves the sending and receiving of frames, and the encapsulation of frames. and unpacking, media access control, data encoding and decoding, and data caching functions.

(2)通过所述网络适配器开启移动数据网络。(2) Turn on the mobile data network through the network adapter.

其中,移动终端通过开启的移动数据网络的网络适配器,来实现访问网络。Wherein, the mobile terminal implements access to the network through an enabled network adapter of the mobile data network.

在步骤S104中,在预设时间段结束时,响应无线局域网的关闭指令,并通过移动数据网络进行网络访问。In step S104, when the preset time period ends, respond to the shutdown instruction of the wireless local area network, and perform network access through the mobile data network.

其中,在预设时间段结束时,代表着移动数据网络已经完全开启,可以开始访问网络,此时已经不需要无线局域网了,响应执行无线局域网的关闭指令,通过已开启的移动数据网络进行访问网络。Among them, at the end of the preset time period, it means that the mobile data network has been fully opened, and the network can be accessed. At this time, the wireless local area network is no longer needed, and the mobile data network is accessed through the opened mobile data network in response to the closing command of the wireless local area network. network.

由上述可知,本实施例提供的一种网络数据的处理方法,通过在检测到无线局域网的关闭指令后开始计时,在计时时间段内继续使用无线局域网进行网络访问,并开启移动数据网络,计时结束后,关闭无线局域网,并使用移动数据网络进行网络访问,相对于现有技术,避免了无线局域网关闭后启动移动数据网络时的时间延迟问题,极大的节省了用户的时间与数据流量。As can be seen from the above, the network data processing method provided by this embodiment starts timing after detecting the closing command of the wireless local area network, continues to use the wireless local area network for network access within the timing period, and turns on the mobile data network, timing After the end, close the wireless local area network and use the mobile data network for network access. Compared with the prior art, the time delay problem when starting the mobile data network after the wireless local area network is closed is avoided, and the user's time and data flow are greatly saved.

根据上述实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the above embodiments, examples will be given below for further detailed description.

请参阅图3,图3为本发明实施例提供的网络数据的处理方法的另一流程示意图。Please refer to FIG. 3 . FIG. 3 is another schematic flowchart of a method for processing network data provided by an embodiment of the present invention.

具体而言,所述方法包括:Specifically, the methods include:

在步骤S201中,检测移动终端当前连接的无线局域网的网络信号强度。In step S201, the network signal strength of the wireless local area network to which the mobile terminal is currently connected is detected.

其中,所述无线局域网的网络信号强度是随着无线发射源与移动终端的距离的增大而减小的,而所述网络信号强度直接影响移动终端通过无线局域网访问网络的速率,网络信号强度越小,移动终端通过无线局域网访问网络的速率越慢。Wherein, the network signal strength of the wireless local area network decreases as the distance between the wireless transmission source and the mobile terminal increases, and the network signal strength directly affects the rate at which the mobile terminal accesses the network through the wireless local area network, and the network signal strength The smaller the value, the slower the rate at which the mobile terminal can access the network through the WLAN.

比如,手机通过Wi-Fi连接无线局域网进行上网时,随着手机离无线路由器的距离越远,手机上的Wi-Fi信号强度就越差,手机上网的速度就越慢。For example, when a mobile phone is connected to a wireless local area network through Wi-Fi to surf the Internet, the farther the mobile phone is from the wireless router, the weaker the Wi-Fi signal strength on the mobile phone will be, and the slower the mobile Internet access speed will be.

在步骤S202中,当网络信号强度小于预设信号强度阈值时,生成无线局域网的关闭指令。In step S202, when the network signal strength is lower than the preset signal strength threshold, a shutdown instruction of the wireless local area network is generated.

可以理解的是,当网络信号强度小于一定的预设信号强度阈值时,此时移动终端访问网络的速度就会很慢,为了更好的享受网络服务,会将移动终端上的Wi-Fi连接关闭,使用其他方式进行访问网络,如移动数据网络等。It is understandable that when the network signal strength is less than a certain preset signal strength threshold, the speed at which the mobile terminal accesses the network will be very slow. In order to better enjoy network services, the Wi-Fi connection on the mobile terminal will be connected to Close it and use other methods to access the network, such as mobile data network.

在某种可能的实施方式中,所述无线局域网的关闭指令还可以由用户通过点击移动终端上的Wi-Fi关闭功能按钮来进行生成。In a certain possible implementation manner, the instruction to close the wireless local area network may also be generated by the user by clicking a Wi-Fi close function button on the mobile terminal.

比如,当手机上的Wi-Fi连接信号显示小于2格,仅为一格时,手机通过Wi-Fi上网的速率会很慢,此时自动生成将Wi-Fi关闭的指令,又或者因为当前的无线局域网网络连接环境差,用户手动的点击手机上的Wi-Fi关闭按钮,以使用其他方式,如移动数据网络进行上网。For example, when the Wi-Fi connection signal on the mobile phone shows less than 2 bars, only one bar, the speed of the mobile phone surfing the Internet through Wi-Fi will be very slow. At this time, an instruction to turn off Wi-Fi is automatically generated, or because the current The wireless LAN network connection environment is poor, and the user manually clicks the Wi-Fi off button on the mobile phone to use other methods, such as a mobile data network, to access the Internet.

在步骤S203中,当移动终端检测到无线局域网的关闭指令时,获取初始时间点。In step S203, when the mobile terminal detects an instruction to close the wireless local area network, an initial time point is acquired.

其中,当移动终端检测到无线局域网的关闭指令时,不即时执行关闭执行,继续使用所述无线局域网,并获取移动终端当前的时间点。Wherein, when the mobile terminal detects the closing instruction of the wireless local area network, it does not execute the closing execution immediately, but continues to use the wireless local area network, and obtains the current time point of the mobile terminal.

比如,手机检测到Wi-Fi关闭指令时,不马上执行关闭Wi-Fi的操作,继续使用Wi-Fi连接当前无线局域网,并且获取当前手机的时间,如17:00:10。For example, when the mobile phone detects the Wi-Fi shutdown command, it does not immediately execute the Wi-Fi shutdown operation, but continues to use Wi-Fi to connect to the current wireless LAN, and obtains the current time of the mobile phone, such as 17:00:10.

在步骤S204中,从初始时间点开始计算,控制在预设时间段内继续通过无线局域网进行网络访问。In step S204, counting from the initial time point, the control continues to perform network access through the wireless local area network within a preset time period.

可以理解的是,在移动终端开启移动数据网络时,移动数据网络需要一定时间才可以访问网络,此时若将无线局域网关闭,则可能导致一些网页因为无法访问网络而弹出网页加载失败的界面,如图2所示,图2为网页加载失败的界面示意图,此时用户需要点击刷新页面,界面才会重新获取数据,这样不仅导致用户的体验感差,而且在需要重新加载在无线局域网中缓冲的数据,极大的浪费了数据流量。It is understandable that when the mobile terminal turns on the mobile data network, the mobile data network needs a certain period of time to access the network. If the wireless LAN is turned off at this time, it may cause some webpages to pop up an interface that failed to load the webpage because they cannot access the network. As shown in Figure 2, Figure 2 is a schematic diagram of the interface where the web page fails to load. At this time, the user needs to click to refresh the page, and the interface will re-acquire the data. data, a great waste of data traffic.

其中,在预设时间段内继续使用Wi-Fi连接无线局域网进行网络访问,是为了给移动终端开启移动数据网络提供一个缓冲时间,这样可以使网络进行一个对接切换,避免网页加载失败的界面产生的情况。Among them, continuing to use Wi-Fi to connect to the wireless local area network for network access within the preset time period is to provide a buffer time for the mobile terminal to open the mobile data network, so that the network can perform a docking switch and avoid the interface of web page loading failure. Case.

比如,预设时间段为10秒,在手机上从初始时间17:00:10开始计算,控制在17:00:10到17:00:20之间,手机继续是通过Wi-Fi连接无线局域网进行网络访问。For example, the preset time period is 10 seconds, and the calculation starts from the initial time 17:00:10 on the mobile phone, and the control is between 17:00:10 and 17:00:20. The mobile phone continues to connect to the wireless LAN through Wi-Fi for network access.

在步骤S205中,在预设时间段内开启移动数据网络的网络适配器。In step S205, the network adapter of the mobile data network is turned on within a preset period of time.

在一种可能的实施方式中,所述在预设时间段内开启移动数据网络的网络适配器包括:In a possible implementation manner, the network adapter enabling the mobile data network within the preset time period includes:

(1)在预设时间段内,判断移动数据网络是否处于等待状态。(1) Within a preset time period, it is determined whether the mobile data network is in a waiting state.

可以理解的是,在移动终端同时开启Wi-Fi和移动数据网络的时候,Wi-Fi的优先级要高于移动数据网络的优先级,此时移动数据网络处于等待使用的状态,简称等待状态,此时在Wi-Fi关闭的时候,移动终端会自动的切换到使用移动数据网络访问网络,相应的移动数据网络还包括关闭状态。It is understandable that when the mobile terminal turns on Wi-Fi and mobile data network at the same time, the priority of Wi-Fi is higher than the priority of mobile data network. At this time, the mobile data network is in the state of waiting for use, referred to as waiting state , when the Wi-Fi is turned off, the mobile terminal will automatically switch to using the mobile data network to access the network, and the corresponding mobile data network also includes a closed state.

其中,若判断出移动数据网络处于等待状态,则执行步骤(2),若判断出移动数据网络不处于等待状态,则执行步骤(3)。Wherein, if it is judged that the mobile data network is in the waiting state, then step (2) is executed; if it is judged that the mobile data network is not in the waiting state, then step (3) is executed.

(2)直接开启移动数据网络的网络适配器。(2) Directly open the network adapter of the mobile data network.

其中,由于移动数据网络处于开启状态,故直接开启移动数据网络的网络适配器,使移动数据网络由等待状态变为开始工作状态。Wherein, since the mobile data network is in the open state, the network adapter of the mobile data network is directly turned on, so that the mobile data network changes from the waiting state to the starting state.

(3)激活移动数据网络状态,并开启移动数据网络的网络适配器。(3) Activate the state of the mobile data network, and turn on the network adapter of the mobile data network.

其中,由于移动数据网络处于关闭状态,故需要先激活移动数据网络状态,然后才可以开启移动数据网络的网络适配器。Wherein, since the mobile data network is in the closed state, the state of the mobile data network needs to be activated first, and then the network adapter of the mobile data network can be turned on.

在另一种可能的实施方式中,在预设时间段内,判断移动数据网络是否处于等待状态,若处于等待状态,开启移动数据网络的网络适配器,若不处于等待状态,则直接执行无线局域网的关闭指令。In another possible implementation, within a preset period of time, it is judged whether the mobile data network is in the waiting state, if it is in the waiting state, the network adapter of the mobile data network is turned on, and if it is not in the waiting state, the wireless local area network is directly executed. the close command.

在步骤S206中,通过网络适配器开启移动数据网络。In step S206, the mobile data network is enabled through the network adapter.

在步骤S207中,在预设时间段结束时,响应无线局域网的关闭指令,并通过移动数据网络进行网络访问。In step S207, when the preset time period ends, respond to the shutdown instruction of the wireless local area network, and perform network access through the mobile data network.

其中,在预设时间段结束时,经过缓冲,移动数据网络已经开始工作,可以通过移动数据网络访问网络,执行无线局域网的关闭指令,关闭移动终端的Wi-Fi,对接移动数据网络进行网络访问,防止了因为无法访问网络而弹出网页加载失败的界面,节省了流量,提升了网络使用的流畅性。Wherein, at the end of the preset time period, after buffering, the mobile data network has started to work, the network can be accessed through the mobile data network, the closing command of the wireless local area network is executed, the Wi-Fi of the mobile terminal is turned off, and the mobile data network is connected to the network for network access , preventing the interface of webpage loading failure from popping up due to the inability to access the network, saving traffic and improving the fluency of network use.

比如,手机在初始时间点17:00:10开启手机上的移动数据网络的网络适配器,网络适配器开始工作,在预设时间段结束时,如17:00:20,关闭手机Wi-Fi,使用手机的移动数据网络,如3G进行网络访问,此时手机的移动数据网络经过预设时间段的缓冲,已经完成对接可直接进行网络访问了。For example, the mobile phone turns on the network adapter of the mobile data network on the mobile phone at the initial time point 17:00:10, and the network adapter starts to work. When the preset time period ends, such as 17:00:20, turn off the mobile phone Wi-Fi, use The mobile data network of the mobile phone, such as 3G, conducts network access. At this time, the mobile data network of the mobile phone has been buffered for a preset period of time, and the connection has been completed and the network access can be directly performed.

在步骤S208中,统计使用移动数据网络耗费的流量值。In step S208, the traffic value consumed by using the mobile data network is counted.

可以理解的是,现有运营商提供的移动数据网络套餐都有一定的数据流量限值,当超过这个限值时,会产生一定额度的费用。It is understandable that the mobile data network packages provided by existing operators all have a certain data traffic limit, and when this limit is exceeded, a certain amount of fees will be incurred.

其中,可以在移动终端上生成一个半透明的小型提示框,显示用户当前通过移动数据网络使用的流量值。Wherein, a small translucent prompt box may be generated on the mobile terminal to display the traffic value currently used by the user through the mobile data network.

比如,在手机使用移动数据网络进行网络访问时,在手机上形成一个半透明的圆形流量提示框,显示当前使用的流量数,如100Mb。For example, when the mobile phone uses the mobile data network for network access, a semi-transparent circular traffic prompt box is formed on the mobile phone, displaying the current used traffic number, such as 100Mb.

在步骤S209中,当流量值达到预设流量阈值时,关闭移动终端的移动数据网络,并发送提示信息,以提示用户移动数据网络流量的使用情况。In step S209, when the traffic value reaches the preset traffic threshold, the mobile data network of the mobile terminal is turned off, and a reminder message is sent to remind the user of the traffic usage of the mobile data network.

可以理解的是,用户可以根据数据流量限值设置合适的预设流量阈值,以控制移动数据网络的使用值。It can be understood that the user can set an appropriate preset traffic threshold according to the data traffic limit, so as to control the usage value of the mobile data network.

比如,在关闭手机的Wi-Fi后,使用移动数据网络流量达到300Mb,则关闭当前移动数据网络,并发送提示信息,询问用户是否继续使用当前移动数据网络。For example, after the Wi-Fi of the mobile phone is turned off, and the mobile data network traffic reaches 300Mb, the current mobile data network is turned off, and a prompt message is sent to ask the user whether to continue using the current mobile data network.

由上述可知,本实施例提供的一种网络数据的处理方法,通过在检测到移动终端当前网络信息强度小于一定信号强度阈值时,生成无线局域网的关闭指令,检测到无线局域网的关闭指令后开始计时,在计时时间段内继续使用无线局域网进行网络访问,并开启移动数据网络,计时结束后,关闭无线局域网,并使用移动数据网络进行网络访问,在使用移动数据网络产生的流量值到达预设流量阈值时,关闭移动数据网络,并提示用户当前使用情况,相对于现有技术,避免了无线局域网关闭后启动移动数据网络时的时间延迟问题,极大的节省了用户的时间与数据流量。As can be seen from the above, the method for processing network data provided by this embodiment generates a shutdown command of the wireless local area network when it is detected that the current network information strength of the mobile terminal is less than a certain signal strength threshold, and starts after detecting the shutdown command of the wireless local area network. Timing, continue to use the wireless LAN for network access during the timing period, and turn on the mobile data network. After the timing is over, turn off the wireless LAN and use the mobile data network for network access. When the traffic value generated by using the mobile data network reaches the preset When the traffic threshold is reached, the mobile data network is turned off and the user is prompted for the current usage. Compared with the existing technology, the time delay problem when the mobile data network is started after the wireless LAN is turned off is avoided, and the user's time and data traffic are greatly saved.

为便于更好的实施本发明实施例提供的网络数据的处理方法,本发明实施例还提供一种基于上述网络数据的处理方法的装置。其中名词的含义与上述网络数据的处理方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the method for processing network data provided by the embodiment of the present invention, the embodiment of the present invention further provides a device based on the above method for processing network data. The meanings of the nouns are the same as those in the above-mentioned network data processing method, and for specific implementation details, please refer to the description in the method embodiments.

请参阅图4,图4为本发明实施例提供的网络数据的处理装置的模块示意图。具体而言,所述网络数据的处理装置300,包括:获取模块31、控制模块32、开启模块33、以及响应模块34。Please refer to FIG. 4 . FIG. 4 is a block diagram of a device for processing network data provided by an embodiment of the present invention. Specifically, the network data processing device 300 includes: an acquisition module 31 , a control module 32 , an opening module 33 , and a response module 34 .

所述获取模块31,用于当移动终端检测到无线局域网的关闭指令时,获取初始时间点。The acquiring module 31 is configured to acquire an initial time point when the mobile terminal detects an instruction to close the wireless local area network.

其中,所述获取模块31中的所述无线局域网的关闭指令是指将移动终端上的Wi-Fi关闭的指令。Wherein, the instruction to close the wireless local area network in the acquisition module 31 refers to an instruction to turn off Wi-Fi on the mobile terminal.

所述控制模块32,用于从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问。The control module 32 is configured to start counting from the initial time point, and control to continue network access through the wireless local area network within a preset time period.

其中,所述控制模块32中所述的预设时间段为缓冲时间,所述控制模块32控制移动终端在此缓冲时间内继续通过无线局域网进行网络访问。Wherein, the preset time period in the control module 32 is a buffer time, and the control module 32 controls the mobile terminal to continue to perform network access through the wireless local area network within the buffer time.

所述开启模块33,用于在所述预设时间段内开启移动终端的移动数据网络。The enabling module 33 is configured to enable the mobile data network of the mobile terminal within the preset time period.

所述响应模块34,用于在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。The response module 34 is configured to respond to the shutdown instruction of the wireless local area network at the end of the preset time period, and perform network access through the mobile data network.

其中,所述响应模块34在预设时间段结束时,关闭移动终端的Wi-Fi功能,通过移动终端上的移动数据网络进行网络访问。Wherein, the response module 34 turns off the Wi-Fi function of the mobile terminal at the end of the preset time period, and performs network access through the mobile data network on the mobile terminal.

可一并参考图5,图5为本发明实施例提供的网络数据的处理装置的另一模块示意图,所述网络数据的处理装置300还可以包括:Refer to FIG. 5 together. FIG. 5 is a schematic diagram of another module of a network data processing device provided by an embodiment of the present invention. The network data processing device 300 may also include:

其中,所述开启模块33可以具体包括:Wherein, the opening module 33 may specifically include:

适配器开启子模块331,用于在预设时间段内开启移动数据网络的网络适配器。The adapter enabling sub-module 331 is configured to enable the network adapter of the mobile data network within a preset period of time.

在一种可能的实施方式中,所述适配器开启子模块331,可通过如下方式在预设时间段内开启移动数据网络的网络适配器:In a possible implementation manner, the adapter enabling submodule 331 can enable the network adapter of the mobile data network within a preset period of time in the following manner:

在预设时间段内,判断移动数据网络是否处于等待状态,若判断出所述移动数据网络处于等待状态,则直接开启移动数据网络的网络适配器,若判断出所述移动数据网络不处于等待状态,则激活移动数据网络状态,并开启移动数据网络的网络适配器。Within the preset time period, it is judged whether the mobile data network is in the waiting state, if it is judged that the mobile data network is in the waiting state, then directly open the network adapter of the mobile data network, if it is judged that the mobile data network is not in the waiting state , the mobile data network status is activated, and the network adapter for the mobile data network is turned on.

网络开启子模块332,用于通过所述网络适配器开启移动数据网络。The network enabling sub-module 332 is configured to enable the mobile data network through the network adapter.

检测模块35,用于检测移动终端当前连接的无线局域网的网络信号强度。The detection module 35 is configured to detect the network signal strength of the wireless local area network to which the mobile terminal is currently connected.

生成模块36,用于当所述网络信号强度小于预设信号强度阈值时,生成无线局域网的关闭指令。The generating module 36 is configured to generate a shutdown instruction of the wireless local area network when the network signal strength is lower than a preset signal strength threshold.

在某种可能的实施方式中,所述无线局域网的关闭指令可以由用户手动点击关闭移动终端上的Wi-Fi功能所产生。In a certain possible implementation manner, the instruction to close the wireless local area network may be generated by the user manually clicking to close the Wi-Fi function on the mobile terminal.

统计模块37,用于统计使用所述移动数据网络耗费的流量值。The statistical module 37 is configured to count the traffic value consumed by using the mobile data network.

其中,可以在移动终端上生成一个半透明的小型提示框,显示所述统计模块37所统计到的流量值。Wherein, a small translucent prompt box can be generated on the mobile terminal to display the traffic value counted by the statistical module 37 .

关闭模块38,用于当所述流量值达到预设流量阈值时,关闭所述移动终端的移动数据网络,并发送提示信息,以提示用户移动数据网络流量的使用情况。The shutdown module 38 is configured to shut down the mobile data network of the mobile terminal when the traffic value reaches a preset traffic threshold, and send a reminder message to remind the user of the traffic usage of the mobile data network.

由上述可知,本实施例提供的一种网络数据的处理装置,通过在检测到移动终端当前网络信息强度小于一定信号强度阈值时,生成无线局域网的关闭指令,检测到无线局域网的关闭指令后开始计时,在计时时间段内继续使用无线局域网进行网络访问,并开启移动数据网络,计时结束后,关闭无线局域网,并使用移动数据网络进行网络访问,在使用移动数据网络产生的流量值到达预设流量阈值时,关闭移动数据网络,并提示用户当前使用情况,相对于现有技术,避免了无线局域网关闭后启动移动数据网络时的时间延迟问题,极大的节省了用户的时间与数据流量。As can be seen from the above, the device for processing network data provided by this embodiment generates a wireless local area network shutdown command when it detects that the current network information strength of the mobile terminal is less than a certain signal strength threshold, and starts after detecting the wireless local area network shutdown command. Timing, continue to use the wireless LAN for network access during the timing period, and turn on the mobile data network. After the timing is over, turn off the wireless LAN and use the mobile data network for network access. When the traffic value generated by using the mobile data network reaches the preset When the traffic threshold is reached, the mobile data network is turned off and the user is prompted for the current usage. Compared with the existing technology, the time delay problem when the mobile data network is started after the wireless LAN is turned off is avoided, and the user's time and data traffic are greatly saved.

本发明实施例还提供另一种移动终端,如图6所示,该移动终端400可以包括射频(RF,Radio Frequency)电路401、包括有一个或一个以上计算机可读存储介质的存储器402、输入单元403、显示单元404、传感器404、音频电路406、无线保真Wi-Fi模块407、包括有一个或者一个以上处理核心的处理器408、以及电源409等部件。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The embodiment of the present invention also provides another mobile terminal. As shown in FIG. 6, the mobile terminal 400 may include a radio frequency (RF, Radio Frequency) circuit 401, a memory 402 including one or more computer-readable storage media, an input A unit 403 , a display unit 404 , a sensor 404 , an audio circuit 406 , a Wi-Fi module 407 , a processor 408 including one or more processing cores, and a power supply 409 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 6 does not constitute a limitation on the mobile terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

射频电路401可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器408处理;另外,将涉及上行的数据发送给基站。通常,射频电路401包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber IdentityModule)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,射频电路401还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,GeneralPacket Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long TermEvolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The radio frequency circuit 401 can be used to send and receive information, or to receive and send signals during a call. In particular, after receiving the downlink information from the base station, it is processed by one or more processors 408; in addition, the uplink data is sent to the base station . Generally, the radio frequency circuit 401 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM, Subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the radio frequency circuit 401 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio Service), Code Division Multiple Access (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), email, Short Message Service (SMS, Short Messaging Service), etc.

存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器408通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器408和输入单元403对存储器402的访问。Memory 402 may be used to store applications and data. The application programs stored in the memory 402 include executable codes. Applications can be composed of various functional modules. The processor 408 executes various functional applications and data processing by running the application programs stored in the memory 402 . The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile terminals (such as audio data, phonebook, etc.) and the like. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may further include a memory controller to provide the processor 408 and the input unit 403 with access to the memory 402 .

输入单元403可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元403可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器408,并能接收处理器408发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元403还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、指纹识别模组、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 403 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. A touch-sensitive surface, also known as a touch display or trackpad, collects user touch operations on or near it (for example, the user uses a finger, stylus, etc. any suitable object or accessory on the touch-sensitive surface or on the touch-sensitive Operation near the surface), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the 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 it into contact coordinates, and sends it to the to the processor 408, and can receive and execute commands sent by the processor 408. In addition, touch-sensitive surfaces can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to touch-sensitive surfaces, the input unit 403 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), fingerprint recognition modules, trackballs, mice, and joysticks.

显示单元404可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元404可包括显示面板。可选的,可以采用液晶显示器(LCD,Liquid CrystalDisplay)、有机发光二极管(OLED,OrganicLight-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器408以确定触摸事件的类型,随后处理器408根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图6中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 404 can be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 404 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, the touch operation is sent to the processor 408 to determine the type of the touch event, and then the processor 408 displays on the display according to the type of the touch event. The corresponding visual output is provided on the panel. Although in FIG. 6, the touch-sensitive surface and the display panel are used as two independent components to realize the input and input functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize the input and output functions.

移动终端还可包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在移动终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Let me repeat.

音频电路406可通过扬声器、传声器提供用户与移动终端之间的音频接口。音频电路406可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路406接收后转换为音频数据,再将音频数据输出处理器408处理后,经射频电路401以发送给比如另一移动终端,或者将音频数据输出至存储器402以便进一步处理。音频电路406还可能包括耳塞插孔,以提供外设耳机与移动终端的通信。The audio circuit 406 can provide an audio interface between the user and the mobile terminal through speakers and microphones. The audio circuit 406 can convert the received audio data into an electrical signal, transmit it to the speaker, and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is converted into The audio data, after being processed by the audio data output processor 408, is sent to another mobile terminal through the radio frequency circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuit 406 may also include an earphone jack to provide communication between an external earphone and the mobile terminal.

无线保真(Wi-Fi)属于短距离无线传输技术,移动终端通过无线保真模块407可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了无线保真模块407,但是可以理解的是,其并不属于移动终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wireless Fidelity (Wi-Fi) belongs to short-distance wireless transmission technology. The mobile terminal can help users send and receive e-mails, browse web pages, and access streaming media through the Wi-Fi module 407. It provides users with wireless broadband Internet access. Although Fig. 6 shows the Wi-Fi module 407, it can be understood that it is not an essential component of the mobile terminal, and can be completely omitted as required without changing the essence of the invention.

处理器408是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器408可包括一个或多个处理核心;优选的,处理器408可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器408中。The processor 408 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. By running or executing the application program stored in the memory 402 and calling the data stored in the memory 402, the mobile terminal executes Various functions and processing data, so as to monitor the mobile terminal as a whole. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 408 .

移动终端还包括给各个部件供电的电源409(比如电池)。优选的,电源可以通过电源管理系统与处理器408逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源409还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal also includes a power source 409 (such as a battery) for powering various components. Preferably, the power supply can be logically connected to the processor 408 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. The power supply 409 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

尽管图6中未示出,移动终端还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 6 , the mobile terminal may also include a camera, a Bluetooth module, etc., which will not be repeated here.

具体在本实施例中,移动终端中的处理器408会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器408来运行存储在存储器402中的应用程序,从而实现各种功能:Specifically, in this embodiment, the processor 408 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the executable code stored in the The application program in memory 402, thereby realizes various functions:

当移动终端检测到无线局域网的关闭指令时,获取初始时间点;When the mobile terminal detects the closing instruction of the wireless local area network, obtain the initial time point;

从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;Counting from the initial time point, controlling to continue network access through the wireless local area network within a preset time period;

在所述预设时间段内开启移动终端的移动数据网络;Turn on the mobile data network of the mobile terminal within the preset time period;

在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。At the end of the preset time period, respond to the closing instruction of the wireless local area network, and perform network access through the mobile data network.

由于该移动终端可以执行发明实施例所提供的任一种网络数据的处理方法,因此,可以实现发明实施例所提供的任一种网络数据的处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the mobile terminal can execute any of the network data processing methods provided by the embodiments of the invention, it can achieve the beneficial effects that can be achieved by any of the network data processing methods provided by the embodiments of the invention. For details, see the preceding The embodiment will not be repeated here.

具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. The specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对网络数据的处理方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the parts that are not described in detail in a certain embodiment, please refer to the detailed description of the method for processing network data above, and will not be repeated here.

本发明实施例提供的网络数据的处理方法、装置及移动终端,譬如为平板电脑、手机等等,所述移动终端、网络数据的处理装置及网络数据的处理方法属于同一构思,在所述网络数据的处理装置上可以运行所述网络数据的处理方法实施例中提供的任一方法,其具体实现过程详见所述网络数据的处理方法实施例,此处不再赘述。The network data processing method, device, and mobile terminal provided by the embodiments of the present invention, such as a tablet computer, a mobile phone, etc., the mobile terminal, the network data processing device, and the network data processing method belong to the same concept. Any method provided in the embodiment of the method for processing network data can be run on the data processing device, and its specific implementation process can be found in the embodiment of the method for processing network data, which will not be repeated here.

需要说明的是,对本发明所述网络数据的处理方法而言,本领域普通测试人员可以理解实现本发明实施例网络数据的处理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述网络数据的处理方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the method for processing network data described in the present invention, ordinary testers in the field can understand that all or part of the process for realizing the method for processing network data in the embodiment of the present invention can be controlled by computer programs. To complete, the computer program may be stored in a computer-readable storage medium, such as stored in the memory of the terminal, and executed by at least one processor in the terminal, and may include such as the network data during execution. The process flow of the embodiment of the processing method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.

对本发明实施例的所述网络数据的处理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the network data processing device in the embodiment of the present invention, its functional modules can be integrated into one processing chip, or each module can exist separately physically, or two or more modules can be integrated into one module . The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .

以上对本发明实施例所提供的一种网络数据的处理方法、装置及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A network data processing method, device, and mobile terminal provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as limiting the invention.

Claims (11)

1.一种网络数据的处理方法,其特征在于,所述方法应用于移动终端,包括:1. a processing method of network data, is characterized in that, described method is applied to mobile terminal, comprises: 当移动终端检测到无线局域网的关闭指令时,获取初始时间点;When the mobile terminal detects the closing instruction of the wireless local area network, obtain the initial time point; 从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;Counting from the initial time point, controlling to continue network access through the wireless local area network within a preset time period; 在所述预设时间段内开启移动终端的移动数据网络;Turn on the mobile data network of the mobile terminal within the preset time period; 在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。At the end of the preset time period, respond to the closing instruction of the wireless local area network, and perform network access through the mobile data network. 2.如权利要求1所述的网络数据的处理方法,其特征在于,所述在所述预设时间段内开启移动终端的移动数据网络,包括:2. The processing method of network data as claimed in claim 1, wherein said opening the mobile data network of the mobile terminal within the preset time period comprises: 在预设时间段内开启移动数据网络的网络适配器;Turn on the network adapter of the mobile data network for a preset period of time; 通过所述网络适配器开启移动数据网络。Turn on the mobile data network through the network adapter. 3.如权利要求2所述的网络数据的处理方法,其特征在于,所述在预设时间段内开启移动数据网络的网络适配器,包括:3. The method for processing network data as claimed in claim 2, wherein the network adapter for enabling the mobile data network within a preset period of time comprises: 在预设时间段内,判断移动数据网络是否处于等待状态;Within a preset time period, determine whether the mobile data network is in a waiting state; 若判断出所述移动数据网络处于等待状态,则直接开启移动数据网络的网络适配器;If it is determined that the mobile data network is in a waiting state, then directly open the network adapter of the mobile data network; 若判断出所述移动数据网络不处于等待状态,则激活移动数据网络状态,并开启移动数据网络的网络适配器。If it is determined that the mobile data network is not in the waiting state, activate the state of the mobile data network, and turn on the network adapter of the mobile data network. 4.如权利要求1所述的网络数据的处理方法,其特征在于,所述当移动终端检测到无线局域网的关闭指令时,获取初始时间点之前,还包括:4. The processing method of network data as claimed in claim 1, characterized in that, when the mobile terminal detects the closing instruction of the wireless local area network, before obtaining the initial time point, it also includes: 检测移动终端当前连接的无线局域网的网络信号强度;Detect the network signal strength of the wireless local area network currently connected to the mobile terminal; 当所述网络信号强度小于预设信号强度阈值时,生成无线局域网的关闭指令。When the network signal strength is less than the preset signal strength threshold, a wireless local area network closing instruction is generated. 5.如权利要求4所述的网络数据的处理方法,其特征在于,所述在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问之后,还包括:5. The method for processing network data according to claim 4, characterized in that, at the end of the preset time period, after responding to the closing instruction of the wireless local area network and performing network access through the mobile data network, Also includes: 统计使用所述移动数据网络耗费的流量值;Count the traffic value consumed by using the mobile data network; 当所述流量值达到预设流量阈值时,关闭所述移动终端的移动数据网络,并发送提示信息,以提示用户移动数据网络流量的使用情况。When the traffic value reaches the preset traffic threshold, the mobile data network of the mobile terminal is turned off, and prompt information is sent to remind the user of the traffic usage of the mobile data network. 6.一种网络数据的处理装置,其特征在于,所述装置集成在移动终端中,包括:6. A processing device for network data, characterized in that said device is integrated in a mobile terminal, comprising: 获取模块,用于当移动终端检测到无线局域网的关闭指令时,获取初始时间点;An acquisition module, configured to acquire an initial time point when the mobile terminal detects a closing instruction of the wireless local area network; 控制模块,用于从所述初始时间点开始计算,控制在预设时间段内继续通过所述无线局域网进行网络访问;A control module, configured to start counting from the initial time point, and control to continue network access through the wireless local area network within a preset time period; 开启模块,用于在所述预设时间段内开启移动终端的移动数据网络;Opening a module, used to open the mobile data network of the mobile terminal within the preset time period; 响应模块,用于在预设时间段结束时,响应所述无线局域网的关闭指令,并通过所述移动数据网络进行网络访问。The response module is configured to respond to the shutdown instruction of the wireless local area network and perform network access through the mobile data network at the end of the preset time period. 7.如权利要求6所述的网络数据的处理装置,其特征在于,所述开启模块,包括:7. The processing device of network data as claimed in claim 6, wherein the opening module comprises: 适配器开启子模块,用于在预设时间段内开启移动数据网络的网络适配器;The adapter opening submodule is used to open the network adapter of the mobile data network within a preset period of time; 网络开启子模块,用于通过所述网络适配器开启移动数据网络。The network opening sub-module is used to open the mobile data network through the network adapter. 8.如权利要求7所述的网络数据的处理装置,其特征在于,所述适配器开启子模块用于:8. The processing apparatus of network data as claimed in claim 7, is characterized in that, described adapter opens submodule and is used for: 在预设时间段内,判断移动数据网络是否处于等待状态;Within a preset time period, determine whether the mobile data network is in a waiting state; 若判断出所述移动数据网络处于等待状态,则直接开启移动数据网络的网络适配器;If it is determined that the mobile data network is in a waiting state, then directly open the network adapter of the mobile data network; 若判断出所述移动数据网络不处于等待状态,则激活移动数据网络状态,并开启移动数据网络的网络适配器。If it is determined that the mobile data network is not in the waiting state, activate the state of the mobile data network, and turn on the network adapter of the mobile data network. 9.如权利要求6所述的网络数据的处理装置,其特征在于,所述装置还包括:9. The processing apparatus of network data as claimed in claim 6, is characterized in that, described apparatus also comprises: 检测模块,用于检测移动终端当前连接的无线局域网的网络信号强度;A detection module, configured to detect the network signal strength of the wireless local area network currently connected to the mobile terminal; 生成模块,用于当所述网络信号强度小于预设信号强度阈值时,生成无线局域网的关闭指令;A generating module, configured to generate a shutdown instruction for the wireless local area network when the network signal strength is less than a preset signal strength threshold; 统计模块,用于统计使用所述移动数据网络耗费的流量值;A statistical module, configured to count the traffic value consumed by using the mobile data network; 关闭模块,用于当所述流量值达到预设流量阈值时,关闭所述移动终端的移动数据网络,并发送提示信息,以提示用户移动数据网络流量的使用情况。A shutdown module, configured to shut down the mobile data network of the mobile terminal when the traffic value reaches a preset traffic threshold, and send a reminder message to remind the user of the traffic usage of the mobile data network. 10.一种移动终端,其特征在于,包括:10. A mobile terminal, characterized in that, comprising: 存储有可执行程序代码的存储器;a memory storing executable program code; 与所述存储器耦合的处理器;a processor coupled to the memory; 所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至权利要求5任一项所述的方法。The processor invokes the executable program code stored in the memory to execute the method according to any one of claims 1 to 5. 11.一种计算机可读存储介质,其存储用于网络数据的处理的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1所述的方法。11. A computer-readable storage medium storing a computer program for processing network data, wherein the computer program causes a computer to execute the method according to claim 1.
CN201610836823.7A 2016-09-20 2016-09-20 Network data processing method and device and mobile terminal Active CN106358225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610836823.7A CN106358225B (en) 2016-09-20 2016-09-20 Network data processing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610836823.7A CN106358225B (en) 2016-09-20 2016-09-20 Network data processing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106358225A CN106358225A (en) 2017-01-25
CN106358225B true CN106358225B (en) 2017-08-11

Family

ID=57858405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610836823.7A Active CN106358225B (en) 2016-09-20 2016-09-20 Network data processing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106358225B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819947B (en) * 2017-10-31 2020-08-11 Oppo广东移动通信有限公司 Screen display method and device
CN108834203B (en) * 2018-06-29 2021-01-26 Oppo(重庆)智能科技有限公司 Network switching method, device, terminal and storage medium
CN109063211A (en) * 2018-09-26 2018-12-21 惠州Tcl移动通信有限公司 A kind of webpage opening control method, networked devices and storage medium
CN112752328B (en) * 2019-10-29 2023-06-30 北京小米移动软件有限公司 Network control method, device and storage medium
CN110958641B (en) * 2019-11-29 2024-03-22 湖南超捷科技有限公司 WIFI data receiving and transmitting control method and device for mobile terminal
CN112187615B (en) * 2020-08-31 2022-11-08 Oppo(重庆)智能科技有限公司 Message response method, device, terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070160007A1 (en) * 2006-01-11 2007-07-12 Li-Chun Wang Method and device for cost-function based handoff determination using wavelet prediction in vertical networks
CN105592515B (en) * 2016-01-28 2020-01-10 广东电网有限责任公司中山供电局 Network switching device and method
CN105530673B (en) * 2016-03-01 2019-05-17 Oppo广东移动通信有限公司 Network connection method and user equipment

Also Published As

Publication number Publication date
CN106358225A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106358225B (en) Network data processing method and device and mobile terminal
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN106020987A (en) Method and device for determining kernel running configuration in processor
CN105786878B (en) Display method and device of browsing object
CN108549519A (en) Split-screen processing method, device, storage medium and electronic equipment
CN106327166A (en) Information processing method and mobile terminal
CN106817540A (en) A camera control method and device
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
CN109067981B (en) Split-screen application switching method, device, storage medium and electronic device
CN106254924B (en) Multimedia data playing method, system and related equipment
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
CN106373531A (en) Display brightness adjustment method and electronic device
CN106528335A (en) A data backup method, device and terminal
CN106020844A (en) Method and device for determining kernel running configuration in processor
CN105141854A (en) Flash control method, device and terminal equipment
CN106529312A (en) A mobile terminal authority control method, device and mobile terminal
CN106155557A (en) A virtual button display method and mobile terminal
CN106453908A (en) A method, device, and mobile terminal for switching between dual-card networks based on calls
CN108958629A (en) Split screen quitting method and device, storage medium and electronic equipment
WO2014166266A1 (en) File scanning method and system, client and server
CN106055400A (en) Terminal accelerated wake-up method and device
CN105933944A (en) Optimized use method, device and mobile terminal of 4G network
CN106936516A (en) Display screen display state control method, storage medium and terminal
CN108536388A (en) Split screen processing method and device, storage medium and electronic equipment
CN106066769B (en) Mobile terminal processing method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.

CP01 Change in the name or title of a patent holder