CN106658588A - Network quality detection method and device and computer equipment - Google Patents

Network quality detection method and device and computer equipment Download PDF

Info

Publication number
CN106658588A
CN106658588A CN201611193398A CN201611193398A CN106658588A CN 106658588 A CN106658588 A CN 106658588A CN 201611193398 A CN201611193398 A CN 201611193398A CN 201611193398 A CN201611193398 A CN 201611193398A CN 106658588 A CN106658588 A CN 106658588A
Authority
CN
China
Prior art keywords
network
cellular data
data network
value
signal
Prior art date
Application number
CN201611193398A
Other languages
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 广东欧珀移动通信有限公司
Priority to CN201611193398A priority Critical patent/CN106658588A/en
Publication of CN106658588A publication Critical patent/CN106658588A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters used to improve the performance of a single terminal
    • H04W36/30Reselection being triggered by specific parameters used to improve the performance of a single terminal by measured or perceived connection quality data

Abstract

The invention relates to a network quality detection method and device and computer equipment. The method comprises the steps of when a mobile terminal approves by default that a network connection type is a wireless local area network, if a case that a wireless local area network signal score is smaller than a designated value is detected out, triggering a cellular data network detection request; according to the cellular data network detection request, selecting a cellular data network as the network connection type, carrying out cellular data network detection, and obtaining a cellular data network detection result; and according to the cellular data network detection result, calculating a cellular data network signal score. If a case that the wireless local area network signal score is lower than the designated value is detected out, i.e., a wireless local area network signal is weak and a network transmission speed is low, the cellular data network detection request is triggered, cellular data network detection is carried out according to the cellular data network detection request, and the cellular data network signal score is calculated according to the cellular data network detection result. By automatically carrying out cellular data network detection when the wireless local area network signal is weak, network quality of the cellular data network can be rapidly and conveniently detected.

Description

网络质量检测方法、装置和计算机设备 Network quality inspection method, apparatus and computer equipment

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,特别是涉及一种网络质量检测方法、装置和计算机设备。 [0001] The present invention relates to computer technologies, and particularly relates to a network quality inspection method, apparatus and computer equipment.

背景技术 Background technique

[0002] 随着无线通信技术的发展,无线局域网的覆盖范围越来越广,移动终端可通过连接无线局域网来便捷的进行网络通信。 [0002] With the development of wireless communication technology, wireless LAN coverage more widely, the mobile terminal may connect to the wireless LAN network communication convenient. 但无线局域网信号覆盖范围有限,移动终端连接的无线局域网信号在不同的地区有强弱之分,当无线局域网信号较弱、网络传输速率较慢时,需要检测蜂窝数据网的网络质量,以考虑是否将移动终端的网络连接切换为蜂窝数据网。 But the limited signal coverage of the wireless LAN, the wireless LAN terminal connected to the mobile signal strength of the points in different areas, when the wireless LAN signal is weak, the network transmission rate is slow, the quality of the network is necessary to detect the cellular data network, to take into account if the network connection of the mobile terminal is switched to the cellular data network.

发明内容 SUMMARY

[0003] 本发明实施例提供一种网络质量检测方法、装置和计算机设备,可以便捷的检测蜂窝数据网的网络质量。 [0003] Example embodiments provide a network quality inspection method, apparatus and computer equipment, the quality of the network can easily detect the cellular data network of the present invention.

[0004] —种网络质量检测方法,包括: [0004] - Network seed quality inspection method, comprising:

[0005] 当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; [0005] When the mobile terminal is connected to the default network WLAN, the wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network;

[0006] 根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; [0006] The network connection type is selected request cellular data network, a cellular data network is detected to obtain a detection result of cellular data network based on the cellular data network is detected;

[0007] 根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0007] The cellular network data signal differential value calculation according to the detection result of the cellular data network.

[0008] 一种网络质量检测装置,包括: [0008] A network quality detection means, comprising:

[0009] 触发请求模块,用于当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; [0009] triggering request module, configured to by default when the mobile terminal when the network connection is a wireless LAN, a wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network;

[0010] 检测模块,用于根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; [0010] detection means for requesting a network connection type is selected cellular data network, a cellular data network is detected to obtain a detection result of cellular data network based on the cellular data network is detected;

[0011] 计算模块,用于根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0011] calculating module, for calculating the cellular data network signal value according to the detection result of the cellular data network.

[0012] —种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤: [0012] - a computer device types, including computer program memory, a processor and a memory and running on the processor in the memory, when executed implement the steps of the program the processor to:

[0013] 当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; [0013] When the mobile terminal is connected to the default network WLAN, the wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network;

[0014] 根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; [0014] The network connection type is selected request cellular data network, a cellular data network is detected to obtain a detection result of cellular data network based on the cellular data network is detected;

[0015] 根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0015] cellular network data signal differential value calculation according to the detection result of the cellular data network.

[0016] 上述网络质量检测方法、装置和计算机设备,当移动终端默认连接无线局域网时,若检测到无线局域网信号低于指令值,即无线局域网信号较弱、网络传输速率较慢时,触发蜂窝数据网检测请求,根据蜂窝数据网检测请求进行蜂窝数据网检测,并根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0016] The network quality inspection method, apparatus and computer equipment, when the mobile terminal when the wireless LAN connection by default, if the wireless LAN signal is detected below the command value, i.e., the wireless LAN signal is weak, the network transmission rate is slow, triggering a cellular detection request data network, a cellular data network according to the detection request cellular data network detection, and calculates the signal value cellular data network according to the detection result of the cellular data network. 通过在无线局域网信号较弱时自动进行蜂窝数据网检测,可快捷的检测蜂窝数据网的网络质量。 By automatic cellular data network when a weak signal detection in a wireless local area network, network quality may be detected fast cellular data network.

附图说明 BRIEF DESCRIPTION

[0017]图1为一个实施例中移动终端的内部结构示意图; [0017] Figure 1 is a schematic view of the internal structure of the mobile terminal in the embodiment;

[0018]图2为一个实施例中网络质量检测方法的流程图; [0018] FIG. 2 is a flow chart showing a network embodiment of a method for quality inspection;

[0019]图3为另一个实施例中网络质量检测方法的流程图; [0019] FIG. 3 is a flowchart of the method for detecting the quality of the network to another embodiment embodiment;

[0020]图4为另一个实施例中网络质量检测方法的流程图; [0020] FIG 4 is a flowchart of the method for detecting the quality of the network to another embodiment embodiment;

[0021]图5为一个实施例中网络质量检测装置的结构框图; [0021] FIG. 5 is a block diagram showing a configuration example of a network in one embodiment of quality detection means;

[0022]图6为另一个实施例中网络质量检测装置的结构框图; [0022] FIG. 6 is a block diagram showing a structure of the network quality detection means according to another embodiment;

[0023]图7为另一个实施例中网络质量检测装置的结构框图。 [0023] FIG. 7 is a block diagram showing a structure of the network quality detection means according to another embodiment.

具体实施方式 Detailed ways

[0024] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 [0024] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0025]图1为一个实施例中移动终端的内部结构示意图。 [0025] Figure 1 is a schematic view of the internal structure of the mobile terminal in FIG. 如图1所示,该移动终端包括通过系统总线连接的处理器、非易失性存储介质、内存储器、网络接口、显示屏和输入装置。 As shown in FIG 1, the mobile terminal includes a processor connected via a bus system, a nonvolatile storage medium, a memory, a network interface, a display screen and an input device. 其中,移动终端的非易失性存储介质存储有操作系统,还包括一种网络质量检测装置,该网络质量检测装置用于实现一种网络质量检测方法。 Wherein the nonvolatile storage medium storing a mobile terminal operating system, further comprising quality detection means A network, network quality detection means A network for implementing quality inspection method. 该处理器用于提供计算和控制能力,支撑整个移动终端的运行。 The processor is configured to provide the computing and control, support the operation of the entire mobile terminal. 移动终端中的内存储器为非易失性存储介质中的网络质量检测装置的运行提供环境,该内存储器中可储存有计算机可读指令,该计算机可读指令被所述处理器执行时,可使得所述处理器执行一种网络质量检测方法。 When the memory of the mobile terminal provide an environment in the nonvolatile storage medium quality detection means of the network, which can be stored in the memory having computer-readable instructions, the computer-readable instructions executed by the processor, such that the processor to perform a method for detecting network quality. 网络接口用于与服务器进行网络通信,如发送网络报文至服务器,接收服务器返回的网络报文等。 A network interface for network communication with the server, such as sending a network message to the server, the server returns the received network packet is received. 移动终端的显示屏可以是液晶显示屏或电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。 The mobile terminal may be a LCD display or an electronic ink display, etc., an input device may be a touch on the display screen cover layer, may be provided on the mobile terminal housing buttons, a trackball or a touch panel, may be external keyboard, mouse, touch pad, or the like. 该移动终端可以是手机、平板电脑、个人数字助理或穿戴式设备等。 The mobile terminal may be a mobile phone, a tablet computer, a personal digital assistant or the like wearable devices. 本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端的限定,具体的移动终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。 Those skilled in the art will be appreciated, the structure shown in FIG. 1, a block diagram is only part of the structure of the program related to the present application, this application does not constitute a defined scheme applied to a mobile terminal on which the specific mobile terminal may As shown in FIG include more or fewer components, or a combination of some of the components, with different components or arrangement.

[0026]图2为一个实施例中网络质量检测方法的流程图。 [0026] FIG. 2 is a flow chart showing a network embodiment of a method for quality testing. 如图2所示,一种网络质量检测方法,包括: As shown in FIG 2 A network quality inspection method, comprising:

[0027] S202,当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求。 [0027] S202, when the mobile terminal is connected to the default network WLAN, the wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network.

[0028] 在一个实施例中,移动终端可通过连接服务模块设置默认网络连接。 [0028] In one embodiment, the mobile terminal may be provided by the default network connection service module connector. 移动终端在设置默认网络连接时,会调用连接服务模块中网络管理服务来设置网络守护进程的默认接口。 Mobile terminal when setting the default network connection, calls the connection service module in the network management service to set the default interface to the network daemons. 网络守护进程中有多个接口,但仅有一个接口可设置为默认接口,移动终端中应用程序通过网络守护进程中默认接口来进行数据传输,即网络守护进程中默认接口对应的网络连接为默认网络连接。 Network daemon a plurality of interfaces, but only one interface can be set to the default interface, the application to the mobile terminal for data transmission via the network daemon default interface, i.e. the network daemon corresponding default interface as the default network connection Internet connection. 例如,无线局域网的网络接口为wlanO,移动终端在连接无线局域网后,设置无线局域网的网络接口wlanO为默认接口,移动终端中应用程序通过网络接口wlanO来进行数据传输,则移动终端的默认网络连接为无线局域网。 For example, a wireless local area network interface wlanO mobile terminal after the wireless LAN connection, setting up a wireless local area network interface wlanO as the default interface, the mobile terminal application to data transmission via the network interface wlanO, the default network connected mobile terminals wireless local area network.

[0029] 移动终端在默认网络连接为无线局域网时,会进行无线局域网检测,得到无线局域网检测结果,并根据预配置的无线局域网信号评分机制计算无线局域网信号分值。 [0029] When the mobile terminal is connected to the default network WLAN, wireless local area network will be detected, the detection result obtained wireless LAN, a wireless LAN signal and calculating scores according to scoring mechanism WLAN signal preconfigured. 其中,预配置的无线局域网信号评分机制根据以下五个参数评判无线局域网信号分值:RSSI(Received Signal Strength Indicat1n,接收的信号强度指不)值、WLAN (WirelessLocal Area Networks,无线局域网)链路丢包率、TCP (Transmiss1n Control Protocol,传输控制协议)重传率、网络延时和历史网速。 Wherein, the wireless LAN signal scoring mechanism preconfigured following five parameters evaluation value according to the wireless LAN signal: RSSI (Received Signal Strength Indicat1n, the received signal strength indicator is not) a value, WLAN (WirelessLocal Area Networks, Wireless Local Area Network) link lost packet rate, TCP (Transmiss1n control protocol, transmission control protocol) retransmission rate, network delay and historical network speed. 其中,RSSI值可表示无线局域网的信号强度,RSSI值越大表明无线局域网的信号强度越好;WLAN链路丢包率是指通过无线局域网传输数据时,传输过程中丢失的数据包数量占所发送的总数据包数量的比率;TCP重传率是指在数据传输过程中,重新传输的数据与总数据之间的比率;网络延时是指数据在网络中传输所用的时间;历史网速是指移动终端所记载的网络在数据传输时,请求数据与返回数据之间的时间差,其中,移动终端在计算无线局域网信号分值时,获取的历史网速为历史网速最大值。 Wherein, the RSSI value may represent the signal strength of the wireless local area network, the RSSI signal strength higher number indicates better wireless local area network; the WLAN link packet loss rate refers to the amount of data transmitted through a wireless LAN, the transmission of the lost data packets make up the total number of packets transmitted ratio; rate refers to the TCP retransmission during data transmission, the ratio between the total data retransmission data; network delay is the time the data transmission network used; historical network speed It refers to the network the mobile terminal is described in transmission data, and return the requested data the time difference between the data, wherein the mobile terminal when the wireless LAN signal value calculation, the acquired history historical speed maximum speed. 根据预配置的无线局域网信号评分机制,可对RSSI值、WLAN链路丢包率、TCP重传率、网络延时和历史网速进行评分,获取RSSI分值、WLAN链路丢包率分值、TCP重传率分值、网络延时分值和历史网速分值。 The wireless LAN signal scoring mechanism preconfigured, may be for RSSI value, WLAN link packet loss rate, TCP retransmission rate, and historical speed network latency score, score acquired RSSI, WLAN link packet loss rate value , TCP retransmission rate score, score and history speed network latency scores. 计算默认分值与RSSI分值、WLAN链路丢包率分值、TCP重传率分值、网络延时分值、历史网速分值的累计值可得到无线局域网信号分值,即无线局域网信号分值=默认分值+RSSI分值+WLAN链路丢包率分值+TCP重传率分值+网络延时分值+历史网速分值。 The default value is calculated with the RSSI value, WLAN link packet loss rate value, TCP retransmission rate value, network delay value, the integrated value of the score obtained historical speed wireless LAN signal value, i.e., the wireless LAN score = score default signal the RSSI value + + + the WLAN link packet loss rate value of the TCP retransmission latency value + value + network speed history score. 其中,默认分值为79分;若移动终端不可通过无线局域网进行数据传输,则无线局域网信号分值为15分,即无线局域网信号分值在15分至79分之间。 Wherein the default value is 79; if the mobile terminal can not perform data transmission using a wireless LAN, the wireless LAN signal score of 15 points, i.e., between the signal value in the wireless LAN 15 to 79 minutes.

[0030] 例如,根据预配置的无线局域网信号评分机制,RSSI值低于-83时,RSSI分值为-20分;RSSI值在-83至-75之间时,RSSI分值为-10分;RSSI值在-75至-65之间时,RSSI分值为-5分;RSSI值高于-65时,RSSI分值为O分。 [0030] For example, a wireless LAN signal in accordance with a pre-scoring mechanism configured, when the RSSI value is less than -83, the RSSI value of -20 minutes; the RSSI value is between -83 to -75, RSSI value of -10 minutes ; the RSSI value at between -75 to -65, RSSI value -5 minutes; when the RSSI value is higher than -65, RSSI value is O points. WLAN链路丢包率高于50 %时,WLAN链路丢包率分值为-20分;WLAN链路丢包率在25%至50%之间时,WLAN链路丢包率分值为-10分;WLAN链路丢包率在5 %至25 %之间时,WLAN链路丢包率分值为-5分;WLAN链路丢包率低于5 %时,WLAN链路丢包率分值为O分。 WLAN link when the packet loss rate is higher than 50%, WLAN link loss rate value is -20 minutes; when a WLAN link loss rate between 25% and 50%, WLAN link packet loss rate value is -10 minutes; when the WLAN link packet loss rate between 5% and 25%, WLAN link loss rate value -5 minutes; the WLAN link packet loss rate is less than 5%, WLAN link loss rate score of O points. TCP重传率高于50 %时,TCP重传率分值为-20分;TCP重传率在25 %至50 %之间时,TCP重传率分值为-10分;TCP重传率在5 %至25 %之间时,TCP重传率分值为-5分;TCP重传率低于5%时,TCP重传率分值为O分。 When TCP retransmission higher than 50%, TCP retransmission rate value is -20 minutes; when TCP retransmission rate of between 25% and 50%, TCP retransmission rate value is -10 minutes; TCP retransmission rate when between 5% and 25%, TCP retransmission rate value -5 minutes; when TCP retransmission rate is less than 5%, TCP retransmission rate value is O points. 网络延迟高于100毫秒时,网络延迟分数为-20分;网络延迟在50毫秒至100毫秒之间时,网络延迟分数为-10分;网络延迟在20毫秒至50毫秒之间时,网络延迟分数为-5分;网络延迟低于20毫秒时,网络延迟分数为O分。 When the network delay than 100 ms, network latency score of -20 points; network latency between 100 milliseconds to 50 milliseconds, network latency score of -10 points; network delay is between 20 ms to 50 ms, network delay -5 score points; less than 20 ms when the network delay, the network delay is O score points. 历史网速低于50kb/s时,历史网速分值为-20分;历史网速在50kb/s至100kb/s时,历史网速分值为-10分;历史网速在100kb/s至300kb/s时,历史网速分值为-5分;历史网速高于300kb/s时,历史网速分值为O分。 When the speed is less than the history of 50kb / s, speed history score of -20 minutes; speed history when the 50kb / s to 100kb / s, speed history score of -10 minutes; in the historical speed 100kb / s when to 300kb / s, speed history score -5 minutes; when the speed is higher than the historical 300kb / s, speed history score of O points. 若移动终端获取的无线局域网检测结果中RSSI值为-40、WLAN链路丢包率为10%、1^?重传率为10%、网络延时为15毫秒、历史网速为4001^/8,则无线局域网信号分值为69分。 If the wireless LAN detection result of the mobile terminal acquired RSSI value of -40, WLAN link packet loss rate of 10%, 1 ^? 10% retransmissions, network delay of 15 milliseconds, ^ 4001 historic speed / 8, the wireless LAN signal score of 69 points. 若移动终端检测到无线局域网信号分值低于59分,则触发蜂窝数据网检测请求。 If the mobile terminal detects that the wireless LAN signal value is less than 59 minutes, a cellular data network trigger detection request.

[0031] S204,根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果。 [0031] S204, the cellular data network connection type selected request detecting a cellular data network, a cellular data network is detected, the detection result to obtain a cellular data network.

[0032] 在一个实施例中,移动终端可通过连接服务模块选取网络连接类型为蜂窝数据网,通过蜂窝数据网与服务器通信,进行蜂窝数据网检测。 [0032] In one embodiment, the mobile terminal may select a network connection type via a cellular data network connection service module, a cellular data network communication with the server via a cellular data network is detected. 例如,通过蜂窝数据网将网络报文发送给服务器,并记录发送报文的时刻;接收服务器返回的网络报文,并记录接收报文的时刻,通过计算接收报文的时刻与发送报文的时刻之间的时间差,可获取网络延时。 For example, the cellular data network to the network packet to the server, and recording time transmitted packets; receiving server returns the network packets, and records the time of receiving packets by time calculation received packets sent packets with the time difference between the time, network latency can be obtained.

[0033] S206,根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0033] S206, the cellular data network signal value calculated in accordance with the detection result of cellular data network.

[0034] 在一个实施例中,移动终端依据预配置的蜂窝数据网信号评分机制对得到的蜂窝数据网检测结果进行评分,获取蜂窝数据网信号分值。 [0034] In one embodiment, the mobile terminal based on a cellular data network signal scoring mechanism preconfigured cellular data network detection result obtained score, score acquired cellular data network signal.

[0035] 上述网络质量检测方法,当移动终端默认连接无线局域网时,若检测到无线局域网信号低于指令值,即无线局域网信号较弱、网络传输速率较慢时,触发蜂窝数据网检测请求,根据蜂窝数据网检测请求进行蜂窝数据网检测,并根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0035] Network quality inspection method described above, when the mobile terminal connected to the wireless LAN default, if the wireless LAN signal is detected below the command value, i.e., the wireless LAN signal is weak, the network transmission rate is slow, the trigger detection request cellular data network, detecting a cellular data network according to the detection request cellular data network, a cellular data network signal and calculating scores according to the detection result of the cellular data network. 通过在无线局域网信号较弱时自动进行蜂窝数据网检测,可快捷的检测蜂窝数据网的网络质量。 By automatic cellular data network when a weak signal detection in a wireless local area network, network quality may be detected fast cellular data network.

[0036]图3为另一个实施例中网络质量检测方法的流程图。 [0036] FIG. 3 is a flowchart of network quality detection method according to another embodiment. 如图3所示,在一个实施例中,上述网络质量检测方法还包括: 3, in one embodiment, the method further comprising detecting the quality of the network:

[0037] S302,选取网络连接类型为无线局域网,进行无线局域网检测,得到无线局域网检测结果。 [0037] S302, select the type of wireless local area network connection, a wireless LAN is detected, the detection result obtained WLAN.

