Movatterモバイル変換


[0]ホーム

URL:


CN105843643A - Mobile terminal software version upgrading method and mobile terminal - Google Patents

Mobile terminal software version upgrading method and mobile terminal
Download PDF

Info

Publication number
CN105843643A
CN105843643ACN201610170028.9ACN201610170028ACN105843643ACN 105843643 ACN105843643 ACN 105843643ACN 201610170028 ACN201610170028 ACN 201610170028ACN 105843643 ACN105843643 ACN 105843643A
Authority
CN
China
Prior art keywords
mobile terminal
network device
software
primary importance
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610170028.9A
Other languages
Chinese (zh)
Other versions
CN105843643B (en
Inventor
杨章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201610170028.9ApriorityCriticalpatent/CN105843643B/en
Publication of CN105843643ApublicationCriticalpatent/CN105843643A/en
Application grantedgrantedCritical
Publication of CN105843643BpublicationCriticalpatent/CN105843643B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种移动终端软件的版本升级方法及移动终端,涉及通信技术领域。该方法包括:获取移动终端所处的第一位置;根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;通过所述目标网络设备,获取所述移动终端软件的升级文件;根据所述升级文件,对所述移动终端软件进行版本升级。本发明的方案通过对移动终端定位以及预存储的网络数据,确定目标网络设备来完成移动终端软件的版本升级,实现有效的确定目标网络区域,最小化了用户的时间和精力消耗,提升了用户的软件升级体验。

The invention provides a mobile terminal software version upgrading method and a mobile terminal, and relates to the technical field of communication. The method includes: obtaining a first location where the mobile terminal is located; and determining a network device whose relative distance from the first location is less than or equal to a preset first threshold as a target according to the first location and pre-stored network data A network device; acquiring an upgrade file of the mobile terminal software through the target network device; performing a version upgrade on the mobile terminal software according to the upgrade file. The solution of the present invention determines the target network device by positioning the mobile terminal and pre-stored network data to complete the version upgrade of the mobile terminal software, realizes the effective determination of the target network area, minimizes the user's time and energy consumption, and improves the user's software upgrade experience.

Description

Translated fromChinese
一种移动终端软件的版本升级方法及移动终端Method for upgrading version of mobile terminal software and mobile terminal

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种移动终端软件的版本升级方法及移动终端。The embodiments of the present invention relate to the technical field of communications, and in particular, to a method for upgrading a software version of a mobile terminal and a mobile terminal.

背景技术Background technique

随着通信技术的不断发展,为完善移动终端的系统(包括操作系统和安装的应用软件系统)功能以及提高系统安全性,往往需要对系统进行的升级。现有的系统升级方法是通过网络下载数据包进行升级。具体方式为通过数据网络将数据包从指定的数据服务器中下载下来,首先与通过服务器判断是否需要升级,如果需要升级则再判断当前移动终端的系统版本与待升级的系统版本是否有差异,如果存在版本差异则下载数据包,最终实现系统升级。With the continuous development of communication technology, in order to improve the functions of the mobile terminal system (including the operating system and the installed application software system) and improve the system security, it is often necessary to upgrade the system. The existing system upgrading method is to download the data package through the network for upgrading. The specific method is to download the data packet from the designated data server through the data network, first judge whether it needs to be upgraded through the server, and if it needs to be upgraded, then judge whether there is a difference between the system version of the current mobile terminal and the system version to be upgraded, if If there is a version difference, download the data package, and finally realize the system upgrade.

由于使用移动网络升级的成本较大,人们多会选择免费和大数据量网络进行升级,但是并不是每个家庭都存在适合的网络,如地处偏远的农村或者网络覆盖不全面的地区,用户就很难查找到合适的网络对系统进行升级,最终导致用户系统一直处于初始状态,安全性差且无法使用最新的系统软件。Due to the high cost of using mobile network upgrades, people often choose free and large data volume networks for upgrades, but not every family has a suitable network, such as remote rural areas or areas with incomplete network coverage. It is difficult to find a suitable network to upgrade the system, and finally the user system is always in the initial state, with poor security and unable to use the latest system software.

发明内容Contents of the invention

本发明实施例提供一种移动终端软件的版本升级方法及移动终端,以解决地处偏远的农村或者网络覆盖不全面的地区的用户难以查找到合适的网络对系统进行升级的问题。Embodiments of the present invention provide a mobile terminal software version upgrade method and a mobile terminal to solve the problem that it is difficult for users located in remote rural areas or areas with incomplete network coverage to find a suitable network to upgrade the system.

第一方面,本发明实施例提供一种移动终端软件的版本升级方法,包括:In a first aspect, an embodiment of the present invention provides a method for upgrading a mobile terminal software version, including:

获取移动终端所处的第一位置;Obtain the first location where the mobile terminal is located;

根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;Determining a network device whose relative distance from the first position is less than or equal to a preset first threshold as a target network device according to the first position and pre-stored network data;

通过所述目标网络设备,获取所述移动终端软件的升级文件;Obtaining an upgrade file of the mobile terminal software through the target network device;

根据所述升级文件,对所述移动终端软件进行版本升级。According to the upgrade file, the software of the mobile terminal is upgraded.

另一方面,本发明实施例还提供了一种移动终端,包括:On the other hand, the embodiment of the present invention also provides a mobile terminal, including:

第一获取模块,用于获取移动终端所处的第一位置;The first obtaining module is used to obtain the first position where the mobile terminal is located;

确定模块,用于根据所述第一获取模块获取的所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;A determination module, configured to determine a network device whose relative distance from the first position is less than or equal to a preset first threshold as a target network according to the first position acquired by the first acquisition module and the pre-stored network data equipment;

第二获取模块,用于通过所述确定模块确定的所述目标网络设备,获取所述移动终端软件的升级文件;A second acquiring module, configured to acquire an upgrade file of the mobile terminal software through the target network device determined by the determining module;

升级模块,用于根据所述第二获取模块获取的所述升级文件,对所述移动终端软件进行版本升级。An upgrade module, configured to upgrade the version of the mobile terminal software according to the upgrade file acquired by the second acquisition module.

这样,本发明实施例的移动终端软件的版本升级方法,通过查询目标网络设备进行网络连接,对软件升级的具体过程,利用了对用户移动终端的定位,获取移动终端所处的第一位置,之后,根据第一位置在预存储的网络数据,将与移动终端的第一位置相对距离小于或等于第一阈值的网络设备确定为目标网络设备,最后通过这一目标网络设备获取软件的升级文件,完成升级。通过定位查询到适合的目标网络设备,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验,有效的解决了在wifi覆盖范围小的区域,用户无法查找到合适网络升级,以及由其引发的安全性差和功能不完善的问题。In this way, the method for upgrading the version of the mobile terminal software in the embodiment of the present invention performs network connection by querying the target network device, and uses the positioning of the user's mobile terminal to obtain the first location of the mobile terminal for the specific process of software upgrading. Afterwards, according to the pre-stored network data at the first location, the network device whose relative distance from the first location of the mobile terminal is less than or equal to the first threshold is determined as the target network device, and finally the software upgrade file is obtained through this target network device , to complete the upgrade. By locating and querying the appropriate target network device, not only can the target network device be effectively queried, but also minimize the user's time and energy consumption, improve the user's software upgrade experience, and effectively solve the problem in areas with small wifi coverage. Users cannot find suitable network upgrades, and the problems caused by poor security and incomplete functions.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1为本发明移动终端软件的版本升级方法的第一实施例的流程图;Fig. 1 is the flowchart of the first embodiment of the version upgrade method of mobile terminal software of the present invention;

图2为本发明移动终端软件的版本升级方法的第一实施例中确定目标网络设备的流程图;Fig. 2 is the flow chart of determining the target network device in the first embodiment of the version upgrading method of the mobile terminal software of the present invention;

图3为本发明移动终端软件的版本升级方法的第二实施例的流程图;Fig. 3 is the flowchart of the second embodiment of the version upgrade method of the mobile terminal software of the present invention;

图4为本发明移动终端软件的版本升级方法的第二实施例中通过目标网络设备获取升级文件的流程图;Fig. 4 is the flow chart of obtaining the upgrade file through the target network device in the second embodiment of the version upgrade method of the mobile terminal software of the present invention;

图5为本发明移动终端软件的版本升级方法的第二实施例中获取最新版本号对应升级文件的流程图;Fig. 5 is the flow chart of obtaining the latest version number corresponding upgrade file in the second embodiment of the version upgrade method of the mobile terminal software of the present invention;

图6为本发明移动终端的第一实施例的结构框图之一;FIG. 6 is one of the structural block diagrams of the first embodiment of the mobile terminal of the present invention;

图7为本发明移动终端的第一实施例的结构框图之二;FIG. 7 is the second structural block diagram of the first embodiment of the mobile terminal of the present invention;

图8为本发明移动终端的第一实施例的结构框图之三;FIG. 8 is the third structural block diagram of the first embodiment of the mobile terminal of the present invention;

图9为本发明移动终端的第二实施例的结构框图;FIG. 9 is a structural block diagram of a second embodiment of the mobile terminal of the present invention;

图10为本发明移动终端的第三实施例的结构框图。Fig. 10 is a structural block diagram of the third embodiment of the mobile terminal of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

第一实施例first embodiment

如图1所示,本发明实施例的一种移动终端软件的版本升级方法,包括:As shown in Fig. 1, a kind of mobile terminal software version upgrading method of the embodiment of the present invention comprises:

步骤101,获取移动终端所处的第一位置。Step 101, acquire the first location where the mobile terminal is located.

本步骤中,能够获取到移动终端当前所处位置,也就是第一位置。这样,就能够根据该移动终端的位置来进行周边网络设备的查找,从而进行软件的升级。第一位置是该移动终端的地理位置,可以是经纬度又或者是街道门牌号。In this step, the current location of the mobile terminal, that is, the first location, can be obtained. In this way, it is possible to search for surrounding network devices according to the location of the mobile terminal, so as to perform software upgrades. The first location is the geographic location of the mobile terminal, which may be the latitude and longitude or the house number of the street.

步骤102,根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备。Step 102, according to the first location and pre-stored network data, determine a network device whose relative distance from the first location is less than or equal to a preset first threshold as a target network device.

应该了解的是,在本发明的实施例中,网络设备可提供移动终端网络连接,进行软件的升级,多是指一些热点,但不仅限于此。本步骤中,由于移动终端预存储了网络数据,那么结合步骤101获取到的第一位置,就能够在预存储的网络数据中查询到与该第一位置相对距离小于或等于第一阈值的网络设备,将其确定为目标网络设备,以待进行软件的升级。第一阈值的设定往往要综合用户到达该网络设备区域所需要花费的时间和精力,才能更好的去判定用户会愿意花费额外的精力去升级,给用户提供距离最短的最优选择的目标网络设备,如将第一阈值设定为500米。It should be understood that, in the embodiments of the present invention, the network device can provide the mobile terminal with a network connection to perform software upgrades, which usually refers to some hotspots, but is not limited thereto. In this step, since the mobile terminal has pre-stored network data, combined with the first location obtained in step 101, it is possible to query the network whose relative distance to the first location is less than or equal to the first threshold in the pre-stored network data. The device is determined as the target network device for software upgrade. The setting of the first threshold often needs to take into account the time and energy required for the user to reach the network equipment area, so as to better determine that the user is willing to spend extra energy to upgrade, and provide the user with the shortest distance of the optimal choice. For the network device, for example, the first threshold is set to 500 meters.

步骤103,通过所述目标网络设备,获取所述移动终端软件的升级文件。Step 103, obtain the upgrade file of the mobile terminal software through the target network device.

由于上一步骤102中已确定了目标网络设备,本步骤中,即可通过该目标网络设备获取到软件的升级文件。Since the target network device has been determined in the previous step 102, in this step, the software upgrade file can be obtained through the target network device.

步骤104,根据所述升级文件,对所述移动终端软件进行版本升级。Step 104, perform version upgrade on the mobile terminal software according to the upgrade file.

本步骤中,根据步骤103从目标网络设备获得的升级文件对软件进行版本升级。由于是通过定位查询到适合的目标网络设备进行升级的,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验。In this step, the version of the software is upgraded according to the upgrade file obtained from the target network device in step 103 . Since the upgrade is performed by finding a suitable target network device through location query, not only can the target network device be effectively queried, but also the user's time and energy consumption is minimized, and the user's software upgrade experience is improved.

其中,所述预存储的网络数据包括:每个网络设备的标识信息、位置信息、物理地址、账号信息、登录密码和覆盖范围中的至少一种。Wherein, the pre-stored network data includes: at least one of identification information, location information, physical address, account information, login password and coverage of each network device.

可知,移动终端预存储的网络数据中包括能够提供移动终端网络连接的一个或多个网络设备的标识信息(如ID)、位置信息、物理地址、账号信息、登录密码和覆盖范围中的至少一种。通过这些数据能够便于移动终端根据与网络设备的相对距离进行目标查询,而且确定目标后,也能够快捷地实现连接。当然,该网络数据中的内容是管理员编辑管理的,为了保证其有效性,若管理员修改了内容,移动终端联网后也会及时对其进行更新。然而考虑到用户成本,可设置仅在wifi下更新。而且预存储的网络数据可以通过列表的形式保存在移动终端中。It can be seen that the network data pre-stored by the mobile terminal includes at least one of identification information (such as ID), location information, physical address, account information, login password and coverage of one or more network devices that can provide network connections to the mobile terminal. kind. Through these data, it is convenient for the mobile terminal to perform target query according to the relative distance from the network device, and after the target is determined, the connection can also be realized quickly. Of course, the content in the network data is edited and managed by the administrator. In order to ensure its validity, if the administrator modifies the content, it will be updated in time after the mobile terminal is connected to the Internet. However, considering the user cost, it can be set to update only under wifi. Moreover, the pre-stored network data can be saved in the mobile terminal in the form of a list.

另外,还应该了解的是,本发明实施例中,所述移动终端软件包括系统软件或应用软件。In addition, it should also be understood that, in the embodiment of the present invention, the mobile terminal software includes system software or application software.

故,本发明实施例的移动终端软件的版本升级方法,可以是对系统软件的版本升级,还可以是对移动终端上安装的应用软件的版本升级。Therefore, the method for upgrading the version of the mobile terminal software in the embodiment of the present invention may be to upgrade the version of the system software, and may also be to upgrade the version of the application software installed on the mobile terminal.

在本发明实施例中,移动终端的当前位置是进行目标网络设备查询的基础,要获取到移动终端准确的位置,优选的,步骤101包括:通过GPS定位方式或基站定位方式获取移动终端所处的第一位置。In the embodiment of the present invention, the current location of the mobile terminal is the basis for querying the target network device. To obtain the accurate location of the mobile terminal, preferably, step 101 includes: obtaining the location of the mobile terminal through GPS positioning or base station positioning. the first position of .

对于具有GPS模块的移动终端,获取其所处的第一位置可直接通过GPS定位方式来实现,利用已较为成熟的GPS技术,更方便快捷。而当移动终端不具有GPS模块或者GPS模块无法使用(如在一些偏远山区),则可利用该移动终端的归属基站,通过基站定位方式来获取第一位置。For a mobile terminal with a GPS module, obtaining its first location can be realized directly through GPS positioning, and it is more convenient and faster to use the relatively mature GPS technology. And when the mobile terminal does not have a GPS module or the GPS module cannot be used (such as in some remote mountainous areas), then the home base station of the mobile terminal can be used to obtain the first position through the base station positioning method.

当然,为了避免不必要的资源消耗,移动终端默认不定期的对其当前所处位置进行获取或者由用户根据需要触发。Of course, in order to avoid unnecessary resource consumption, the mobile terminal acquires its current location irregularly by default or is triggered by the user as needed.

经步骤101获取到移动终端当前所处的第一位置后,即可根据该第一位置来查询目标网络设备,具体的,如图2所示,步骤102具体包括:After obtaining the current first location of the mobile terminal in step 101, the target network device can be queried according to the first location. Specifically, as shown in FIG. 2 , step 102 specifically includes:

步骤1021,获取预存储的网络数据中网络设备的第二位置。Step 1021, acquire the second location of the network device in the pre-stored network data.

预存储的网络数据中包括每个网络设备的位置,因此,本步骤中能够直接在网络数据中获取到网络设备的第二位置。The pre-stored network data includes the location of each network device, therefore, in this step, the second location of the network device can be obtained directly from the network data.

步骤1022,将所述第一位置和第二位置进行比较。Step 1022, compare the first position with the second position.

第一位置和第二位置可能是经纬度或街道门牌号,之前已定位获取到第一位置以及网络数据中一个或多个网络设备的第二位置,本步骤中,就可以将第一位置与第二位置比较,继而来计算两位置之间的距离。The first location and the second location may be latitude and longitude or street house numbers. The first location and the second location of one or more network devices in the network data have been obtained before. In this step, the first location and the second location can be combined. The two locations are compared, and then the distance between the two locations is calculated.

步骤1023,当所述第一位置和第二位置之间的距离小于或等于预设第一阈值时,将所述网络设备确定为目标网络设备。Step 1023, when the distance between the first location and the second location is less than or equal to a preset first threshold, determine the network device as the target network device.

本步骤中,确定只有第一位置和第二位置之间的距离小于或等于预设第一阈值时,该第二位置所对应的网络设备为目标网络设备。In this step, it is determined that only when the distance between the first location and the second location is less than or equal to a preset first threshold, the network device corresponding to the second location is the target network device.

假设获取到移动终端当前所述的第一位置A(x1,y1),在查询目标网络设备时,将A(x1,y1)与预存储的所有网络设备的位置进行一一比对,判断是否有小于或等于预设第一阈值(如500米)的第二位置,确定小于或等于第一阈值时第二位置所对应网络设备为目标网络设备。然而,当满足距离小于或等于第一阈值的第二位置有多个,也就是有多个符合条件的网络设备时,则要进一步确定,在本发明实施例中,进一步具体的,根据第一位置和第二位置之间距离的大小,选取距离最小的第二位置所对应的网络设备为目标网络设备;又或者根据网络设备的网络连接成功率,选取网络连接成功率最大的第二位置所对应的网络设备为目标网络设备。最终得到目标网络设备的第二位置B(x2,y2)。Assuming that the first position A(x1, y1) currently described by the mobile terminal is obtained, when querying the target network device, compare A(x1, y1) with the positions of all pre-stored network devices one by one, and determine whether There is a second location that is less than or equal to a preset first threshold (eg, 500 meters), and it is determined that the network device corresponding to the second location is the target network device when it is less than or equal to the first threshold. However, when there are multiple second locations whose distance is less than or equal to the first threshold, that is, there are multiple network devices that meet the conditions, further determination is required. In this embodiment of the present invention, further specifically, according to the first The size of the distance between the location and the second location, select the network device corresponding to the second location with the smallest distance as the target network device; or according to the network connection success rate of the network device, select the second location with the highest network connection success rate The corresponding network device is the target network device. Finally, the second position B(x2, y2) of the target network device is obtained.

确定目标网络设备的第二位置后,该移动终端就能够通过目标网络设备获取到软件的升级文件,根据该升级文件对移动终端软件进行版本升级。After the second location of the target network device is determined, the mobile terminal can obtain the software upgrade file through the target network device, and upgrade the version of the mobile terminal software according to the upgrade file.

综上所述,本发明实施例的移动终端软件的版本升级方法,通过查询目标网络设备进行网络连接,对移动终端软件的版本升级的具体过程,利用了对用户移动终端的定位,获取移动终端所处的第一位置,之后,根据第一位置在预存储的网络数据中查询与移动终端的第一位置相对距离小于或等于第一阈值的目标网络设备,最后从这一目标网络设备获取软件的升级文件,完成升级。通过定位查询到适合的目标网络设备,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验,有效的解决了在wifi覆盖范围小的区域,用户无法查找到合适网络升级,以及由其引发的安全性差和功能不完善的问题。To sum up, the method for upgrading the version of the mobile terminal software in the embodiment of the present invention performs network connection by querying the target network device, and the specific process of upgrading the version of the mobile terminal software utilizes the positioning of the user's mobile terminal to obtain the mobile terminal The first position, and then query the target network device whose relative distance from the first position of the mobile terminal is less than or equal to the first threshold in the pre-stored network data according to the first position, and finally obtain the software from this target network device upgrade file to complete the upgrade. By locating and querying the appropriate target network device, not only can the target network device be effectively queried, but also minimize the user's time and energy consumption, improve the user's software upgrade experience, and effectively solve the problem in areas with small wifi coverage. Users cannot find suitable network upgrades, and the problems caused by poor security and incomplete functions.

第二实施例second embodiment

由上述内容可知,在本发明第一实施例中,移动终端是默认不定期或者用户需要时才会开始定位移动终端的当前位置,进而查找目标网络设备对移动终端软件升级。但是,这两种方式都存在不能及时升级以及资源浪费的问题,为此,本发明第二实施例提供一种移动终端软件的版本升级方法,如图3所示,包括:It can be seen from the above that in the first embodiment of the present invention, the mobile terminal starts to locate the current location of the mobile terminal irregularly by default or when the user needs it, and then searches for the target network device to upgrade the software of the mobile terminal. However, both of these two methods have the problems of inability to upgrade in time and waste of resources. Therefore, the second embodiment of the present invention provides a method for upgrading the version of mobile terminal software, as shown in FIG. 3 , including:

步骤201,获取所述移动终端的软件新版本的升级时间和升级周期。Step 201, acquire the upgrade time and upgrade period of the new software version of the mobile terminal.

本发明实施例与第一实施例不同的是,移动终端内置了软件版本的升级周期,该升级周期可以是软件的升级计划来确定,例如90天(3月1日第一版,6月1日第二版,9月1日第三版),也可以是基于用户需求由用户设置的时间长度。其中在软件版本升级计划有更改时,在联网后会重新设定升级周期。同样的,为了节省成本,可设置仅在wifi下进行相关数据更新。The difference between this embodiment of the present invention and the first embodiment is that the mobile terminal has a built-in software version upgrade cycle, which can be determined by the software upgrade plan, for example, 90 days (first version on March 1st, June 1st). The second edition on September 1, the third edition on September 1), also can be the length of time that is set by the user based on user needs. Among them, when the software version upgrade plan is changed, the upgrade cycle will be reset after networking. Similarly, in order to save costs, it can be set to update relevant data only under wifi.

步骤202,获取所述移动终端的系统时间。Step 202, acquiring the system time of the mobile terminal.

步骤203,根据所述升级时间和系统时间,确定升级时间和系统时间之间的时间间隔。Step 203, according to the upgrade time and the system time, determine the time interval between the upgrade time and the system time.

本步骤中,会根据获取到的移动终端的软件新版本的升级时间和系统时间,从而确定两者之间的时间间隔。In this step, the time interval between the two is determined according to the acquired upgrade time and system time of the new software version of the mobile terminal.

步骤204,当所述时间间隔大于或等于所述升级周期时,获取移动终端所处的第一位置。Step 204, when the time interval is greater than or equal to the upgrade cycle, acquire the first location of the mobile terminal.

本步骤中,在时间间隔满足大于或等于升级周期的要求时,开始获取移动终端所处的第一位置。考虑到一般情况下,软件升级发布与计划会有一定的延迟,往往时间间隔大于升级周期一预设阈值(例如4天)时,才开始获取移动终端所处的第一位置。In this step, when the time interval satisfies the requirement that it is greater than or equal to the upgrade period, the first location where the mobile terminal is located starts to be obtained. Considering that in general, there will be a certain delay in the release and planning of software upgrades, the first location of the mobile terminal is usually obtained only when the time interval is greater than a preset threshold (for example, 4 days) of the upgrade cycle.

步骤205,根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备。Step 205, according to the first location and pre-stored network data, determine a network device whose relative distance from the first location is less than or equal to a preset first threshold as a target network device.

本步骤中,由于移动终端预存储了网络数据,那么结合用户的活动范围以及步骤204获取到的第一位置,就能够在预存储的网络数据中查询到与该移动终端的第一位置相对距离小于或等于第一阈值的网络设备,将其确定为目标网络设备,以待进行软件的升级。第一阈值的设定往往要综合用户到达该网络设备区域所需要花费的时间和精力,才能更好的去判定用户会愿意花费额外的精力去升级,给用户提供距离最短的最优选择的目标网络设备,可以将第一阈值设定为500米。In this step, since the mobile terminal has pre-stored network data, the relative distance to the first position of the mobile terminal can be queried from the pre-stored network data in combination with the user's activity range and the first position obtained in step 204 A network device that is less than or equal to the first threshold is determined as a target network device to be upgraded for software. The setting of the first threshold often needs to take into account the time and energy required for the user to reach the network equipment area, so as to better determine that the user is willing to spend extra energy to upgrade, and provide the user with the shortest distance of the optimal choice. The network device may set the first threshold to 500 meters.

步骤206,通过所述目标网络设备,获取所述移动终端软件的升级文件。Step 206, obtain the upgrade file of the mobile terminal software through the target network device.

