








技术领域technical field
本公开涉及电子通信技术领域,尤其涉及位置更新方法及设备。The present disclosure relates to the field of electronic communication technologies, and in particular, to a location update method and device.
背景技术Background technique
随着通信技术的发展,用户生活中对终端设备的使用越来越频繁,例如智能手机、平板电脑、智能手表等。终端设备通过向基站发送消息而入驻小区,从而获得通信服务。但是,在有些应用场景中,终端设备所处的环境网络信号太差,终端设备向基站发送消息失败,如果失败次数达到一定次数,就会启动周期性位置更新定时器,例如T3212,此时,位置区域码(Location Area Code,LAC)如果没有发生变化,即终端设备所处的位置区域没有变化,就不会触发位置更新,必须等待周期性位置更新定时器所设定的时间结束后才能继续向基站发送消息入驻小区。一个位置区域所对应的网络覆盖范围通常比较大,而周期性位置更新定时器所设定的时间长度一般比较长,这会导致终端设备在很长的一段时间内处于无服务(英文:Out of Service)状态,而用户可能只是在网络信号差的地方待了很短的时间,当用户回到网络信号较强的地方时,终端设备依旧无服务,这给用户使用带来了极大不便。With the development of communication technology, users use terminal devices more and more frequently in their lives, such as smart phones, tablet computers, smart watches, and so on. The terminal equipment enters the cell by sending a message to the base station, so as to obtain the communication service. However, in some application scenarios, the network signal in the environment where the terminal device is located is too poor, and the terminal device fails to send a message to the base station. If the number of failures reaches a certain number of times, a periodic location update timer, such as T3212, will be started. If the location area code (LAC) does not change, that is, the location area where the terminal device is located does not change, the location update will not be triggered, and it must wait for the time set by the periodic location update timer to expire before continuing. Send a message to the base station to enter the cell. The network coverage corresponding to a location area is usually relatively large, and the time length set by the periodic location update timer is generally relatively long, which will cause the terminal device to be out of service for a long period of time. Service) state, and the user may only stay in a place with poor network signal for a short time, when the user returns to a place with strong network signal, the terminal device still has no service, which brings great inconvenience to the user.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供一种位置更新方法及设备。所述技术方案如下:Embodiments of the present disclosure provide a method and device for updating a location. The technical solution is as follows:
根据本公开实施例的第一方面,提供一种位置更新方法,应用于终端设备,该方法包括:According to a first aspect of the embodiments of the present disclosure, a method for updating a location is provided, which is applied to a terminal device, and the method includes:
在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;When the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, determining the location of the terminal device as the initial location;
到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;When the set detection time is reached, the current location of the terminal device is detected, and the time period between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer;
在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。When the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold, a cell camping request is sent.
在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,代表终端设备在周期性位置更新定时器所设定的时间段内不会再进行小区入驻,会一直处于无服务状态,此时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, it means that the terminal device will no longer perform cell entry within the time period set by the periodic location update timer, and will always be in an out-of-service state. At this time, if a change in the location of the terminal device is detected, an attempt to make a cell entry request can be made again, so as to prevent the terminal device from moving to an area with strong network signals, but still unable to perform due to the time set by the periodic location update timer When the cell is settled, the service cannot be provided to the user, which improves the user experience.
在一个实施例中,检测终端设备的当前位置之前,该方法还包括:In one embodiment, before detecting the current location of the terminal device, the method further includes:
启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;After the periodic location update timer is started, according to the set detection period, it is periodically determined that the set detection time is reached, and the detection period is less than the period of the periodic location update timer;
或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。Or, according to the set timeout period, when it is determined that the set timeout period is reached after the periodic location update timer is started, it is determined that the set detection time is reached.
在周期性位置更新定时器所设定的时间段内周期性检测终端设备的位置,不会持续检测,减少了终端设备的耗电量,同时,也可以及时对终端设备的位置进行更新。The location of the terminal device is periodically detected within the time period set by the periodic location update timer, and the detection is not continued, which reduces the power consumption of the terminal device, and at the same time, the location of the terminal device can be updated in time.
在一个实施例中,检测终端设备的当前位置,包括:In one embodiment, detecting the current location of the terminal device includes:
利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。Use GPS, barometer or gyroscope to detect the current location of the terminal device.
全球定位系统或者气压计等,可以对终端设备的位置检测更为精准,终端设备在一个小区内由信号较弱的地方移动到信号较强的地方,或者,终端设备在一个区域内由信号较弱的地方移动到信号较强的地方,都可以因为终端设备位置的移动进行小区入驻的尝试,减少终端设备无服务状态的时间。The global positioning system or barometer can detect the location of the terminal device more accurately. The terminal device moves from a place with weak signal to a place with strong signal in a cell, or, in an area, the terminal device has a stronger signal. When a weak place moves to a place with a strong signal, an attempt to settle in a cell can be performed due to the movement of the terminal equipment position, thereby reducing the time when the terminal equipment is out of service.
在一个实施例中,确定终端设备的位置作为初始位置之前,该方法还包括:In one embodiment, before determining the location of the terminal device as the initial location, the method further includes:
发送小区入驻请求;Send a cell entry request;
在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。When the number of failures to camp on the cell reaches a preset number of times, a periodic location update timer is started.
在小区入驻失败的次数达到预设次数时,说明终端设备位于信号较弱的地方的时间可能比较久,此时如果继续进行小区入驻的尝试,会增加终端设备的耗电量,而且很可能小区入驻依旧失败,因此,启动周期性位置更新定时器,在周期性位置更新定时器所设定的时间段内不再进行小区入驻,减少终端设备耗电量。When the number of failures to enter the cell reaches the preset number, it means that the terminal equipment may have been located in a place with weak signals for a long time. The camping still fails. Therefore, a periodic location update timer is started, and no cell camping is performed within the time period set by the periodic location update timer, thereby reducing the power consumption of the terminal equipment.
在一个实施例中,发送小区入驻请求之前,该方法还包括:In one embodiment, before sending the cell camping request, the method further includes:
接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。A system message is received, where the system message includes the Internet Protocol IP address of the device on the network side.
终端设备接收系统消息可以获取网络侧设备的相关信息,以便进行小区入驻。The terminal device can obtain the relevant information of the network side device by receiving the system message, so as to perform cell camping.
根据本公开实施例的第二方面,提供一终端设备,包括:第一检测模块、第二检测模块、第一发送模块;According to a second aspect of the embodiments of the present disclosure, a terminal device is provided, including: a first detection module, a second detection module, and a first transmission module;
第一检测模块,用于在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;a first detection module, configured to determine the location of the terminal device as the initial location when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state;
第二检测模块,用于到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;The second detection module is used to detect the current position of the terminal device when the preset detection time is reached, and the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer;
第一发送模块,用于在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。The first sending module is configured to send a cell entry request when the distance between the current position of the terminal device and the initial position of the terminal device is greater than or equal to a preset threshold.
在一个实施例中,终端设备还包括时间管理模块;In one embodiment, the terminal device further includes a time management module;
时间管理模块,用于启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。The time management module is used to periodically determine the arrival of the set detection time according to the set detection period after starting the periodic location update timer, and the detection period is smaller than the period of the periodic location update timer; or, according to the set detection period Timeout duration, when it is determined that the set timeout duration is reached after the periodic location update timer is started, it is determined that the set detection time is reached.
在一个实施例中,第二检测模块,利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。In one embodiment, the second detection module detects the current position of the terminal device by using a global positioning system GPS, a barometer or a gyroscope.
在一个实施例中,终端设备还包括第二发送模块和定时模块;In one embodiment, the terminal device further includes a second sending module and a timing module;
第二发送模块,用于发送小区入驻请求;a second sending module, configured to send a cell entry request;
定时模块,用于在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。The timing module is used to start a periodic location update timer when the number of times of failure to settle in the cell reaches a preset number of times.
在一个实施例中,终端设备还包括接收模块;In one embodiment, the terminal device further includes a receiving module;
接收模块,用于接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。The receiving module is used for receiving system messages, where the system messages include the Internet Protocol IP address of the network side device.
根据本公开实施例的第三方面,提供一终端设备,包括:According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,处理器被配置为:where the processor is configured as:
在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;When the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, determining the location of the terminal device as the initial location;
到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;When the set detection time is reached, the current location of the terminal device is detected, and the time period between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer;
在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。When the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold, a cell camping request is sent.
在一个实施例中,处理器还可以被配置为:In one embodiment, the processor may also be configured to:
启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;After the periodic location update timer is started, according to the set detection period, it is periodically determined that the set detection time is reached, and the detection period is less than the period of the periodic location update timer;
或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。Or, according to the set timeout period, when it is determined that the set timeout period is reached after the periodic location update timer is started, it is determined that the set detection time is reached.
在一个实施例中,处理器还可以被配置为:In one embodiment, the processor may also be configured to:
利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。Use GPS, barometer or gyroscope to detect the current location of the terminal device.
在一个实施例中,处理器还可以被配置为:In one embodiment, the processor may also be configured to:
发送小区入驻请求;Send a cell entry request;
在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。When the number of failures to camp on the cell reaches a preset number of times, a periodic location update timer is started.
在一个实施例中,处理器还可以被配置为:In one embodiment, the processor may also be configured to:
接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。A system message is received, where the system message includes the Internet Protocol IP address of the device on the network side.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种无线通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a wireless communication system according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种位置更新方法的流程图;FIG. 2 is a flowchart of a method for updating a location according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种位置更新方法的交互图;3 is an interaction diagram of a method for updating a location according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种终端设备的框图;4 is a block diagram of a terminal device according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种终端设备的框图;5 is a block diagram of a terminal device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种终端设备的框图;6 is a block diagram of a terminal device according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种终端设备的框图;FIG. 7 is a block diagram of a terminal device according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种终端设备的框图;FIG. 8 is a block diagram of a terminal device according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种终端设备的框图。Fig. 9 is a block diagram of a terminal device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的设备和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
在通信系统中,如图1所示,图1是根据一示例性实施例示出的一种无线通信系统的结构示意图,将通信系统的网络覆盖区域分为多个区域,每个区域有一个位置区域码(Location Area Code,LAC),一个区域内设置有多个基站,每个基站的网络覆盖区域可以包括一个或多个小区(英文:Cell)。In a communication system, as shown in FIG. 1 , which is a schematic structural diagram of a wireless communication system according to an exemplary embodiment, the network coverage area of the communication system is divided into multiple areas, and each area has a location Area code (Location Area Code, LAC), multiple base stations are set in an area, and the network coverage area of each base station may include one or more cells (English: Cell).
在一个应用场景中,用户在使用终端设备时终端设备会接收到当前所在的小区所属的基站广播发送的系统消息,该系统消息包括基站的互联网协议(英文:InternetProtocol)地址,还包括周期性位置更新定时器所设定的时间长度和小区入驻次数的阈值。终端设备接收到系统消息后,根据基站的IP地址向基站发送小区入驻请求,小区入驻请求可以是位置更新(英文:Location Update,LU)消息,如果基站接收到终端设备发送的小区入驻请求,则证明该终端设备在该基站的小区内,基站会向终端设备发送确认消息,终端设备接收到确认消息后就表示终端设备小区入驻成功,可以向用户提供各种服务。In an application scenario, when a user uses a terminal device, the terminal device will receive a system message broadcast and sent by the base station to which the current cell belongs. The system message includes the Internet Protocol (English: Internet Protocol) address of the base station and the periodic location. Update the time length set by the timer and the threshold of the number of times of cell entry. After receiving the system message, the terminal device sends a cell entry request to the base station according to the IP address of the base station. The cell entry request may be a location update (English: Location Update, LU) message. If the base station receives the cell entry request sent by the terminal device, then Prove that the terminal device is in the cell of the base station, and the base station will send a confirmation message to the terminal device. After the terminal device receives the confirmation message, it means that the terminal device has successfully entered the cell and can provide various services to the user.
在另一个应用场景中,如果终端设备移动到信号较弱的区域,因为基站发射功率较大,终端设备依旧可以接收到基站广播发送的系统消息,但是,终端设备功率较小,向基站发送小区入驻请求后,基站很可能接收不到,如果终端设备发送多次小区入驻请求都失败,在小区入驻失败的次数达到系统消息中所指示的小区入驻次数的阈值时,就会启动周期性位置更新定时器,在周期性位置更新定时器所设定的时间段内,不再尝试小区入驻,因为多次小区入驻失败,表示终端设备很可能在较长时间处于信号弱的区域,因此,不再尝试小区入驻,可以减少终端设备的耗电量。但是,周期性位置更新定时器所设定的时间段可能比较长,例如,可能是10分钟、30分钟、1个小时等,在这期间,如果终端设备所在的区域没有发生变化,即LAC没有变,则不会发起小区入驻请求,但是,如果终端设备在一个区域内,由信号弱的地方移动到了信号强的地方,依旧无法发起小区入驻请求,必须等到周期性位置更新定时器所设定的时间段结束才能继续进行小区入驻,连接网络。这导致终端设备较长时间都无法入驻小区,处于无服务(英文:Out of Service)状态,给用户使用带来不便。In another application scenario, if the terminal device moves to an area with weaker signals, the terminal device can still receive the system messages broadcast and sent by the base station because the base station transmits power. After the check-in request, the base station may not receive it. If the terminal device fails to send multiple cell check-in requests, the periodic location update will be started when the number of cell check-in failures reaches the threshold of the number of cell check-in times indicated in the system message. The timer, within the time period set by the periodic location update timer, will no longer attempt to enter the cell. Because the cell entry fails for many times, it means that the terminal device is likely to be in a weak signal area for a long time. Therefore, no longer Trying to enter a cell can reduce the power consumption of the terminal device. However, the time period set by the periodic location update timer may be relatively long, for example, it may be 10 minutes, 30 minutes, 1 hour, etc. During this period, if the area where the terminal device is located does not change, that is, the LAC does not However, if the terminal device moves from a weak signal to a strong signal in an area, it still cannot initiate a cell registration request, and must wait until the periodic location update timer is set. After the time period expires, the cell can continue to settle in and connect to the network. As a result, the terminal device cannot enter the cell for a long time, and is in an Out of Service (English: Out of Service) state, which brings inconvenience to the user.
终端设备可以是智能手机、平板电脑、智能手表等,以终端设备是智能手机为例,例如,用户在地下车库,智能手机信号较弱,启动了周期性位置更新定时器,但用户从地下车库出来后,智能手机已经可以接入网络,因为周期性位置更新定时器所设定的时间没有结束,就无法进行小区入驻,依旧处于无服务状态;又如,用户乘坐电梯时,智能手机因为信号弱可能启动周期性位置更新定时器,但用户从电梯中出来后,智能手机依旧在较长一段时间内处于无服务状态,这给用户使用带来了极大不便。The terminal device can be a smartphone, tablet computer, smart watch, etc. Taking the terminal device as an example of a smartphone, for example, the user is in an underground garage, the smartphone signal is weak, and the periodic location update timer is started, but the user is in the underground garage. After coming out, the smart phone can already access the network. Because the time set by the periodic location update timer has not expired, the cell cannot be settled, and it is still in an out-of-service state; another example, when the user takes the elevator, the smart phone Weak may start the periodic location update timer, but after the user gets out of the elevator, the smartphone is still out of service for a long time, which brings great inconvenience to the user.
本公开实施例提供的技术方案,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。According to the technical solutions provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the current state of the terminal device is detected. Location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold When , a cell camping request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, services cannot be provided to users, and user experience is improved.
图2是根据一示例性实施例示出的一种位置更新方法的流程图,如图2所示,该位置更新方法包括步骤201-203:Fig. 2 is a flowchart of a method for updating a location according to an exemplary embodiment. As shown in Fig. 2, the method for updating a location includes steps 201-203:
在步骤201中,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置。In
确定终端设备的位置可以通过全球定位系统(英文:Global PositioningSystem,GPS),气压计或者陀螺仪等其他传感器进行检测。The location of the terminal device can be determined by using a global positioning system (English: Global Positioning System, GPS), a barometer or a gyroscope and other sensors for detection.
在步骤202中,到达设定的检测时刻时,检测终端设备的当前位置。In
检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期。The time period between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer.
在一个实施例中,检测终端设备的当前位置之前,该方法还包括:In one embodiment, before detecting the current location of the terminal device, the method further includes:
启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;After the periodic location update timer is started, according to the set detection period, it is periodically determined that the set detection time is reached, and the detection period is less than the period of the periodic location update timer;
或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。在周期性位置更新定时器所设定的时间段内周期性检测终端设备的位置,不会持续检测,减少了终端设备的耗电量,同时,也可以及时对终端设备的位置进行更新。例如,每隔1分钟检测一次终端设备的当前位置,或者,每隔5分钟检测一次终端设备的当前位置,当然,此处只是举例说明,并不代表本公开局限于此。Or, according to the set timeout period, when it is determined that the set timeout period is reached after the periodic location update timer is started, it is determined that the set detection time is reached. The location of the terminal device is periodically detected within the time period set by the periodic location update timer, and the detection is not continued, which reduces the power consumption of the terminal device, and at the same time, the location of the terminal device can be updated in time. For example, the current location of the terminal device is detected every 1 minute, or the current location of the terminal device is detected every 5 minutes. Of course, this is just an example, which does not mean that the present disclosure is limited thereto.
在一个实施例中,检测终端设备的当前位置,包括:利用GPS、气压计或者陀螺仪检测终端设备的当前位置。GPS、气压计或者陀螺仪等,可以对终端设备的位置检测更为精准,终端设备在一个小区内由信号较弱的地方移动到信号较强的地方,或者,终端设备在一个区域内由信号较弱的地方移动到信号较强的地方,都可以因为终端设备位置的移动进行小区入驻的尝试,减少终端设备无服务状态的时间。In one embodiment, detecting the current location of the terminal device includes: detecting the current location of the terminal device using GPS, a barometer or a gyroscope. GPS, barometer or gyroscope, etc., can detect the position of the terminal device more accurately. The terminal device moves from a place with weak signal to a place with strong signal in a cell, or the terminal device is in an area by the signal When moving from a weaker place to a place with a stronger signal, it is possible to try to settle in a cell due to the movement of the terminal equipment position, thereby reducing the time when the terminal equipment is out of service.
GPS可以检测终端设备在平行于地面水平移动的距离,气压计可以检测终端设备垂直于地面高度的变化,当然,此处只是举例说明,检测终端设备的位置也可以通过其他方式进行检测。GPS can detect the distance that the terminal device moves horizontally parallel to the ground, and the barometer can detect changes in the height of the terminal device perpendicular to the ground. Of course, this is just an example, and the position of the terminal device can also be detected in other ways.
在步骤203中,在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。In
在一个实施例中,发送小区入驻请求之前,该方法还包括:接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。网络侧设备可以是基站,终端设备接收系统消息可以获取网络侧设备的相关信息,以便进行小区入驻。In one embodiment, before sending the cell camping request, the method further includes: receiving a system message, where the system message includes the Internet Protocol IP address of the network side device. The network-side device may be a base station, and the terminal device may obtain relevant information of the network-side device by receiving the system message, so as to perform cell entry.
小区入驻请求可以是LU消息,包含终端设备的相关信息,如终端设备的IP地址,国际移动用户识别码(英文:International Mobile Subscriber Identification Number,IMSI)等。The cell camping request may be an LU message, which includes relevant information of the terminal device, such as the IP address of the terminal device, an International Mobile Subscriber Identification Number (English: International Mobile Subscriber Identification Number, IMSI) and the like.
本公开实施例提供的位置更新方法,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。In the location update method provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the location of the terminal device is detected. For the current location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to the preset When the threshold is reached, a cell entry request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, services cannot be provided to users, and user experience is improved.
基于上述图2对应的实施例提供的位置更新方法,图3是根据一示例性实施例示出的一种位置更新方法的交互图,图3中,以第一基站、第二基站和终端设备之间的交互为例进行说明,参照图3所示,本实施例提供的位置更新方法包括步骤301-307:Based on the location update method provided by the above-mentioned embodiment corresponding to FIG. 2, FIG. 3 is an interaction diagram of a location update method according to an exemplary embodiment. In FIG. 3, the first base station, the second base station and the terminal device The interaction between them is described as an example. Referring to FIG. 3 , the location update method provided in this embodiment includes steps 301-307:
在步骤301中,第一基站广播发送第一系统消息。In step 301, the first base station broadcasts and sends the first system message.
第一系统消息可以包括第一基站的周期性位置更新定时器所设定的时间及小区入驻次数的阈值,小区入驻次数的阈值是预设次数,第一系统消息还可以包括第一基站的IP地址和IMSI等信息。The first system message may include the time set by the periodic location update timer of the first base station and the threshold of the number of times of cell entry, and the threshold of the number of times of cell entry is a preset number of times, and the first system message may also include the IP address of the first base station. Information such as address and IMSI.
在步骤302中,终端设备接收第一系统消息后,向第一基站发送小区入驻请求。In step 302, after receiving the first system message, the terminal device sends a cell registration request to the first base station.
在步骤303中,在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。In step 303, a periodic location update timer is started when the number of times that the cell fails to camp on reaches a preset number of times.
在小区入驻失败的次数达到预设次数时,说明终端设备位于信号较弱的地方的时间可能比较久,此时如果继续进行小区入驻的尝试,会增加终端设备的耗电量,而且很可能小区入驻依旧失败,因此,启动周期性位置更新定时器,在周期性位置更新定时器所设定的时间段内不再进行小区入驻,减少终端设备耗电量。When the number of failures to enter the cell reaches the preset number, it means that the terminal equipment may have been located in a place with weak signals for a long time. The camping still fails. Therefore, a periodic location update timer is started, and no cell camping is performed within the time period set by the periodic location update timer, thereby reducing the power consumption of the terminal equipment.
在步骤304中,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,终端设备检测自身的位置作为初始位置。In step 304, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the terminal device detects its own location as an initial location.
在步骤305中,到达设定的检测时刻时,检测终端设备的当前位置。In step 305, when the set detection time is reached, the current position of the terminal device is detected.
在步骤306中,第二基站广播发送第二系统消息。In step 306, the second base station broadcasts the second system message.
第二系统消息可以包括第二基站的周期性位置更新定时器所设定的时间及小区入驻次数的阈值,小区入驻次数的阈值是预设次数,第二系统消息还可以包括第二基站的IP地址和IMSI等信息。The second system message may include the time set by the periodic location update timer of the second base station and the threshold of the number of times of cell entry, which is a preset number of times, and the second system message may also include the IP address of the second base station Information such as address and IMSI.
需要说明的是,在步骤301和步骤306中,终端设备所接收的系统消息都是终端设备所在的小区所属的基站发送的系统消息;如果终端设备在步骤301中位于第一基站的小区,则接收第一系统消息,之后移动到了第二基站的小区,则在步骤306中会接收到第二系统消息;或者,如果终端设备在步骤301与步骤306之间位于同一个小区,则第一基站和第二基站是同一个基站,第一系统消息和第二系统消息也可以相同。It should be noted that, in steps 301 and 306, the system messages received by the terminal device are all system messages sent by the base station to which the cell where the terminal device belongs; if the terminal device is located in the cell of the first base station in step 301, then After receiving the first system message, and then moving to the cell of the second base station, the second system message will be received in step 306; or, if the terminal device is located in the same cell between steps 301 and 306, the first base station Being the same base station as the second base station, the first system message and the second system message may also be the same.
在步骤307中,终端设备接收到第二系统消息后,在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,向第二基站发送小区入驻请求。In step 307, after the terminal device receives the second system message, when the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold, it sends a cell camping request to the second base station.
本公开实施例提供的位置更新方法,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。In the location update method provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the location of the terminal device is detected. For the current location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to the preset When the threshold is reached, a cell entry request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, services cannot be provided to users, and user experience is improved.
下述为本公开设备实施例,可以用于执行本公开方法实施例。The following device embodiments of the present disclosure can be used to execute the method embodiments of the present disclosure.
图4是根据一示例性实施例示出的一终端设备的框图,该设备可以通过软件、硬件或者两者的结合实现成为新消息提示设备的部分或者全部,该终端设备用于执行上述图2和图3对应的实施例中所描述的位置更新方法。如图4所示,该终端设备40包括:第一检测模块401、第二检测模块402、第一发送模块403;Fig. 4 is a block diagram of a terminal device according to an exemplary embodiment, the device can be implemented as part or all of a new message prompting device through software, hardware or a combination of the two, the terminal device is used to execute the above-mentioned Fig. 2 and The location update method described in the embodiment corresponding to FIG. 3 . As shown in FIG. 4 , the
其中,第一检测模块401,用于在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;Wherein, the
第二检测模块402,用于到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;The
第一发送模块403,用于在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。The
在一个实施例中,如图5所示,终端设备40还包括时间管理模块404;In one embodiment, as shown in FIG. 5 , the
时间管理模块404,用于启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。The
在一个实施例中,第二检测模块402,利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。In one embodiment, the
在一个实施例中,如图6所示,终端设备40还包括第二发送模块405和定时模块406;In one embodiment, as shown in FIG. 6 , the
第二发送模块405,用于发送小区入驻请求;a
定时模块406,用于在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。The
在一个实施例中,如图7所示,终端设备40还包括接收模块407;In one embodiment, as shown in FIG. 7 , the
接收模块407,用于接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。The receiving
本公开实施例提供的终端设备,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。In the terminal device provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the current state of the terminal device is detected. Location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold When , a cell camping request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, services cannot be provided to users, and user experience is improved.
图8是根据一示例性实施例示出的一种终端设备的框图,该设备可以通过软件、硬件或者两者的结合实现成为新消息提示设备的部分或者全部,该终端设备用于执行上述图2和图3对应的实施例中所描述的位置更新方法。如图8所示,该终端设备80包括:FIG. 8 is a block diagram of a terminal device according to an exemplary embodiment. The device can be implemented as part or all of a new message prompting device through software, hardware, or a combination of the two. The terminal device is used to execute the above-mentioned FIG. 2 The location update method described in the embodiment corresponding to FIG. 3 . As shown in Figure 8, the
处理器801;
用于存储处理器801可执行指令的存储器802;
其中,处理器801被配置为:Wherein, the
在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;When the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, determining the location of the terminal device as the initial location;
到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;When the set detection time is reached, the current location of the terminal device is detected, and the time period between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer;
在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。When the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold, a cell camping request is sent.
在一个实施例中,处理器801还可以被配置为:In one embodiment, the
启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;After the periodic location update timer is started, according to the set detection period, it is periodically determined that the set detection time is reached, and the detection period is less than the period of the periodic location update timer;
或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。Or, according to the set timeout period, when it is determined that the set timeout period is reached after the periodic location update timer is started, it is determined that the set detection time is reached.
在一个实施例中,处理器801还可以被配置为:In one embodiment, the
利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。Use GPS, barometer or gyroscope to detect the current location of the terminal device.
在一个实施例中,处理器801还可以被配置为:In one embodiment, the
发送小区入驻请求;Send a cell entry request;
在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。When the number of failures to camp on the cell reaches a preset number of times, a periodic location update timer is started.
在一个实施例中,处理器801还可以被配置为:In one embodiment, the
接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。A system message is received, where the system message includes the Internet Protocol IP address of the device on the network side.
本公开实施例提供的终端设备,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。In the terminal device provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the current state of the terminal device is detected. Location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold When , a cell camping request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, and services cannot be provided to users, which improves user experience.
图9是根据一示例性实施例示出的一种终端设备的框图,该终端设备90可以是智能手机、平板电脑等,该终端设备90用于执行上述图2和图3对应的实施例中所描述的位置更新方法。FIG. 9 is a block diagram of a terminal device according to an exemplary embodiment. The
终端设备90可以包括以下一个或多个组件:处理组件901,存储器902,电源组件903,多媒体组件904,音频组件905,输入/输出(I/O)的接口906,传感器组件907,以及通信组件908。
处理组件901通常控制终端设备90的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件901可以包括一个或多个处理器9011来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件901可以包括一个或多个模块,便于处理组件901和其他组件之间的交互。例如,处理组件901可以包括多媒体模块,以方便多媒体组件904和处理组件901之间的交互。The
存储器902被配置为存储各种类型的数据以支持在终端设备90的操作。这些数据的示例包括用于在终端设备90上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器902可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(英文:Static Random Access Memory,SRAM),电可擦除可编程只读存储器(英文:Electrically Erasable Programmable Read OnlyMemory,EEPROM),可擦除可编程只读存储器(英文:Erasable Programmable Read OnlyMemory,EPROM),可编程只读存储器(英文:Programmable Read Only Memory,PROM),只读存储器(英文:Read Only Memory,ROM),磁存储器,快闪存储器,磁盘或光盘。The
电源组件903为终端设备90的各种组件提供电力。电源组件903可以包括电源管理系统,一个或多个电源,及其他与为终端设备90生成、管理和分配电力相关联的组件。
多媒体组件904包括在终端设备90和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(英文:Liquid Crystal Display,LCD)和触摸面板(英文:Touch Panel,TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件904包括一个前置摄像头和/或后置摄像头。当终端设备90处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The
音频组件905被配置为输出和/或输入音频信号。例如,音频组件905包括一个麦克风(英文:Microphone,MIC),当终端设备90处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器902或经由通信组件908发送。在一些实施例中,音频组件905还包括一个扬声器,用于输出音频信号。
I/O接口906为处理组件901和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件907包括一个或多个传感器,用于为终端设备90提供各个方面的状态评估。例如,传感器组件907可以检测到终端设备90的打开/关闭状态,组件的相对定位,例如所述组件为终端设备90的显示器和小键盘,传感器组件907还可以检测终端设备90或终端设备90一个组件的位置改变,用户与终端设备90接触的存在或不存在,终端设备90方位或加速/减速和终端设备90的温度变化。传感器组件907可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件907还可以包括光传感器,如互补金属氧化物半导体(英文:Complementary Metal Oxide Semiconductor,CMOS)或电荷耦合元件(英文:Charge Coupled Device,CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件907还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The
通信组件908被配置为便于终端设备90和其他设备之间有线或无线方式的通信。终端设备90可以接入基于通信标准的无线网络,如无线保真(英文:Wireless-Fidelity,WiFi),2G或3G,或它们的组合。在一个示例性实施例中,通信组件908经由广播信道接收来自外部广播管理系统的广播信号或广播相关消息。在一个示例性实施例中,通信组件908还包括近场通信(英文:Near Field Communication,NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(英文:Radio Frequency Identification,RFID)技术,红外数据协会(英文:Infrared Data Association,IrDA)技术,超宽带(英文:Ultra Wideband,UWB)技术,蓝牙(英文:Bluetooth,BT)技术和其他技术来实现。
在示例性实施例中,终端设备90可以被一个或多个应用专用集成电路(英文:Application Specific Integrated Circuit,ASIC)、数字信号处理器(英文:DigitalSignal Processing,DSP)、数字信号处理设备(英文:Digital Signal ProcessingDevice,DSPD)、可编程逻辑器件(英文:Programmable Logic Device,PLD)、现场可编程门阵列(英文:Field Programmable Gate Array,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图2和图3对应的实施例中所描述的位置更新方法。In an exemplary embodiment, the
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器902,上述指令可由终端设备90的处理组件901执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(英文:Random AccessMemory,RAM)、CD-ROM、磁带、软盘和光数据存储设备等。当所述存储介质中的指令由终端设备90的处理组件901执行时,使得终端设备90能够执行上述图2和图3对应的实施例中所描述的位置更新方法,该方法包括:In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a
在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;When the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, determining the location of the terminal device as the initial location;
到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;When the set detection time is reached, the current location of the terminal device is detected, and the time period between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer;
在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。When the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold, a cell camping request is sent.
在一个实施例中,检测终端设备的当前位置之前,该方法还包括:In one embodiment, before detecting the current location of the terminal device, the method further includes:
启动周期性位置更新定时器后,根据设定的检测周期,周期性确定到达设定的检测时刻,检测周期小于周期性位置更新定时器的周期;After the periodic location update timer is started, according to the set detection period, it is periodically determined that the set detection time is reached, and the detection period is less than the period of the periodic location update timer;
或者,根据设定的超时时长,在确定启动周期性位置更新定时器后到达设定的超时时长时,确定到达设定的检测时刻。Or, according to the set timeout period, when it is determined that the set timeout period is reached after the periodic location update timer is started, it is determined that the set detection time is reached.
在一个实施例中,检测终端设备的当前位置,包括:In one embodiment, detecting the current location of the terminal device includes:
利用全球定位系统GPS、气压计或者陀螺仪检测终端设备的当前位置。Use GPS, barometer or gyroscope to detect the current location of the terminal device.
在一个实施例中,检测终端设备的位置作为初始位置之前,该方法还包括:In one embodiment, before detecting the position of the terminal device as the initial position, the method further includes:
发送小区入驻请求;Send a cell entry request;
在小区入驻失败的次数达到预设次数时,启动周期性位置更新定时器。When the number of failures to camp on the cell reaches a preset number of times, a periodic location update timer is started.
在一个实施例中,发送小区入驻请求之前,该方法还包括:In one embodiment, before sending the cell camping request, the method further includes:
接收系统消息,系统消息包括网络侧设备的互联网协议IP地址。A system message is received, where the system message includes the Internet Protocol IP address of the device on the network side.
本公开实施例提供的终端设备,在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,确定终端设备的位置作为初始位置;到达设定的检测时刻时,检测终端设备的当前位置,检测时刻与周期性位置更新定时器启动的时刻之间的时长小于周期性位置更新定时器的周期;在终端设备的当前位置和终端设备的初始位置之间的距离大于或等于预设阈值时,发送小区入驻请求。在终端设备启动周期性位置更新定时器且终端设备处于无服务状态时,如果检测到终端设备位置变化,可以再次进行小区入驻请求的尝试,避免终端设备移动到网络信号较强的区域后,却仍然因为周期性位置更新定时器所设定的时间而无法进行小区入驻,不能向用户提供服务,提高了用户体验。In the terminal device provided by the embodiments of the present disclosure, when the terminal device starts a periodic location update timer and the terminal device is in an out-of-service state, the location of the terminal device is determined as the initial location; when the set detection time is reached, the current state of the terminal device is detected. Location, the duration between the detection time and the time when the periodic location update timer is started is less than the period of the periodic location update timer; the distance between the current location of the terminal device and the initial location of the terminal device is greater than or equal to a preset threshold When , a cell camping request is sent. When the terminal device starts the periodic location update timer and the terminal device is in an out-of-service state, if the location of the terminal device is detected to change, it can try to make a cell entry request again to prevent the terminal device from moving to an area with strong network signals. Still, due to the time set by the periodic location update timer, cell entry cannot be performed, services cannot be provided to users, and user experience is improved.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710374500.5ACN107027157B (en) | 2017-05-24 | 2017-05-24 | Location update method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710374500.5ACN107027157B (en) | 2017-05-24 | 2017-05-24 | Location update method and device |
| Publication Number | Publication Date |
|---|---|
| CN107027157A CN107027157A (en) | 2017-08-08 |
| CN107027157Btrue CN107027157B (en) | 2020-12-04 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710374500.5AActiveCN107027157B (en) | 2017-05-24 | 2017-05-24 | Location update method and device |
| Country | Link |
|---|---|
| CN (1) | CN107027157B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107846722A (en)* | 2017-12-07 | 2018-03-27 | 奇酷互联网络科技(深圳)有限公司 | network registering method, device and mobile terminal |
| CN108200632B (en)* | 2018-01-18 | 2020-09-15 | 维沃移动通信有限公司 | Method for accessing terminal to LTE network and terminal |
| CN108271243B (en)* | 2018-01-22 | 2020-06-30 | 维沃移动通信有限公司 | A location area update method and terminal device |
| CN108366405A (en)* | 2018-02-28 | 2018-08-03 | 维沃移动通信有限公司 | A wireless access method, mobile terminal |
| CN111787601B (en)* | 2020-06-30 | 2024-02-20 | 广东小天才科技有限公司 | A method for saving power on terminal equipment and terminal equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7751308B2 (en)* | 2003-12-29 | 2010-07-06 | Industrial Technology Research Institute | Cell search method for orthogonal frequency division multiplexing based cellular communication system |
| EP2453638A1 (en)* | 2005-08-02 | 2012-05-16 | Qualcomm Incorporated | location based routing of VoIP emergency calls |
| CN103716852A (en)* | 2014-01-03 | 2014-04-09 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and data service quick recovery method |
| CN104899275A (en)* | 2015-05-27 | 2015-09-09 | 深圳市金立通信设备有限公司 | Cell search method and terminal |
| CN106412892A (en)* | 2016-09-07 | 2017-02-15 | 努比亚技术有限公司 | Network reconnection method for mobile terminal, and mobile terminal |
| CN106535270A (en)* | 2016-12-15 | 2017-03-22 | 北京小米移动软件有限公司 | Network selection method and apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201378052Y (en)* | 2009-01-21 | 2010-01-06 | 高德软件有限公司 | Gradient measuring system and road section information measuring device |
| CN107076554B (en)* | 2014-10-01 | 2019-08-20 | 英特尔公司 | Method and system for the determining and automatic jump detection of normal trajectories |
| CN105241454A (en)* | 2015-10-23 | 2016-01-13 | 中国兵器工业集团第二一四研究所苏州研发中心 | System and method for pedestrian navigation based on multiple sensors |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7751308B2 (en)* | 2003-12-29 | 2010-07-06 | Industrial Technology Research Institute | Cell search method for orthogonal frequency division multiplexing based cellular communication system |
| EP2453638A1 (en)* | 2005-08-02 | 2012-05-16 | Qualcomm Incorporated | location based routing of VoIP emergency calls |
| CN103716852A (en)* | 2014-01-03 | 2014-04-09 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and data service quick recovery method |
| CN104899275A (en)* | 2015-05-27 | 2015-09-09 | 深圳市金立通信设备有限公司 | Cell search method and terminal |
| CN106412892A (en)* | 2016-09-07 | 2017-02-15 | 努比亚技术有限公司 | Network reconnection method for mobile terminal, and mobile terminal |
| CN106535270A (en)* | 2016-12-15 | 2017-03-22 | 北京小米移动软件有限公司 | Network selection method and apparatus |
| Publication number | Publication date |
|---|---|
| CN107027157A (en) | 2017-08-08 |
| Publication | Publication Date | Title |
|---|---|---|
| US12414194B2 (en) | Direct link data transmission method and apparatus, and storage medium | |
| CN107027157B (en) | Location update method and device | |
| WO2022041245A1 (en) | Paging cause sending method and apparatus, and paging cause acquisition method and apparatus | |
| US11711864B2 (en) | Network connection method and device | |
| CN110574466B (en) | Information reporting method and device, resource coordination method and device, and multi-card terminal | |
| US11968557B2 (en) | MDT information notifying method and MDT information receiving method | |
| CN107404723B (en) | Method and device for accessing base station | |
| CN108781377B (en) | Timer control method and apparatus, electronic device, computer-readable storage medium | |
| US20240040637A1 (en) | Connection establishment method and apparatus | |
| CN109076618B (en) | Timer control method and timer control device | |
| US11848885B2 (en) | System information reception method and apparatus, and system information transmission method and apparatus | |
| CN106535166B (en) | Data service processing method and device | |
| US11265924B2 (en) | Method and device for data transmission | |
| CN106792570B (en) | Positioning method and device | |
| CN107959974B (en) | Communication processing method, terminal and storage medium | |
| CN106714255B (en) | Voice call processing method, device and terminal | |
| CN107104721B (en) | Information transmission method, device and system | |
| CN105228134B (en) | A kind of method and apparatus updating temporary mobile subscriber identity | |
| WO2022188108A1 (en) | Methods and apparatuses for sending and determining tracking area code, device and storage medium | |
| CN110337823B (en) | Information configuration method and device, service processing method and device, and base station | |
| WO2022174393A1 (en) | Capability exchange method and apparatus, and exchange triggering method and apparatus | |
| CN117480793A (en) | Update configuration receiving and transmitting method and device, communication device and storage medium | |
| CN107529140B (en) | Positioning method and device | |
| CN105138298A (en) | Information sharing method and apparatus and terminal | |
| CN113316879B (en) | Wireless charging processing method, device, communication equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |