WO2016173122A1 - Network search method and device - Google Patents

Network search method and device Download PDF

Info

Publication number
WO2016173122A1
WO2016173122A1 PCT/CN2015/084268 CN2015084268W WO2016173122A1 WO 2016173122 A1 WO2016173122 A1 WO 2016173122A1 CN 2015084268 W CN2015084268 W CN 2015084268W WO 2016173122 A1 WO2016173122 A1 WO 2016173122A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
determining
modem
predetermined
find
Prior art date
Application number
PCT/CN2015/084268
Other languages
French (fr)
Chinese (zh)
Inventor
赵斌
秦存昌
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016173122A1 publication Critical patent/WO2016173122A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the adjusting unit 42 is arranged to adjust the state of the modem to a power-on state under predetermined conditions; the searching unit 44 is connected to the above-mentioned adjusting unit 42 and is arranged to look up the network using the modem in the power-on state.
  • a delayed reporting mechanism needs to be utilized.
  • the native system originally had such a mechanism but has many limitations.
  • the ril delayed active reporting has been completely modified.
  • a global variable is created to save the number of events that need to be delayed and the number of records to be locked.
  • the report of this event will be added to this active report.
  • the number of lockups for this active escalation event is incremented by 1.
  • Initialization in ril is to create this linked list, and all the active reporting events are suppressed. After rild receives the Phone process connection command, all active reporting events are all suppressed.
  • the time for booting the network can be effectively shortened, especially for the case where the SIM card is powered by the power on trigger (because the content on the card takes a long time), the improvement is more remarkable.
  • the introduction of the ril delayed active reporting mechanism ensures that even if the network is found before the Phone runs, the Phone will not miss the report information such as short messages that are generated in advance because the network is found.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • a network search method and apparatus provided by the embodiments of the present invention have the following beneficial effects: reducing network time and improving user experience.

Abstract

Provided are a network search method and device, wherein the method comprises: determining that a terminal in a predetermined scenario needs to search for a network; and before a search request sent by a predetermined process is received, processing the search for the network, wherein the search request is used for searching for the above-mentioned network. By means of the present invention, the problem of long network-search time and poor user experience in the related art is solved, so that the effects of reducing the network-search time and improving the user experience are achieved.

Description

网络查找方法及装置Network searching method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种网络查找方法及装置。The present invention relates to the field of communications, and in particular to a network search method and apparatus.
背景技术Background technique
插入有网络服务移动运营商卡的移动手机终端开机时会发起找网流程,以Android系统的终端为例,Android原生系统的开机找网流程设计如图1所示,图1是相关技术中的开机找网流程图,其中,现有的上电(power on)机制中,调制解调器(modem)是默认关闭(power off)的,开机找网的流程需要经过如下步骤:S102,开机→S104,启动Phone进程→S106,连接上无线电接口层守护进程(rild)→S108,rild上报当前的modem状态和客户识别模块(Subscriber Identity Module,简称为SIM)卡准备好事件→S110,然后Phone进程发送power on请求→S112,通过无线电接口层(ril)把modem置在线(online)→S114,modem开始找网→S116,最后modem上报网络状态和网络事件。从中可以看出终端发起找网的请求要等到Phone进程的power on请求才开始,期间需要等待的事件有Phone进程、rild连接和SIM卡准备好状态,通过实际工程中遇到的情况分析,Phone进程起来、连接rild的socket和SIM卡准备好都需要耗费时间,并且整个找网流程是串行处理的每一个环节都不能出现问题。实际工程中Android原生系统从开机完成到成功找到并注册网络整个流程走完需要大概10秒左右或更多的时间,这样找网的时间较长影响手机开机正常使用的时间和用户体验。因此,在相关技术中存在着找网历经时间长,用户体验低的问题。When the mobile phone terminal with the network service mobile operator card is turned on, the network search process is initiated. Taking the terminal of the Android system as an example, the design of the boot process of the Android native system is as shown in FIG. 1 , and FIG. 1 is related to the related art. Startup to find the network flow chart, wherein, in the existing power on mechanism, the modem is powered off by default, and the process of booting the network needs to go through the following steps: S102, boot→S104, start Phone process → S106, connect to the radio interface layer daemon (rild) → S108, rild reports the current modem state and the Subscriber Identity Module (SIM) card ready event → S110, then the Phone process sends power on Request → S112, the modem is placed online (Stone) through the radio interface layer (ril) → S114, the modem starts looking for the network → S116, and finally the modem reports the network status and network events. It can be seen that the request initiated by the terminal to find the network has to wait until the power on request of the Phone process starts. The events that need to wait during the period include the Phone process, the rild connection and the SIM card ready state, and the situation encountered through the actual project analysis, Phone It takes time to process up, connect rild sockets and SIM cards, and the entire network search process is not a problem in every aspect of serial processing. In the actual project, the Android native system takes about 10 seconds or more from the completion of the boot to the successful process of finding and registering the network. The long time to find the network affects the normal use time and user experience of the mobile phone. Therefore, in the related art, there is a problem that the search network takes a long time and the user experience is low.
针对相关技术中存在的找网时间长,用户体验低的问题,目前尚未提出有效的解决方案。In view of the problem of long network search time and low user experience in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种网络查找方法及装置,以至少解决相关技术中存在的找网时间长,用户体验低的问题。The embodiment of the invention provides a network searching method and device, so as to solve at least the problem that the network searching time is long and the user experience is low in the related art.
根据本发明实施例的一个方面,提供了一种网络查找方法,包括:确定处于预定场景中的终端需要查找网络;在接收预定进程发送的查找请求之前,进行查找所述网络的处理,其中,所述查找请求用于查找所述网络。 According to an aspect of the present invention, a network search method is provided, including: determining that a terminal in a predetermined scenario needs to search for a network; and performing a process of searching for the network before receiving a lookup request sent by a predetermined process, where The lookup request is used to find the network.
进一步地,进行查找所述网络的处理包括:在预定条件下将调制解调器的状态调整为上电状态;利用处于上电状态下的调制解调器查找网络。Further, the process of performing the lookup of the network includes: adjusting the state of the modem to a power-on state under predetermined conditions; and using a modem in a powered-on state to look up the network.
进一步地,在进行查找所述网络的处理之后,还包括:在确定查找到所述网络的预定时间后,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息。Further, after performing the process of searching the network, the method further includes: delaying reporting network state information of the modem and/or pre-received network event information after determining a predetermined time of finding the network.
进一步地,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息包括:对预先接收到的所述网络事件信息进行缓存处理,其中,所述缓存处理包括以下至少之一:放弃缓存、更新缓存、全部缓存;上报所述调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。Further, delaying reporting of network status information of the modem and/or pre-received network event information includes: performing cache processing on the network event information received in advance, wherein the buffer processing comprises at least one of the following: Abandoning the cache, updating the cache, and all the caches; reporting the network status information of the modem and/or the cached network event information.
进一步地,所述预定条件包括:确定所述终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定所述终端未被锁网和确定无需输入个人识别密码PIN。Further, the predetermined condition includes: determining that the terminal is not in an airplane mode, determining that a process other than a network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required to be input.
进一步地,所述预定场景包括开机场景;和/或,所述预定进程包括Phone进程。Further, the predetermined scenario includes a boot scenario; and/or, the predetermined process includes a Phone process.
根据本发明实施例的另一方面,提供了一种网络查找装置,包括:确定模块,设置为确定处于预定场景中的终端需要查找网络;处理模块,设置为在接收预定进程发送的查找请求之前,进行查找所述网络的处理,其中,所述查找请求用于查找所述网络。According to another aspect of an embodiment of the present invention, a network search apparatus is provided, comprising: a determining module configured to determine that a terminal in a predetermined scenario needs to look up a network; and a processing module configured to receive a lookup request sent by a predetermined process And performing a process of finding the network, wherein the lookup request is used to find the network.
进一步地,所述处理模块包括:调整单元,设置为在预定条件下将调制解调器的状态调整为上电状态;查找单元,设置为利用处于上电状态下的调制解调器查找网络。Further, the processing module includes: an adjusting unit configured to adjust a state of the modem to a power-on state under a predetermined condition; and a searching unit configured to look up the network by using a modem in a power-on state.
进一步地,所述装置还包括:上报模块,设置为在确定查找到所述网络的预定时间后,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息。Further, the apparatus further includes: a reporting module configured to delay reporting network status information of the modem and/or pre-received network event information after determining a predetermined time to find the network.
进一步地,所述上报模块包括:处理单元,设置为对预先接收到的所述网络事件信息进行缓存处理,其中,所述缓存处理包括以下至少之一:放弃缓存、更新缓存、全部缓存;上报单元,设置为上报所述调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。Further, the reporting module includes: a processing unit, configured to perform buffer processing on the network event information received in advance, wherein the cache processing includes at least one of: abandoning a cache, updating a cache, and all caching; reporting The unit is configured to report network status information of the modem and/or cached network event information.
进一步地,所述预定条件包括:确定所述终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定所述终端未被锁网和确定无需输入个人识别密码PIN。Further, the predetermined condition includes: determining that the terminal is not in an airplane mode, determining that a process other than a network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required to be input.
进一步地,所述预定场景包括开机场景;和/或,所述预定进程包括Phone进程。 Further, the predetermined scenario includes a boot scenario; and/or, the predetermined process includes a Phone process.
通过本发明实施例,采用确定处于预定场景中的终端需要查找网络;在接收预定进程发送的查找请求之前,进行查找所述网络的处理,其中,所述查找请求用于查找所述网络,解决了相关技术中存在的找网时间长,用户体验低的问题,进而达到了减少找网时间,提高用户体验的效果。According to the embodiment of the present invention, the terminal that is determined to be in the predetermined scenario needs to look up the network; before receiving the lookup request sent by the predetermined process, the process of searching for the network is performed, where the lookup request is used to find the network and solve the problem. The problem of long network search time and low user experience exists in the related technology, thereby achieving the effect of reducing the time for finding the network and improving the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是相关技术中的开机找网流程图;1 is a flow chart of a boot-up network in the related art;
图2是根据本发明实施例的网络查找方法的流程图;2 is a flowchart of a network search method according to an embodiment of the present invention;
图3是根据本发明实施例的网络查找装置的结构框图;3 is a structural block diagram of a network search apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的网络查找装置中处理模块34的结构框图;4 is a structural block diagram of a processing module 34 in a network search device according to an embodiment of the present invention;
图5是根据本发明实施例的网络查找装置的优选结构框图;FIG. 5 is a block diagram showing a preferred structure of a network search apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的网络查找装置中上报模块52的结构框图;FIG. 6 is a structural block diagram of a reporting module 52 in a network search device according to an embodiment of the present invention;
图7是根据本发明实施例的快速找网流程图。7 is a flow chart of a quick lookup network in accordance with an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种网络查找方法,图2是根据本发明实施例的网络查找方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a network search method is provided. FIG. 2 is a flowchart of a network search method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,确定处于预定场景中的终端需要查找网络;Step S202, determining that the terminal in the predetermined scenario needs to find a network;
步骤S204,在接收预定进程发送的查找请求之前,进行查找该网络的处理,其中,该查找请求用于查找上述网络。 Step S204: Perform processing for searching the network before receiving the lookup request sent by the predetermined process, where the lookup request is used to search for the network.
通过上述步骤,在需要查找网络时,在接收到预定进程发送的查找请求之前优先执行网络查找的处理,可以将查找网络的操作提前,进而实现缩短查找网络的时间,解决了相关技术中存在的找网时间长,用户体验低的问题,进而达到了减少找网时间,提高用户体验的效果。Through the above steps, when the network needs to be searched, the network search process is preferentially performed before receiving the search request sent by the predetermined process, and the operation of finding the network can be advanced, thereby shortening the time for finding the network, and solving the related technologies. The problem of long network time and low user experience is achieved, thereby reducing the time for finding the network and improving the user experience.
在一个可选的实施例中,上述的进行查找网络的处理可以包括:在预定条件下将调制解调器的状态调整为上电状态;利用处于上电状态下的调制解调器查找网络。其中,在调整调制解调器的状态时,可以利用ril进行调整。当然也可以通过其他的方式调整调制解调器的状态。In an optional embodiment, the foregoing process of performing a lookup network may include: adjusting a state of the modem to a power-on state under a predetermined condition; and using a modem in a power-on state to look up the network. Among them, when adjusting the state of the modem, you can use ril to adjust. Of course, the state of the modem can also be adjusted in other ways.
在一个可选的实施例中,在进行查找上述网络的处理之后,还包括:在确定查找到上述网络的预定时间后,延迟上报调制解调器的网络状态信息和/或预先接收到的网络事件信息。引入延迟上报的目的是为了避免当在其他进程(如,Phone进程)运行前就已经找到网从而造成网络事件信息(如,短消息)丢失的问题。In an optional embodiment, after performing the process of searching for the network, the method further includes: delaying reporting network status information of the modem and/or pre-received network event information after determining the predetermined time for the network to be found. The purpose of introducing delayed reporting is to avoid the problem of network event information (eg, short messages) being lost when the network is found before other processes (eg, Phone processes) are running.
在延迟上报上述信息时,可以先缓存上述信息,在需要上报时,再上报缓存的信息。在缓存上述信息时,也可以分为不同的缓存方式,对于部分网络事件信息,是不需要缓存的,可以放弃缓存,直接丢弃;对于一些需要更新缓存的网络事件信息,采用更新缓存的方式进行缓存,该更新缓存可以是覆盖更新(即,后接收到的信息覆盖更新到之前接收到的信息);对于部分信息,可以采用全部缓存的方式,即,接收多少缓存多少,不需要覆盖之前接收到的信息。在对上述信息进行缓存之后,可以上报调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。When the above information is reported in the delay, the above information may be cached first, and the cached information is reported when the report needs to be reported. When the above information is cached, it can also be divided into different caching modes. For some network event information, there is no need to cache, and the cache can be discarded and discarded directly. For some network event information that needs to be updated, the cache is updated. Cache, the update cache may be an overlay update (ie, the information received after the update is overwritten to the previously received information); for partial information, all caches may be used, ie, how much cache is received, and no previous coverage is required. Information to. After the above information is cached, the modem's network status information and/or cached network event information may be reported.
在一个可选的实施例中,上述的预定条件可以包括:确定终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定终端未被锁网和确定无需输入个人识别密码PIN。从而使得找网流程和其他流程相互之间不会存在冲突。In an optional embodiment, the predetermined condition may include determining that the terminal is not in the flight mode, determining that the process other than the network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required. Therefore, there is no conflict between the network search process and other processes.
在一个可选的实施例中,上述的预定场景可以包括开机场景,也就是说,在终端刚开机需要查找网络的场景下执行上述的操作。上述的预定进程可以包括Phone进程,该Phone进程可以是一个具有一定独立功能的程序关于某个数据集合的一次运行活动,Phone包含通话、短信、网络服务和数据连接等集合,Phone进程就是终端系统中具有一定独立功能的程序关于通话、短信、网络服务和数据连接等基本业务的一次运行活动。In an optional embodiment, the foregoing predetermined scenario may include a booting scenario, that is, performing the foregoing operations in a scenario in which the terminal needs to find a network just after booting. The foregoing predetermined process may include a Phone process, which may be a running operation of a program with a certain independent function on a certain data set, the Phone includes a set of calls, short messages, network services, and data connections, and the Phone process is a terminal system. A program with a certain independent function for a basic operation of basic services such as calls, text messages, network services, and data connections.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者 说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on this understanding, the technical solution of the present invention is essentially or The portion that contributes to the prior art can be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a disk, an optical disk), including a number of instructions for making a terminal The device (which may be a cell phone, computer, server, or network device, etc.) performs the methods of various embodiments of the present invention.
在本实施例中还提供了一种网络查找装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a network search device is provided, which is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的网络查找装置的结构框图,如图3所示,该装置包括确定模块32和处理模块34,下面对该装置进行说明。3 is a structural block diagram of a network search apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a determination module 32 and a processing module 34, which will be described below.
确定模块32,设置为确定处于预定场景中的终端需要查找网络;处理模块34,连接至上述确定模块32,设置为在接收预定进程发送的查找请求之前,进行查找该网络的处理,其中,上述查找请求用于查找该网络。The determining module 32 is configured to determine that the terminal in the predetermined scenario needs to find the network; the processing module 34 is connected to the determining module 32, and is configured to perform processing for searching the network before receiving the lookup request sent by the predetermined process, where The lookup request is used to find the network.
图4是根据本发明实施例的网络查找装置中处理模块34的结构框图,如图4所示,该处理模块34包括调整单元42和查找单元44,下面对该处理模块34进行说明。4 is a structural block diagram of a processing module 34 in a network search device according to an embodiment of the present invention. As shown in FIG. 4, the processing module 34 includes an adjusting unit 42 and a searching unit 44. The processing module 34 will be described below.
调整单元42,设置为在预定条件下将调制解调器的状态调整为上电状态;查找单元44,连接至上述调整单元42,设置为利用处于上电状态下的调制解调器查找网络。The adjusting unit 42 is arranged to adjust the state of the modem to a power-on state under predetermined conditions; the searching unit 44 is connected to the above-mentioned adjusting unit 42 and is arranged to look up the network using the modem in the power-on state.
图5是根据本发明实施例的网络查找装置的优选结构框图,如图5所示,该装置除包括图3所示的所有模块外,还包括上报模块52,下面对该装置进行说明。FIG. 5 is a block diagram showing a preferred structure of a network search apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes a report module 52 in addition to all the modules shown in FIG.
上报模块52,连接至上述处理模块34,设置为在确定查找到上述网络的预定时间后,延迟上报调制解调器的网络状态信息和/或预先接收到的网络事件信息。The reporting module 52 is coupled to the processing module 34 and configured to delay reporting network status information of the modem and/or pre-received network event information after determining the predetermined time to find the network.
图6是根据本发明实施例的网络查找装置中上报模块52的结构框图,如图6所示,该上报模块52包括处理单元62和上报单元64,下面对该上报模块52进行说明。FIG. 6 is a structural block diagram of a reporting module 52 in a network search device according to an embodiment of the present invention. As shown in FIG. 6, the reporting module 52 includes a processing unit 62 and a reporting unit 64. The reporting module 52 is described below.
处理单元62,设置为对预先接收到的网络事件信息进行缓存处理,其中,该缓存处理包括以下至少之一:放弃缓存、更新缓存、全部缓存;上报单元64,连接至上述处理单元62,设置为上报调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。 The processing unit 62 is configured to perform buffer processing on the network event information received in advance, where the cache processing includes at least one of: abandoning the cache, updating the cache, and all the caches; the reporting unit 64 is connected to the processing unit 62, and is configured to To report the modem's network status information and/or cached network event information.
在一个可选的实施例中,上述预定条件包括:确定终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定终端未被锁网和确定无需输入个人识别密码PIN。In an optional embodiment, the predetermined condition includes determining that the terminal is not in the flight mode, determining that the process other than the network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required to be entered.
在一个可选的实施例中,上述的预定场景可以包括开机场景,也就是说,在终端刚开机需要查找网络的场景下执行上述的操作。上述的预定进程可以包括Phone进程,该Phone进程可以是一个具有一定独立功能的程序关于某个数据集合的一次运行活动,Phone包含通话、短信、网络服务和数据连接等集合,Phone进程就是终端系统中具有一定独立功能的程序关于通话、短信、网络服务和数据连接等基本业务的一次运行活动。In an optional embodiment, the foregoing predetermined scenario may include a booting scenario, that is, performing the foregoing operations in a scenario in which the terminal needs to find a network just after booting. The foregoing predetermined process may include a Phone process, which may be a running operation of a program with a certain independent function on a certain data set, the Phone includes a set of calls, short messages, network services, and data connections, and the Phone process is a terminal system. A program with a certain independent function for a basic operation of basic services such as calls, text messages, network services, and data connections.
下面以Android系统的终端在启动除网络查找进程外的进程的同时启动网络查找进程为例,以对本发明进行说明。The following is an example in which the terminal of the Android system starts the network search process at the same time as starting the process other than the network search process.
针对Android手机开机找网时间较长的问题,本发明实施例中提供了一种基于Android移动终端的快速找网方法,通过ril直接下发打开无线请求来触发modem快速启动找网并引入了ril的延迟上报机制保证了系统的ril主动上报事件正常运行,以达到找网流程和Phone进程并行处理大大提高了开机找网时间。In the embodiment of the present invention, a method for quickly finding a network based on an Android mobile terminal is provided, and a method for quickly finding a network by using a ril to directly trigger a modem to quickly start a network search and introduce a ril is provided. The delayed reporting mechanism ensures that the ril active reporting event of the system runs normally, so as to achieve the parallel processing of the network searching process and the Phone process, the time for booting the network is greatly improved.
相关技术中的查找网络的方案中ril创建好后不能马上发起找网,而是等Phone进程运行并连接rild后发起请求将modem置power on然后开始找网流程,大约延误数秒到十数秒。而在本发明实施例中,在ril创建并判断上次关机前没有打开飞行模式等情况后立刻将modem置power on提前开始找网,之后Phone进程运行、连接rild并触发ril将modem的网络状态和提前收到的网络事件等主动上报事件采用延时的方式通知给Phone进程,而Phone不再发起power on找网请求,这样完成整个开机快速找网流程。其中,上述的rild进程是ril的守护进程,支持和完成ril的实现,是ril的非常重要的一部分,某种意义上来讲可以等同成ril。Phone进程是Android系统应用框架层的程序用Java语言实现,rild位于应用框架层和内核之间在Phone进程的下层,用C语言写成。In the solution of finding a network in the related art, after the ril is created, the network cannot be initiated immediately, but after the Phone process runs and connects to the rild, the request is made to set the modem to power on, and then the network process is started, which is delayed by several seconds to ten seconds. In the embodiment of the present invention, after the ril is created and judged that the flight mode is not turned on before the last shutdown, the modem is set to power on to start looking for the network in advance, and then the Phone process runs, connects the rild, and triggers the network state of the modem. The active reporting event such as the network event received in advance is notified to the Phone process in a delayed manner, and the Phone no longer initiates a power on finding a network request, thus completing the entire booting and quickly finding the network process. Among them, the above rild process is the daemon of ril, support and complete the implementation of ril, is a very important part of ril, in a sense, can be equivalent to ril. The Phone process is the Android system application framework layer program is implemented in Java language, rild is located in the lower layer of the Phone process between the application framework layer and the kernel, written in C language.
图7是根据本发明实施例的快速找网流程图,如图7所示,该流程中施涉及到两个主要部分:ril自启动power on机制和ril延迟主动上报机制,图7中的ril自启动power on、modem找网、ril延迟主动上报和Phone进程起来、rild连接形成了并行的处理效果,并且ril延迟主动上报机制保证了modem网络侧的消息不丢失。FIG. 7 is a flow chart of a quick network search according to an embodiment of the present invention. As shown in FIG. 7, the process involves two main parts: a ril self-starting power on mechanism and a ril delay active reporting mechanism, ril in FIG. 7. The self-starting power on, the modem to find the network, the ril delay active reporting and the Phone process, the rild connection forms a parallel processing effect, and the ril delay active reporting mechanism ensures that the message on the modem network side is not lost.
下面对ril自启动power on机制进行说明: The following describes the ril self-starting power on mechanism:
在快速开机找网实施方法中,何时使能ril自己发起power on至关重要,这个功能可以用一个属性控制起来,默认开启,如果该属性为关闭则不实施该专利中提到的开机快速找网方案,这样可以很好的和原生Android系统融合。在ril启动后判断该属性的状态,如果为开启状态,然后判断终端当前的状态,如果满足如下三个条件则触发ril打开无线操作(power on):In the fast boot network implementation method, when to enable ril to initiate power on is very important, this function can be controlled by an attribute, which is enabled by default. If the attribute is off, the boot speed mentioned in the patent is not implemented. Find a network solution, which can be well integrated with the native Android system. After the ril is started, the status of the attribute is determined. If it is the on state, then the current status of the terminal is determined. If the following three conditions are met, the ril is triggered to turn on the wireless operation (power on):
(1)没有打开飞行模式;(1) The flight mode is not turned on;
(2)Phone进程还没有正常运作;(2) The Phone process has not yet functioned normally;
(3)手机没有被锁网也不需要输入PIN码;(3) The mobile phone is not locked and does not need to input the PIN code;
这样该power on流程和收到Phone进程发起找网的流程用锁控制起来使其不会相互影响。In this way, the power on process and the process of receiving the search process initiated by the Phone process are controlled by the lock so that they do not affect each other.
下面对ril延迟主动上报机制进行说明:The following describes the ril delay active reporting mechanism:
对于ril自行power on的方案,由于ril过早地执行了打开无线操作(此时rild可能还没有运行并初始化、phone进程也未创建完成),modem随后在执行找网流程中产生的主动上报事件(同上述的网络事件)等信息在应用侧和ril的通信建立之前如何保证不被丢失也是必须考虑的问题,在原生系统中也经常会遇到这种情况,就是rild已经起来了事件上报但框架还没有初始化完成,也就是还没有连接上rild,这时ril主动上报的事件都在rild被直接丢弃了。For ril's own power on solution, since ril prematurely performs the wireless operation (the rild may not be running and initialized, and the phone process is not created yet), the modem then performs the active reporting event generated during the network search process. (How to ensure that the information is not lost before the application side and ril communication are established before the establishment of the communication between the application side and the ril is also a problem that must be considered. This is often the case in the native system, that is, the rild has already risen and reported the event but The framework has not been initialized yet, that is, the rild has not been connected yet. At this time, the events reported by ril are directly discarded in rild.
这种情况下需要利用一个延迟上报机制,原生系统本来有这样的机制但是有很多局限性,基于此基础,对ril的延迟主动上报做了彻底的改造。在ril创建了一个全局变量用来保存需要延迟上报的事件和记录被加锁的数量,当ril的某个流程里需要屏蔽某个主动上报事件,这个事件的上报会被加进为这个主动上报事件分配的链表里,这个主动上报事件的上锁数量属性会被加1,有多少个流程需要屏蔽这个主动上报事件就会加上多少个上锁数量,直到所有加锁的流程宣称不需要加锁了,那么在Phone进程和ril实现通信后被缓存在链表里的主动上报事件会依次上报到框架,对于主动上报事件的缓存,分三种情况进行处理:In this case, a delayed reporting mechanism needs to be utilized. The native system originally had such a mechanism but has many limitations. Based on this basis, the ril delayed active reporting has been completely modified. In ril, a global variable is created to save the number of events that need to be delayed and the number of records to be locked. When a certain process of ril needs to block an active report event, the report of this event will be added to this active report. In the linked list of event allocations, the number of lockups for this active escalation event is incremented by 1. How many processes need to block the number of locks that will be added to the active escalation event until all locked processes claim no need to add Locked, then the active report event that is cached in the linked list after the Phone process and ril are communicated will be reported to the framework in turn. For the cache of the active report event, it is processed in three cases:
(1)不会上报给Phone进程的事件不作缓存、直接丢弃;(1) Events that are not reported to the Phone process are not cached and discarded directly;
(2)具有排他性冲突的上报事件排他性缓存,也就是第二个缓存的上报覆盖第一个,链表里最多只会有一个,并且总是最新状态信息的主动上报事件; (2) Exclusive cache of escalated events with exclusive conflicts, that is, the second cached report covers the first one, there is only one at most in the linked list, and the active status of the latest status information is always reported;
(3)除了上面两点外的其他主动上报事件做全部缓存;(3) In addition to the above two points, other active reporting events are fully cached;
在ril初始化是创建这个链表,并且把所有主动上报事件全部做抑制处理,在rild收到Phone进程连接指令后再把所有主动上报事件全部做解抑制处理。Initialization in ril is to create this linked list, and all the active reporting events are suppressed. After rild receives the Phone process connection command, all active reporting events are all suppressed.
通过以上ril延时主动上报机制,对于ril自行power on的方案,即使ril在rild进程起来完成初始化、phone进程尚未创建完成之前就执行了power on,期间产生的主动上报事件等信息也会在应用侧与ril建立通信之前被缓存起来不会丢失。Through the above ril delay active reporting mechanism, for ril self-power on the solution, even if ril is initialized before the rild process is completed, the phone process has not been created before the power on, the information generated during the active reporting event will also be applied. The side is cached and not lost before establishing communication with ril.
通过上述实施例中的方案,可以有效缩短开机找网时间,特别是对于SIM卡上电由power on触发的情况(因为读取卡上内容会花费较长时间)改进更为显著。并且引进的ril延迟主动上报机制确保了即使在Phone运行前就找到网,Phone也不会错过因为找到网而提前产生的诸如短消息之类的上报信息。Through the solution in the above embodiment, the time for booting the network can be effectively shortened, especially for the case where the SIM card is powered by the power on trigger (because the content on the card takes a long time), the improvement is more remarkable. And the introduction of the ril delayed active reporting mechanism ensures that even if the network is found before the Phone runs, the Phone will not miss the report information such as short messages that are generated in advance because the network is found.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,确定处于预定场景中的终端需要查找网络;S1, determining that the terminal in the predetermined scenario needs to find the network;
S2,在接收预定进程发送的查找请求之前,进行查找该网络的处理,其中,该查找请求用于查找上述网络。S2: Perform processing for searching the network before receiving the lookup request sent by the predetermined process, where the lookup request is used to find the network.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. Perform the steps shown or described, or separate them into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种网络查找方法及装置具有以下有益效果:减少找网时间,提高用户体验。 As described above, a network search method and apparatus provided by the embodiments of the present invention have the following beneficial effects: reducing network time and improving user experience.