目标网络设备能够为移动终端提供网络连接,因此在确定目标网络后,本步骤中即可通过目标网络设备来获取到移动终端软件的升级文件。The target network device can provide a network connection for the mobile terminal, so after the target network is determined, the upgrade file of the mobile terminal software can be obtained through the target network device in this step.

步骤207,根据所述升级文件,对所述移动终端软件进行版本升级。Step 207, perform version upgrade on the mobile terminal software according to the upgrade file.

具体的,读取到移动终端的软件新版本的升级时间和升级周期后,可设定相关计数器对与系统时间的时间间隔进行统计,又或者设定相关定时器,根据升级周期进行定时,当时间长度大于或等于升级周期时,提示用户软件已达到升级周期,询问用户是否需要升级,在用户确认需要进行升级时,开始获取移动终端的所处的第一位置。之后,再结合预存储的网络数据确定与第一位置相对距离小于或等于预设第一阈值的目标网络设备,通过该目标网络设备获取移动终端软件的升级文件,进行版本升级。这样,在移动终端软件新版本升级达到一定时间长度(升级周期或升级周期加延时期)后才会去启动升级,减少资源浪费且能够及时对软件升级,保证了软件的安全性和功能性。第一阈值的取值范围为小于或等于500米。Specifically, after reading the upgrade time and upgrade cycle of the new software version of the mobile terminal, relevant counters can be set to count the time interval with the system time, or relevant timers can be set to perform timing according to the upgrade cycle. When the time length is greater than or equal to the upgrade period, the user is prompted that the software has reached the upgrade period, and the user is asked whether the upgrade is required. When the user confirms that the upgrade is required, the first location of the mobile terminal is obtained. Afterwards, combine the pre-stored network data to determine the target network device whose relative distance from the first location is less than or equal to the preset first threshold, and obtain the upgrade file of the mobile terminal software through the target network device to perform version upgrade. In this way, the upgrade will not be started until the new version of the mobile terminal software upgrade reaches a certain length of time (upgrade cycle or upgrade cycle extension period), which reduces waste of resources and can upgrade the software in time, ensuring the safety and functionality of the software . A value range of the first threshold is less than or equal to 500 meters.

但是,需要了解的是,往往为了查询到更多的网络设备,以便在其中选取到更为合适的目标网络设备,第一阈值要大于网络设备的网络覆盖范围,也就是在确定了目标网络设备后,是无法直接登录使用目标网络设备所提供的网络的。所以,如图4所示,步骤206包括:However, what needs to be understood is that in order to query more network devices and select a more suitable target network device among them, the first threshold should be greater than the network coverage of the network device, that is, when the target network device is determined After that, it is impossible to directly log in to the network provided by the target network device. Therefore, as shown in FIG. 4, step 206 includes:

步骤2061,根据所述第一位置和所述目标网络设备,通过GPS导航向所述移动终端用户提供指引路径。Step 2061, according to the first location and the target network device, provide a guiding route to the mobile terminal user through GPS navigation.

在确定目标网络设备后,移动终端提示用户,建议前往当前位置附近的目标网络所提供网络对移动终端软件进行升级。提示方式是多种多样的,如文字、语音或灯光等。用户确认后,为引导用户前往目标网络设备,本步骤中,通过移动终端的GPS导航向移动终端用户提供指引路径。该指引路径可以通过地图显示,并且进行语音导航。After determining the target network device, the mobile terminal prompts the user to go to the network provided by the target network near the current location to upgrade the software of the mobile terminal. There are various ways of prompting, such as text, voice or light. After the user confirms, in order to guide the user to the target network device, in this step, a guiding path is provided to the mobile terminal user through the GPS navigation of the mobile terminal. The guided route can be displayed on a map and voice-guided.

步骤2062,检测所述第一位置和所述目标网络设备之间的距离。Step 2062, detecting the distance between the first location and the target network device.

众所周知,登录网络连接时,不必到达提供网络的网络设备处,只要位于其覆盖范围即可,因此,本步骤中,在用户前往目标网络设备的过程中,实时检测第一位置与目标网络设备之间的距离。As we all know, when logging in to the network connection, it is not necessary to reach the network device that provides the network, as long as it is within its coverage area. Therefore, in this step, when the user goes to the target network device, the distance between the first location and the target network device is detected in real time. distance between.

步骤2063,根据检测到的所述第一位置与所述目标网络设备之间的距离,从所述目标网络设备获取所述移动终端软件的升级文件。Step 2063, according to the detected distance between the first location and the target network device, obtain the upgrade file of the mobile terminal software from the target network device.

为了提供用户最佳的路径,优选的,步骤2062包括:In order to provide the user with the best path, preferably, step 2062 includes:

步骤20621,根据所述第一位置和所述目标网络设备,获取所述第一位置和所述目标网络设备之间的所有路径。Step 20621, according to the first location and the target network device, obtain all paths between the first location and the target network device.

本步骤中,确定目标网络设备后,由于已知第一位置和目标网络设备的第二位置,能够获取到两者之间的所有路径。In this step, after the target network device is determined, since the first location and the second location of the target network device are known, all paths between the two can be obtained.

步骤20622,根据每条路径的路程和路况,确定指引路径,并通过GPS导航向所述移动终端用户提供所述指引路径。Step 20622: Determine the guiding route according to the distance and road conditions of each route, and provide the guiding route to the mobile terminal user through GPS navigation.

本步骤中,考虑用户体验,结合路程和路况,为用户规划最佳方案,如路程最短且路况畅通的路径作为指引路径。而且还可根据交通方式(如公交、步行或驾车)提供对应的指引路径,以便用户选择适合自身的方案。In this step, consider the user experience, combine the distance and road conditions, and plan the best solution for the user, such as the path with the shortest distance and smooth road conditions as the guiding path. Moreover, corresponding guidance routes can also be provided according to transportation modes (such as public transportation, walking or driving), so that users can choose a solution that suits them.

用户按照指引路径前往目标网络设备之后,进一步的,步骤2063包括:After the user goes to the target network device according to the guided path, step 2063 further includes:

步骤20631,当检测到所述第一位置与所述目标网络设备之间的距离小于或等于预设第二阈值时,打开所述移动终端的网络连接接口,并将所述网络连接接口与所述目标网络设备之间建立网络连接。Step 20631, when it is detected that the distance between the first location and the target network device is less than or equal to a preset second threshold, open the network connection interface of the mobile terminal, and connect the network connection interface with the Establish a network connection between the target network devices.

本步骤中,第二阈值是小于或等于目标网络设备的网络覆盖范围的,比如网络的覆盖范围是30米,第二阈值的取值就要小于或等于30米。检测到第一位置与目标网络设备之间的距离小于或等于第二阈值时,移动终端处于目标网络设备的网络覆盖范围内,能够与目标网络设备进行连接。此时,优选的自动打开移动终端的网络连接接口,并将网络连接接口与所述目标网络设备之间建立网络连接。当然也可以通知用户连接网络,由用户手动确认后再打开移动终端的网络连接接口。In this step, the second threshold is less than or equal to the network coverage of the target network device. For example, if the network coverage is 30 meters, the value of the second threshold must be less than or equal to 30 meters. When it is detected that the distance between the first location and the target network device is less than or equal to the second threshold, the mobile terminal is within the network coverage of the target network device and can connect to the target network device. At this time, preferably, the network connection interface of the mobile terminal is automatically opened, and a network connection is established between the network connection interface and the target network device. Of course, the user may also be notified to connect to the network, and the network connection interface of the mobile terminal may be opened after the user manually confirms.

步骤20632,通过所述网络连接,从所述目标网络设备获取所述移动终端软件的升级文件。Step 20632, through the network connection, obtain the upgrade file of the mobile terminal software from the target network device.

本步骤中,通过移动终端与目标网络设备之间已建立的网络连接,就能够从目标网络设备获取移动终端软件的升级文件。In this step, the upgrade file of the mobile terminal software can be obtained from the target network device through the established network connection between the mobile terminal and the target network device.