[0038] 在一个实施例中,移动终端在默认网络连接为无线局域网时,会进行无线局域网检测。 When [0038] In one embodiment, the mobile terminal connected to a wireless local area network default, the wireless LAN will be detected. 移动终端可通过连接服务模块选取连接的网络类型为无线局域网来进行网络检测。 The mobile terminal may be a wireless local area network is detected to select the type of network service modules linked by a linker. 其中,连接服务模块中连接信息列表,连接信息列表中记录移动终端中网络连接信息,网络连接信息可包括网络类型、连接状态和网络名称等。 Wherein the connection service module connection information list, the list of the connection information recorded in the mobile terminal network connection information, network information may include a network connection type, connection status, and network names. 通过遍历连接信息列表,根据网络连接信息可获取无线局域网的网络接口,在无线局域网的网络接口创建socket函数,通过创建函数后的无线局域网的网络接口与服务器通信,进行无线局域网检测。 By traversing the connection information list, available wireless LAN network interface according to the network connection information, the interface creates a socket function in a wireless local area network, a network interface for communicating via the wireless LAN function is created with a server, a wireless LAN is detected. 例如,移动终端同时连接无线局域网和蜂窝数据网,可通过网络连接信息中网络类型为W1-Fi (WIreless-Fidelity,无线宽带)、连接状态为已连接、网络名称为CMCC判断上述网络连接信息对应的网络连接为无线局域网,且获取无线局域网的网络接口为wlanO,通过在网络接口wlanO上创建socket函数,通过创建函数后的网络接口wlanO与服务器通信,来进行无线局域网检测,并得到无线局域网检测结果。 For example, the mobile terminal simultaneously connected wireless LAN and a cellular data network, can be connected to the information network type W1-Fi (WIreless-Fidelity, wireless broadband), connection state is connected via a network, the network name CMCC determining whether the network connection information corresponding to the network connection is a wireless local area network, and acquire wireless LAN network interface wlanO,, by creating a network interface wlanO after the communication function of the server, to the wireless LAN is detected by creating a socket function on a network interface wlanO, and with WLAN detection result.

[0039] S304,根据无线局域网检测结果计算无线局域网信号分值。 [0039] S304, the wireless LAN signal value calculated in accordance with the detection result of the wireless LAN.

[0040] 在一个实施例中,无线局域网检测结果中包括:RSSI值、TCP重传率、TCP重传率、网络延时和历史网速。 [0040] In one embodiment, the detection result includes a wireless local area network: RSSI value, TCP retransmission rate, TCP retransmission rate, network delay and historical network speed. 移动终端可根据预配置的无线局域网信号评分机制对无线局域网检测结果各项参数评分,并计算无线局域网信号分值。 The mobile terminal may be the result of the detection to the wireless LAN wireless LAN signal parameters Rating Rating preconfigured mechanism, and calculating the wireless LAN signal value.

[0041] S306,若无线局域网信号分值低于蜂窝数据网信号分值,将移动终端默认网络连接切换为蜂窝数据网。 [0041] S306, if the wireless LAN signal is the signal value is lower than the value cellular data network, the default mobile terminal is a cellular network connection switching data network.

[0042] 在一个实施例中,移动终端将无线局域网信号分值与蜂窝数据网信号分值进行比对,若蜂窝数据网信号分值高于无线局域网信号分值,即蜂窝数据网信号较好时,移动终端获取蜂窝数据网的网络接口,将蜂窝数据网的网络接口设置为默认网络接口,移动终端中应用程序通过蜂窝数据网的网络接口来进行数据传输,即移动终端的默认网络连接由无线局域网切换为蜂窝数据网。 [0042] In one embodiment, the mobile wireless LAN terminal and a cellular data network signal value signal value for comparison, if the signal value is higher than the cellular data network WLAN signal value, i.e., a cellular data network preferably signals , the mobile terminal acquires a network interface to a cellular data network, the cellular data network is a network interface as the default network interface, the mobile terminal application to data transmission via the network interface to a cellular data network, which is the default network of the mobile terminal is connected by a WLAN switched cellular data network.

[0043] 上述网络质量检测方法,移动终端在默认网络连接为无线局域网时,进行无线局域网检测,得到无线局域网检测结果,并根据预配置的无线局域网信号评分机制获取无线局域网信号分值,再将无线局域网信号分值与蜂窝数据网信号分值进行比较,当蜂窝数据网信号分值较高时,移动终端可将默认网络连接由无线局域网切换为蜂窝数据网。 [0043] Network quality inspection method described above, the mobile terminal is connected when the default network WLAN, wireless local area network is detected, the detection result obtained wireless LAN, a wireless LAN signal value and acquires a wireless LAN signal scoring mechanism pre-configured, and then WLAN signal value is compared with the signal value cellular data network, a cellular data network when a high signal value, the mobile terminal may be switched from the default wireless local area network connection is a cellular data network. 即在无线局域网信号较差时,移动终端可将网络连接自动切换为信号较好的蜂窝数据网,切换网络连接的方式更快捷。 That is, when the wireless LAN signal is poor, the mobile terminal may be connected to the network is automatically switched to signal better cellular data network, the network connection of the switching more efficient.

[0044] 在一个实施例中,在图2中步骤S204根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网之前,上述网络质量检测方法还包括:若蜂窝数据网未连接,连接蜂窝数据网,将蜂窝数据网设为非默认连接。 [0044] In one embodiment, in the step of FIG. 2 S204 requests select the network connection type cellular data network is detected as prior cellular data network, said network quality detecting method further comprising: if the cellular data network is not connected, connecting the cellular data network the cellular data network as a non-default connection.

[0045] 在一个实施例中,移动终端在默认网络连接为无线局域网时,获取蜂窝数据网检测请求,检测移动终端是否连接蜂窝数据网,若移动终端已连接蜂窝数据网且为非默认网络连接,则根据蜂窝数据网检测请求进行蜂窝数据网检测;若移动终端未连接蜂窝数据网,则移动终端连接蜂窝数据网,并将蜂窝数据网设为非默认连接,根据蜂窝数据网检测请求进行蜂窝数据网检测。 [0045] In one embodiment, the mobile terminal in the default network connection is a wireless local area network, a cellular data network acquires detection request, the mobile terminal detects whether the connection to the cellular data network, if the mobile terminal is connected to a data network and a cellular network connected to a non-default , a cellular data network is detected based on detection request cellular data network; cellular data network if the mobile terminal is not connected, the mobile terminal connected to a cellular data network and a cellular data network to the non-default connection, a cellular network in accordance with a detection request cellular data data network testing. 其中,将蜂窝数据网设为非默认连接包括:移动终端连接无线局域网和蜂窝数据网络,通过连接服务模块将无线局域网的网络接口设为默认网络接口,则移动终端中应用程序通过无线局域网的网络接口来进行数据传输,则移动终端连接的无线局域网为默认网络连接,蜂窝数据网的网络接口没有设为默认网络接口,移动终端中应用程序不会通过蜂窝数据网的网络接口进行数据传输,则移动终端连接的蜂窝数据网为非默认连接。 Wherein the non-default cellular data network connection comprises: a mobile terminal connected to wireless local area network and a cellular data network connection service through the wireless LAN module network interface as the default network interface, the mobile terminal through a wireless LAN application network an interface for data transmission, the mobile terminal connected to wireless local area network as the default network connection, the network interface to a cellular data network is not a network interface as the default, the mobile terminal application does not perform data transmission through the network interface to a cellular data network, then cellular data network connected to the mobile terminal non-default connection.

[0046] 在一个实施例中,图2中步骤S204根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测包括:遍历网络连接信息列表,根据网络连接信息获取蜂窝数据网络接口,在蜂窝数据网接口创建函数,通过创建函数后的蜂窝数据网接口进行蜂窝数据网检测。 [0046] In one embodiment, FIG. 2 in step S204 a request to select a network connection type cellular data network detecting a cellular data network, a cellular data network detection comprising: traversing network connection information list, acquiring a cellular data network based on network connection information interface, the interface function to create a cellular data network, a cellular data network is detected by the cellular data network after creating function interface.

[0047] 在一个实施例中,移动终端可通过连接服务模块选取连接的网络类型为蜂窝数据网来进行网络检测。 [0047] In one embodiment, the mobile terminal may be a cellular data network to select the type of network connected to the network is detected by the connection service module. 其中,连接服务模块中连接信息列表,连接信息列表中记录移动终端中网络连接信息,网络连接信息可包括网络类型、连接状态和蜂窝数据网的APN (AccessPoint Name,接入点)类型等。 Wherein the connection service module connection information list, the list of the connection information recorded in the mobile terminal network connection information, network connection information may include the type of network, the APN and the connection state of the cellular data network (AccessPoint Name, an access point) type. 通过遍历连接信息列表,根据网络连接信息可选取出连接的蜂窝数据网的网络接口,在蜂窝数据网的网络接口创建socket函数,通过创建函数后的蜂窝数据网的网络接口与服务器进行通信,进行蜂窝数据网检测。 By traversing the connection information list, according to the network connection information extracted optional network interface connection to a cellular data network, a cellular data network at the network interface function creates a socket to communicate with the server through the network interface after creating the function of cellular data network, for detecting cellular data network. 例如,移动终端同时连接无线局域网和蜂窝数据网,可通过网络连接信息中网络类型为蜂窝数据网、连接状态为已连接、蜂窝数据网的APN类型为CMWAP (China Mobile Wireless Access Point,中国移动梦网)判断上述网络连接信息对应的网络连接为蜂窝数据网,且获取蜂窝数据网的网络接口为ccmn1,通过在网络接口ccmn1上创建socket函数,通过创建函数后的网络接口ccmn1与服务器通信,来进行蜂窝数据网检测,并得到蜂窝数据网检测结果。 For example, the mobile terminal simultaneously connected wireless LAN and a cellular data network, may be connected through the network information network type is a cellular data network connection state is connected, the APN type of cellular data network is CMWAP (China Mobile Wireless Access Point, China Mobile Dream net) determining whether the network connection information corresponding to the network connection to a cellular data network, and obtain cellular data network is a network interface ccmn1, by creating a socket function on a network interface ccmn1, interfaces ccmn1 communication network server after the function by creating, by detecting a cellular data network, a cellular data network and to obtain detection results.

[0048] 在一个实施例中,蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度,图2中步骤S206根据蜂窝数据网检测结果计算蜂窝数据网信号分值包括:根据预配置的评分机制计算网络制式分值、网络延迟分值和信号强度分值;计算网络制式分值、网络延迟分值和信号强度分值的累计值。 [0048] In one embodiment, the cellular data network comprises network standard detection result, network delay and signal strength, step S206 in FIG. 2 is calculated signal value comprises a cellular data network according to the detection result of the cellular data network: according to the pre-configured rating standard value computing network mechanisms, network delay and signal strength value score; score calculating network standard, network delay value and the integrated value of the signal strength value.