Claims (12)

  1. 一种网络查找方法,包括:A network search method includes:
    确定处于预定场景中的终端需要查找网络;Determining that the terminal in the predetermined scenario needs to find the network;
    在接收预定进程发送的查找请求之前,进行查找所述网络的处理,其中,所述查找请求用于查找所述网络。A process of finding the network is performed before receiving a lookup request sent by a predetermined process, wherein the lookup request is used to find the network.
  2. 根据权利要求1所述的方法,其中,进行查找所述网络的处理包括:The method of claim 1 wherein the processing of finding the network comprises:
    在预定条件下将调制解调器的状态调整为上电状态;Adjusting the state of the modem to a powered state under predetermined conditions;
    利用处于上电状态下的调制解调器查找网络。Use the modem in the powered state to find the network.
  3. 根据权利要求2所述的方法,其中,在进行查找所述网络的处理之后,还包括:The method of claim 2, after performing the process of searching the network, further comprising:
    在确定查找到所述网络的预定时间后,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息。After determining the predetermined time to find the network, delay reporting network status information of the modem and/or pre-received network event information.
  4. 根据权利要求3所述的方法,其中,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息包括:The method of claim 3, wherein delaying reporting network status information of the modem and/or pre-received network event information comprises:
    对预先接收到的所述网络事件信息进行缓存处理,其中,所述缓存处理包括以下至少之一:放弃缓存、更新缓存、全部缓存;Cache processing the network event information received in advance, where the cache processing includes at least one of: abandoning the cache, updating the cache, and all the caches;
    上报所述调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。The network status information of the modem and/or the cached network event information are reported.
  5. 根据权利要求2所述的方法,其中,所述预定条件包括:The method of claim 2 wherein said predetermined condition comprises:
    确定所述终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定所述终端未被锁网和确定无需输入个人识别密码PIN。Determining that the terminal is not in the flight mode, determining that the process other than the network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required.
  6. 根据权利要求1至5中任一项所述的方法,其中,The method according to any one of claims 1 to 5, wherein
    所述预定场景包括开机场景;和/或,The predetermined scenario includes a boot scenario; and/or,
    所述预定进程包括Phone进程。The predetermined process includes a Phone process.
  7. 一种网络查找装置,包括:A network search device includes:
    确定模块,设置为确定处于预定场景中的终端需要查找网络; Determining a module, setting to determine that a terminal in a predetermined scenario needs to find a network;
    处理模块,设置为在接收预定进程发送的查找请求之前,进行查找所述网络的处理,其中,所述查找请求用于查找所述网络。The processing module is configured to perform processing for finding the network before receiving the lookup request sent by the predetermined process, wherein the lookup request is used to find the network.
  8. 根据权利要求7所述的装置,其中,所述处理模块包括:The apparatus of claim 7 wherein said processing module comprises:
    调整单元,设置为在预定条件下将调制解调器的状态调整为上电状态;Adjusting unit, configured to adjust the state of the modem to a power-on state under predetermined conditions;
    查找单元,设置为利用处于上电状态下的调制解调器查找网络。A lookup unit, set to look up the network with a modem in a powered state.
  9. 根据权利要求8所述的装置,其中,还包括:The apparatus of claim 8 further comprising:
    上报模块,设置为在确定查找到所述网络的预定时间后,延迟上报所述调制解调器的网络状态信息和/或预先接收到的网络事件信息。The reporting module is configured to delay reporting network status information of the modem and/or pre-received network event information after determining a predetermined time to find the network.
  10. 根据权利要求9所述的装置,其中,所述上报模块包括:The apparatus of claim 9, wherein the reporting module comprises:
    处理单元,设置为对预先接收到的所述网络事件信息进行缓存处理,其中,所述缓存处理包括以下至少之一:放弃缓存、更新缓存、全部缓存;The processing unit is configured to perform buffer processing on the network event information received in advance, where the cache processing includes at least one of: abandoning the cache, updating the cache, and all the caches;
    上报单元,设置为上报所述调制解调器的网络状态信息和/或经过缓存处理后的网络事件信息。The reporting unit is configured to report network status information of the modem and/or network event information after being cached.
  11. 根据权利要求8所述的装置,其中,所述预定条件包括:The apparatus of claim 8 wherein said predetermined condition comprises:
    确定所述终端未处于飞行模式、确定除网络查找事件外的进程未完成、确定所述终端未被锁网和确定无需输入个人识别密码PIN。Determining that the terminal is not in the flight mode, determining that the process other than the network lookup event is not completed, determining that the terminal is not locked, and determining that the personal identification password PIN is not required.
  12. 根据权利要求7至11中任一项所述的装置,其中,The apparatus according to any one of claims 7 to 11, wherein
    所述预定场景包括开机场景;和/或,The predetermined scenario includes a boot scenario; and/or,
    所述预定进程包括Phone进程。 The predetermined process includes a Phone process.
PCT/CN2015/084268 2015-04-27 2015-07-16 Network search method and device WO2016173122A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510205901.9 2015-04-27
CN201510205901.9A CN106162821A (en) 2015-04-27 2015-04-27 NetFind method and device

Publications (1)

Publication Number Publication Date
WO2016173122A1 true WO2016173122A1 (en) 2016-11-03

Family

ID=57198889

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084268 WO2016173122A1 (en) 2015-04-27 2015-07-16 Network search method and device

Country Status (2)

Country Link
CN (1) CN106162821A (en)
WO (1) WO2016173122A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002878A (en) * 2022-06-02 2022-09-02 青岛海信移动通信技术股份有限公司 Method, device and equipment for locking network system and frequency band

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540977B (en) * 2018-03-19 2022-02-18 深圳市万普拉斯科技有限公司 Network information synchronization control method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101657005A (en) * 2009-09-04 2010-02-24 深圳华为通信技术有限公司 Method for accessing terminal to network and terminal
CN101932079A (en) * 2010-09-10 2010-12-29 中兴通讯股份有限公司 Public land mobile communication network selection method and device
WO2012048556A1 (en) * 2010-10-13 2012-04-19 中兴通讯股份有限公司 Method and mobile communication terminal for accelerating cell search
CN103249117A (en) * 2013-04-22 2013-08-14 青岛海信移动通信技术股份有限公司 Frequency sweep information reporting method and user terminal
CN103596246A (en) * 2013-11-11 2014-02-19 华为终端有限公司 Method and terminal for recovering data service
CN103906181A (en) * 2012-12-28 2014-07-02 上海摩波彼克半导体有限公司 Frequency band scanning method and device and network selection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101657005A (en) * 2009-09-04 2010-02-24 深圳华为通信技术有限公司 Method for accessing terminal to network and terminal
CN101932079A (en) * 2010-09-10 2010-12-29 中兴通讯股份有限公司 Public land mobile communication network selection method and device
WO2012048556A1 (en) * 2010-10-13 2012-04-19 中兴通讯股份有限公司 Method and mobile communication terminal for accelerating cell search
CN103906181A (en) * 2012-12-28 2014-07-02 上海摩波彼克半导体有限公司 Frequency band scanning method and device and network selection method
CN103249117A (en) * 2013-04-22 2013-08-14 青岛海信移动通信技术股份有限公司 Frequency sweep information reporting method and user terminal
CN103596246A (en) * 2013-11-11 2014-02-19 华为终端有限公司 Method and terminal for recovering data service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002878A (en) * 2022-06-02 2022-09-02 青岛海信移动通信技术股份有限公司 Method, device and equipment for locking network system and frequency band

Also Published As

Publication number Publication date
CN106162821A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US11847470B2 (en) Request processing method, system on chip, and public cloud management component
US10694353B2 (en) Updating web resources
CN107329741B (en) Software distributed upgrading method and device based on fingerprint identification
WO2017088703A1 (en) Page jumping method and apparatus
CN112118565A (en) Multi-tenant service gray level publishing method and device, computer equipment and storage medium
US20240064058A1 (en) Implementation of compliance settings by a mobile device for compliance with a configuration scenario
US11245725B2 (en) Dynamically updating policy controls for mobile devices and applications
US10191732B2 (en) Systems and methods for preventing service disruption during software updates
US10810084B2 (en) Update failure rebooting and recovery for a smart device
US11671379B1 (en) System and method for subscription management using dynamically composed management entities
AU2018342367B2 (en) Method of connecting profile content management platform, terminal and server
CN108958807B (en) Terminal system starting method and terminal
WO2019201248A1 (en) Re-bootstrap method and device in lightweight machine to machine system
WO2016173122A1 (en) Network search method and device
US10223092B2 (en) Capturing and deploying applications using maximal and minimal sets
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
US9398444B2 (en) Computer-readable recording medium, mobile device, and wireless communication system
CN106293790B (en) application program upgrading method and device based on Firefox operating system
WO2016074460A1 (en) Data processing method and device
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
WO2022262444A1 (en) File management method and apparatus, and electronic device and readable storage medium
US20210216297A1 (en) Application Software Installation Method, Device, and Server
KR101638689B1 (en) System and method for providing client terminal to user customized synchronization service
US9069639B2 (en) Managing a user proxy configuration in a daemon that frequently loads and unloads
US20230239199A1 (en) Configuration techniques for managed host operating systems and containerized applications instantiated thereby

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: 15890501

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: 15890501

Country of ref document: EP

Kind code of ref document: A1