应该知道的是,软件的升级是为了完善其功能以及提升安全性,但是,当用户连接目标网络设备进行升级时,还没有软件最新版本的信息,甚至目标网络设备所提供的版本还要低于移动终端当前所安装的版本,因此,进一步的,如图5所示,步骤20632包括:It should be known that the software upgrade is to improve its functions and security. However, when the user connects to the target network device to upgrade, there is no information about the latest version of the software, and even the version provided by the target network device is lower than The currently installed version of the mobile terminal, therefore, further, as shown in Figure 5, step 20632 includes:

步骤206321,获取所述移动终端软件的第一版本号。Step 206321, acquire the first version number of the mobile terminal software.

通过软件的版本号可以判断出软件是否是最新版本,故要确定移动终端软件是否需要升级,首先通过本步骤,获取移动终端安装的软件的第一版本号。Whether the software is the latest version can be judged by the version number of the software, so to determine whether the software of the mobile terminal needs to be upgraded, firstly, through this step, the first version number of the software installed in the mobile terminal is obtained.

步骤206322,从所述目标网络设备获取所述移动终端软件的第二版本号。Step 206322, acquire the second version number of the mobile terminal software from the target network device.

其次,为了进行比对,本步骤中,通过与目标网络设备建立的网络连接获取到网络侧对应的软件的第二版本号。Secondly, for comparison, in this step, the second version number of the software corresponding to the network side is obtained through the network connection established with the target network device.

步骤206323,将所述第一版本号和第二版本号进行比对。Step 206323, compare the first version number with the second version number.

本步骤中,将上述步骤获取到的两个版本号进行比对,来判断网络侧的软件是否是最新版本的。In this step, the two version numbers obtained in the above steps are compared to determine whether the software on the network side is the latest version.

步骤206324,当所述第二版本号高于所述第一版本号时,从所述目标网络设备下载所述第二版本号对应的升级文件。Step 206324, when the second version number is higher than the first version number, download the upgrade file corresponding to the second version number from the target network device.

本步骤中,在通过比对确定第二版本号高于第一版本号,也就是网络侧的软件是最新版本时,就能够通过与目标网络设备建立的网络连接,从目标网络设备下载第二版本号也就是最新版本对应的升级文件。当然,下载前也可对用户是否要升级进行询问,在用户确认升级后进行最新版本的下载。In this step, when it is determined by comparison that the second version number is higher than the first version number, that is, when the software on the network side is the latest version, the second version number can be downloaded from the target network device through the network connection established with the target network device. The version number is the upgrade file corresponding to the latest version. Of course, before downloading, the user may also be asked whether to upgrade, and the latest version is downloaded after the user confirms the upgrade.

综上所述,本发明实施例的移动终端软件的版本升级方法,在对移动终端当前位置进行定位之前,会先获取当前时间和最新一次升级时间之间的时间长度,判断该时间长度是否大于或等于移动终端内置的升级周期,在大于或等于该升级周期后再进行移动终端的定位、目标网络设备查询以及升级文件获取,进行升级。这样,本发明实施例的方法实现了在固定时间对用户进行软件版本升级,减少了资源浪费,且能够及时升级软件,保证软件的安全性和功能性,提升了用户的软件升级体验。To sum up, before the mobile terminal software version upgrade method in the embodiment of the present invention locates the current location of the mobile terminal, it will first obtain the time length between the current time and the latest upgrade time, and judge whether the time length is greater than Or equal to the built-in upgrade period of the mobile terminal, after the upgrade period is greater than or equal to the upgrade period, the positioning of the mobile terminal, the query of the target network device, and the acquisition of the upgrade file are performed to perform the upgrade. In this way, the method of the embodiment of the present invention realizes software version upgrade for users at a fixed time, reduces waste of resources, and can upgrade software in time, ensures software security and functionality, and improves user's software upgrade experience.

第三实施例third embodiment

如图6所示,本发明实施例提供一种移动终端300,所述移动终端300包括:As shown in FIG. 6, an embodiment of the present invention provides a mobile terminal 300, and the mobile terminal 300 includes:

第一获取模块301,用于获取移动终端所处的第一位置;The first acquiring module 301 is configured to acquire the first location where the mobile terminal is located;

确定模块302,用于根据所述第一获取模块301获取的所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;The determination module 302 is configured to determine, according to the first position acquired by the first acquisition module 301 and the pre-stored network data, a network device whose relative distance from the first position is less than or equal to a preset first threshold as target network device;

第二获取模块303,用于通过所述确定模块302确定的所述目标网络设备,获取所述移动终端软件的升级文件;The second acquiring module 303 is configured to acquire the upgrade file of the mobile terminal software through the target network device determined by the determining module 302;

升级模块304,用于根据所述第二获取模块303获取的所述升级文件,对所述移动终端软件进行版本升级。The upgrade module 304 is configured to upgrade the version of the mobile terminal software according to the upgrade file obtained by the second obtain module 303 .

优选的,如图7所示,所述第二获取模块303包括:Preferably, as shown in Figure 7, the second acquisition module 303 includes:

导航子模块3031,用于根据所述第一位置和所述目标网络设备,通过GPS导航向所述移动终端用户提供指引路径;The navigation submodule 3031 is configured to provide a guiding route to the mobile terminal user through GPS navigation according to the first location and the target network device;

检测子模块3032,用于检测所述第一位置和所述目标网络设备之间的距离;A detection submodule 3032, configured to detect the distance between the first location and the target network device;

第一获取子模块3033,用于根据所述检测子模块3032检测到的所述第一位置与所述目标网络设备之间的距离,从所述目标网络设备获取所述移动终端软件的升级文件。The first obtaining submodule 3033 is configured to obtain the upgrade file of the mobile terminal software from the target network device according to the distance between the first position detected by the detection submodule 3032 and the target network device .

优选的,所述导航子模块3031包括:Preferably, the navigation submodule 3031 includes:

第一获取单元30311,用于根据所述第一位置和所述目标网络设备,获取所述第一位置和所述目标网络设备之间的所有路径;A first obtaining unit 30311, configured to obtain all paths between the first location and the target network device according to the first location and the target network device;

导航单元30312,用于根据每条路径的路程和路况,确定指引路径,并通过GPS导航向所述移动终端用户提供所述指引路径。The navigation unit 30312 is configured to determine a guide route according to the distance and road conditions of each route, and provide the guide route to the mobile terminal user through GPS navigation.

优选的,所述第一获取子模块3033包括:Preferably, the first acquisition submodule 3033 includes:

连接单元30331,用于当所述检测子模块3032检测到所述第一位置与所述目标网络设备之间的距离小于或等于预设第二阈值时,打开所述移动终端的网络连接接口,并将所述网络连接接口与所述目标网络设备之间建立网络连接;The connection unit 30331 is configured to open the network connection interface of the mobile terminal when the detection submodule 3032 detects that the distance between the first location and the target network device is less than or equal to a preset second threshold, and establishing a network connection between the network connection interface and the target network device;

第二获取单元30332,用于通过所述网络连接,从所述目标网络设备获取所述移动终端软件的升级文件。The second obtaining unit 30332 is configured to obtain the upgrade file of the mobile terminal software from the target network device through the network connection.

优选的,所述第二获取单元30332包括:Preferably, the second acquisition unit 30332 includes:

第一获取子单元303321,用于获取所述移动终端软件的第一版本号;The first obtaining subunit 303321 is used to obtain the first version number of the mobile terminal software;

第二获取子单元303322,用于从所述目标网络设备获取所述移动终端软件的第二版本号;The second acquiring subunit 303322 is configured to acquire the second version number of the mobile terminal software from the target network device;

比对子单元303323,用于将所述第一获取子单元303321获取的所述第一版本号和所述第二获取子单元303322获取的第二版本号进行比对;A comparison subunit 303323, configured to compare the first version number acquired by the first acquisition subunit 303321 with the second version number acquired by the second acquisition subunit 303322;

下载子单元303324,用于当所述第二版本号高于所述第一版本号时,从所述目标网络设备下载所述第二版本号对应的升级文件。The download subunit 303324 is configured to download the upgrade file corresponding to the second version number from the target network device when the second version number is higher than the first version number.

优选的,所述第一获取模块301进一步用于通过GPS定位方式或基站定位方式获取移动终端所处的第一位置。Preferably, the first obtaining module 301 is further configured to obtain the first location of the mobile terminal through GPS positioning or base station positioning.

如图8所示,所述确定模块302包括:As shown in Figure 8, the determination module 302 includes:

第二获取子模块3021,用于获取预存储的网络数据中网络设备的第二位置;The second acquiring submodule 3021 is configured to acquire the second position of the network device in the pre-stored network data;