[0049] 在一个实施例中,移动终端在获取蜂窝数据网检测结果后,可根据预配置的蜂窝数据网信号评分机制计算蜂窝数据网信号分值。 [0049] In one embodiment, the mobile terminal acquires the detection result of cellular data network, a cellular data network signal value may be calculated based on a cellular data network signal preconfigured scoring mechanism. 其中,移动终端获取的蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度等。 Wherein a detection result of the cellular data network of the mobile terminal included in the acquired network standard, network delay and signal strength. 预配置的蜂窝数据网信号评分机制中包括对网络制式的评分准则、对网络延迟的评分准则和对信号强度的评分准则,根据预配置的蜂窝数据网信号评分机制可对获取的蜂窝数据网检测结果中网络制式进行评分、网络延迟进行评分、信号强度进行评分,并获取网络制式分值、网络延迟分值和信号强度分值;再计算默认分值与网络制式分值、网络延迟分值、信号强度分值的累计值可得到蜂窝数据网信号分值,即蜂窝数据网信号分值=默认分值+网络制式分值+网络延迟分值+信号强度分值。 Cellular data network signal scoring mechanism preconfigured includes score criterion network standard, network latency rating criteria and rating criteria for signal strength, the cellular data network signal scoring mechanism preconfigured, a cellular data network detection acquired results network standard score, score network delay, signal strength rating, and acquires network standard score, score network delay and signal strength value; the default value and the recalculated value network standard, network delay value, integrated value of a signal strength value of a signal value obtained cellular data network, i.e. cellular data network signal value default value = value + standard network delay value + + network signal strength value. 其中,默认分值为50分,即蜂窝数据网信号分值最高为50分;若移动终端不可通过蜂窝数据网进行数据传输,则蜂窝数据网信号分值为10分,即蜂窝数据网信号分值在10分至50分之间。 Wherein the default value of 50 minutes, i.e., cellular data network signal with the highest score of 50 points; if the mobile terminal is not available for data transmission via the cellular data network, the cellular data network signal score of 10 points, i.e., a cellular data network signal component value between 10 to 50 minutes. 例如,根据预配置的蜂窝数据网信号评分机制,网络制式为2G (2-Generat1n wirelesstelephone technology,第二代手机通信技术规格)时,网络制式分值为_20分;网络制式为3G (3-Generat1n wireless telephone technology,第三代手机通信技术规格)时,网络制式分值为_10分;网络制式为4G (4-Generat1n wireless telephone technology,第四代手机通信技术规格)时,网络制式分值为0分。 For example, the cellular data network signal scoring mechanism, pre-configured network standard when 2G (2-Generat1n wirelesstelephone technology, the second generation mobile communication technology specifications), the network standard score of _20 minutes; standard network is 3G (3- Generat1n wireless telephone technology, the third generation mobile communication technology specifications), the network standard score of _10 points; network format to 4G (4-Generat1n wireless telephone technology, the fourth generation mobile communication technology specifications), the network standard value 0 points. 网络延迟高于5秒时,网络延迟分值为-20分;网络延迟在2秒至5秒之间时,网络延迟分值为-10分;网络延迟在0.5秒至2秒之间时,网络延迟分值为-5分;网络延迟在网络延迟低于0.5秒时,网络延迟分值为O分。 When the network delay than 5 seconds -20 minutes network delay value; network delay between two to five seconds, the network latency score of -10 points; network delay time between 0.5 to 2 seconds, network latency score -5 points; network delay when the network delay is less than 0.5 seconds, the network delay is O score points. 信号强度为O格时,信号强度分值为-20分;信号强度为I格时,信号强度分值为-15分;信号强度为2格时,信号强度分值为-10分;信号强度为3格时,信号强度分值为-5分;信号强度为4格时,信号强度分值为O分。 O cell signal strength, signal intensity score of -20 points; cell signal intensity is I, the signal strength value is -15 minutes; 2 squares the signal intensity, the signal intensity score of -10 points; signal strength when the cell is 3, the signal intensity score -5 minutes; the signal intensity of cell 4, the signal intensity score of O points. 则若移动终端获取的蜂窝数据检测结果中网络制式为3G、网络延迟为60ms、信号强度为2格,则蜂窝数据网信号分值为30分。 If the mobile terminal acquired by the cellular data network standard detection result as 3G, network delay is 60ms, the signal strength of the grid 2, the cellular data network signal score of 30 points.

[0050]上述网络质量检测方法,根据预配置的评分机制可对获取的蜂窝数据网检测结果进行评分。 [0050] The network quality detection method according to the scoring mechanism can be preconfigured on the detection result acquired cellular data network were scored. 通过将蜂窝数据网检测结果量化为蜂窝数据网信号分值,有利于通过蜂窝数据网信号分值和无线局域网信号分值直观的比较蜂窝数据网信号与无线局域网信号的好坏,实现在无线局域网信号较差时切换为信号较好的蜂窝数据网。 By the detection result cellular data network is a cellular data network quantized signal value, facilitate cellular data network signal quality value through the wireless local area network signals and visual signal value comparison cellular data network and the wireless LAN signal, in a wireless local area network when the switching signal is a signal poor good cellular data network.

[0051]图4为另一个实施例中网络质量检测方法的流程图。 [0051] FIG 4 is a flowchart of network quality detection method according to another embodiment. 如图4所示,一种网络质量检测方法,包括: As shown in FIG 4 A network quality inspection method, comprising:

[0052] S402,移动终端默认网络连接为无线局域网,移动终端进行无线局域网检测,得到无线局域网信号分值低于59分,触发蜂窝数据网检测请求,进入步骤S404。 [0052] S402, the mobile terminal in step S404 default wireless local area network connection is a wireless LAN is detected, the mobile terminal, the wireless LAN signal value less than 59 points, cellular data network trigger detection request proceeds.

[0053] S404,检测蜂窝数据网是否连接,若是,进入步骤S408;若否,进入步骤S406。 [0053] S404, detecting whether the cellular data network connection, if yes, proceeds to step S408; if NO, proceeds to step S406.

[0054] S406,建立蜂窝数据网连接,且将蜂窝数据网连接设为非默认连接,进入步骤S408o [0054] S406, establishing a cellular data network connection, and the cellular data network is connected to a non-default connection, proceeds to step S408o

[0055] S408,通过蜂窝数据网的网络接口进行蜂窝数据网检测,进入步骤S410。 [0055] S408, a cellular data network via the network interface detects a cellular data network, the process proceeds to step S410.

[0056] S410,得到蜂窝数据网检测结果,根据蜂窝数据网检测结果计算蜂窝数据网信号分值,进入步骤S412。 [0056] S410, the detection result obtained cellular data network, a cellular data network signal value calculated in accordance with the detection result of the cellular data network, proceeds to step S412.

[0057] S412,检测无线局域网信号分值是否高于蜂窝数据网信号分值,若是,进入步骤S414;若否,进入步骤S416。 [0057] S412, detecting whether the wireless LAN signal value is higher than the cellular data network signal value, if yes, proceeds to step S414; if NO, proceeds to step S416.

[0058] S414,不进行网络切换操作,移动终端的默认网络连接为无线局域网。 [0058] S414, the network does not perform switching operation, the default network connected mobile terminals for the wireless LAN.

[0059] S416,进行网络切换操作,将移动终端的默认网络连接由无线局域网切换为蜂窝数据网。 [0059] S416, the switching operation of the network, the default network connection switching by a mobile terminal of a wireless cellular data network LAN.

[0060] 上述网络质量检测方法,在移动终端检测到无线局域网信号分值低于59分时,进行蜂窝数据网检测,并根据得到的蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0060] Network quality inspection method described above, the mobile terminal detects a wireless LAN signal value is less than 59 min, detecting a cellular data network, a cellular data network signal and calculates the value of the cellular data network detection result. 通过将蜂窝数据网信号分值与无线局域网信号分值进行比较,在蜂窝数据网信号分值较高时,将默认网络连接切换为蜂窝数据网;在无线局域网信号分值较高时,将默认网络连接保持为无线局域网。 By the cellular data network signal value is compared with the wireless LAN signal value, the cellular data network at a higher signal value, the default network connection switching a cellular data network; wireless LAN signal in the higher score, the default Fi wireless LAN remains. 有利于移动终端在接入无线局域网信号较差时,切换为信号较好的蜂窝数据网。 Conducive to poor access to the mobile terminal when the wireless LAN signal, the signal is switched to a better cellular data network.

[0061]图5为一个实施例中网络质量检测装置的结构框图。 [0061] FIG. 5 is a block diagram showing a configuration example of the network quality detection means according to an embodiment. 如图5所示,一种为实现图2中网络质量检测方法所架构的虚拟装置,包括: As shown, for a virtual network device to achieve quality inspection method in FIG. 5 as architecture, comprising:

[0062] 触发请求模块502,用于当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; When the [0062] trigger the requesting module 502, a default network when the mobile terminal connected to a wireless LAN, a wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network;

[0063] 检测模块504,用于根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; [0063] The detection module 504, a request for a network connection type is selected cellular data network, a cellular data network is detected, the detection result obtained cellular data network of the cellular data network is detected;

[0064] 计算模块506,用于根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0064] The calculation module 506 for calculating a signal value cellular data network according to the detection result of the cellular data network.

[0065] 上述网络质量检测装置,当移动终端默认连接无线局域网时,若检测到无线局域网信号低于指令值,即无线局域网信号较弱、网络传输速率较慢时,触发蜂窝数据网检测请求,根据蜂窝数据网检测请求进行蜂窝数据网检测,并根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0065] The network quality detection means, when the mobile terminal connected to the wireless LAN default, if the wireless LAN signal is detected below the command value, i.e., the wireless LAN signal is weak, the network transmission rate is slow, the trigger detection request cellular data network, detecting a cellular data network according to the detection request cellular data network, a cellular data network signal and calculating scores according to the detection result of the cellular data network. 通过在无线局域网信号较弱时自动进行蜂窝数据网检测,可快捷的检测蜂窝数据网的网络质量。 By automatic cellular data network when a weak signal detection in a wireless local area network, network quality may be detected fast cellular data network.

[0066] 在一个实施例中,检测模块504还用于遍历网络连接信息列表,根据网络连接信息获取蜂窝数据网络接口,在蜂窝数据网接口创建函数,通过创建函数后的蜂窝数据网接口进行蜂窝数据网检测,得到蜂窝数据网检测结果。 [0066] In one embodiment, the detection module 504 is further configured to traverse the network connection information list, acquiring a cellular data network interface according to the network connection information, the cellular data network interface to create a function, performed by the cellular network after the cellular data creating function interface detecting data network, a cellular data network to obtain a detection result.

[0067] 在一个实施例中,蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度,计算模块506还用于根据预配置的评分机制计算网络制式分值、网络延迟分值和信号强度分值;计算网络制式分值、网络延迟分值和信号强度分值的累计值。 [0067] In one embodiment, the cellular data network comprises network standard detection result, network delay and signal strength calculating module 506 is further configured to calculate the score according to the network standard scoring mechanism preconfigured, network delay and signal strength value score; score computing network standard, network delay value and the integrated value of the signal strength value.

[0068]上述网络质量检测装置,根据预配置的评分机制可对获取的蜂窝数据网检测结果进行评分。 [0068] Network quality detection means described above, according to the scoring mechanism can be preconfigured on the detection result acquired cellular data network were scored. 通过将蜂窝数据网检测结果量化为蜂窝数据网信号分值,有利于通过蜂窝数据网信号分值和无线局域网信号分值直观的比较蜂窝数据网信号与无线局域网信号的好坏,实现在无线局域网信号较差时切换为信号较好的蜂窝数据网。 By the detection result cellular data network is a cellular data network quantized signal value, facilitate cellular data network signal quality value through the wireless local area network signals and visual signal value comparison cellular data network and the wireless LAN signal, in a wireless local area network when the switching signal is a signal poor good cellular data network.

[0069]图6为另一个实施例中网络质量检测装置的结构框图。 [0069] FIG. 6 is a block diagram showing a structure of the network quality detection means according to another embodiment. 如图6所示,一种网络质量检测装置,包括:触发请求模块602、检测模块604、计算模块606和切换模块608。 6, quality detection means A network, comprising: a trigger request module 602, a detection module 604, calculation module 606 and a switching module 608. 其中,触发请求模块602、检测模块604和计算模块606与图5中对应的模块功能相同。 Wherein the requesting module 602 is triggered, the same detection module 604 and a calculation module 606 in FIG. 5 and the corresponding function module.

[0070] 检测模块604还用于选取网络连接类型为无线局域网,进行无线局域网检测,得到无线局域网检测结果; [0070] The detection module 604 is further configured to select a network connection type is wireless LAN, a wireless LAN is detected, the wireless LAN to obtain a detection result;

[0071] 计算模块606还用于根据无线局域网检测结果计算无线局域网信号分值; [0071] The calculation module 606 is further configured to calculate the score according to the wireless LAN wireless LAN signal detection result;

[0072] 切换模块608,用于若无线局域网信号分值低于蜂窝数据网信号分值,将移动终端默认网络连接切换为蜂窝数据网。 [0072] The switching module 608, a wireless LAN signal if the value is lower than the signal value cellular data network, the default mobile terminal is a cellular network connection switching data network.

[0073] 上述网络质量检测装置,移动终端在默认网络连接为无线局域网时,进行无线局域网检测,得到无线局域网检测结果,并根据预配置的无线局域网信号评分机制获取无线局域网信号分值,再将无线局域网信号分值与蜂窝数据网信号分值进行比较,当蜂窝数据网信号分值较高时,移动终端可将默认网络连接由无线局域网切换为蜂窝数据网。 [0073] Network quality detection means described above, the mobile terminal is connected when the default network WLAN, wireless local area network is detected, the detection result obtained wireless LAN, a wireless LAN signal value and acquires a wireless LAN signal scoring mechanism pre-configured, and then WLAN signal value is compared with the signal value cellular data network, a cellular data network when a high signal value, the mobile terminal may be switched from the default wireless local area network connection is a cellular data network. 即在无线局域网信号较差时,移动终端可将网络连接自动切换为信号较好的蜂窝数据网,切换网络连接的方式更快捷。 That is, when the wireless LAN signal is poor, the mobile terminal may be connected to the network is automatically switched to signal better cellular data network, the network connection of the switching more efficient.

[0074]图7为另一个实施例中网络质量检测装置的结构框图。 [0074] FIG. 7 is a block diagram showing a structure of the network quality detection means according to another embodiment. 如图7所示,一种网络质量检测装置,包括触发请求模块702、检测模块704、计算模块706和连接模块708。 7, the quality detection means A network, comprising a trigger request module 702, a detection module 704, calculation module 706 and the connector module 708. 其中,触发请求模块702、检测模块704和计算模块706与图5中对应的模块功能相同。 Wherein the requesting module 702 is triggered, the same detection module 704 and a calculation module 706 in FIG. 5 and the corresponding function module.

[0075] 连接模块708,用于在根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网之前,若蜂窝数据网未连接,连接蜂窝数据网,将蜂窝数据网设为非默认连接。 [0075] The connector module 708, before the request for the selected connection type is a cellular data network of the cellular data network is detected, if the cellular data network is not connected, connecting the cellular data network, the cellular data network to the non-default connection.

[0076]上述网络质量检测装置中各个模块的划分仅用于举例说明,在其他实施例中,可将网络质量检测装置按照需要划分为不同的模块,以完成上述网络质量检测装置的全部或部分功能。 [0076] The network quality detection means divided in various modules for illustrative purposes only, in other embodiments, network quality may be divided into a detecting device according to different modules required to complete all of the above network quality detection means or a part of Features.

[0077] 一种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时实现以下步骤: [0077] A computer apparatus comprising a computer program memory, a processor and a memory and running on the processor in the memory, when executed implement the steps of the program:

[0078]当计算机设备默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求。 [0078] When the default network connected computer device a wireless LAN, a wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network.

[0079] 在一个实施例中,计算机设备可通过连接服务模块设置默认网络连接。 [0079] In one embodiment, the computer device may be provided by a connection service module default network connection. 计算机设备在设置默认网络连接时,会调用连接服务模块中网络管理服务来设置网络守护进程的默认接口。 Computer equipment when you set the default network connection, calls the connection service module in the network management service to set the default interface to the network daemons. 网络守护进程中有多个接口,但仅有一个接口可设置为默认接口,计算机设备中应用程序通过网络守护进程中默认接口来进行数据传输,即网络守护进程中默认接口对应的网络连接为默认网络连接。 Network daemon a plurality of interfaces, but only one interface can be set to the default interface, computer application equipment for data transmission via the network daemon default interface, i.e. the network daemon corresponding default interface as the default network connection Internet connection. 例如,无线局域网的网络接口为wlanO,计算机设备在连接无线局域网后,设置无线局域网的网络接口wlanO为默认接口,计算机设备中应用程序通过网络接口wlanO来进行数据传输,则计算机设备的默认网络连接为无线局域网。 For example, a wireless local area network interface wlanO, the computer device after the wireless LAN connection, setting up a wireless local area network interface wlanO as the default interface, the computer device an application to data transmission via the network interface wlanO, the default network computer device connected wireless local area network.

[0080] 计算机设备在默认网络连接为无线局域网时,会进行无线局域网检测,得到无线局域网检测结果,并根据预配置的无线局域网信号评分机制计算无线局域网信号分值。 [0080] Computer device when the default network connection is a wireless local area network, wireless local area network will be detected, the detection result obtained wireless LAN, a wireless LAN signal and calculating scores according to scoring mechanism WLAN signal preconfigured. 其中,预配置的无线局域网信号评分机制根据以下五个参数评判无线局域网信号分值:RSSI值、WLAN链路丢包率、TCP重传率、网络延时和历史网速。 Wherein, the wireless LAN signal scoring mechanism pre-configured wireless LAN signal evaluation value according to the following five parameters: RSSI value, WLAN link packet loss rate, TCP retransmission rate, network delay and historical network speed. 其中,RSSI值可表示无线局域网的信号强度,RSSI值越大表明无线局域网的信号强度越好;WLAN链路丢包率是指通过无线局域网传输数据时,传输过程中丢失的数据包数量占所发送的总数据包数量的比率;TCP重传率是指在数据传输过程中,重新传输的数据与总数据之间的比率;网络延时是指数据在网络中传输所用的时间;历史网速是指计算机设备所记载的网络在数据传输时,请求数据与返回数据之间的时间差,其中,计算机设备在计算无线局域网信号分值时,获取的历史网速为历史网速最大值。 Wherein, the RSSI value may represent the signal strength of the wireless local area network, the RSSI signal strength higher number indicates better wireless local area network; the WLAN link packet loss rate refers to the amount of data transmitted through a wireless LAN, the transmission of the lost data packets make up the total number of packets transmitted ratio; rate refers to the TCP retransmission during data transmission, the ratio between the total data retransmission data; network delay is the time the data transmission network used; historical network speed refers to a network computer device described in data transmission, and return the requested data the time difference between the data, wherein, when the computer device calculates a wireless LAN signal value, the acquired history historical speed maximum speed. 根据预配置的无线局域网信号评分机制,可对RSSI值、WLAN链路丢包率、TCP重传率、网络延时和历史网速进行评分,获取RSSI分值、WLAN链路丢包率分值、TCP重传率分值、网络延时分值和历史网速分值。 The wireless LAN signal scoring mechanism preconfigured, may be for RSSI value, WLAN link packet loss rate, TCP retransmission rate, and historical speed network latency score, score acquired RSSI, WLAN link packet loss rate value , TCP retransmission rate score, score and history speed network latency scores. 计算默认分值与RSSI分值、WLAN链路丢包率分值、TCP重传率分值、网络延时分值、历史网速分值的累计值可得到无线局域网信号分值,SP无线局域网信号分值=默认分值+RSSI分值+WLAN链路丢包率分值+TCP重传率分值+网络延时分值+历史网速分值。 The default value is calculated with the RSSI value, WLAN link packet loss rate value, TCP retransmission rate value, network delay value, the integrated value of the score obtained historical speed wireless LAN signal value, SP wireless LAN score = score default signal the RSSI value + + + the WLAN link packet loss rate value of the TCP retransmission latency value + value + network speed history score. 其中,默认分值为79分;若计算机设备不可通过无线局域网进行数据传输,则无线局域网信号分值为15分,即无线局域网信号分值在15分至79分之间。 Wherein the default value is 79; if the computer apparatus can not perform data transmission through the wireless LAN, the wireless LAN signal score of 15 points, i.e., between the signal value in the wireless LAN 15 to 79 minutes.

[0081] 例如,根据预配置的无线局域网信号评分机制,RSSI值低于-83时,RSSI分值为-20分;RSSI值在-83至-75之间时,RSSI分值为-10分;RSSI值在-75至-65之间时,RSSI分值为-5分;RSSI值高于-65时,RSSI分值为O分。 [0081] For example, a wireless LAN signal in accordance with a pre-scoring mechanism configured, when the RSSI value is less than -83, the RSSI value of -20 minutes; the RSSI value is between -83 to -75, RSSI value of -10 minutes ; the RSSI value at between -75 to -65, RSSI value -5 minutes; when the RSSI value is higher than -65, RSSI value is O points. WLAN链路丢包率高于50 %时,WLAN链路丢包率分值为-20分;WLAN链路丢包率在25%至50%之间时,WLAN链路丢包率分值为-10分;WLAN链路丢包率在5 %至25 %之间时,WLAN链路丢包率分值为-5分;WLAN链路丢包率低于5 %时,WLAN链路丢包率分值为O分。 WLAN link when the packet loss rate is higher than 50%, WLAN link loss rate value is -20 minutes; when a WLAN link loss rate between 25% and 50%, WLAN link packet loss rate value is -10 minutes; when the WLAN link packet loss rate between 5% and 25%, WLAN link loss rate value -5 minutes; the WLAN link packet loss rate is less than 5%, WLAN link loss rate score of O points. TCP重传率高于50 %时,TCP重传率分值为-20分;TCP重传率在25 %至50 %之间时,TCP重传率分值为-10分;TCP重传率在5 %至25 %之间时,TCP重传率分值为-5分;TCP重传率低于5%时,TCP重传率分值为O分。 When TCP retransmission higher than 50%, TCP retransmission rate value is -20 minutes; when TCP retransmission rate of between 25% and 50%, TCP retransmission rate value is -10 minutes; TCP retransmission rate when between 5% and 25%, TCP retransmission rate value -5 minutes; when TCP retransmission rate is less than 5%, TCP retransmission rate value is O points. 网络延迟高于100毫秒时,网络延迟分数为-20分;网络延迟在50毫秒至100毫秒之间时,网络延迟分数为-10分;网络延迟在20毫秒至50毫秒之间时,网络延迟分数为-5分;网络延迟低于20毫秒时,网络延迟分数为O分。 When the network delay than 100 ms, network latency score of -20 points; network latency between 100 milliseconds to 50 milliseconds, network latency score of -10 points; network delay is between 20 ms to 50 ms, network delay -5 score points; less than 20 ms when the network delay, the network delay is O score points. 历史网速低于50kb/s时,历史网速分值为-20分;历史网速在50kb/s至100kb/s时,历史网速分值为-10分;历史网速在100kb/s至300kb/s时,历史网速分值为-5分;历史网速高于300kb/s时,历史网速分值为O分。 When the speed is less than the history of 50kb / s, speed history score of -20 minutes; speed history when the 50kb / s to 100kb / s, speed history score of -10 minutes; in the historical speed 100kb / s when to 300kb / s, speed history score -5 minutes; when the speed is higher than the historical 300kb / s, speed history score of O points. 若计算机设备获取的无线局域网检测结果中RSSI值为-40、WLAN链路丢包率为10%、1^?重传率为10%、网络延时为15毫秒、历史网速为4001^/8,则无线局域网信号分值为69分。 If the wireless LAN device acquires the detection result of computer RSSI is -40, WLAN link packet loss rate of 10%, 1 ^? 10% retransmissions, network delay of 15 milliseconds, ^ 4001 historic speed / 8, the wireless LAN signal score of 69 points. 若计算机设备检测到无线局域网信号分值低于59分,则触发蜂窝数据网检测请求。 If the computer device detects the wireless LAN signal value is less than 59 minutes, a cellular data network trigger detection request.

[0082] 根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果。 [0082] The network connection type is selected request cellular data network, a cellular data network is detected, the detection result obtained cellular data network of the cellular data network is detected.

[0083] 在一个实施例中,计算机设备可通过连接服务模块选取网络连接类型为蜂窝数据网,通过蜂窝数据网与服务器通信,进行蜂窝数据网检测。 [0083] In one embodiment, the computer device may select a network connection type via a cellular data network connection service module, a cellular data network communication with the server via a cellular data network is detected. 例如,通过蜂窝数据网将网络报文发送给服务器,并记录发送报文的时刻;接收服务器返回的网络报文,并记录接收报文的时刻,通过计算接收报文的时刻与发送报文的时刻之间的时间差,可获取网络延时。 For example, the cellular data network to the network packet to the server, and recording time transmitted packets; receiving server returns the network packets, and records the time of receiving packets by time calculation received packets sent packets with the time difference between the time, network latency can be obtained.

[0084] 根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0084] Cellular Data Network signal value calculated in accordance with the detection result of cellular data network.

[0085] 在一个实施例中,计算机设备依据预配置的蜂窝数据网信号评分机制对得到的蜂窝数据网检测结果进行评分,获取蜂窝数据网信号分值。 [0085] In one embodiment, computer device to a cellular data network detection result obtained based on a cellular data network score scoring mechanism preconfigured signal, a signal value acquired cellular data network.

[0086] 上述计算机设备,当计算机设备默认连接无线局域网时,若检测到无线局域网信号低于指令值,即无线局域网信号较弱、网络传输速率较慢时,触发蜂窝数据网检测请求,根据蜂窝数据网检测请求进行蜂窝数据网检测,并根据蜂窝数据网检测结果计算蜂窝数据网信号分值。 [0086] The computer device, when the computer device connected to wireless LAN default, if the wireless LAN signal is detected below the command value, i.e., the wireless LAN signal is weak, the network transmission rate is slow, the trigger detection request cellular data network, the cellular detecting requests for data network detecting cellular data network, a cellular data network signal and calculating scores according to the detection result of the cellular data network. 通过在无线局域网信号较弱时自动进行蜂窝数据网检测,可快捷的检测蜂窝数据网的网络质量。 By automatic cellular data network when a weak signal detection in a wireless local area network, network quality may be detected fast cellular data network.

[0087] 在一个实施例中,上述计算机设备中处理器执行程序时还实现以下步骤: [0087] In one embodiment, the above computer program executed by a processor device Shihai implemented steps of:

[0088] 选取网络连接类型为无线局域网,进行无线局域网检测,得到无线局域网检测结果O [0088] Select connection type of wireless LAN, a wireless LAN is detected, the detection result obtained WLAN O

[0089] 在一个实施例中,计算机设备在默认网络连接为无线局域网时,会进行无线局域网检测。 When [0089] In one embodiment, a computer device connected to wireless local area networks by default, the wireless LAN will be detected. 计算机设备可通过连接服务模块选取连接的网络类型为无线局域网来进行网络检测。 The computer can select the type of network devices connected via a wireless LAN connection service module to the network is detected. 其中,连接服务模块中连接信息列表,连接信息列表中记录计算机设备中网络连接信息,网络连接信息可包括网络类型、连接状态和网络名称等。 Wherein the connection service module connection information list, the list of the connection information recording device connected to the computer network information, the network information may include a network connection type, connection status, and the network name and the like. 通过遍历连接信息列表,根据网络连接信息可获取无线局域网的网络接口,在无线局域网的网络接口创建socket函数,通过创建函数后的无线局域网的网络接口与服务器通信,进行无线局域网检测。 By traversing the connection information list, available wireless LAN network interface according to the network connection information, the interface creates a socket function in a wireless local area network, a network interface for communicating via the wireless LAN function is created with a server, a wireless LAN is detected. 例如,计算机设备同时连接无线局域网和蜂窝数据网,可通过网络连接信息中网络类型为W1-F1、连接状态为已连接、网络名称为CMCC判断上述网络连接信息对应的网络连接为无线局域网,且获取无线局域网的网络接口为wlanO,通过在网络接口wlanO上创建socket函数,通过创建函数后的网络接口wlanO与服务器通信,来进行无线局域网检测,并得到无线局域网检测结果O For example, computer device while connected to a wireless LAN and a cellular data network, may be connected through the network information network type W1-F1, the connection state is connected, the network name of the connection information corresponding to the network connection for the wireless LAN as CMCC determining said network, and acquire wireless LAN network interface wlanO,, by creating a network interface wlanO communication function and the server, the wireless LAN is performed by the detection function creates a socket on a network interface wlanO, wireless LAN and a detection result obtained O

[0090] 根据无线局域网检测结果计算无线局域网信号分值。 [0090] WLAN wireless LAN signal value calculated in accordance with the detection result.

[0091] 在一个实施例中,无线局域网检测结果中包括:RSSI值、TCP重传率、TCP重传率、网络延时和历史网速。 [0091] In one embodiment, the detection result includes a wireless local area network: RSSI value, TCP retransmission rate, TCP retransmission rate, network delay and historical network speed. 计算机设备可根据预配置的无线局域网信号评分机制对无线局域网检测结果各项参数评分,并计算无线局域网信号分值。 The computer device may wireless LAN in accordance with a detection result of the parameters of the wireless LAN signal Rating Rating preconfigured mechanism, and calculating the wireless LAN signal value.

[0092] 若无线局域网信号分值低于蜂窝数据网信号分值,将计算机设备默认网络连接切换为蜂窝数据网。 [0092] If the wireless LAN signal is the signal value is lower than the value cellular data network, a computer network connection switching device defaults a cellular data network.

[0093] 在一个实施例中,计算机设备将无线局域网信号分值与蜂窝数据网信号分值进行比对,若蜂窝数据网信号分值高于无线局域网信号分值,即蜂窝数据网信号较好时,计算机设备获取蜂窝数据网的网络接口,将蜂窝数据网的网络接口设置为默认网络接口,计算机设备中应用程序通过蜂窝数据网的网络接口来进行数据传输,即计算机设备的默认网络连接由无线局域网切换为蜂窝数据网。 [0093] In one embodiment, the wireless local area network computer device with a cellular data network signal value signal value for comparison, if the signal value is higher than the cellular data network WLAN signal value, i.e., a cellular data network preferably signals when the computer device acquires a network interface to a cellular data network, the cellular data network is a network interface as the default network interface, computer device an application to data transmission via the network interface to a cellular data network, i.e. the default network computer devices connected by WLAN switched cellular data network.

[0094] 上述计算机设备,计算机设备在默认网络连接为无线局域网时,进行无线局域网检测,得到无线局域网检测结果,并根据预配置的无线局域网信号评分机制获取无线局域网信号分值,再将无线局域网信号分值与蜂窝数据网信号分值进行比较,当蜂窝数据网信号分值较高时,计算机设备可将默认网络连接由无线局域网切换为蜂窝数据网。 When [0094] the above-described computer device, a computer device connected to wireless LAN default network, wireless LAN is detected, the detection result obtained wireless LAN, a wireless LAN signal value and acquires a wireless LAN signal scoring mechanism pre-configured, and then the wireless LAN the signal value is compared with a signal value cellular data network, a cellular data network when a high signal value, the computer device can be switched from the default wireless local area network connection is a cellular data network. 即在无线局域网信号较差时,计算机设备可将网络连接自动切换为信号较好的蜂窝数据网,切换网络连接的方式更快捷。 That is, when the wireless LAN signal is poor, the computer device may be a network connection is automatically switched to signal better cellular data network, the network connection of the switching more efficient.

[0095] 在一个实施例中,在上述计算机设备中处理器执行程序时实现的步骤:根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网之前,上述计算机设备中处理器执行程序时实现的步骤还包括:若蜂窝数据网未连接,连接蜂窝数据网,将蜂窝数据网设为非默认连接。 [0095] In one embodiment, the processor executes the program steps implemented in said computer device: requesting a network connection type selected cellular data network is detected before the cellular data network, to achieve the above-described computer apparatus executing a program in a processor further comprising the step of: if the cellular data network is not connected, connecting the cellular data network, the cellular data network to the non-default connection.

[0096] 在一个实施例中,计算机设备在默认网络连接为无线局域网时,获取蜂窝数据网检测请求,检测计算机设备是否连接蜂窝数据网,若计算机设备已连接蜂窝数据网且为非默认网络连接,则根据蜂窝数据网检测请求进行蜂窝数据网检测;若计算机设备未连接蜂窝数据网,则计算机设备连接蜂窝数据网,并将蜂窝数据网设为非默认连接,根据蜂窝数据网检测请求进行蜂窝数据网检测。 When [0096] In one embodiment, a computer device connected to wireless LAN default network, acquires detection request cellular data network, the computer device detects whether the connection to the cellular data network, if the device is connected to a computer network and a cellular data network connection other than the default , a cellular data network is detected based on detection request cellular data network; if the computer device is not connected to a cellular data network, the computer device connected to a cellular data network and a cellular data network to the non-default connection, a cellular network in accordance with a detection request cellular data data network testing. 其中,将蜂窝数据网设为非默认连接包括:计算机设备连接无线局域网和蜂窝数据网络,通过连接服务模块将无线局域网的网络接口设为默认网络接口,则计算机设备中应用程序通过无线局域网的网络接口来进行数据传输,则计算机设备连接的无线局域网为默认网络连接,蜂窝数据网的网络接口没有设为默认网络接口,计算机设备中应用程序不会通过蜂窝数据网的网络接口进行数据传输,则计算机设备连接的蜂窝数据网为非默认连接。 Wherein the cellular data network to the non-default connection comprising: a computer device connected to wireless LAN and a cellular data network connection service through the wireless LAN module network interface as the default network interface, the computer device application over the wireless LAN network an interface for data transmission, the computer device connected to wireless local area network as the default network connection, the network interface to a cellular data network does not set the default application for data transmission via the network interface data network, a cellular network interface, the computer device, then cellular data network computer device connected to a non-default connection.

[0097] 在一个实施例中,上述计算机设备中处理器执行程序时实现的步骤:根据蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测包括:遍历网络连接信息列表,根据网络连接信息获取蜂窝数据网络接口,在蜂窝数据网接口创建函数,通过创建函数后的蜂窝数据网接口进行蜂窝数据网检测。 Step [0097] In one embodiment, a computer implemented apparatus when said processor executes: the cellular data network according to the connection type selected request detecting a cellular data network, a cellular data network detection comprising: traversing a list of network connection information, the cellular data network connection information acquiring the network interface, the interface function to create a cellular data network, a cellular data network is detected by the cellular data network after creating function interface.

[0098] 在一个实施例中,计算机设备可通过连接服务模块选取连接的网络类型为蜂窝数据网来进行网络检测。 [0098] In one embodiment, the computer device may be a cellular data network to select the type of network connected to the network is detected by the connection service module. 其中,连接服务模块中连接信息列表,连接信息列表中记录计算机设备中网络连接信息,网络连接信息可包括网络类型、连接状态和蜂窝数据网的APN类型等。 Wherein the connection service module connection information list, the list of the connection information recording device connected to the computer network information and network connection information may include a network type, connection status, and cellular data network APN types. 通过遍历连接信息列表,根据网络连接信息可选取出连接的蜂窝数据网的网络接口,在蜂窝数据网的网络接口创建socket函数,通过创建函数后的蜂窝数据网的网络接口与服务器进行通信,进行蜂窝数据网检测。 By traversing the connection information list, according to the network connection information extracted optional network interface connection to a cellular data network, a cellular data network at the network interface function creates a socket to communicate with the server through the network interface after creating the function of cellular data network, for detecting cellular data network. 例如,计算机设备同时连接无线局域网和蜂窝数据网,可通过网络连接信息中网络类型为蜂窝数据网、连接状态为已连接、蜂窝数据网的APN类型为CMWAP判断上述网络连接信息对应的网络连接为蜂窝数据网,且获取蜂窝数据网的网络接口为ccmn1,通过在网络接口ccmn1上创建socket函数,通过创建函数后的网络接口ccmn1与服务器通信,来进行蜂窝数据网检测,并得到蜂窝数据网检测结果。 For example, computer device while connected to a wireless LAN and a cellular data network, may be a cellular data network via network connection information, network type, connection state is connected, the APN type of cellular data network for CMWAP determining whether the network connection information corresponding to the network connection cellular data network, and obtain cellular data network is a network interface ccmn1, by creating a socket function on a network interface ccmn1, by creating a network interface ccmn1 after the communication function of the server to a cellular data network detection, and obtain cellular data network detection result.

[0099] 在一个实施例中,蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度,上述计算机设备中处理器执行程序时实现的步骤:根据蜂窝数据网检测结果计算蜂窝数据网信号分值包括:根据预配置的评分机制计算网络制式分值、网络延迟分值和信号强度分值;计算网络制式分值、网络延迟分值和信号强度分值的累计值。 [0099] In one embodiment, the cellular data network comprises network standard detection result, signal strength and network delay step, to achieve the above computer apparatus execute a program in a processor: calculates cellular data network signal points according to the detection result of cellular data network value comprises: calculating network standard score scoring mechanism according to pre-configured network delay value and a signal strength value; standard value computing network, network delay value and the integrated value of the signal strength value.

[0100] 在一个实施例中,计算机设备在获取蜂窝数据网检测结果后,可根据预配置的蜂窝数据网信号评分机制计算蜂窝数据网信号分值。 [0100] In one embodiment, the computer device after the detection result acquired cellular data network, a cellular data network signal value may be calculated based on a cellular data network signal preconfigured scoring mechanism. 其中,计算机设备获取的蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度等。 Wherein a detection result of the cellular data network computer apparatus included in the acquired network standard, network delay and signal strength. 预配置的蜂窝数据网信号评分机制中包括对网络制式的评分准则、对网络延迟的评分准则和对信号强度的评分准则,根据预配置的蜂窝数据网信号评分机制可对获取的蜂窝数据网检测结果中网络制式进行评分、网络延迟进行评分、信号强度进行评分,并获取网络制式分值、网络延迟分值和信号强度分值;再计算默认分值与网络制式分值、网络延迟分值、信号强度分值的累计值可得到蜂窝数据网信号分值,即蜂窝数据网信号分值=默认分值+网络制式分值+网络延迟分值+信号强度分值。 Cellular data network signal scoring mechanism preconfigured includes score criterion network standard, network latency rating criteria and rating criteria for signal strength, the cellular data network signal scoring mechanism preconfigured, a cellular data network detection acquired results network standard score, score network delay, signal strength rating, and acquires network standard score, score network delay and signal strength value; the default value and the recalculated value network standard, network delay value, integrated value of a signal strength value of a signal value obtained cellular data network, i.e. cellular data network signal value default value = value + standard network delay value + + network signal strength value. 其中,默认分值为50分,即蜂窝数据网信号分值最高为50分;若计算机设备不可通过蜂窝数据网进行数据传输,则蜂窝数据网信号分值为10分,即蜂窝数据网信号分值在10分至50分之间。 Wherein the default value of 50 minutes, i.e., cellular data network signal with the highest score of 50 points; if the computer apparatus can not perform data transmission through the cellular data network, the cellular data network signal score of 10 points, i.e., a cellular data network signal component value between 10 to 50 minutes. 例如,根据预配置的蜂窝数据网信号评分机制,网络制式为2G时,网络制式分值为-20分;网络制式为3G时,网络制式分值为-10分;网络制式为4G时,网络制式分值为O分。 For example, the cellular data network signal scoring mechanism, standard network is pre-configured 2G, the network standard score of -20 minutes; standard network is 3G, network standard score of -10 minutes; to 4G network standard, network standard score of O points. 网络延迟高于5秒时,网络延迟分值为-20分;网络延迟在2秒至5秒之间时,网络延迟分值为-10分;网络延迟在0.5秒至2秒之间时,网络延迟分值为-5分;网络延迟在网络延迟低于 When the network delay than 5 seconds -20 minutes network delay value; network delay between two to five seconds, the network latency score of -10 points; network delay time between 0.5 to 2 seconds, network latency score -5 points; network delay less than the delay in the network

0.5秒时,网络延迟分值为O分。 0.5 seconds, the network delay is O score points. 信号强度为O格时,信号强度分值为-20分;信号强度为I格时,信号强度分值为-15分;信号强度为2格时,信号强度分值为-10分;信号强度为3格时,信号强度分值为-5分;信号强度为4格时,信号强度分值为O分。 O cell signal strength, signal intensity score of -20 points; cell signal intensity is I, the signal strength value is -15 minutes; 2 squares the signal intensity, the signal intensity score of -10 points; signal strength when the cell is 3, the signal intensity score -5 minutes; the signal intensity of cell 4, the signal intensity score of O points. 则若计算机设备获取的蜂窝数据检测结果中网络制式为3G、网络延迟为60ms、信号强度为2格,则蜂窝数据网信号分值为30分。 If the detection result of computer equipment cellular data network standard is acquired 3G, network delay is 60ms, the signal strength of the grid 2, the cellular data network signal score of 30 points.

[0101]上述计算机设备,根据预配置的评分机制可对获取的蜂窝数据网检测结果进行评分。 [0101] The computer device, according to the scoring mechanism can be preconfigured on the detection result acquired cellular data network were scored. 通过将蜂窝数据网检测结果量化为蜂窝数据网信号分值,有利于通过蜂窝数据网信号分值和无线局域网信号分值直观的比较蜂窝数据网信号与无线局域网信号的好坏,实现在无线局域网信号较差时切换为信号较好的蜂窝数据网。 By the detection result cellular data network is a cellular data network quantized signal value, facilitate cellular data network signal quality value through the wireless local area network signals and visual signal value comparison cellular data network and the wireless LAN signal, in a wireless local area network when the switching signal is a signal poor good cellular data network.

[0102] 计算机设备可为移动终端等。 [0102] The computer device may be a mobile terminal or the like.

[0103] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 [0103] Those of ordinary skill in the art may understand that the above-described method embodiments all or part of the processes may be related hardware instructed by a computer program, the program may be stored in a computer-readable non-volatile take storage medium, the program is executed, the processes of the foregoing method embodiments. 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(^Read-Only Memory,ROM)等。 Wherein the storage medium may be a magnetic disk, an optical disk, read-only memory (^ Read-Only Memory, ROM) and the like.

[0104]以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。 [0104] Expression of the above-described embodiments are only several embodiments of the present invention, and detailed description thereof is more specific, but can not therefore be understood as limiting the scope of the present invention. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, without departing from the spirit of the present invention, can make various changes and modifications, which fall within the protection scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (11)

1.一种网络质量检测方法,其特征在于,包括: 当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; 根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; 根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 A network quality inspection method, characterized by comprising: when the mobile terminal is connected to the default network WLAN, the wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network; according to the cellular detection request data network to select the connection type cellular data network, a cellular data network is detected, the detection result obtained cellular data network; cellular data network signal value calculated in accordance with the detection result of the cellular data network.
2.根据权利要求1所述的网络质量检测方法,其特征在于,所述方法还包括: 选取网络连接类型为无线局域网,进行无线局域网检测,得到无线局域网检测结果; 根据所述无线局域网检测结果计算无线局域网信号分值; 若所述无线局域网信号分值低于蜂窝数据网信号分值,将移动终端默认网络连接切换为蜂窝数据网。 The network quality detection method according to claim 1, characterized in that, said method further comprising: selecting a network connection type is wireless LAN, a wireless LAN is detected, the wireless LAN to obtain a detection result; wireless local area network according to the detection result calculating wireless LAN signal value; if the wireless local area network data signal value is lower than the cellular signal value, the default network connection switching the mobile terminal is a cellular data network.
3.根据权利要求1所述的网络质量检测方法,其特征在于,在所述根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网之前,所述方法还包括: 若蜂窝数据网未连接,连接蜂窝数据网,将蜂窝数据网设为非默认连接。 The network quality inspection method according to claim 1, characterized in that the request to select the type of network connection to the cellular data network according to the prior detection of cellular data network, the method further comprising: if the cellular data network does not connection, data connection to the cellular network, the cellular data network as a non-default connection.
4.根据权利要求1所述的网络质量检测方法,其特征在于,所述根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测包括: 遍历网络连接信息列表,根据网络连接信息获取蜂窝数据网络接口,在所述蜂窝数据网接口创建函数,通过创建函数后的蜂窝数据网接口进行蜂窝数据网检测。 The network quality detection method according to claim 1, wherein said cellular data network according to the connection type selected request detecting a cellular data network, a cellular data network detection comprising: traversing a list of network connection information, the cellular data network connection information acquiring the network interface, the interface function created in the cellular data network, a cellular data network is detected by the cellular data network after creating function interface.
5.根据权利要求1所述的网络质量检测方法,其特征在于,所述蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度,所述根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值包括: 根据预配置的评分机制计算所述网络制式分值、所述网络延迟分值和所述信号强度分值; 计算所述网络制式分值、所述网络延迟分值和所述信号强度分值的累计值。 The network quality detection method according to claim 1, wherein said cellular data network comprising network standard detection result, network delay and signal strength, the computing cellular data network according to the detection result of the cellular data network signal value comprises: calculating scoring mechanism according to the pre-configured network standard value, the network delay values ​​and said signal strength value; calculating the network standard score, and the score of the network delay the integrated value of the signal strength value.
6.一种网络质量检测装置,其特征在于,包括: 触发请求模块,用于当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; 检测模块,用于根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; 计算模块,用于根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 A network quality detection means, characterized by comprising: triggering a request module, configured to by default when the mobile terminal when the network connection is a wireless LAN, a wireless LAN signal if the detected value is lower than the predetermined value, the trigger detecting cellular data network request; a detection module configured to select the type of network connection request to the cellular data network according to the detection of a cellular data network, a cellular data network is detected, the detection result obtained cellular data network; calculating module, according to the result of detection of cellular data network signal value calculating cellular data network.
7.根据权利要求6所述的网络质量检测装置,其特征在于,所述装置还包括: 所述检测模块还用于选取网络连接类型为无线局域网,进行无线局域网检测,得到无线局域网检测结果; 所述计算模块还用于根据所述无线局域网检测结果计算无线局域网信号分值; 切换模块,用于若所述无线局域网信号分值低于蜂窝数据网信号分值,将移动终端默认网络连接切换为蜂窝数据网。 The network quality detection means according to claim 6, characterized in that said apparatus further comprises: a detection module is further configured to select a network connection type is wireless LAN, a wireless LAN is detected, the wireless LAN to obtain a detection result; the computing module is further for calculating a score based on the wireless local area network WLAN signal detection result; switching module for wireless LAN signal if the value is lower than the signal value cellular data network, the mobile terminal default network connection switching a cellular data network.
8.根据权利要求6所述的网络质量检测装置,其特征在于,所述装置还包括: 连接模块,用于在所述根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网之前,若蜂窝数据网未连接,连接蜂窝数据网,将蜂窝数据网设为非默认连接。 8. Network quality detection means according to claim 6, characterized in that said apparatus further comprises: a connection module, a request for selecting the type of network connection to the cellular data network according to the prior detection of cellular data network, If the cellular data network is not connected, connecting the cellular data network, the cellular data network to the non-default connection.
9.根据权利要求6所述的网络质量检测装置,其特征在于,所述检测模块还用于遍历网络连接信息列表,根据网络连接信息获取蜂窝数据网络接口,在所述蜂窝数据网接口创建函数,通过创建函数后的蜂窝数据网接口进行蜂窝数据网检测,得到蜂窝数据网检测结果。 9. The network quality detection means according to claim 6, wherein the detection module is further configured to traverse network connection information list, acquiring a cellular data network interface according to the network connection information, the cellular data network interface to create a function , a cellular data network is detected by the cellular data network after creating function interface, a detection result obtained cellular data network.
10.根据权利要求6所述的网络质量检测装置,其特征在于,所述蜂窝数据网检测结果中包括网络制式、网络延迟和信号强度,所述计算模块还用于根据预配置的评分机制计算所述网络制式分值、所述网络延迟分值和所述信号强度分值;计算所述网络制式分值、所述网络延迟分值和所述信号强度分值的累计值。 The network quality detection means according to claim 6, wherein said cellular data network comprising network standard detection result, network delay and signal strength, the computing module is further for calculating a scoring mechanism according to preconfigured the network standard value, the network delay values ​​and said signal strength value; calculating the standard score network, the network delay value and the integrated value of the signal strength value.
11.一种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤: 当移动终端默认网络连接为无线局域网时,若检测到无线局域网信号分值低于指定值,触发蜂窝数据网检测请求; 根据所述蜂窝数据网检测请求选取网络连接类型为蜂窝数据网,进行蜂窝数据网检测,得到蜂窝数据网检测结果; 根据所述蜂窝数据网检测结果计算蜂窝数据网信号分值。 11. A computer apparatus comprising a computer program memory, a processor and a memory and running on the processor in the memory, wherein, when executed implement the steps of the program the processor to: default network when the mobile terminal when wireless LAN connection, a wireless LAN signal if the detected value is lower than the predetermined value, the trigger detection request cellular data network; cellular data network according to the connection type selected request detecting a cellular data network, a cellular data network detection to give cellular data network detection result; cellular data network signal value calculated in accordance with the detection result of the cellular data network.
CN201611193398A 2016-12-21 2016-12-21 Network quality detection method and device and computer equipment CN106658588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611193398A CN106658588A (en) 2016-12-21 2016-12-21 Network quality detection method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611193398A CN106658588A (en) 2016-12-21 2016-12-21 Network quality detection method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN106658588A true CN106658588A (en) 2017-05-10

Family

ID=58834573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611193398A CN106658588A (en) 2016-12-21 2016-12-21 Network quality detection method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN106658588A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277881A (en) * 2017-08-04 2017-10-20 广东欧珀移动通信有限公司 Network switching method, network switching device and intelligent terminal
CN107295592A (en) * 2017-08-14 2017-10-24 广东欧珀移动通信有限公司 Network switching method, mobile terminal, and computer readable storage medium
CN107318140A (en) * 2017-08-09 2017-11-03 广东欧珀移动通信有限公司 Network switching method, mobile terminal and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647310A (en) * 2006-10-31 2010-02-10 特尔科迪亚技术股份有限公司 Dynamic network selection using kernels
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN102111838A (en) * 2011-03-02 2011-06-29 上海交通大学 Self-adaptation vertical handover method based on RSS (Really Simple Syndication) variation trend
CN102244912A (en) * 2011-06-24 2011-11-16 中兴通讯股份有限公司 Method and system for switching networks
CN102835158A (en) * 2010-03-26 2012-12-19 皇家飞利浦电子股份有限公司 Link assessment before terminating alternate connection during heterogeneous network handovers
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection
CN104349411A (en) * 2013-07-29 2015-02-11 中兴通讯股份有限公司 Network switching method, network switching device and terminal
CN107172684A (en) * 2011-12-08 2017-09-15 华为技术有限公司 Access method and system, user equipment, and network-side equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647310A (en) * 2006-10-31 2010-02-10 特尔科迪亚技术股份有限公司 Dynamic network selection using kernels
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN102835158A (en) * 2010-03-26 2012-12-19 皇家飞利浦电子股份有限公司 Link assessment before terminating alternate connection during heterogeneous network handovers
CN102111838A (en) * 2011-03-02 2011-06-29 上海交通大学 Self-adaptation vertical handover method based on RSS (Really Simple Syndication) variation trend
CN102244912A (en) * 2011-06-24 2011-11-16 中兴通讯股份有限公司 Method and system for switching networks
CN107172684A (en) * 2011-12-08 2017-09-15 华为技术有限公司 Access method and system, user equipment, and network-side equipment
CN104349411A (en) * 2013-07-29 2015-02-11 中兴通讯股份有限公司 Network switching method, network switching device and terminal
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277881A (en) * 2017-08-04 2017-10-20 广东欧珀移动通信有限公司 Network switching method, network switching device and intelligent terminal
CN107318140A (en) * 2017-08-09 2017-11-03 广东欧珀移动通信有限公司 Network switching method, mobile terminal and computer readable storage medium
CN107295592A (en) * 2017-08-14 2017-10-24 广东欧珀移动通信有限公司 Network switching method, mobile terminal, and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103645845B (en) And a terminal control method by beating
CN102111853B (en) A method for automatically switching network connections, the mobile terminal apparatus and
CN102264063A (en) A mobile terminal and method for adaptive lifting download rate
CN103222302B (en) A method and apparatus for providing a measurement report in order to reduce road test requirements
CN103458305A (en) Video playing method and device, terminal device and server
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN101388819A (en) Network access method, system and mobile terminal
CN1780334B (en) Remote testing device and method for telephone connection service of mobile communication terminals
CN103279288B (en) Data transmission method, apparatus and a terminal device
CN102790718B (en) Method and apparatus for network communication
CN103974369B (en) Channel selection method and system based scoring mechanism of the wireless channel wlan
US8738094B2 (en) Automatically enabling wireless communication
CN103023540A (en) Method and device for transferring files by Bluetooth
CN104936134A (en) Method and system for pairing connection of terminal equipment
CN102833795B (en) The data transmission rate of the peer mode
CN103532782B (en) A test apparatus and test method for a wireless network wlan
CN103024843A (en) Method and system for switching access network
CN103368958A (en) Method, device and system for detecting webpage
CN104572430B (en) Test method of a terminal application interface, apparatus and system
CN103150014A (en) Controlled terminal and control method
CN100527105C (en) Management device, output device, output method and computer readable medium
CN101867954B (en) Base station reverse diversity link state detection method, device, system and base station
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN104683540A (en) Method and terminal for improving signal quality of communication terminal
CN104125206B (en) A client hardware environment adaptation method, apparatus and system for server

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination