WO2011017890A1 - 一种多模移动终端及其下载资源的方法 - Google Patents

一种多模移动终端及其下载资源的方法 Download PDF

Info

Publication number
WO2011017890A1
WO2011017890A1 PCT/CN2009/075969 CN2009075969W WO2011017890A1 WO 2011017890 A1 WO2011017890 A1 WO 2011017890A1 CN 2009075969 W CN2009075969 W CN 2009075969W WO 2011017890 A1 WO2011017890 A1 WO 2011017890A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
resource
mobile terminal
current
downloading
Prior art date
Application number
PCT/CN2009/075969
Other languages
English (en)
French (fr)
Inventor
贺彬
向炳新
王柯
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011017890A1 publication Critical patent/WO2011017890A1/zh

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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • Multi-mode mobile terminal and method for downloading resources thereof are Multi-mode mobile terminal and method for downloading resources thereof
  • the present invention relates to mobile communications, and more particularly to a multimode mobile terminal and method for downloading resources thereof. Background technique
  • the multi-mode mobile terminal When the multi-mode mobile terminal performs resource downloading, if the currently used network is no longer available, and another network may be available, the mobile terminal can be switched to another available network to continue data downloading. At this time, the existing download method requires the user to re-run the download program to connect to the network again for resource downloading, so the user is in the process of downloading resources. It may be necessary to start the download process repeatedly, which seriously affects the user experience. Moreover, such mobile terminal products are not smart enough. Summary of the invention
  • the main object of the present invention is to provide a multi-mode mobile terminal and a method for downloading the same, so as to implement the terminal to independently select the current optimal network and independently switch the data download service between the communication networks.
  • a method for downloading resources by a multimode mobile terminal includes:
  • the multi-mode mobile terminal When the multi-mode mobile terminal starts resource downloading, it analyzes and determines the current optimal network, and accesses the optimal network, establishes a network connection for downloading resources, requests and downloads resources;
  • the analysis determines that the current optimal network is:
  • the network quality comprehensive index of each mode is calculated, and the network with the largest network quality comprehensive index value is selected as the current optimal network;
  • the network quality comprehensive index is calculated by using a downlink data transmission rate of different network standards and a weight thereof, a ratio of a current signal strength value to a maximum signal strength value in the network standard, and a weight of the ratio;
  • the weight refers to the proportion of the downlink data transmission rate of the current network standard, the ratio of the signal strength value of the current network standard, and the maximum signal strength specified by the network standard protocol stack to the network quality comprehensive index.
  • the method further includes: Determining whether the resource download server connected to the multi-mode mobile terminal supports resume transmission of a breakpoint, and if the resume transmission is supported, determining whether the resource to be downloaded has been partially downloaded, and if partially downloaded, requesting download from the resource download server. The undownloaded part of the resource, if not partially downloaded, requests the resource download server to download the complete resource from the beginning;
  • the multimode mobile terminal requests the resource download server to download the complete resource from the beginning.
  • the multi-mode mobile terminal receives and saves data returned by the network in a small resource block buffer, and saves necessary field parameters when the network is switched; wherein the necessary field parameters include: The Uniform Resource Locator of the downloaded resource, the total size of the downloaded resource, and the size of the downloaded data.
  • the method further includes: timing and/or triggering, according to the signal strength value reported by the protocol stack, whether the resource is completely downloaded, and if the download is not completed, detecting the current connection. Whether the incoming network is invalid; if the download is completed, the user is notified to end the download, and the download process is ended;
  • the determining whether the resource is completely downloaded according to the signal strength value reported by the protocol stack is: determining whether the signal strength value reported by the current network standard protocol stack is smaller than a signal strength threshold preset by the multi-mode mobile terminal, and When the signal strength threshold is less than the set value, the trigger determines whether the resources are all downloaded.
  • the detecting whether the currently accessed network is invalid is specifically:
  • the multi-mode mobile terminal determines whether the current network is invalid by using a timing manner; and/or, by determining whether the signal strength value reported by the current network standard protocol stack is smaller than a signal strength threshold preset by the multi-mode mobile terminal, and is less than the setting
  • the signal strength threshold is determined, the current network failure is determined, the current optimal network is re-discovered, and the download connection is re-established according to the necessary field parameters, and the download of the resource is resumed;
  • the method further includes: judging whether the current network is invalid, and if the current network fails, returning and determining whether the current network is invalid, and sequentially determining the loop, if the current judgment result If the current network fails, it is determined whether the current network is invalid at most N times, and is preset by the multi-mode mobile terminal;
  • the current judgment result is that the current network is no longer invalid, it is judged whether the current network connection is disconnected. If the network connection is no longer available, the connection is re-established based on the current network, and the resource downloading process is resumed; if the network connection is not broken If the connection is still available, the resource download is performed based on the current network connection.
  • the present invention further provides a multi-mode mobile terminal, including: a switching module and a downloading module;
  • the switching module is configured to analyze and determine the current optimal network, detect whether the currently accessed network is invalid, and find and switch to the current optimal network when the currently accessed network fails; The current optimal network found by the switching module, establishing a network connection for downloading resources, requesting and downloading resources.
  • the switching module includes: a searching unit, an arbitration unit, a switching unit, and a triggering unit;
  • a triggering unit configured to periodically trigger the arbitration unit; and/or, configured to determine whether the current network signal strength value reported by the multimode mobile terminal protocol stack is less than a set signal strength threshold, and the current network signal strength value is less than the set signal strength threshold. Triggering an arbitration unit;
  • An arbitration unit configured to detect and determine whether the current network is invalid
  • a switching unit configured to switch the download task to the current optimal network found by the searching unit when the current network fails.
  • the downloading module is further configured to: determine whether the resource is completely downloaded, and notify the switching module when the download is not completed;
  • the downloading module includes: a resume transmission determining unit, a resource detecting unit, and a resource downloading unit;
  • a resume transmission judging unit configured to determine whether the resource download server supports resuming resume transmission, and notifying the resource download unit of the judgment result
  • a resource detecting unit configured to determine whether the resource to be downloaded has been partially downloaded
  • a resource downloading unit configured to access a current optimal network searched by the switching module according to the judgment result of the resume transmission determining unit and the resource detecting unit, establish a network connection for downloading resources, request and download a resource; and / or,
  • the resource downloading unit is further configured to: determine whether the resource is completely downloaded, and notify the triggering unit when the resource is not downloaded;
  • the triggering unit is further configured to trigger the arbitration unit when receiving a notification that the resource of the resource downloading unit is not downloaded.
  • the present invention is based on the existing hardware configuration embedded in the multi-mode mobile terminal, so that the multi-mode mobile terminal can independently select the current optimal network for downloading when starting resource downloading, and the download process.
  • the existing mobile terminal does not have the function of autonomously performing the download service switching, and the multi-mode mobile terminal of the present invention improves the user experience and is more intelligent.
  • the present invention supports breakpoint retransmission, which can effectively save download time and cost.
  • the multi-mode mobile terminal of the present invention makes full use of multiple communication networks when using data service download resources, and can independently perform multiple operations when service switching is required.
  • the download service switching between communication networks has a strong practicability.
  • FIG. 1 is a schematic flowchart of a method for implementing a method for downloading resources by a multimode mobile terminal according to the present invention
  • 2 is a schematic flowchart of a method for implementing a method for switching a download service of a multi-mode mobile terminal according to the present invention
  • FIG. 3 is a schematic diagram of a composition of a multi-mode mobile terminal according to the present invention.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The basic idea of the present invention is to: embed a switching module in a multi-mode mobile terminal, so that it can independently select the current optimal network for downloading, and realize autonomous switching of data downloading services between communication networks during the downloading process.
  • the multimode mobile terminal of the present invention includes a dual mode, a triple mode or a triple mode mobile terminal.
  • Each mode of the multimode mobile terminal of the present invention can be a currently used network standard, and the multimode mobile terminal can access the communication network to which the specified mode belongs, establish a wireless data connection, and perform resource downloading.
  • the switching module can assist the multi-mode mobile terminal to download data and find and switch to the current most when the network signal changes. Excellent network.
  • the multi-mode mobile terminal can configure the switching module at the factory; in addition, for the multi-mode mobile terminal that is not configured with the switching module at the factory, the switching module can be installed by the user, and the switching is performed after the installation.
  • the module performs initial configuration, such as selecting a standard downlink data transmission rate theoretically supported by each network standard communication network supported by the terminal from a list of common network standards and their corresponding standard downlink data transmission rates.
  • initial configuration such as selecting a standard downlink data transmission rate theoretically supported by each network standard communication network supported by the terminal from a list of common network standards and their corresponding standard downlink data transmission rates.
  • the downlink data transmission rate is a theoretical downlink data transmission in each network standard.
  • the theoretical standard downlink data transmission rate supported by each network standard communication network is known by default, and these parameters are generally preset when the switching module is installed at the factory. Ok; or, the user installs the switching module and configures it initially.
  • the network standard of mode 1 is Global System for Mobile Communications (GSM), and the standard downlink data transmission rate of GSM can be set to 9.6 kbps; the network standard of mode 2 is time division.
  • GSM Global System for Mobile Communications
  • Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), which sets the standard downlink data transmission rate of TD-SCDMA to 384 kbps.
  • the network standard of the multimode mobile terminal in this embodiment is theoretically The standard downlink data transmission rate, as shown in Table 1:
  • the data may be set by using an actual downlink data transmission rate, where the actual downlink data transmission rate is queried through the monitoring port by using an accessory network detection tool that is provided by the operating system of the multi-mode mobile terminal.
  • the current actual downlink data transmission rate obtained.
  • Step 102 The multi-mode mobile terminal analyzes and determines the current optimal network when the resource is downloaded.
  • the optimal network is a network that is currently available and has a large network standard bandwidth.
  • the multi-mode mobile terminal finds the current optimal network by calculating the network quality comprehensive index. This search strategy needs to comprehensively consider the factors of the downlink data transmission rate and signal strength of different network standards. The following is a feasible identification method provided by this embodiment:
  • the single mode protocol stack of the multi-mode mobile terminal has the ability to actively report the signal strength value to the upper layer software and passively accept the current signal strength value issued by the upper layer software.
  • the upper layer software sends a command for querying the current signal strength value to the protocol stack, and the protocol stack returns to the upper layer software after obtaining the current signal strength value Sig.
  • the specific query command is different according to the mode.
  • the mobile terminal of the GSM or TD-SCDMA network standard can use the AT command to query the current signal strength value, wherein the AT command is a modem command language.
  • the signal strength value reported by the protocol stack of the mode 1 is [0 ⁇ 1 ⁇ ]
  • the current signal strength value is Si gl
  • the standard downlink data transmission rate is SPEEDS.
  • the protocol stack signal strength value range of the mode 2 is [0] ⁇ R 2 ]
  • the current signal strength value is Sig 2
  • the standard downlink data transmission rate is SPEED 2 .
  • the network standard of network 1 of mode 1 be GSM
  • the maximum signal strength specified by the protocol stack 20
  • the network standard of network 2 of mode 2 is TD-SCDMA
  • the network to which the multimode mobile terminal mode 2 belongs is obtained as the current optimal network.
  • the Sig returned by the protocol stack is 0.
  • the network quality comprehensive index value I is 0.
  • the optimal network identification method can be flexibly configured according to the actual situation of the network standard and the signal strength, for example: In the above formula (1), increase The weights of SPEED and Sig/R are:
  • ⁇ and ⁇ are the weights of SPEED and Sig/R, respectively, and the values of ⁇ and ⁇ are usually set empirically. In addition, when the values of ⁇ and ⁇ are not specified, the default is 50% each.
  • the weight refers to the ratio of the downlink data transmission rate of the current network standard, the ratio of the current network standard signal strength value to the maximum signal strength specified by the network standard protocol stack, respectively, in the network quality comprehensive indicator; current signal strength The weight of the ratio of the value to the maximum signal strength under the network standard defaults to the weight of the downlink data transmission rate, which is 50% each.
  • these two weights can be set by experience.
  • Step 103 The multimode mobile terminal accesses the current optimal network that it finds, establishes a physical connection of a packet switch (PS) data service, obtains an internet protocol (IP) address, and creates a socket for network communication. ( socket ) connection;
  • PS packet switch
  • IP internet protocol
  • the multi-mode mobile terminal accesses the current optimal network and establishes a physical connection of the PS service.
  • the mode of accessing the optimal network varies according to the network standard.
  • the common network standard for intelligent mobile terminals based on the Linux platform is GSM and Enhanced Data Rate for GSM Evolution (EDGE). ), etc., mainly through the multi-mode mobile terminal command dialing to access the network, after dialing successfully, can call the operating system's Point to Point Protocol Daemon (PPPD) to access the network using the P2P protocol, successfully access
  • PPPD Point to Point Protocol Daemon
  • the IP address can be obtained after the network. Then, based on the obtained IP address, create a socket connection for resource download.
  • Step 104 the multi-mode mobile terminal determines whether the resource download server supports the resume of the breakpoint, if the resume is resumed, step 105 is performed, and if the resume is not supported, 107 is performed;
  • the multimode mobile terminal sends a test request command to the resource server to test whether the resource server supports breakpoint retransmission, and according to the information returned by the resource download server, whether the resource download server supports the resume transmission. For example, if the message returned by the resource download server is:
  • the multimode mobile terminal is provided with: If the code returned by the resource download server is 200, the resource download server does not support the resume transmission function. If the resource download server supports the resume transfer function, the following information is returned:
  • the multimode mobile terminal judges whether the resource download server supports the resume of the breakpoint according to the content of the message.
  • Step 105 the multi-mode mobile terminal determines whether the resource to be downloaded has been partially downloaded, if it has been partially downloaded, step 106 is performed, if not partially downloaded, execute 107;
  • the resource download server supports the resume of the breakpoint, and judges whether the resource requested for download has been partially downloaded.
  • the basis for determining whether the resource to be downloaded has been partially downloaded is as follows: Record the offset start address in the file and the size of the downloaded data. For example, if the size of the resource to be downloaded is 5MB, a storage file of 5MB size is created first, and the content of the storage file may be empty, and then the resource server is requested to download the resource within the specified range, such as HTTP, by using multiple threads to download.
  • the Range specified resource, and each download thread requests a specified data segment, and writes the data returned by the resource server to the operation command of the storage file, such as fread, fwrite, fseek, etc., through the operating system of the multi-mode mobile terminal.
  • the offset start address of each data segment in the entire storage file and the size of the downloaded data are recorded.
  • the recorded offset start address and the already downloaded data size can be used to determine whether the resource to be downloaded has been partially downloaded.
  • Step 106 The multimode mobile terminal requests the resource download server to download the undownloaded part of the resource;
  • the download can be started from the specified breakpoint location by 1MB through the Range of the Hyper Text Transfer Protocol (HTTP) protocol header.
  • HTTP Hyper Text Transfer Protocol
  • the requested undownloaded resource part is downloaded, wherein the Range is an HTTP protocol command.
  • the Range is an HTTP protocol command.
  • Step 107 The multimode mobile terminal requests the resource download server to download the complete resource from the beginning;
  • the server does not support the resume function or the resource requested for download has not been partially downloaded, then request to download the complete resource from the beginning.
  • the resource name test.zip is downloaded on the resource download server whose domain name is www.abc.com, and the resource of size 5MB is taken as an example, and the multi-mode mobile terminal sends out the download.
  • the request for the entire resource is as follows:
  • Step 108 The multi-mode mobile terminal downloads the requested resource from the network, and receives and saves the data returned by the network in a small resource block buffer, and triggers whether the resource is completely downloaded according to the signal strength value reported by the protocol stack. After completion, if the download is not completed, step 109 is performed; if the download is completed, step 110 is performed;
  • the determining, by the timing and/or the signal strength value reported by the protocol stack, whether the resource is completely downloaded is: determining whether the resource is completely downloaded after the timing is determined; or, actively reporting according to the protocol stack of the multi-mode mobile terminal. Whether the current signal strength value is smaller than the signal strength threshold preset by the multi-mode mobile terminal, triggering whether the resource is completely downloaded; or, whether the current signal strength value actively reported by the timing and the protocol stack is smaller than the signal set by the multi-mode mobile terminal.
  • the method of judging the combination of intensity thresholds For example, the timer is set to detect whether the resource is completely downloaded after every 10 seconds. If the current signal strength value reported by the terminal protocol stack is less than the terminal preset threshold within 10 seconds, it is immediately determined whether the resource is completely downloaded, and the timing is refreshed. , restart the 10 second time.
  • the multi-mode mobile terminal ends the download process in advance.
  • Step 109 the multi-mode mobile terminal detects whether the currently accessed network is invalid, if it fails, saves the necessary field parameters, and returns to step 102; if the currently accessed network does not fail, then returns to step 108; If it is not determined whether the resource is downloaded before detecting whether the currently accessed network is invalid, then: periodically determining whether the current network is invalid; or whether the current signal strength value actively reported by the protocol stack is smaller than that preset by the multi-mode mobile terminal
  • the signal strength threshold is used to determine whether the current network is invalid.
  • the timing is determined by whether the current signal strength value actively reported by the protocol stack is smaller than the signal strength threshold set by the multi-mode mobile terminal. For example, the timer is set to check whether the current network is invalid every 10 seconds. If the current signal strength value reported by the terminal protocol stack is less than the terminal preset threshold within 10 seconds, it immediately detects whether the current network is invalid and refreshes the timer. Restart the 10 second time.
  • the resource downloading process it is periodically determined whether the current network is invalid, or whether the current network is invalid according to the signal strength value reported by the protocol stack of the multi-mode mobile terminal. If the network connection for the resource download fails, such as no response or forced disconnection, the current network fails. If it is determined that the current network still fails after multiple times, the necessary field parameters are saved, and the current optimal network is re-searched and set, that is, whether the other network signal of the multi-mode mobile terminal is good or not, and if so, another set is set. The network is the current optimal network, and the download connection is re-established according to the saved necessary field parameters, and the download of the resources is resumed. If another network is not available, the download process ends.
  • the necessary field parameters required for the data download service switching between the networks include: Uniform Resource Locator (URL), the total size of the currently downloaded resources, and the size of the downloaded data. Specifically:
  • URL Uniform Resource Locator
  • the URL of the currently downloaded resource also known as the web page address, is the standard resource address on the Internet;
  • the multi-mode mobile terminal is based on the recorded The offset start address of the loaded data in the storage file and the size of the downloaded data, requesting the resource server to download the specified range of data in a multi-threaded manner, and the operation commands of the file through the operating system such as f rea d, f Write, fseek, etc. write the data to the specified location in the previously created storage file, so that when each thread is downloaded, the entire resource file is downloaded.
  • Step 110 End the download process of the current resource, and notify the user that the download is completed.
  • the above describes the implementation flow of the multi-mode mobile terminal downloading resources.
  • the multi-mode mobile terminal of the present invention can find out the current optimal network, and independently detect and switch to the current optimal network, so that the multi-mode mobile terminal is passed.
  • the process of downloading resources is more intelligent and convenient.
  • the switching module embedded in the multi-mode mobile terminal includes an arbitration unit, and the arbitration unit has the function of autonomously detecting and switching to the current optimal network, and the download module in the multi-mode mobile terminal is based on arbitration. The return value of the unit is treated differently.
  • Step 201 it is determined whether the current network is invalid, if the current network has not failed, step 202 is performed; if the current network fails, step 203 is performed;
  • the current network is invalid or whether the current network is invalid according to the change of the signal strength value reported by the protocol stack of the multi-mode mobile terminal. If the current network signal quality continues to be lower than the set threshold every time, the download connection fails, such as no response or forced disconnection, the current network fails.
  • Step 202 Continue to download the resource by using the current network connection.
  • the arbitration unit in the multimode mobile terminal continues the download of resources by using the return value, such as 0, to enable the download master process to utilize the current network connection.
  • Step 203 the multi-mode mobile terminal again determines whether the current network is invalid, if the network is no longer invalid, step 204 is performed; if the current network is still invalid, step 207 is performed;
  • N is a natural number, which is preset by the multimode mobile terminal. The experience value of N is 3, but the embodiment is not limited thereto, and the number of times the current network is invalid may be modified as needed. Between multiple judgments, it can be separated by a certain time, such as 5 seconds, but it can also be judged multiple times in succession.
  • Step 204 it is determined whether the current network connection is disconnected, if the network connection is no longer available, step 205 is performed; if the network connection is still disconnected, step 206 is performed;
  • Step 205 Re-establish a connection based on the current network, and resume the download process of the resource; for example: if the network connection disconnection is no longer available, the arbitration unit of the multi-mode mobile terminal returns a value of 2, and the download module of the multi-mode mobile terminal is notified based on The current network re-establishes the connection and resumes the download process. If the connection is still available, the return value is 0, and the download module is notified to continue the resource download using the current network connection.
  • Step 206 Perform resource downloading based on the current network connection.
  • Step 207 Determine whether other network signals of the multi-mode mobile terminal are available. If other networks are available, go to step 208. If other networks are not available, go to step 209. If the network is still invalid after multiple judgments, Then, according to the network standard and the signal strength value, as in the above formula (1), or (2), or (3), it is judged whether other network signals of the multimode mobile terminal are well available. In this way, the download module controls the download process according to different return values of the arbitration unit, such as: either continuing or ending early.
  • Step 208 Find and set the current optimal network, re-establish the download connection, and repeat the download process.
  • the arbitration unit of the multi-mode mobile terminal returns a value of 1, so that the download master process finds and sets other networks of the multi-mode mobile terminal as the current optimal network, and re-establishes the download connection. , resume the download process. Step 209, ending the resource download process.
  • the arbitration unit setting the multi-mode mobile terminal returns a value of -1 to end the download process.
  • the return value of the arbitration unit is not limited to the above numerical values, and may be changed or reset according to specific conditions.
  • the above is a handover method of the multi-mode mobile terminal in the embodiment.
  • the embodiment In the actual environment, when the network to which one mode of the multi-mode mobile terminal belongs is no longer available, and another network is available, the embodiment is used.
  • the multi-mode mobile terminal can realize the autonomous switching of the data download service, making the multi-mode mobile terminal more intelligent and user-friendly.
  • the present invention further provides a multi-mode mobile terminal, which is used to find the current optimal network, access the current optimal network that it finds, and establish a network connection for downloading resources. And requesting and downloading the resource; and determining whether the resource is completely downloaded and detecting whether the currently accessed network is invalid, and searching for and switching to the current optimal network when the currently accessed network fails.
  • the resource download server provides the multi-mode mobile terminal with the resources requested for download and supports the resumable resource transfer.
  • the multi-mode mobile terminal includes: a switching module and a downloading module, as shown in FIG. 3: a switching module, configured to analyze and determine a current optimal network, detect whether the currently accessed network is invalid, and perform current access. Find and switch to the current optimal network when the network fails; download module, access the current optimal network it finds, establish a network connection for downloading resources, request and download resources, and determine whether the resource is used All downloads are completed, and the switching module is notified when no download is completed.
  • a switching module configured to analyze and determine a current optimal network, detect whether the currently accessed network is invalid, and perform current access. Find and switch to the current optimal network when the network fails; download module, access the current optimal network it finds, establish a network connection for downloading resources, request and download resources, and determine whether the resource is used All downloads are completed, and the switching module is notified when no download is completed.
  • the switching module includes: a searching unit, a trigger unit, an arbitration unit, and a switching list. Yuan. among them:
  • a triggering unit configured to periodically trigger the arbitration unit; and/or, configured to determine whether the current network signal strength value reported by the multimode mobile terminal protocol stack is less than a set signal strength threshold, and the current network signal strength value is less than the set signal strength threshold. Triggering an arbitration unit;
  • An arbitration unit configured to detect and determine whether the current network is invalid
  • a switching unit configured to switch the download task to the current optimal network found by the searching unit when the current network fails.
  • the downloading module is further configured to: determine whether the resources are all downloaded, and notify the switching module when the download is not completed.
  • the downloading module includes: a resume transmission determining unit, a resource detecting unit, and a resource downloading unit;
  • a resume transmission judging unit configured to determine whether the resource download server supports resuming resume transmission, and notifying the resource download unit of the judgment result
  • a resource detecting unit configured to determine whether the resource to be downloaded has been partially downloaded
  • a resource downloading unit configured to access a current optimal network that is found according to the judgment result of the resume transmission determining unit and the resource detecting unit, establish a network connection for downloading resources, request and download a resource;
  • the resource downloading unit is further configured to: determine whether the resource is completely downloaded, and notify the triggering unit when the resource is not downloaded; the triggering unit is further configured to receive the resource of the resource downloading unit without downloading When the notification is made, the arbitration unit is triggered.

Abstract

本发明公开了一种多模移动终端及其下载资源的方法,以实现终端自主选择当前的最优网络以及在通信网络间自主切换数据下载业务。本发明基于多模移动终端现有的硬件配置嵌入切换模块,使得多模移动终端在开始进行资源下载时,能够自主选择当前的最优网络进行下载,并且下载过程中,在当前接入的网络不能再提供服务时,可自动切换到多模移动终端的其他网络继续进行资源的下载,实现在通信网络间自主切换数据下载业务。本发明的多模移动终端提升了用户体验,并更加的智能。

Description

一种多模移动终端及其下载资源的方法 技术领域
本发明涉及移动通信, 特别是涉及一种多模移动终端及其下载资源的 方法。 背景技术
当今, 通信网络存在多种制式, 而且一个用户有时需要接入多个通信 网络。 于是, 业务切换便成为多通信网络并存情况下的一个重要问题, 也 就是说, 用户在通信网络 A上进行的一个业务, 如语音通话或数据传输等, 那么如果通信网络 A不能继续为用户提供当前的业务月良务, 如通信网络 A的 信号消失, 而此时通信网络 B却有能力为用户提供当前的业务月良务, 这时用 户可以切换当前业务由通信网络 B继续为用户提供服务。 可见, 能否实现业 务切换对提高多通信网络情况下的用户体验很重要。
然而, 当前的双模或多模移动终端系统在进行数据下载时, 都只是让 用户选择一种网络接入, 并在所选择的网络上下载资源。 一般情况下, 用 户都会选择带宽大、 网络质量好的网络进行接入。 目前各网络运营商都建 设了覆盖率较好的通信网络, 所以有的地方同时存在多个网络可用, 而有 的地方可能只存在一种网络可用, 而其他网络不可用。 由于完成资源的下 载花费的时间较长, 网络信号在长时间内并不能保证在一个较强的范围内, 并且由于移动终端所处网络环境的改变会导致网络服务质量时好时坏, 甚 至发生网络中断。 多模移动终端在进行资源下载时, 若当前使用的网络不 再可用, 而另一网络却可能是可用的, 这时可以让移动终端切换到另一个 可用的网络继续进行数据的下载。 此时, 现有的下载方法需要用户重新运 行下载程序再次连接网络进行资源下载, 所以在进行资源下载过程中用户 可能要反复启动下载程序, 严重影响用户体验。 并且, 这样的移动终端产 品也不够智能。 发明内容
有鉴于此, 本发明的主要目的在于提供一种多模移动终端及其下载资 源的方法, 以实现终端自主选择当前的最优网络以及在通信网络间自主切 换数据下载业务。
为达到上述目的, 本发明的技术方案如下:
一种多模移动终端下载资源的方法, 包括:
多模移动终端开始进行资源下载时, 分析判断出当前的最优网络, 并 接入该最优网络, 建立用于下载资源的网络连接, 请求并下载资源;
在资源下载的过程中, 检测当前接入的网络是否失效, 如果失效, 则 重新查找当前最优网络, 并切换到当前的最优网络, 重新建立网络连接并 恢复资源下载; 如果没有失效, 则仍利用当前接入的网络进行资源下载。
进一步地, 所述分析判断出当前的最优网络为:
根据多模移动终端的网络制式和信号强度, 计算各模式的网络质量综 合指标, 选出所述网络质量综合指标值最大的模式的网络作为当前最优网 络;
其中, 所述网络质量综合指标由不同网络制式的下行数据传输速率及 其权重、 当前信号强度值与该网络制式下的信号强度最大值的比值及该比 值的权重计算得到;
其中, 所述权重指当前网络制式的下行数据传输速率、 当前网络制式 的信号强度值与该网络制式协议栈规定的信号强度最大值的比值分别在网 络质量综合指标中所占的比重。
进一步地, 在建立用于下载资源的网络连接后, 开始下载资源之前, 该方法还包括: 判断所述多模移动终端所连接的资源下载服务器是否支持断点续传, 若支持断点续传, 则判断待下载的资源是否曾经部分下载, 若曾部分下载, 则向资源下载服务器请求下载资源的未下载部分, 若未曾部分下载, 则向 资源下载服务器请求从头开始下载完整的资源;
若资源下载服务器不支持断点续传, 则多模移动终端向资源下载服务 器请求从头开始下载完整的资源。
进一步地, 在所述资源下载过程中, 所述多模移动终端以小资源块緩 存接收并保存网络返回的数据, 以及在切换网络时保存必要现场参数; 其中, 所述必要现场参数包括: 正在下载的资源的统一资源定位符、 下载的资源总大小、 已下载的数据大小。
进一步地, 在所述检测当前接入的网络是否失效之前, 还包括: 定时和 /或根据协议栈上报的信号强度值来触发判断资源是否全部下载 完毕, 如果没有下载完毕, 则再检测当前接入的网络是否失效; 如果下载 完毕, 则通知用户下载结束, 并结束本次下载流程;
其中, 所述根据协议栈上报的信号强度值来触发判断资源是否全部下 载完毕具体为: 通过判断当前网络制式协议栈上报的信号强度值是否小于 多模移动终端预先设置的信号强度阈值, 并在小于设置的信号强度阈值时, 触发判断资源是否全部下载完毕。
进一步地, 所述检测当前接入的网络是否失效具体为:
所述多模移动终端采用定时方式判断当前网络是否失效; 和 /或, 通过 判断当前网络制式协议栈上报的信号强度值是否小于所述多模移动终端预 先设置的信号强度阈值, 并在小于设置的信号强度阈值时, 判定当前网络 失效, 重新查找并设置当前的最优网络, 根据所述必要现场参数, 重新建 立下载连接, 恢复资源的下载;
若所述多模移动终端的其他网络也不可用, 则结束本次下载流程。 进一步地, 所述重新查找并切换到当前的最优网络之前, 还包括: 再次判断当前网络是否失效, 如果当前网络失效, 则返回再判断当前 网络是否失效, 依次循环判断, 若当前一次判断结果为当前网络失效, 则 最多判断 N次当前网络是否失效, 由多模移动终端预先设置;
如果当前一次判断结果为当前网络不再失效, 则判断当前的网络连接 是否断开, 如果网络连接断开不再可用, 则基于当前网络重新建立连接, 恢复资源的下载过程; 若网络连接未断开仍可用, 则基于当前的网络连接, 进行资源下载。
基于上述方法, 本发明还提出一种多模移动终端, 包括: 切换模块和 下载模块; 其中,
切换模块, 用于分析判断出当前的最优网络、 检测当前接入的网络是 否失效, 以及在当前接入的网络失效时查找并切换到当前的最优网络; 下载模块, 用于接入所述切换模块查找到的当前最优网络, 建立用于 下载资源的网络连接, 请求并下载资源。
进一步地, 所述切换模块包括: 查找单元、 仲裁单元、 切换单元、 触 发单元; 其中,
查找单元, 用于查找当前的最优网络;
触发单元, 用于定时触发仲裁单元; 和 /或, 用于判断多模移动终端协 议栈上报的当前网络信号强度值是否小于设置的信号强度阈值并在当前网 络信号强度值小于设置的信号强度阈值时触发仲裁单元;
仲裁单元, 用于检测并判断当前网络是否失效;
切换单元, 用于在当前网络失效时, 将下载任务切换到所述查找单元 查找到的当前的最优网络。
进一步地, 所述下载模块还用于: 判断资源是否全部下载完毕, 并在 没有下载完毕时通知所述切换模块; 所述下载模块包括: 续传判断单元、 资源检测单元、 资源下载单元; 其中,
续传判断单元, 用于判断资源下载服务器是否支持断点续传, 并将判 断结果通知给资源下载单元;
资源检测单元, 用于判断待下载的资源是否曾经部分下载;
资源下载单元, 用于根据所述续传判断单元和资源检测单元的判断结 果, 接入由所述切换模块查找到的当前最优网络, 建立用于下载资源的网 络连接, 请求并下载资源; 和 /或,
所述资源下载单元还用于: 判断资源是否全部下载完毕, 并在资源没 有下载完毕时通知所述触发单元;
所述触发单元, 还用于收到所述资源下载单元的资源没有下载完毕的 通知时, 触发所述仲裁单元。
由以上技术方案可以看出, 本发明基于多模移动终端现有的硬件配置 嵌入切换模块, 使得多模移动终端在开始进行资源下载时, 能够自主选择 当前的最优网络进行下载, 并且下载过程中, 在当前接入的网络不能再提 供服务时, 可自动切换到多模移动终端的其他网络继续进行资源的下载, 实现在通信网络间自主切换数据下载业务。 而现有的移动终端不具备自主 进行下载业务切换的功能, 本发明的多模移动终端提升了用户体验, 并更 加的智能。
同时, 本发明支持断点续传, 可有效节省下载时间和费用, 本发明的 多模移动终端上使用数据业务下载资源时充分利用多个通信网络, 在需要 进行业务切换时能够自主进行多个通信网络间的下载业务切换, 具有艮强 的实用性。 附图说明
图 1为本发明多模移动终端下载资源的方法实现流程示意图; 图 2为本发明多模移动终端切换下载业务的方法实现流程示意图; 图 3为本发明多模移动终端的组成示意图。 具体实施方式 本发明的基本思想在于: 多模移动终端中嵌入切换模块, 使其能够自 主选择当前的最优网络进行下载, 并在下载过程中, 实现在通信网络间自 主切换数据下载业务。
需要说明的是, 本发明的多模移动终端包括双模、 三模或三模以上的 移动终端。
为使本发明上述目的、 特征和优点能够更加明显易懂, 下面结合附图 和具体实施例对本发明作进一步详细的说明。
本发明的多模移动终端的每个模式均可为当前常用的网络制式, 并且 多模移动终端能够接入指定模式所属的通信网络, 建立无线数据连接, 进 行资源下载。 但要在下载过程中, 实现多模移动终端自主切换到最优网中, 需要嵌入切换模块, 该切换模块能够协助多模移动终端进行数据下载以及 在网络信号变化时寻找并切换到当前的最优网络。 其中, 多模移动终端可 在出厂时配置所述切换模块; 另外, 对于出厂时未配置所述切换模块的多 模移动终端, 可由用户自行安装所述切换模块, 并在安装后对所述切换模 块进行初始配置, 如从常用网络制式及其对应标准下行数据传输速率的列 表中选择终端支持的各网络制式的通信网络理论上支持的标准下行数据传 输速率。 为了更加清楚的说明本发明的多模移动终端在资源下载时的切换 过程, 下面以双模移动终端为例, 介绍本发明多模移动终端下载资源的方 法实现流程, 如图 1所示, 所述方法主要包括以下步骤: 通信网络支持的下行数据传输速率;
其中, 所述下行数据传输速率为所述各网络制式下的理论下行数据传 输速率, 或者为通过多模移动终端操作系统中网络检测工具检测到的当前 实际下行数据传输速率。 这里, 对于多模移动终端来说, 各网络制式的通 信网络支持的理论上的标准下行数据传输速率是默认已知的, 这些参数一 般情况下是在出厂时安装所述切换模块时便预先设置好的; 或者, 用户自 行安装所述切换模块, 并对其进行初始配置。 例如: 双模移动终端中, 模 式 1的网络制式为全球移动通信系统 ( Global System for Mobile Communications, GSM ) , 可设置 GSM理论上的标准下行数据传输速率为 9.6kbps; 模式 2的网络制式为时分同步的码分多址技术 ( Time Division-Synchronous Code Division Multiple Access, TD-SCDMA ) , 设置 TD-SCDMA理论上的标准下行数据传输速率为 384kbps ,本实施例多模移动 终端的各网络制式理论上的标准下行数据传输速率, 参见表一所示:
Figure imgf000009_0002
Figure imgf000009_0001
需要指出的是, 本实施例也可采用实际的下行数据传输速率来进行数 据设置, 所述实际的下行数据传输速率为通过多模移动终端的操作系统自 带的附属网络检测工具通过监控端口查询得到的当前实际的下行数据传输 速率。
步骤 102,多模移动终端进行资源下载时,分析判断出当前的最优网络; 其中, 所述最优网络为当前可用并且网络制式带宽较大的网络。 多模 移动终端通过计算网络质量综合指标, 来查找出当前最优网络, 这种查找 策略需要对不同网络制式的下行数据传输速率、 信号强度两方面的因素进 行综合考虑。 下面是本实施例提供的这种可行的识别方法:
一般地, 多模移动终端的单个模式的协议栈具有主动向上层软件上报 信号强度值与被动接受上层软件发出的查询当前信号强度值的能力。 在进 行网络质量综合指标计算时, 上层软件向协议栈发出查询当前信号强度值 的命令, 协议栈在得到当前的信号强度值 Sig后返回给上层软件。 其中, 具 体的查询命令根据模式的不同而不同, 例如: GSM或 TD-SCDMA网络制式 的移动终端可使用 AT命令来查询当前的信号强度值, 其中, 所述 AT命令为 一种调制解调器命令语言。
这里, 规定模式 1的协议栈上报的信号强度值范围为 [0~1^] , 当前信号 强度值为 Sigl, 标准下行数据传输速率为 SPEEDS 规定模式 2的协议栈信号 强度值范围为 [0~R2] , 当前信号强度值为 Sig2, 标准下行数据传输速率为 SPEED2, 那么, 设置网络质量综合指标计算公式为:
I=SPEED x ( Sig/R ) ( 1 )
于是有: 模式 1的网络质量综合指标为 I^SPEED^ ( Sigi/Ri ) , 模式 2 的网络质量综合指标为 I2=SPEED2 x ( Sig2/R2 ) , I^I2中数值大的即为当前 最优网络。 例如: 设模式 1所属网络 1的网络制式为 GSM, 网络 1的当前信号 强度值为 Sigl=15 , 协议栈规定的信号强度最大值 =20; 模式 2所属网络 2 的网络制式为 TD-SCDMA, 网络 2的当前信号强度值为 Sig2=10, 协议栈规 定的信号强度最大值 R2=20, 则有:
1^9.6 ( 15/20 ) =7.2;
I2=384 ( 10/20 ) =192。
因此, 得到多模移动终端模式 2所属的网络为当前最优网络。 另外, 若 某个网络没有信号, 则协议栈返回的 Sig为 0, 此时不管该网络的带宽多大, 其网络质量综合指标值 I为 0。
需要指出的是, 在实际使用中, 可对上述查找方法进行改造, 最优网 络的识别方法可根据网络制式与信号强度的实际情况, 进行灵活配置, 例 如: 在上述公式(1 ) 中, 增加 SPEED和 Sig/R的权重, 得到:
I=SPEED α ( Sig/R ) β ( 2 ) 或 I=SPEED α + ( Sig/R ) χ β ( 3 )
其中, α与 β分别为 SPEED和 Sig/R的权重, 通常根据经验来设置 α与 β的值。 另外, 未指定 α与 β的值时, 即默认各为 50%。 这里, 所述权重指 当前网络制式的下行数据传输速率、 当前网络制式信号强度值与该网络制 式协议栈规定的信号强度最大值的比值分别在网络质量综合指标中所占的 比重; 当前信号强度值与该网络制式下的信号强度最大值的比值的权重默 认与下行数据传输速率所占的权重相等,各为 50%。 当然这两个权重可以由 经验进行其他的设定。
步骤 103, 多模移动终端接入其查找到的当前最优网络, 建立分组交换 ( Packet Switch, PS )数据业务物理连接, 获得网际协议( IP )地址, 并创 建用于网络通信的套接字 ( socket )连接;
多模移动终端在查找到当前的最优网络后, 便会接入当前的最优网络, 建立 PS业务的物理连接。 其中, 接入最优网络的方式会根据网络制式的不 同而不同, 比如: 基于 Linux平台的智能移动终端中常见网络制式为 GSM、 增强型数据速率 GSM演进技术(Enhanced Data Rate for GSM Evolution, EDGE )等, 主要是通过多模移动终端命令拨号的方式接入网络, 拨号成功 后可调用操作系统的点对点协定隐形程式( Point to Point Protocol Daemon, PPPD )利用 P2P协议来接入网络, 成功接入网络后可获得 IP地址。 然后, 基 于所获得的 IP地址, 创建用于资源下载的 socket连接。
步骤 104, 多模移动终端判断资源下载服务器是否支持断点续传, 若支 持断点续传, 则执行步骤 105, 若不支持断点续传, 则执行 107;
其中, 多模移动终端向资源服务器是发送测试请求命令, 以测试资源 服务器是否支持断点续传, 并根据资源下载服务器返回的信息, 来判断资 源下载服务器是否支持断点续传。 例如, 如果资源下载服务器返回的消息 为:
200 Content-Length=5070000
Accept-Ranges=bytes
Date=Thu, 2 Apr 2009 12:56:11 GMT
ETag=W/"02ca57el73cl 1:95b"
Content- Type=application/octet-stream
Servei-Microsoft-IIS/5.0
Last-Modified= Thu, 2 Apr 2009 12:56: 11 GMT
多模移动终端中设置有: 若资源下载服务器返回的代码为 200, 则说明 资源下载服务器不支持续传功能。 若资源下载服务器支持续传功能, 则返 回如下信息:
206
Content-Length=5070000
Content-Range=bytes 1024000-5070000/5070000
Date= Thu, 2 Apr 2009 12:55:20 GMT
ETag=W/"02ca57el73cl 1:95b"
Content- Type=application/octet-stream
Server=Microsoft- IIS/5.0
Last-Modified= Thu, 2 Apr 2009 12:55:20 GMT
其中, 将上述返回的消息和资源下载服务器之前返回的消息比较一下, 会发现上述返回的消息返回的代码也由 200改为 206 , 而且返回的消息内容 中增加了一行: "Content-Range=bytes 1024000-5070000/5070000" 。 多模 移动终端收上述返回的消息后, 根据消息内容就会判断得知所述资源下载 服务器是否支持断点续传的功能。
步骤 105 , 多模移动终端判断待下载的资源是否曾经部分下载, 若曾部 分下载, 则执行步骤 106, 若未曾部分下载, 则执行 107;
资源下载服务器支持断点续传, 则判断请求下载的资源是否已经部分 下载。 其中, 判断待下载的资源是否曾经部分下载的依据为: 待下载资源 在记录其文件中的偏移起始地址以及已下载的数据大小等。 例如: 请求下 载的资源大小为 5MB , 则先创建一个 5MB大小的存储文件, 该存储文件的 内容可以为空, 然后以多个线程的下载方式向资源服务器请求下载指定范 围内的资源, 如 HTTP的 Range指定的资源, 且每个下载线程请求一个指定 数据段, 并通过多模移动终端的操作系统对存储文件的操作命令如 fread、 fwrite、 fseek等,将资源服务器返回的数据写入所述存储文件中的指定位置。 在下载过程中, 要记录每个数据段在整个存储文件中的偏移起始地址及已 经下载的数据大小。 通过所记录的偏移起始地址及已经下载的数据大小便 可判断出所述待下载的资源是否曾经部分下载。
步骤 106 , 多模移动终端向资源下载服务器请求下载资源的未下载部 分;
如果多模移动终端请求下载的资源已下载 1MB , 则通过可通过超文本 传输协议(Hyper Text Transfer Protocol, HTTP )协议头的 Range, 向资源 下载服务器从指定断点位置 1MB处开始下载, 对所请求的未下载的资源部 分进行下载, 其中, 所述 Range为 HTTP协议的命令。 例如: 向资源下载服 务器发出以下信息:
GET/test.zip HTTP/1.0
RANGE:bytes= 1024000-
Accept:text/html,image/gif,image/jpeg,*;q=.2,*/*;q=.2
其中, "RANGE:bytes=l 024000- " 表示: 终端请求下载资源 1MB之后 的数据内容。
步骤 107, 多模移动终端向资源下载服务器请求从头开始下载完整的资 源;
若服务器不支持续传功能或者请求下载的资源未曾部分下载, 则请求 从头下载完整的资源。这里, 以在域名为 www.abc.com的资源下载服务器上 下载资源名为 test.zip, 大小为 5MB的资源为例, 多模移动终端发出下载完 整资源的请求如下:
GET/test.zip HTTP/1.1
Accept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,
Application/vnd.ms- excel,application/msword,application/vnd.ms-powerpoint,*/*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
Connection: Keep- Alive
步骤 108, 多模移动终端从网络上下载所请求的资源, 并以小资源块緩 存接收并保存网络返回的数据, 并定时和 /或根据协议栈上报的信号强度值 来触发判断资源是否全部下载完毕, 若未下载完毕, 则执行步骤 109; 若下 载完毕, 则执行步骤 110;
其中, 所述并定时和 /或根据协议栈上报的信号强度值来触发判断资源 是否全部下载完毕, 是指: 定时判断资源是否全部下载完毕; 或者, 根据 多模移动终端的协议栈主动上报的当前信号强度值是否小于多模移动终端 所预设的信号强度阈值, 触发判断资源是否全部下载完毕; 或者, 以定时 判断和协议栈主动上报的当前信号强度值是否小于多模移动终端设置的信 号强度阈值相结合的判断方式。 例如: 定时器设为每 10秒检测一次资源是 否全部下载完毕, 如果在 10秒内终端协议栈主动上报的当前信号强度值小 于终端预设阈值, 则立即判断资源是否全部下载完毕, 并刷新定时器, 重 新开始 10秒计时。
需要指出的是, 在下载过程中, 若收到用户要求取消或停止对所述资 源的下载指示, 多模移动终端则提前结束本次下载的流程。
步骤 109, 多模移动终端检测当前接入的网络是否失效, 如果失效, 则 保存必要现场参数, 并返回到步骤 102; 如果当前接入的网络没有失效, 则 返回步骤 108; 如果在检测当前接入的网络是否失效之前没有判断资源是否下载完 毕, 则: 定时判断当前网络是否失效; 或者, 根据所述协议栈主动上报的 当前信号强度值是否小于多模移动终端所预设的信号强度阈值, 判断当前 网络是否失效; 或者, 以定时判断和协议栈主动上报的当前信号强度值是 否小于多模移动终端设置的信号强度阈值相结合的判断方式。 例如: 定时 器设为每 10秒检测一次当前网络是否失效, 如果在 10秒内终端协议栈主动 上报的当前信号强度值小于终端预设阈值, 则立即检测当前网络是否失效, 并刷新定时器, 重新开始 10秒计时。
在资源下载过程中, 定时判断当前网络是否失效, 或者根据多模移动 终端的协议栈上报信号强度值来判断当前网络是否失效。 如果资源下载的 网络连接失效, 如无响应或者被迫断开连接, 则当前网络失效。 如果经过 多次判断当前网络仍然失效的话, 则保存必要现场参数, 并重新查找以及 设置当前的最优网络, 即判断所述多模移动终端另一网络信号是否良好可 用, 若是, 则设置另一网络为当前的最优网络, 根据所保存的必要现场参 数, 重新建立下载连接, 恢复资源的下载。 若另一网络也不可用, 则结束 本次下载流程。
其中, 进行网络间数据下载业务切换时所需要的必要现场参数包括: 统一资源定位符( Uniform Resource Locator , URL ) 、 当前下载资源的总大 小, 并记录已下载的数据大小等。 具体为:
a ) 当前下载资源的 URL, 也被称为网页地址, 是因特网上标准的资源 地址;
b ) 下载资源的总大小, 以及当前已经下载的数据大小。
这样, 在切换至另一个网络进行数据下载时, 能够根据 URL所指示的 地址通过 HTTP协议头的 Range向资源下载服务器请求资源的未下载部分继 续进行下载。 具体地, 多模移动终端在选择最优网络后, 根据记录的已下 载的数据在存储文件中的偏移起始地址及已经下载的数据大小, 以多线程 的方式向资源服务器请求下载指定范围的数据, 可通过操作系统对文件的 操作命令如 fread、 f write, fseek等将数据写入之前创建的存储文件中的指定 位置, 这样当各线程都下载完毕, 则整个资源文件就下载完毕。
步骤 110, 结束本次资源的下载流程, 并通知用户本次下载结束。
以上描述的是多模移动终端下载资源的实现流程, 本发明的多模移动 终端能够查找出当前的最优网络, 以及自主检测并切换至当前的最优网络, 如此, 使得通过多模移动终端进行资源下载的过程更为智能、 便捷。 其中, 在多模移动终端中嵌入的所述切换模块中包括有仲裁单元, 而该仲裁单元 便具有自主检测并切换至当前最优网络的功能, 多模移动终端中的下载模 块则会根据仲裁单元的返回值作不同的处理。
下面结合图 2, 来详细描述一下上述步骤 109中的多模移动终端自主检 测并切换至当前的最优网络的实现过程, 主要包括以下的步骤:
步骤 201 , 判断当前网络是否失效, 如果当前网络未失效, 则执行步骤 202; 如果当前网络失效, 则执行步骤 203;
在资源下载过程中, 定时判断当前网络是否失效, 或者根据多模移动 终端的协议栈上报信号强度值变化来判断当前网络是否失效。 其中, 如果 当前网络信号质量在每次判断时均持续低于所设置的阈值, 而导致下载连 接失效, 如无响应或者被迫断开连接, 则当前网络失效。
步骤 202, 利用当前的网络连接继续进行资源的下载;
多模移动终端中的仲裁单元通过返回值, 如 0, 使下载主控流程利用当 前的网络连接继续进行资源的下载。
步骤 203 ,多模移动终端再次判断当前网络是否失效,若网络不再失效, 则执行步骤 204; 若当前网络仍然失效, 则执行步骤 207;
对当前网络进行多次判断, 以确定其是否失效。 如果当前网络失效, 则返回再判断当前网络是否失效, 依次循环判断, 若当前一次判断结果为 当前网络失效, 则最多判断 N次当前网络是否失效; 若当前一次判断结果为 网络不再失效, 则停止判断当前网络是否失效, 进行后续操作。 其中, N为 自然数, 由多模移动终端预先设置。 N的经验取值为 3 , 但本实施例并不局 限于此, 可根据需要对判断当前网络是否无效的次数进行修改。 在多次判 断之间, 可以相隔一定的时间如 5秒钟, 但也可连续进行多次判断。
步骤 204,判断当前的网络连接是否断开,如果网络连接断开不再可用, 则执行步骤 205; 若网络连接未断开仍可用, 则执行步骤 206;
步骤 205 , 基于当前网络重新建立连接, 恢复资源的下载过程; 例如: 若网络连接断开不再可用, 则多模移动终端的仲裁单元通过返 回值为 2, 通知多模移动终端的下载模块基于当前网络重新建立连接, 恢复 下载过程; 若连接未断开仍可用, 则返回值为 0, 通知下载模块利用当前网 络连接, 继续进行资源下载。
步骤 206, 基于当前的网络连接, 进行资源下载;
步骤 207, 判断多模移动终端的其他网络信号是否良好可用, 若其他网 络良好可用, 则执行步骤 208; 若其他网络也不可用, 则执行步骤 209; 若经过多次判断当前网络仍然失效的话, 则根据网络制式以及信号强 度值, 如上述公式(1 ) 、 或 (2 ) 、 或 (3 ) , 来判断多模移动终端的其他 网络信号是否良好可用。 这样, 下载模块根据仲裁单元的不同返回值来控 制下载过程, 如: 或者继续进行或者提前结束等。
步骤 208, 查找并设置当前的最优网络, 重新建立下载连接, 重复下载 过程。
这里, 查找到其他网络信号良好可用时, 所述多模移动终端的仲裁单 元返回值为 1 , 使下载主控流程查找并设置多模移动终端的其他网络为当前 最优网络, 重新建立下载连接, 恢复下载过程。 步骤 209, 结束资源下载流程。
查找到其他网络信号也不可用时, 设置所述多模移动终端的仲裁单元 返回值为 -1 , 结束下载流程。
需要指出的是, 所述仲裁单元的返回值并不局限于以上所举的数值, 可根据具体情况经进行更改或重新设定。
以上所述为本实施例多模移动终端的切换方法, 在实际环境中, 当多 模移动终端的某一个模式所属网络不再可用, 而另外一种网络可用的情况 下, 则通过本实施例的多模移动终端便可实现数据下载业务的自主切换, 使得多模移动终端更加智能化、 人性化。
对于上述的各实施例, 为了筒单描述, 故将其都表述为一系列的动作 组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动作顺序的 限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同时进行。
为实现上述方法, 本发明还提供一种多模移动终端, 该多模移动终端 用于查找出当前的最优网络、 接入其查找到的当前最优网络, 建立用于下 载资源的网络连接, 请求并下载资源; 以及用于判断资源是否全部下载完 毕和检测当前接入的网络是否失效, 并在当前接入的网络失效时查找并切 换到当前的最优网络。 资源下载服务器向多模移动终端提供请求下载的资 源并支持断点续传资源。
其中, 所述多模移动终端包括: 切换模块和下载模块, 如图 3所示: 切换模块, 用于分析判断出当前的最优网络、 检测当前接入的网络是 否失效, 以及在当前接入的网络失效时查找并切换到当前的最优网络; 下载模块, 用于接入其查找到的当前最优网络, 建立用于下载资源的 网络连接, 请求并下载资源, 以及用于判断资源是否全部下载完毕, 并在 没有下载完毕时通知所述切换模块。
其中, 所述切换模块包括: 查找单元、 触发单元、 仲裁单元、 切换单 元。 其中:
查找单元, 用于查找当前的最优网络;
触发单元, 用于定时触发仲裁单元; 和 /或, 用于判断多模移动终端协 议栈上报的当前网络信号强度值是否小于设置的信号强度阈值并在当前网 络信号强度值小于设置的信号强度阈值时触发仲裁单元;
仲裁单元, 用于检测并判断当前网络是否失效;
切换单元, 用于在当前网络失效时, 将下载任务切换到所述查找单元 查找到的当前的最优网络。
上述多模移动终端中, 所述下载模块还用于: 判断资源是否全部下载 完毕, 并在没有下载完毕时通知所述切换模块。 所述下载模块包括: 续传 判断单元、 资源检测单元、 资源下载单元; 其中,
续传判断单元, 用于判断资源下载服务器是否支持断点续传, 并将判 断结果通知给资源下载单元;
资源检测单元, 用于判断待下载的资源是否曾经部分下载;
资源下载单元, 用于根据所述续传判断单元和资源检测单元的判断结 果, 接入其查找到的当前最优网络, 建立用于下载资源的网络连接, 请求 并下载资源;
其中, 所述资源下载单元还用于判断资源是否全部下载完毕, 并在资 源没有下载完毕时通知所述触发单元; 所述触发单元, 还用于收到所述资 源下载单元的资源没有下载完毕的通知时, 触发所述仲裁单元。
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述即可。 以上所述, 仅为本 发明的较佳实施例而已, 只是用来说明和解释本发明, 并非用于限定本发 明的保护范围。 在本发明的精神和权利要求保护范围之内, 对本发明所作 的任何修改、 等同替换, 都落入本发明的保护范围。

Claims

权利要求书
1、 一种多模移动终端下载资源的方法, 其特征在于, 包括:
多模移动终端开始进行资源下载时, 分析判断出当前的最优网络, 并 接入该最优网络, 建立用于下载资源的网络连接, 请求并下载资源;
在资源下载的过程中, 检测当前接入的网络是否失效, 如果失效, 则 重新查找当前最优网络, 并切换到当前的最优网络, 重新建立网络连接并 恢复资源下载; 如果没有失效, 则仍利用当前接入的网络进行资源下载。
2、 根据权利要求 1所述的多模移动终端下载资源的方法, 其特征在于, 所述分析判断出当前的最优网络为:
根据多模移动终端的网络制式和信号强度, 计算各模式的网络质量综 合指标, 选出所述网络质量综合指标值最大的模式的网络作为当前最优网 络;
其中, 所述网络质量综合指标由不同网络制式的下行数据传输速率及 其权重、 当前信号强度值与该网络制式下的信号强度最大值的比值及该比 值的权重计算得到;
其中, 所述权重指当前网络制式的下行数据传输速率、 当前网络制式 的信号强度值与该网络制式协议栈规定的信号强度最大值的比值分别在网 络质量综合指标中所占的比重。
3、 根据权利要求 1所述的多模移动终端下载资源的方法, 其特征在于, 在建立用于下载资源的网络连接后, 开始下载资源之前, 该方法还包括: 判断所述多模移动终端所连接的资源下载服务器是否支持断点续传, 若支持断点续传, 则判断待下载的资源是否曾经部分下载, 若曾部分下载, 则向资源下载服务器请求下载资源的未下载部分, 若未曾部分下载, 则向 资源下载服务器请求从头开始下载完整的资源; 若资源下载服务器不支持断点续传, 则多模移动终端向资源下载服务 器请求从头开始下载完整的资源。
4、 根据权利要求 1所述的多模移动终端下载资源的方法, 其特征在于, 在所述资源下载过程中, 所述多模移动终端以小资源块緩存接收并保存网 络返回的数据, 以及在切换网络时保存必要现场参数;
其中, 所述必要现场参数包括: 正在下载的资源的统一资源定位符、 下载的资源总大小、 已下载的数据大小。
5、 根据权利要求 1至 4任一项所述的多模移动终端下载资源的方法, 其 特征在于, 在所述检测当前接入的网络是否失效之前, 还包括:
定时和 /或根据协议栈上报的信号强度值来触发判断资源是否全部下载 完毕, 如果没有下载完毕, 则再检测当前接入的网络是否失效; 如果下载 完毕, 则通知用户下载结束, 并结束本次下载流程;
其中, 所述根据协议栈上报的信号强度值来触发判断资源是否全部下 载完毕具体为: 通过判断当前网络制式协议栈上报的信号强度值是否小于 多模移动终端预先设置的信号强度阈值, 并在小于设置的信号强度阈值时, 触发判断资源是否全部下载完毕。
6、 根据权利要求 1至 4任一项所述的多模移动终端下载资源的方法, 其 特征在于, 所述检测当前接入的网络是否失效具体为:
所述多模移动终端采用定时方式判断当前网络是否失效; 和 /或, 通过 判断当前网络制式协议栈上报的信号强度值是否小于所述多模移动终端预 先设置的信号强度阈值, 并在小于设置的信号强度阈值时, 判定当前网络 失效, 重新查找并设置当前的最优网络, 根据所述必要现场参数, 重新建 立下载连接, 恢复资源的下载;
若所述多模移动终端的其他网络也不可用, 则结束本次下载流程。
7、 根据权利要求 6所述的多模移动终端下载资源的方法, 其特征在于, 所述重新查找并切换到当前的最优网络之前, 还包括:
再次判断当前网络是否失效, 如果当前网络失效, 则返回再判断当前 网络是否失效, 依次循环判断, 若当前一次判断结果为当前网络失效, 则 最多判断 N次当前网络是否失效, 由多模移动终端预先设置;
如果当前一次判断结果为当前网络不再失效, 则判断当前的网络连接 是否断开, 如果网络连接断开不再可用, 则基于当前网络重新建立连接, 恢复资源的下载过程; 若网络连接未断开仍可用, 则基于当前的网络连接, 进行资源下载。
8、 一种多模移动终端, 其特征在于, 包括: 切换模块和下载模块; 其 中,
切换模块, 用于分析判断出当前的最优网络、 检测当前接入的网络是 否失效, 以及在当前接入的网络失效时查找并切换到当前的最优网络; 下载模块, 用于接入所述切换模块查找到的当前最优网络, 建立用于 下载资源的网络连接, 请求并下载资源。
9、 根据权利要求 8所述的多模移动终端, 其特征在于, 所述切换模块 包括: 查找单元、 仲裁单元、 切换单元、 触发单元; 其中,
查找单元, 用于查找当前的最优网络;
触发单元, 用于定时触发仲裁单元; 和 /或, 用于判断多模移动终端协 议栈上报的当前网络信号强度值是否小于设置的信号强度阈值并在当前网 络信号强度值小于设置的信号强度阈值时触发仲裁单元;
仲裁单元, 用于检测并判断当前网络是否失效;
切换单元, 用于在当前网络失效时, 将下载任务切换到所述查找单元 查找到的当前的最优网络。
10、 根据权利要求 9所述的多模移动终端, 其特征在于,
所述下载模块还用于: 判断资源是否全部下载完毕, 并在没有下载完 毕时通知所述切换模块;
所述下载模块包括: 续传判断单元、 资源检测单元、 资源下载单元; 其中,
续传判断单元, 用于判断资源下载服务器是否支持断点续传, 并将判 断结果通知给资源下载单元;
资源检测单元, 用于判断待下载的资源是否曾经部分下载;
资源下载单元, 用于根据所述续传判断单元和资源检测单元的判断结 果, 接入由所述切换模块查找到的当前最优网络, 建立用于下载资源的网 络连接, 请求并下载资源; 和 /或,
所述资源下载单元还用于: 判断资源是否全部下载完毕, 并在资源没 有下载完毕时通知所述触发单元;
所述触发单元, 还用于收到所述资源下载单元的资源没有下载完毕的 通知时, 触发所述仲裁单元。
PCT/CN2009/075969 2009-08-13 2009-12-24 一种多模移动终端及其下载资源的方法 WO2011017890A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910162358.3 2009-08-13
CN200910162358A CN101626554A (zh) 2009-08-13 2009-08-13 一种多模移动终端及其下载资源的方法

Publications (1)

Publication Number Publication Date
WO2011017890A1 true WO2011017890A1 (zh) 2011-02-17

Family

ID=41522179

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/075969 WO2011017890A1 (zh) 2009-08-13 2009-12-24 一种多模移动终端及其下载资源的方法

Country Status (2)

Country Link
CN (1) CN101626554A (zh)
WO (1) WO2011017890A1 (zh)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195999A (zh) * 2010-03-11 2011-09-21 中国移动通信集团公司 对等网络系统、获取资源的方法及相关装置
CN101895967A (zh) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 基于wifi的文件下载方法和装置
CN101980569A (zh) * 2010-07-22 2011-02-23 展讯通信(上海)有限公司 双模终端的数据业务传输方法及双模终端
KR101231502B1 (ko) * 2010-12-06 2013-02-07 현대자동차주식회사 이중 무선통신 기반 주차 정보 제공 시스템 및 그 방법
CN102904912B (zh) 2011-07-26 2015-06-17 腾讯科技(深圳)有限公司 一种网页内容下载方法及装置
CN102316109A (zh) * 2011-09-14 2012-01-11 中兴通讯股份有限公司 多模终端在线视频实现方法、装置及多模终端
CN102378163A (zh) * 2011-10-21 2012-03-14 福州博远无线网络科技有限公司 一种手机用户快速下载文件的方法
CN103686942B (zh) * 2012-09-13 2019-11-29 南京中兴新软件有限责任公司 数据传输的方法和多模用户终端
CN102970675B (zh) * 2012-12-21 2016-01-13 东莞宇龙通信科技有限公司 移动终端和数据通信处理方法
CN104904269B (zh) * 2013-01-06 2019-04-23 联发科技(新加坡)私人有限公司 快速恢复方法及其装置
CN103561283A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种智能电视的码率切换方法及装置
CN106850818B (zh) * 2013-11-08 2020-02-18 北京奇虎科技有限公司 数据实时同步方法及系统
CN104954397B (zh) * 2014-03-26 2019-03-15 腾讯科技(深圳)有限公司 一种网络传输任务的执行方法和装置
CN104980970A (zh) * 2014-04-04 2015-10-14 中兴通讯股份有限公司 一种实现制式间分流的方法及装置
CN106576279B (zh) * 2014-07-30 2020-11-17 华为技术有限公司 多通信制式传输方法及装置
CN104809214A (zh) * 2015-04-23 2015-07-29 中国电子科技集团公司第四十一研究所 一种应用于微波自动测试系统的测试数据断点续传方法
CN105007500A (zh) * 2015-07-28 2015-10-28 无锡天脉聚源传媒科技有限公司 一种视频传输方法及装置
CN105873022A (zh) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 移动终端下载方法及装置
CN105744505B (zh) * 2016-01-29 2019-08-27 努比亚技术有限公司 移动终端及其系统升级方法
CN105959986B (zh) * 2016-04-29 2020-03-24 大连楼兰科技股份有限公司 移动终端在数据业务状态下网络切换的方法及系统
CN105939381B (zh) * 2016-06-14 2019-10-29 Tcl移动通信科技(宁波)有限公司 一种控制终端自动切换下载文件方式的方法及系统
CN106302711A (zh) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 一种数据下载处理方法及装置
CN107820100B (zh) * 2017-10-30 2020-08-28 北京四达时代软件技术股份有限公司 互联网音视频播放方法及装置
CN108076378B (zh) * 2018-01-04 2020-04-10 中国人民解放军国防科技大学 利用前贴片广告时间的多模终端无线传输接口优选方法
CN109068313B (zh) * 2018-09-21 2021-08-17 中国联合网络通信集团有限公司 一种多模制式的网络切换方法与系统
CN109862606B (zh) * 2019-02-26 2021-03-19 广州乐摇摇信息科技有限公司 自助设备通信方法、装置及系统
CN115604773A (zh) * 2021-07-07 2023-01-13 华为技术有限公司(Cn) 一种通道切换方法及装置
CN113839822A (zh) * 2021-10-27 2021-12-24 普联技术有限公司 一种网络设置方法、网络设置装置及电子设备
CN117835452A (zh) * 2022-09-27 2024-04-05 中移(成都)信息通信科技有限公司 一种通信连接方法、终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055862A1 (en) * 2005-09-08 2007-03-08 Interdigital Technology Corporation Method and system for distributing data
CN101198128A (zh) * 2007-12-28 2008-06-11 中国科学院计算技术研究所 一种多模设备及其业务流切换方法
US20080222243A1 (en) * 2000-05-18 2008-09-11 Akamai Technologies, Inc. Client-side method for identifying an optimal server
CN101312566A (zh) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 一种手机上下载大资源的方法
CN101489264A (zh) * 2008-01-18 2009-07-22 中兴通讯股份有限公司 一种双模终端在网络拥塞情况下业务保持的实现方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080222243A1 (en) * 2000-05-18 2008-09-11 Akamai Technologies, Inc. Client-side method for identifying an optimal server
US20070055862A1 (en) * 2005-09-08 2007-03-08 Interdigital Technology Corporation Method and system for distributing data
CN101312566A (zh) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 一种手机上下载大资源的方法
CN101198128A (zh) * 2007-12-28 2008-06-11 中国科学院计算技术研究所 一种多模设备及其业务流切换方法
CN101489264A (zh) * 2008-01-18 2009-07-22 中兴通讯股份有限公司 一种双模终端在网络拥塞情况下业务保持的实现方法

Also Published As

Publication number Publication date
CN101626554A (zh) 2010-01-13

Similar Documents

Publication Publication Date Title
WO2011017890A1 (zh) 一种多模移动终端及其下载资源的方法
US10499314B2 (en) Method and system for facilitating wireless communication via alternate communication pathway
US9338674B2 (en) Systems, structures and associated processes for optimization of state transitions within wireless networks
EP2695430B1 (en) Intelligent p-gw relocation for sipto service continuity
WO2012155587A1 (zh) 一种移动终端及其自适应提升下载速率的方法
WO2011076073A1 (zh) 自动切换网络连接的方法、装置及移动终端
JP6009715B2 (ja) 接続モードのdrxの間により望ましいplmnサーチを行うための装置および方法
WO2012174944A1 (zh) 网络切换方法及系统
EP3815432B1 (en) Systems and methods for dynamic channel bonding
WO2015043520A1 (zh) 一种激活pdn的方法及终端
KR101436956B1 (ko) 전송 제어 프로토콜 접속들을 설정하는 시스템 및 방법
KR20110023885A (ko) Mih 클라이언트에서 동적 프로파일 기능을 위한 방법 및 장치
WO2013053327A1 (zh) 网络选择方法、移动终端及基站
CN104871599A (zh) 用于搜索无线接入技术的系统和方法
WO2022033521A1 (zh) 会话更新方法、终端和网络侧设备
KR102003739B1 (ko) 액세스 노드에 의한 애플리케이션 호스팅 방법 및 장치
EP3065445B1 (en) Method, cse, and system for transmitting m2m application request
CN103686942A (zh) 数据传输的方法和多模用户终端
CN103517373A (zh) 一种网络接入的方法和设备
KR101859382B1 (ko) 스케줄링 정책 서버 및 스케줄링 정책 서버에서의 무선 데이터망 스케줄링 방법
JP2004336256A (ja) データ通信システム
CN103327482A (zh) 终端和网络切换控制方法
WO2016131187A1 (zh) 网络切换方法、装置和终端
EP3062552B1 (en) Method, device and system for offloading access network
JP5207041B2 (ja) サービス移動制御システム、サービス移動制御方法及びサービス移動制御プログラム

Legal Events

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

Ref document number: 09848220

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09848220

Country of ref document: EP

Kind code of ref document: A1