比较子模块3022,用于将所述第一位置和所述第二获取子模块3021获取的第二位置进行比较;A comparison submodule 3022, configured to compare the first position with the second position acquired by the second acquisition submodule 3021;

第一确定子模块3023,用于当所述第一位置和第二位置之间的距离小于或等于预设第一阈值时,将所述网络设备确定为目标网络设备。The first determination sub-module 3023 is configured to determine the network device as a target network device when the distance between the first location and the second location is less than or equal to a preset first threshold.

优选的,所述第一获取模块301包括:Preferably, the first acquisition module 301 includes:

第三获取子模块3011,用于获取所述移动终端的软件新版本的升级时间和升级周期;The third obtaining sub-module 3011 is used to obtain the upgrade time and upgrade cycle of the new software version of the mobile terminal;

第四获取子模块3012,用于获取所述移动终端的系统时间;The fourth obtaining submodule 3012 is used to obtain the system time of the mobile terminal;

第二确定子模块3013,用于根据所述第三获取子模块3011获取的升级时间和所述第四获取子模块3012获取的系统时间,确定升级时间和系统时间之间的时间间隔;The second determination submodule 3013 is configured to determine the time interval between the upgrade time and the system time according to the upgrade time acquired by the third acquisition submodule 3011 and the system time acquired by the fourth acquisition submodule 3012;

第五获取子模块3014,用于当所述时间间隔大于或等于所述升级周期时,获取移动终端所处的第一位置。The fifth acquiring submodule 3014 is configured to acquire the first location of the mobile terminal when the time interval is greater than or equal to the upgrade period.

其中,所述预存储的网络数据包括:每个网络设备的标识信息、位置信息、物理地址、账号信息、登录密码和覆盖范围中的至少一种。Wherein, the pre-stored network data includes: at least one of identification information, location information, physical address, account information, login password and coverage of each network device.

其中,所述移动终端软件包括系统软件或应用软件。Wherein, the mobile terminal software includes system software or application software.

移动终端300能够实现图1和图3的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 300 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 and FIG. 3 , and details are not repeated here to avoid repetition.

本发明实施例的移动终端300,先通过第一获取模块301获取移动终端所处的第一位置。之后,确定模块302根据第一获取模块301获取的第一位置,在预存储的网络数据中将与移动终端的第一位置相对距离小于或等于第一阈值的网络设备确定为目标网络设备。再然后第二获取模块303通过确定模块302确定的目标网络设备,获取移动终端软件的升级文件。最后由升级模块304对软件进行版本升级。通过定位确定适合的目标网络设备,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验,有效的解决了在wifi覆盖范围小的区域,用户无法查找到合适网络升级,以及由其引发的安全性差和功能不完善的问题。The mobile terminal 300 in the embodiment of the present invention first obtains the first location of the mobile terminal through the first obtaining module 301 . Afterwards, the determining module 302 determines, according to the first location obtained by the first obtaining module 301 , the network device whose relative distance from the first location of the mobile terminal is less than or equal to the first threshold in the pre-stored network data as the target network device. Then the second obtaining module 303 obtains the upgrade file of the mobile terminal software through the target network device determined by the determining module 302 . Finally, the upgrade module 304 upgrades the version of the software. Determine the appropriate target network device by positioning, not only can effectively query the target network device, but also minimize the user's time and energy consumption, improve the user's software upgrade experience, and effectively solve the problem of users in areas with small wifi coverage. The inability to find suitable network upgrades, and the resulting poor security and incomplete functionality.

第四实施例Fourth embodiment

图9是本发明另一实施例的移动终端的结构示意图。图9所示的移动终端400包括:至少一个处理器401、存储器402、电源406、GPS模块407、至少一个网络接口404和其他用户接口403。移动终端400中的各个组件通过总线系统405耦合在一起。可理解,总线系统405用于实现这些组件之间的连接通信。总线系统405除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图9中将各种总线都标为总线系统405。Fig. 9 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 400 shown in FIG. 9 includes: at least one processor 401 , memory 402 , power supply 406 , GPS module 407 , at least one network interface 404 and other user interfaces 403 . Various components in the mobile terminal 400 are coupled together through the bus system 405 . It can be understood that the bus system 405 is used to realize connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 405 in FIG. 9 .

其中,用户接口403可以包括显示器、键盘、按键或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 403 may include a display, a keyboard, a button or a pointing device (for example, a mouse, a trackball (trackball), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器402可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器402旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 402 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DoubleDataRate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), Synchronous Connection Dynamic Random Access Memory (SynchlinkDRAM, SLDRAM) and Direct Memory Bus Random Access Memory Access memory (DirectRambusRAM, DRRAM). The memory 402 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器402存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统4021和应用程序4022。具体的,存储器402存储了本发明实施例中的网络数据、第一阈值、第二阈值、升级周期。In some implementations, the memory 402 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 4021 and an application program 4022 . Specifically, the memory 402 stores the network data, the first threshold, the second threshold, and the upgrade cycle in the embodiment of the present invention.

其中,操作系统4021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序4022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序4022中。Among them, the operating system 4021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 4022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 4022 .

在本发明实施例中,通过调用存储器402存储的程序或指令,具体的,可以是应用程序4022中存储的程序或指令,处理器401用于获取移动终端所处的第一位置;根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;通过所述目标网络设备,获取所述移动终端软件的升级文件;根据所述升级文件,对所述移动终端软件进行版本升级。In the embodiment of the present invention, the processor 401 is used to obtain the first location of the mobile terminal by calling the program or instruction stored in the memory 402, specifically, the program or instruction stored in the application program 4022; according to the The first location and the pre-stored network data determine a network device whose relative distance from the first location is less than or equal to a preset first threshold as a target network device; through the target network device, obtain the mobile terminal software An upgrade file; according to the upgrade file, upgrade the version of the mobile terminal software.

上述本发明实施例揭示的方法可以应用于处理器401中,或者由处理器401实现。处理器401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器401可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器402,处理器401读取存储器402中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401 . The processor 401 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 401 or instructions in the form of software. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器401还用于根据所述第一位置和所述目标网络设备,通过GPS导航向所述移动终端用户提供指引路径;检测所述第一位置和所述目标网络设备之间的距离;根据检测到的所述第一位置与所述目标网络设备之间的距离,从所述目标网络设备获取所述移动终端软件的升级文件。Optionally, the processor 401 is further configured to provide a guiding path to the mobile terminal user through GPS navigation according to the first location and the target network device; detect the distance between the first location and the target network device the distance; according to the detected distance between the first location and the target network device, acquire the upgrade file of the mobile terminal software from the target network device.

可选地,处理器401还用于根据所述第一位置和所述目标网络设备,获取所述第一位置和所述目标网络设备之间的所有路径;根据每条路径的路程和路况,确定指引路径,并通过GPS导航向所述移动终端用户提供所述指引路径。Optionally, the processor 401 is further configured to acquire all paths between the first location and the target network device according to the first location and the target network device; according to the distance and road condition of each path, Determine a guiding route, and provide the guiding route to the mobile terminal user through GPS navigation.

可选地,处理器401还用于当检测到所述第一位置与所述目标网络设备之间的距离小于或等于预设第二阈值时,打开所述移动终端的网络连接接口,并将所述网络连接接口与所述目标网络设备之间建立网络连接;通过所述网络连接,从所述目标网络设备获取所述移动终端软件的升级文件。Optionally, the processor 401 is further configured to, when it is detected that the distance between the first location and the target network device is less than or equal to a preset second threshold, open the network connection interface of the mobile terminal, and A network connection is established between the network connection interface and the target network device; through the network connection, an upgrade file of the mobile terminal software is obtained from the target network device.

可选地,处理器401还用于获取所述移动终端软件的第一版本号;从所述目标网络设备获取所述移动终端软件的第二版本号;将所述第一版本号和第二版本号进行比对;当所述第二版本号高于所述第一版本号时,从所述目标网络设备下载所述第二版本号对应的升级文件。Optionally, the processor 401 is also configured to acquire the first version number of the mobile terminal software; acquire the second version number of the mobile terminal software from the target network device; combine the first version number and the second compare the version numbers; when the second version number is higher than the first version number, download the upgrade file corresponding to the second version number from the target network device.

可选地,处理器401还用于通过GPS定位方式或基站定位方式获取移动终端所处的第一位置。Optionally, the processor 401 is further configured to obtain the first location of the mobile terminal through a GPS positioning method or a base station positioning method.

可选地,处理器401还用于获取预存储的网络数据中网络设备的第二位置;将所述第一位置和第二位置进行比较;当所述第一位置和第二位置之间的距离小于或等于预设第一阈值时,将所述网络设备确定为目标网络设备。Optionally, the processor 401 is further configured to obtain a second location of the network device in the pre-stored network data; compare the first location with the second location; and when the distance between the first location and the second location When the distance is less than or equal to the preset first threshold, the network device is determined as the target network device.

可选地,处理器401还用于获取所述移动终端的软件新版本的升级时间和升级周期;获取所述移动终端的系统时间;根据所述升级时间和系统时间,确定升级时间和系统时间之间的时间间隔;当所述时间间隔大于或等于所述升级周期时,获取移动终端所处的第一位置。Optionally, the processor 401 is also configured to obtain the upgrade time and upgrade period of the new software version of the mobile terminal; obtain the system time of the mobile terminal; determine the upgrade time and system time according to the upgrade time and system time The time interval between; when the time interval is greater than or equal to the upgrade cycle, acquire the first location where the mobile terminal is located.

其中,所述预存储的网络数据包括:每个网络设备的标识信息、位置信息、物理地址、账号信息、登录密码和覆盖范围中的至少一种。Wherein, the pre-stored network data includes: at least one of identification information, location information, physical address, account information, login password and coverage of each network device.

其中,所述移动终端软件包括系统软件或应用软件。Wherein, the mobile terminal software includes system software or application software.

移动终端400能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not described here to avoid repetition.

本发明实施例的移动终端400,先获取移动终端所处的第一位置,之后,根据第一位置,在预存储的网络数据中将与移动终端的第一位置相对距离小于或等于第一阈值的网络设备确定为目标网络设备。再然后通过确定的目标网络设备,获取移动终端软件的升级文件。最后对软件进行版本升级。通过定位确定适合的目标网络设备,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验,有效的解决了在wifi覆盖范围小的区域,用户无法查找到合适网络升级,以及由其引发的安全性差和功能不完善的问题。The mobile terminal 400 in the embodiment of the present invention first obtains the first location where the mobile terminal is located, and then, according to the first location, the relative distance from the first location of the mobile terminal in the pre-stored network data is less than or equal to the first threshold The network device identified as the target network device. Then, the upgrade file of the mobile terminal software is obtained through the determined target network device. Finally, upgrade the software version. Determine the appropriate target network device by positioning, not only can effectively query the target network device, but also minimize the user's time and energy consumption, improve the user's software upgrade experience, and effectively solve the problem of users in areas with small wifi coverage. The inability to find suitable network upgrades, and the resulting poor security and incomplete functionality.

第五实施例fifth embodiment

图10是本发明另一个实施例的移动终端的结构示意图。具体地,图10中的移动终端500可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。Fig. 10 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 500 in FIG. 10 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图10中的移动终端500包括射频(RadioFrequency,RF)电路510、存储器520、输入单元530、显示单元540、GPS模块550、处理器560、音频电路570、wifi(wireless fidelity)模块580和电源590。Mobile terminal 500 in Fig. 10 comprises radio frequency (RadioFrequency, RF) circuit 510, memory 520, input unit 530, display unit 540, GPS module 550, processor 560, audio circuit 570, wifi (wireless fidelity) module 580 and power supply 590 .

其中,输入单元530可用于接收用户输入的数字或字符信息,以及产生与移送终端500的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元530可以包括触控面板531。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器560,并能接收处理器560发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 530 can be used for receiving number or character information input by the user, and generating signal input related to the user setting and function control of the mobile terminal 500 . Specifically, in the embodiment of the present invention, the input unit 530 may include a touch panel 531 . The touch panel 531, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 531 using any suitable object or accessory such as a finger and a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 531 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 560, and can receive and execute commands sent by the processor 560. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531, the input unit 530 may also include other input devices 532, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元540可用于显示由用户输入的信息或提供给用户的信息以及移动终端500的各种菜单界面。显示单元540可包括显示面板541,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板541。Wherein, the display unit 540 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 500 . The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板531可以覆盖显示面板541,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器560以确定触摸事件的类型,随后处理器560根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 531 can cover the display panel 541 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 560 to determine the type of the touch event, and then the processor The 560 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器560是移动终端500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器521内的软件程序和/或模块,以及调用存储在第二存储器522内的数据,执行移动终端500的各种功能和处理数据,从而对移动终端500进行整体监控。可选的,处理器560可包括一个或多个处理单元。Wherein the processor 560 is the control center of the mobile terminal 500, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, runs or executes the software programs and/or modules stored in the first memory 521, and calls the software programs and/or modules stored in the second memory 521. The data in the memory 522 executes various functions of the mobile terminal 500 and processes data, so as to monitor the mobile terminal 500 as a whole. Optionally, the processor 560 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器521内的软件程序和/或模块和/或该第二存储器522内的数据,处理器560用于获取移动终端所处的第一位置;根据所述第一位置和预存储的网络数据,将与所述第一位置相对距离小于或等于预设第一阈值的网络设备确定为目标网络设备;通过所述目标网络设备,获取所述移动终端软件的升级文件;根据所述升级文件,对所述移动终端软件进行版本升级。In the embodiment of the present invention, the processor 560 is used to obtain the first location where the mobile terminal is located by calling the software program and/or module stored in the first memory 521 and/or the data in the second memory 522; According to the first location and pre-stored network data, determine a network device whose relative distance from the first location is less than or equal to a preset first threshold as a target network device; and obtain the movement through the target network device An upgrade file of the terminal software; according to the upgrade file, the version upgrade of the mobile terminal software is performed.

可选地,处理器560还用于根据所述第一位置和所述目标网络设备,通过GPS导航向所述移动终端用户提供指引路径;检测所述第一位置和所述目标网络设备之间的距离;根据检测到的所述第一位置与所述目标网络设备之间的距离,从所述目标网络设备获取所述移动终端软件的升级文件。Optionally, the processor 560 is further configured to provide a guiding path to the mobile terminal user through GPS navigation according to the first location and the target network device; detect the distance between the first location and the target network device the distance; according to the detected distance between the first location and the target network device, acquire the upgrade file of the mobile terminal software from the target network device.

可选地,处理器560还用于根据所述第一位置和所述目标网络设备,获取所述第一位置和所述目标网络设备之间的所有路径;根据每条路径的路程和路况,确定指引路径,并通过GPS导航向所述移动终端用户提供所述指引路径。Optionally, the processor 560 is further configured to acquire all paths between the first location and the target network device according to the first location and the target network device; according to the distance and road condition of each path, Determine a guiding route, and provide the guiding route to the mobile terminal user through GPS navigation.

可选地,处理器560还用于当检测到所述第一位置与所述目标网络设备之间的距离小于或等于预设第二阈值时,打开所述移动终端的网络连接接口,并将所述网络连接接口与所述目标网络设备之间建立网络连接;通过所述网络连接,从所述目标网络设备获取所述移动终端软件的升级文件。Optionally, the processor 560 is further configured to, when it is detected that the distance between the first location and the target network device is less than or equal to a preset second threshold, open the network connection interface of the mobile terminal, and A network connection is established between the network connection interface and the target network device; through the network connection, an upgrade file of the mobile terminal software is obtained from the target network device.

可选地,处理器560还用于获取所述移动终端软件的第一版本号;从所述目标网络设备获取所述移动终端软件的第二版本号;将所述第一版本号和第二版本号进行比对;当所述第二版本号高于所述第一版本号时,从所述目标网络设备下载所述第二版本号对应的升级文件。Optionally, the processor 560 is also configured to acquire the first version number of the mobile terminal software; acquire the second version number of the mobile terminal software from the target network device; combine the first version number and the second compare the version numbers; when the second version number is higher than the first version number, download the upgrade file corresponding to the second version number from the target network device.

可选地,处理器560还用于通过GPS定位方式或基站定位方式获取移动终端所处的第一位置。Optionally, the processor 560 is further configured to obtain the first location of the mobile terminal through a GPS positioning method or a base station positioning method.

可选地,处理器560还用于获取预存储的网络数据中网络设备的第二位置;将所述第一位置和第二位置进行比较;当所述第一位置和第二位置之间的距离小于或等于预设第一阈值时,将所述网络设备确定为目标网络设备。Optionally, the processor 560 is further configured to acquire a second location of the network device in the pre-stored network data; compare the first location with the second location; When the distance is less than or equal to the preset first threshold, the network device is determined as the target network device.

可选地,处理器560还用于获取所述移动终端的软件新版本的升级时间和升级周期;获取所述移动终端的系统时间;根据所述升级时间和系统时间,确定升级时间和系统时间之间的时间间隔;当所述时间间隔大于或等于所述升级周期时,获取移动终端所处的第一位置。Optionally, the processor 560 is also used to obtain the upgrade time and upgrade cycle of the new software version of the mobile terminal; obtain the system time of the mobile terminal; determine the upgrade time and system time according to the upgrade time and system time The time interval between; when the time interval is greater than or equal to the upgrade cycle, acquire the first location where the mobile terminal is located.

其中,所述预存储的网络数据包括:每个网络设备的标识信息、位置信息、物理地址、账号信息、登录密码和覆盖范围中的至少一种。Wherein, the pre-stored network data includes: at least one of identification information, location information, physical address, account information, login password and coverage of each network device.

其中,所述移动终端软件包括系统软件或应用软件。Wherein, the mobile terminal software includes system software or application software.

可见,本实施例的移动终端500,先获取移动终端所处的第一位置,之后,根据第一位置,在预存储的网络数据中将与移动终端的第一位置相对距离小于或等于第一阈值的网络设备确定为目标网络设备。再然后通过确定的目标网络设备,获取移动终端软件的升级文件。最后对软件进行版本升级。通过定位确定适合的目标网络设备,不仅能够有效查询到目标网络设备,而且最小化了用户的时间和精力消耗,提升了用户的软件升级体验,有效的解决了在wifi覆盖范围小的区域,用户无法查找到合适网络升级,以及由其引发的安全性差和功能不完善的问题。It can be seen that the mobile terminal 500 in this embodiment first obtains the first location where the mobile terminal is located, and then, according to the first location, the relative distance from the first location of the mobile terminal in the pre-stored network data is less than or equal to the first location. The network device with the threshold value is determined as the target network device. Then, the upgrade file of the mobile terminal software is obtained through the determined target network device. Finally, upgrade the software version. Determine the appropriate target network device by positioning, not only can effectively query the target network device, but also minimize the user's time and energy consumption, improve the user's software upgrade experience, and effectively solve the problem of users in areas with small wifi coverage. The inability to find suitable network upgrades, and the resulting poor security and incomplete functionality.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本发明实施例的移动终端通过上述模块,根据目标像素尺寸以及马达位置拟合生成匹配关系函数或预设计算规则,在下一次对焦时能够根据对焦目标的像素尺寸直接确定马达位置,再通过调整马达位置来实现对焦的目的,解决了现有技术的对焦方式需要多次移动马达的位置导致耗时以及耗电的问题,根据所拟合生成的匹配关系函数,可以快速计算得到马达位置,提升了拍摄同一个目标物体或者同一类物体时的对焦速度,改善了用户体验。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. The mobile terminal of the embodiment of the present invention uses the above module to generate a matching relationship function or preset calculation rules according to the target pixel size and motor position fitting, and can directly determine the motor position according to the pixel size of the focus target when focusing next time, and then adjust the motor The position is used to achieve the purpose of focusing, which solves the problem of time-consuming and power consumption caused by the need to move the position of the motor multiple times in the focusing method of the prior art. According to the matching relationship function generated by the fitting, the motor position can be quickly calculated and improved. The focusing speed when shooting the same target object or the same type of object improves the user experience.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (20)

CN201610170028.9A2016-03-222016-03-22 Method for upgrading version of mobile terminal software and mobile terminalActiveCN105843643B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610170028.9ACN105843643B (en)2016-03-222016-03-22 Method for upgrading version of mobile terminal software and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610170028.9ACN105843643B (en)2016-03-222016-03-22 Method for upgrading version of mobile terminal software and mobile terminal

Publications (2)

Publication NumberPublication Date
CN105843643Atrue CN105843643A (en)2016-08-10
CN105843643B CN105843643B (en)2019-10-15

Family

ID=56584557

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610170028.9AActiveCN105843643B (en)2016-03-222016-03-22 Method for upgrading version of mobile terminal software and mobile terminal

Country Status (1)

CountryLink
CN (1)CN105843643B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107979815A (en)*2016-10-242018-05-01通用汽车有限责任公司To the aerial timing transmission for transmitting data of vehicle
CN111277435A (en)*2020-01-162020-06-12南京大鱼半导体有限公司Method and device for upgrading network equipment, storage medium and electronic equipment
CN112148320A (en)*2019-06-262020-12-29顺丰科技有限公司Application program upgrading method, device, equipment and storage medium
CN112566052A (en)*2020-11-302021-03-26中国联合网络通信集团有限公司Terminal determination method and device
CN112929434A (en)*2021-02-032021-06-08中国联合网络通信集团有限公司Positioning method, positioning device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101026459A (en)*2006-02-172007-08-29联想(北京)有限公司Terminal, system and method for searching service via geographical position information
CN101662533A (en)*2008-08-272010-03-03深圳富泰宏精密工业有限公司Software updating system and method
CN103024929A (en)*2012-12-202013-04-03惠州Tcl移动通信有限公司Mobile terminal and method for connecting wireless network based on mobile terminal
CN103607456A (en)*2013-11-212014-02-26厦门雅迅网络股份有限公司Remote software upgrade method for clustered mobile terminals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101026459A (en)*2006-02-172007-08-29联想(北京)有限公司Terminal, system and method for searching service via geographical position information
CN101662533A (en)*2008-08-272010-03-03深圳富泰宏精密工业有限公司Software updating system and method
CN103024929A (en)*2012-12-202013-04-03惠州Tcl移动通信有限公司Mobile terminal and method for connecting wireless network based on mobile terminal
CN103607456A (en)*2013-11-212014-02-26厦门雅迅网络股份有限公司Remote software upgrade method for clustered mobile terminals

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107979815A (en)*2016-10-242018-05-01通用汽车有限责任公司To the aerial timing transmission for transmitting data of vehicle
CN112148320A (en)*2019-06-262020-12-29顺丰科技有限公司Application program upgrading method, device, equipment and storage medium
CN111277435A (en)*2020-01-162020-06-12南京大鱼半导体有限公司Method and device for upgrading network equipment, storage medium and electronic equipment
CN112566052A (en)*2020-11-302021-03-26中国联合网络通信集团有限公司Terminal determination method and device
CN112929434A (en)*2021-02-032021-06-08中国联合网络通信集团有限公司Positioning method, positioning device, server and storage medium

Also Published As

Publication numberPublication date
CN105843643B (en)2019-10-15

Similar Documents

PublicationPublication DateTitle
CN109241765B (en)Mobile terminal and method and device for managing authority of application program
CN105843643B (en) Method for upgrading version of mobile terminal software and mobile terminal
JP6312716B2 (en) Method, apparatus and medium for determining a position of a mobile device within an indoor environment
CN106714251A (en)Network connection method and mobile terminal
CN107171874B (en) A voice engine switching method, mobile terminal and server
KR101828903B1 (en)Roaming network access method and apparatus
CN106535100B (en) Method for locating mobile terminal, mobile terminal and server
US9727549B2 (en)Adaptive key-based navigation on a form
CN111307171A (en)Navigation processing method and terminal
CN107360601A (en)A kind of method for switching network, mobile terminal and computer-readable recording medium
CN107333325B (en) A kind of network search method and mobile terminal
CN103150109A (en)Touch event model for web pages
JP2013200265A (en)Electronic apparatus in which navigation application is installed, control method of electronic apparatus and computer program
CN106454735A (en)Method for processing WIFI information and mobile terminal
CN107567046A (en)A kind of cell accessing method and mobile terminal
CN107509238A (en) Method for searching network of mobile terminal and mobile terminal
CN107105042A (en)A kind of activity recommendation method and mobile terminal
CN107318091A (en)The control method and mobile terminal of a kind of network connection
CN106792544A (en)A kind of method and terminal for detecting terminal location
US10298590B2 (en)Application-based service providing method, apparatus, and system
CN106332217A (en) A wireless routing method and mobile terminal
CN106506849B (en)Display method of wireless access point and mobile terminal
CN106302782A (en)A kind of method for network access control and mobile terminal
CN106385671A (en)Positioning method and mobile terminal
CN105828415A (en)Method for displaying and setting WiFi access points, terminal and server

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp