A method for reporting position information and a terminal device
Patent Information
- Application Number
- CN202510544747.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2026-10-27
AI Technical Summary
[0003]现有技术中,终端设备虽然上报了位置信息,但是该位置信息可能是终端设备历史所在的某个位置的信息,而不是终端设备在紧急呼叫时所在位置的信息,存在位置信息不准确的情况
[0030]第五方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面及任一实现方式的方法。
Smart Images

Figure CN122994700A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method for reporting location information and a terminal device. Background Technology
[0002] In some emergency call (EC) scenarios, such as when dialing emergency service numbers like 115 or 112 from abroad, the terminal device can report its location information. This allows the emergency service provider to obtain the terminal device's location information and provide accurate service when necessary.
[0003] In the existing technology, although the terminal device reports location information, this location information may be information about a certain location that the terminal device has been in the past, rather than information about the location of the terminal device at the time of the emergency call, resulting in inaccurate location information. Summary of the Invention
[0004] This application provides a method and terminal device for reporting location information, which can report new location information only after the accurate location is found when the location is inaccurate, thereby ensuring the accuracy of the reported location information.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, this application provides a method for reporting location information, applied to a terminal device, specifically including the following steps: When the terminal device is located at a first location and its actual location is a second location, at a first moment, in response to receiving a first call event, positioning begins. The first call can be used to call emergency service numbers, such as 110 or 119 in China, or 115 or 112 internationally. The second location differs from the first location, meaning the positioning is inaccurate. At a second moment, a first call invitation INVITE message is sent to the network device. The second moment follows the first moment, and the first INVITE message includes the second location. At a third moment, the first location is located, which follows the second moment. That is, the location of the first location is achieved after reporting the location information via the first INVITE message. At a fourth moment, a first update message or a first re-invite message is sent to the network device. The fourth moment follows the third moment, and the first update message or the first re-invite message carries the first location.
[0007] The following text Figure 7For example, the first position can be position B, the second position can be position A, the first time can be time t4, the second time can be time t6, the third time can be time t7, and the fourth time can be time t9.
[0008] In summary, by employing this application, after receiving a call from a user to the emergency service number, location tracking can begin. However, if the location tracking is completed late, the terminal device can first report the previously located second location via a first INVITE message. This allows the call process to continue, reducing call delays. Subsequently, after completing the location tracking, the terminal device reports the latest located first location via a first UPDATE message or a first RE-INVITE message, ensuring that the correct location information is reported to the network device.
[0009] In one possible design of the first aspect, after sending an UPDATE message or a RE-INVITE message to the network device, the method further includes: if the terminal device is located at a third location and its current location is the first location, at a fifth moment, in response to a second call event, initiating location retrieval. The second call event can be used to call an emergency service number, and the emergency service number called by the second call event can be the same as or different from the emergency service number called by the aforementioned first call event. The first location and the third location are different, meaning the location is inaccurate. At a sixth moment, the location is determined to be at the third location; the sixth moment is after the fifth moment. At a seventh moment, a second INVITE message carrying the third location is sent to the network device; the seventh moment is after the sixth moment. That is, the moment the location is determined to be at the third location occurs before the location information is reported via the second INVITE message.
[0010] The following text Figure 9 For example, the first position can be position A, the third position can be position B, the fifth time can be time t4, the sixth time can be time t7', and the seventh time can be time t6.
[0011] As can be seen, by adopting this design, location can begin immediately after receiving a call from a user to the emergency service number, and the location can be completed relatively early. The terminal device can then report the determined location via a second INVITE message, thus ensuring that the correct location information is reported to the network device.
[0012] In one possible design of the first aspect, after sending the second INVITE message to the network device, the above method further includes: at an eighth time, sending a second UPDATE message or a second RE-INVITE message to the network device, the eighth time being after the seventh time, and the second UPDATE message and the second RE-INVITE message not carrying location information.
[0013] As can be seen, by adopting this design, after the correct third location has been reported through the second INVITE message, there is no need to report the location information again in the second UPDATE message or the second RE-INVITE message, thus avoiding duplicate reporting.
[0014] In one possible design of the first aspect, before sending the first call invitation INVITE message to the network device at the second moment, the method further includes: determining that positioning was not completed. Wherein, "positioning not completed" indicates that the second location is not the location information obtained in this positioning, and may be inaccurate.
[0015] As can be seen, by adopting this design, if it is determined that the positioning has not been completed, the terminal device can report the location information once through the first INVITE message, and then report the location information again through the first UPDATE message or the first RE-INVITE message, thereby ensuring that the correct location information can be reported in the end while reducing call delay.
[0016] In one possible design approach of the first aspect, before determining that positioning is incomplete, the method further includes: determining that a first positioning position before the first moment is the same as a second positioning position after the first moment. Wherein, if the first and second positioning positions are the same, it indicates that the positioning position has not changed. If the positioning position has not changed, and positioning is determined to be incomplete, it indicates that the second and first positioning positions are the same because the positioning has not yet been updated, and is therefore inaccurate.
[0017] As can be seen, by adopting this design method, when the positioning location has not changed and it is determined that the positioning has not been completed, the terminal device reports the location information twice, through the first INVITE message and the first UPDATE message (or the first RE-INVITE message).
[0018] In one possible design of the first aspect, the method further includes: before a first moment, detecting a dialing of a first service number, reading a first location, wherein the first location is a second location; and after a first time interval, reading a second location, wherein the second location is a second location.
[0019] In one possible design of the first aspect, before sending a second INVITE message carrying the third location to the network device at the seventh moment, the method further includes: determining that positioning has been completed, and / or determining that the third positioning location before the fifth moment is different from the fourth positioning location after the fifth moment.
[0020] If the location is complete, it means that the first location is the accurate location obtained in this positioning process. If the third and fourth locations are different, it means that the location has changed, and the fourth location is the accurate location obtained in this positioning process.
[0021] As can be seen, by adopting this design, if the location information is accurate, the terminal device can report the accurate location information by reporting it only once through the second INVITE message.
[0022] In one possible design of the first aspect, the method further includes: before the fifth moment, detecting a dialing of the second service number, reading the third location, which is the first location; and after the fifth moment, at an interval of the first time duration, reading the fourth location, which is the third location.
[0023] In one possible design of the first aspect, the first duration is greater than or equal to the estimated duration for completing the positioning (hereinafter also referred to as the second duration).
[0024] As can be seen, by adopting this design, the terminal device can reserve sufficient initial time for positioning, so as to complete the positioning before sending the INVITE message, thereby maximizing the accuracy of the positioning reported through the INVITE message.
[0025] In one possible design of the first aspect, the terminal device includes a positioning module, such as a GPS module. The aforementioned initiation of positioning includes: controlling the positioning module to begin positioning; wherein, after positioning is completed, the positioning module sends a broadcast message; if no broadcast message is heard, positioning is not completed; if a broadcast message is heard, positioning is completed.
[0026] As can be seen, by adopting this design, the terminal device can determine that the positioning has not been completed based on the absence of broadcast messages, and determine that the positioning has been completed based on the presence of broadcast messages.
[0027] In a second aspect, embodiments of this application provide a terminal device, including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the terminal device to perform the method as described in the first aspect and any implementation thereof.
[0028] Thirdly, embodiments of this application provide a chip system including at least one processor and a communication interface, the communication interface and at least one processor being interconnected via a line, and the at least one processor being used to run computer programs or instructions to perform the methods as described in the first aspect and any implementation thereof.
[0029] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method as described in the first aspect and any of its implementations.
[0030] Fifthly, embodiments of this application provide a computer program product, which includes a computer program that, when run, causes a computer to perform the method as described in the first aspect and any of its implementations.
[0031] Sixthly, embodiments of this application provide a communication system including a terminal device and a network-side device. The terminal device is configured to execute the method described in the first aspect and any of its implementations.
[0032] Understandably, the beneficial effects achieved by the terminal device of the second aspect, the chip system of the third aspect, the computer-readable storage medium of the fourth aspect, the computer program product of the fifth aspect, and the communication system of the sixth aspect can be referred to the beneficial effects of the first aspect and any possible design, which will not be repeated here. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of a communication system used in an embodiment of this application;
[0034] Figure 2 This application provides a hardware configuration diagram of a terminal device according to an embodiment of the present application.
[0035] Figure 3 A flowchart of a method for reporting location information;
[0036] Figure 4 A flowchart illustrating a location information reporting method provided in this application embodiment;
[0037] Figure 5 A schematic diagram of an interface for making a phone call, provided as an embodiment of this application;
[0038] Figure 6 A flowchart for determining whether location information is accurate is provided in an embodiment of this application;
[0039] Figure 7 This application provides an example diagram of a scenario where location information is inaccurate.
[0040] Figure 8 For the corresponding Figure 7 Interaction diagram of the location information reporting method;
[0041] Figure 9 An example diagram illustrating a scenario with accurate location information provided in this application embodiment;
[0042] Figure 10 For the corresponding Figure 9 Interaction diagram of the location information reporting method;
[0043] Figure 11 This is a schematic block diagram of a communication device provided in an embodiment of this application. Detailed Implementation
[0044] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0045] The technical solutions provided in this application can be applied to various communication systems, such as: Global System for Mobile Communications (GSM) systems, General Packet Radio Service (GPRS), Wireless Local Area Network (WLAN), Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, sidelink communication systems, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication systems, non-terrestrial network (NTN) communication systems, 5th generation (5G) mobile communication systems, or new radio access technology (NR). Among these, 5G mobile communication systems can include non-standalone (NSA) and / or standalone (SA) networking. The technical solutions provided in this application can also be applied to future communication systems. This application does not limit the scope of these applications.
[0046] Figure 1This is a schematic diagram of a communication system 100 used in an embodiment of this application. The communication system 100 may include network devices, such as... Figure 1 The network device 110 is shown. The communication system 100 may also include terminal devices, such as... Figure 1 The terminal device 120 shown. The network device 110 and the terminal device 120 can communicate via a wireless link.
[0047] Figure 1 An exemplary diagram shows one network device and two terminal devices. Optionally, the communication system 100 may also include more network devices and / or more terminal devices.
[0048] The network equipment in this application can be network-side equipment such as access network equipment and core network equipment. Access network equipment is sometimes also called access node. Access network equipment has wireless transceiver capabilities and is used to communicate with terminals. Access network equipment includes, but is not limited to, base stations, evolved NodeBs (eNodeBs), transmission reception points (TRPs) in the above-mentioned communication systems, next-generation NodeBs (gNBs) in 5G mobile communication systems, access network equipment or modules of access network equipment in open RAN (ORAN) systems, satellites in NTN communication systems, base stations in future mobile communication systems, or access nodes in WiFi systems. Access network equipment can also be modules or units that can implement some of the functions of a base station. Access network equipment can be macro base stations, micro base stations, or indoor stations, relay nodes or donor nodes, or wireless controllers in cloud radioaccess network (CRAN) scenarios. Optionally, access network equipment can also be servers, wearable devices, or vehicle-mounted equipment, etc. For example, the access network equipment in vehicle-to-everything (V2X) technology can be a roadside unit (RSU). Multiple access network devices in a communication system can be base stations of the same type or different types. Base stations can communicate with terminals directly or via relay stations. Terminals can communicate with multiple base stations using different access technologies. The embodiments of this application do not limit the specific technology or device form used in the access network equipment. In this application, the access network equipment is referred to as a network device.
[0049] In this application, the means for implementing the functions of a network device can be a network device itself, or a means capable of supporting the network device in implementing those functions, such as a processor, circuit, chip, or chip system. This means can be installed in or connected to the network device. In the technical solutions provided in this application, the example of a network device being used to implement the functions of a network device is used to describe the technical solutions provided in this application.
[0050] The terminal device in this application can be a wireless terminal device capable of receiving network device scheduling and instruction information. The wireless terminal device can be a device providing voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. For example, the terminal device can communicate with one or more core networks or the Internet via a radio access network (RAN). The terminal device can also be referred to as a terminal, user equipment (UE), mobile station, mobile terminal, etc. Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things (IoT), ultra-reliable low-latency communication (URLLC), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grids, smart furniture, smart offices, smart wearables, smart transportation, smart cities, or satellite communication, etc. The terminal can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, wearable device, vehicle, aircraft (such as drone, helicopter, airplane), hot air balloon, ship, robot, robotic arm, or smart home device, etc. The embodiments of this application do not limit the form of the terminal device.
[0051] In this application, the apparatus for implementing the functions of a terminal device can be the terminal device itself, or any apparatus capable of supporting the terminal device in implementing those functions, such as a processor, circuit, chip, or chip system. This apparatus can be installed in or connected to the terminal device. In the technical solutions provided in this application, the example of a terminal device being used to implement the functions of a terminal device is used to describe the technical solutions provided in this application.
[0052] Access network devices and / or terminals can be fixed or mobile. They can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; on water; or in the air on aircraft, balloons, and satellites. This application does not limit the application scenarios of the access network devices and terminals. Access network devices and terminal devices can be deployed in the same or different scenarios; for example, both can be deployed on land; or the access network device can be deployed on land, and the terminal device on water, etc., and so on.
[0053] In practical applications, multiple network devices can collaborate to assist terminals in achieving wireless access, with different network devices each implementing a portion of the base station's functions. For example, network devices can be central units (CUs), distributed units (DUs), CU-control plane (CPs), CU-user plane (UPs), or radio units (RUs), etc. CUs and DUs can be set up separately or included in the same network element, such as a baseband unit (BBU). RUs can be included in radio frequency equipment or radio frequency units, such as remote radio units (RRUs), active antenna units (AAUs), or remote radio heads (RRHs).
[0054] In different systems, CU (or CU-CP and CU-UP), DU, or RU may have different names, but those skilled in the art will understand their meaning. For example, in an ORAN system, CU can also be called O-CU (Open CU), DU can also be called O-DU, CU-CP can also be called O-CU-CP, CU-UP can also be called O-CU-UP, and RU can also be called O-RU. Any of the units among CU (or CU-CP, CU-UP), DU, and RU in this application can be implemented through software modules, hardware modules, or a combination of software and hardware modules. CU (or CU-CP and CU-UP), DU, and RU can implement different protocol layer functions.
[0055] See Figure 2 This is a hardware configuration diagram of a terminal device. For example... Figure 2 As shown, taking a mobile phone as an example, the terminal device may include: processor 210, positioning module 220, memory 230, display screen 240, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, etc.
[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0057] Processor 210 may include one or more processing units, such as application processor (AP), modem, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0058] The processor can generate operation control signals based on the instruction opcode and timing signals to control the instruction fetching and execution.
[0059] The memory 230 can be used to store computer executable program code, which includes instructions. The memory 230 may include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the terminal device (such as audio data, phonebook, etc.).
[0060] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 may be a cache memory. This memory can store instructions or data that the processor 210 has used or that are used frequently. If the processor 210 needs to use the instruction or data, it can directly retrieve it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0061] The positioning module 220 can be used for positioning the terminal device. In one specific implementation, the positioning module can be a Global Positioning System (GPS) module. The GPS module can receive and process signals from global navigation satellite systems (such as GPS, BeiDou, etc.) to calculate the location information of the terminal device, such as latitude and longitude. The positioning module 220 may also include a memory to store the calculated location information.
[0062] The display screen 240 can be used to display images, videos, etc. In some embodiments, the display screen 240 can be used as an application interface for a calling application. The application interface for the calling application includes a dialer interface, a call answering interface, etc. The dialer interface may include a dial pad, a call button, etc.
[0063] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.
[0064] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0065] The mobile communication module 250 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on terminal devices. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0066] The wireless communication module 260 can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth Low Energy (BLE), ultra-wideband (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0067] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling the terminal device to communicate with networks and other electronic devices via wireless communication technology. This wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0068] In the location information reporting method provided in this application embodiment, the terminal device can initiate an emergency call through a network device, and when initiating an emergency call, the terminal device can also report its location information to the network device. In this way, the network device can obtain the location information of the terminal device when initiating the emergency call, for subsequent use in providing accurate services.
[0069] It should be noted that the location information in this application is reported only with the authorization of the user or with full authorization from all parties. Furthermore, the collection, use and processing of location information must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0070] See Figure 3 The emergency call process includes the following steps:
[0071] S301. The terminal device receives a call event, which is used to dial an emergency service number.
[0072] For example, a call event could be the event of entering an emergency service number on the dial pad and pressing the call button.
[0073] Upon receiving a call event, the terminal device can use the following steps S302-S304 to report its location information while initiating a call invitation.
[0074] S302, The terminal device obtains location information.
[0075] In response to a received call event, the terminal device can control the positioning module to determine its current location. For example, the positioning module could be a Global Positioning System (GPS) module. After acquiring the location information, the positioning module can store it in a cache. The terminal device can then retrieve the location information from the cache.
[0076] It's important to note that the cache can always store the location information from the most recent location taken by the positioning module. Therefore, even if the positioning module doesn't immediately locate and store the current location information in the cache after receiving a call event, the cache may still contain historically obtained location information. In other words, the location information retrieved by the terminal device from the cache may not be the exact location at the time of dialing.
[0077] For example, during a dialing session, the following log is recorded:
[0078] 2025Mar 5 10:15:25.534
[58] 0x1544 QMI_MCS_QCSI_PKT / / modem received dialing command;
[0079] 2025Mar 5 10:15:25.827[4B]0x1544 QMI_MCS_QCSI_PKT / / modem requests location information injection from the positioning module via AP;
[0080] 2025Mar 5 10:15:26.861
[60] 0x1544 QMI_MCS_QCSI_PKT / / Less than 1000ms after the distance from the injection of the requested location information, the modem obtains the location information from the positioning module through the AP, such as the best available position. However, at this time, the positioning module has not yet collected new location information and stored it in the cache.
[0081] 03-05 11:15:26.399 1770 3265I LocSvc_ApiV02:<---globalEventCb line233QMI_LOC_EVENT_WIFI_REQ_IND_V02 / / Since there is no new location, the AP will receive a rejection message from the positioning module (such as an NLP injection request). The AP obtains the historical cached location information and feeds it back to the modem;
[0082] 03-05 11:15:28.146 1770 1770D LocSvc_GnssAdapter:injectLocationCommand]:latitude48.8301longitude 2.2665accuracy 20.7020 / / It took about 1.8 seconds for the positioning module to obtain the new location information and store it in the cache.
[0083] Based on the logs above, it can be seen that the location module locates the new location information later than the modem obtains the location information, therefore the modem may obtain inaccurate location information.
[0084] S303. The terminal device checks whether it has obtained location information. If yes, proceed to S304; otherwise, do not report location information.
[0085] Typically, upon startup, the cache stores an initial location information value, such as "47". Subsequently, each time the positioning module locates a location, it updates the location information in the cache. In other words, the cache usually contains location information, and correspondingly, the terminal device can obtain that location information.
[0086] In some fault scenarios, the cache may not contain location information, and the terminal device will not be able to obtain the location information.
[0087] After obtaining location information, the terminal device can execute S304 to report the location information to the network device; if the terminal device does not obtain location information, it can choose not to report the location information, such as not including the location information in the call invitation message.
[0088] S304. The terminal device sends a call invitation message (INVITE / INFORMAL RESPONSE) to the network device, and the call invitation message carries location information.
[0089] As explained in S302 above, the location information obtained by the terminal device may not be accurate. Consequently, the location information carried in the call invitation message is also inaccurate. For example, the call invitation message may carry the location information "47". However, "47" is an initial value written into the cache when the terminal device is powered on, and it does not represent the actual location information; therefore, it is not accurate location information.
[0090] If the call invitation message contains inaccurate location information, the network device will not be able to obtain accurate location information. Subsequently, when necessary, it will not be able to accurately locate the terminal device through the reported location information, and will not be able to use the location information to provide accurate services.
[0091] S305. The network device returns a response message (INVITE / OK) to the terminal device.
[0092] For example, after the called party answers the call, the called party can return a response message to the terminal device through the network device.
[0093] Once the terminal device receives a confirmation message, it indicates that the call has been connected and the conversation can begin.
[0094] It is understandable that between S304 and S305, there may be other signaling interactions between the terminal device and the network device, as well as further signaling interactions between the network device and the called party, to establish the call. For example, after receiving the call invitation message, the network device may also send a trial message (INVITE / TRYING). Alternatively, after receiving the call invitation message, the network device may further send a call invitation message to the called party. Furthermore, after receiving the call invitation message, the called party may send a session progress message (INVITE / SESSIONRESPONSE) to the terminal device through the network device to notify the terminal device that the call is in progress. This article will not elaborate further on the signaling interactions between S304 and S305.
[0095] S306, terminal equipment and network equipment transmit call data.
[0096] For example, call data includes voice data, video data, etc.
[0097] In the above Figure 3 In the implementation method, during an emergency call, the terminal device can carry location information in the call invitation message to achieve location information reporting. However, since the positioning module needs time to locate, the reported location information may be historical cached location information rather than new location information.
[0098] To address the aforementioned issues, this application provides a method for reporting location information. When obtaining location information before a new location is located, the acquired location information can be included in the call invitation message. This allows the call to continue even if the obtained location information is inaccurate, reducing call delays. Subsequently, after a new location is located, the new location information can be reported again. This ensures that the reported location information is accurate.
[0099] In some embodiments, after locating new location information, the positioning module can send a broadcast message. The terminal device can then check the accuracy of the location information based on the broadcast message and multiple acquired location information. For details, see [link to documentation]. Figure 4 The methods for reporting location information include:
[0100] S401. After detecting an emergency service number dialing, the terminal device obtains location information 1.
[0101] Among them, specific numbers are emergency service numbers, such as 110 and 119 in China, and 115 and 112 in other countries.
[0102] The terminal device can listen to the dialing of a user on the dial pad. Upon detecting a dialing of an emergency service number, the terminal device can obtain location information, denoted as Location Information 1 in this document. This Location Information 1 can be used to subsequently check whether the location information is accurate.
[0103] Taking a mobile phone as an example, see Figure 5 The phone can display the dialing interface shown in interface 501, which includes a dial pad 5011, a number display area 5012, and a call button 5013. In interface 501, the user has not yet pressed any numbers on the dial pad 5011, and dialing has not yet begun. Subsequently, after the user presses "1", "1", and "5" sequentially on the dial pad 5011 in interface 501, the phone can display interface 502. The number display area 5012 in interface 502 includes the number "115", indicating that the user has entered "115" to dial. "115" is the emergency service number, and the phone can listen to the emergency service number dialing and retrieve the cached location information 1.
[0104] It should be noted that location information 1 is the location information of the most recent location stored in the cache, and it is not necessarily the real-time location of the terminal device when it hears the emergency service number dialing.
[0105] In this embodiment of the application, the implementation method for detecting emergency service numbers is not specifically limited. Two possible implementation methods are listed below.
[0106] In one specific implementation, the terminal device can compare the currently dialed number on the dial pad with a number whitelist. The number whitelist records preset numbers, such as 115, 112, etc. If the currently dialed number is in the number whitelist, it will detect a call from an emergency service number; if the currently dialed number is not in the number whitelist, it will detect a call from a non-emergency service number.
[0107] In another specific implementation, the terminal device can detect the characteristics of the currently dialed number on the dial pad. If a preset characteristic is detected, the device listens for a dialing that is an emergency service number. If the preset characteristic is not detected, the device listens for a dialing that is not an emergency service number. The preset characteristic includes the dialing number starting with "1" and followed by two or three digits; in other words, the preset characteristic includes "1xx" or "1xxx", where x represents any number.
[0108] S402. Upon receiving a call event, the terminal device controls the positioning module to begin positioning and sends a broadcast message after positioning is completed.
[0109] After dialing, the user can initiate the call. Upon detecting the call event, the terminal device can locate new location information, which is the correct location that needs to be reported.
[0110] The call event can be a click event on the call button, or an input event of a voice indicating a call (such as "make a call", "call", etc.).
[0111] See also Figure 5 After the user clicks the dial button 5013 on the interface 502, the mobile phone can detect the call event and start calling the called party, as shown on the interface 503, and start locating.
[0112] S403. The terminal device listens for broadcast messages, which can indicate the location information of a new location.
[0113] After the positioning process begins, the terminal device starts listening for broadcast messages. If a broadcast is detected, it indicates that the positioning module has obtained new location information; if no broadcast is detected, it indicates that the positioning module has not yet obtained new location information.
[0114] S404. After starting the positioning process, the terminal device waits for a first duration.
[0115] The first duration is longer than the second duration required for the positioning module to locate the target. The second duration can be the average duration of multiple positioning operations or the longest duration.
[0116] For example, in the log shown in S302 above, the positioning module needs about 1.8 seconds to complete the positioning, that is, the second duration is 1.8 seconds, so the first duration can be 2 seconds.
[0117] The initial waiting time for the terminal device allows sufficient time for the positioning module to locate the new location information.
[0118] S405, Terminal device obtains location information 2.
[0119] After waiting for the first duration, the terminal device obtains the location information again, which is referred to as location information 2 in this article.
[0120] Furthermore, location information 2 can be divided into the following two cases:
[0121] The first scenario is that the positioning module has already located the new location information, and location information 2 is the new location information located by the positioning module. Therefore, location information 2 is accurate.
[0122] The second scenario is that even if the positioning module fails to complete the positioning after the first period of time, then location information 2 is not new location information, and therefore, location information 2 may not be accurate.
[0123] In other embodiments, after location locating begins, the terminal device may not wait for the first duration, i.e., S405 described above can be omitted. Instead, location information 2 can be obtained quickly after location locating begins, as shown in the log of S302 above, with an interval of less than 1000ms. In this embodiment, location information can be obtained more quickly and subsequent call procedures can be executed, reducing call latency.
[0124] S406. The terminal device checks whether location information 2 is accurate based on location information 1, location information 2, and the broadcast message. If not, proceed to S407-S409; if yes, proceed to S410.
[0125] See Figure 6 The terminal device checks whether location information 2 is correct, including the following steps:
[0126] S4061. The terminal device compares whether location information 1 and location information 2 are the same. If yes, then execute S4062; if no, then location information 2 is accurate.
[0127] If location information 1 and location information 2 are different, it indicates that the location information obtained in S405 is new, and therefore location information 2 is accurate. Furthermore, if location information 1 and location information 2 are different, the terminal device can further confirm that location information 2 is accurate based on the detected broadcast message; otherwise, it determines that location information 2 is inaccurate. This further ensures the accuracy of the determination result.
[0128] If location information 1 and location information 2 are the same, two further possibilities exist: One is that the terminal device's location has not changed, and it is still locating location information 1. In this case, location information 2 is the same as location information 1, and location information 2 is accurate. The other is that the positioning module has not yet located new location information, and the location information 2 obtained by the terminal device is the outdated location information 1. In this case, location information 2 may be inaccurate. Based on this, the terminal device can execute S4062 to further distinguish between these two cases, thereby determining whether location information 2 is accurate.
[0129] S4062. The terminal device checks whether it has detected a broadcast message. If yes, then location information 2 is accurate; if no, then location information 2 is inaccurate.
[0130] If a broadcast message is detected, it indicates that the positioning module has completed positioning. This means that the location of the terminal device has not changed, making location information 2 the same as location information 1, and location information 2 is accurate.
[0131] If no broadcast message is detected, it indicates that the positioning module has not completed positioning. This is because the obtained location information 2 is not updated location information 1, making location information 2 the same as location information 1, and location information 2 may be inaccurate.
[0132] In other embodiments, the terminal device can also detect the accuracy of location information 2 based on broadcast messages. Specifically, if a broadcast message is detected, it indicates that the positioning module has located new location information, and the location information 2 obtained by the terminal device is the new location information, therefore location information 2 is accurate. If no broadcast message is detected, it indicates that the positioning module has not located new location information, and the location information 2 obtained by the terminal device is the outdated location information 1, therefore location information 2 may be inaccurate. In this way, the terminal device can determine the accuracy of location information 2 more quickly. Furthermore, in this embodiment, the terminal device may not need to obtain location information 1, as described in S401 above.
[0133] S407. The terminal device sends a call invitation message to the network device, and the call invitation message carries location information 2.
[0134] In other words, even if location information 2 is inaccurate, the terminal device will still include location information 2 in the call invitation message, so that the call process can continue and call delay can be reduced.
[0135] For example, the terminal device can write location information 2 into the body of the call invitation message, so that the call invitation message can carry location information 2.
[0136] In other embodiments, if location information 2 may be inaccurate, the terminal device may send a call invitation message to the network device without carrying location information 2.
[0137] S408. In response to the detection of a broadcast message, the terminal device obtains location information 3.
[0138] As explained in the description of S4062 above, the inaccuracy of location information 2 is due to the positioning module not yet having located the new location information. Therefore, the terminal device can continue to listen for broadcast messages. Upon receiving a broadcast message, it indicates that the positioning module has located the new location information. At this point, the terminal device can obtain location information 3, thus acquiring the new location information.
[0139] Furthermore, upon detecting a broadcast message, the terminal device can control the positioning module to stop broadcasting, thereby reducing power consumption.
[0140] S409. The terminal device sends an update message (UPDATE / INFORMAL RESPONSE) or a re-invitation message (re-INVITE) to the network device, and the update message or re-invitation message carries location information 3.
[0141] Understandably, both update messages and re-invitation messages can be used to negotiate session parameters. Update messages are primarily used after sending a call invitation message but before receiving a response message, such as between S304 and S305 above, to negotiate session parameters and do not affect the dialog state. Re-invitation messages are primarily used after receiving a response message to a call invitation message, such as after S305 above, to negotiate session parameters and will change the dialog state. For example, after switching from an audio call to a video call, or from a Wi-Fi network to a data network, re-invitation messages can be used to negotiate session parameters.
[0142] In this way, the terminal device can report new location information to the network device, enabling the network device to obtain accurate location information.
[0143] S410, The terminal device sends a call invitation message to the network device, and the call invitation message carries location information 2.
[0144] In other words, if location information 2 is accurate, the terminal device can include location information 2 in the call invitation message, so that the network device can obtain accurate location information.
[0145] For ease of understanding of the above Figure 4 To understand the embodiments, the following two complete examples, combined with the hardware configuration of the terminal device, will be used to provide a more detailed explanation. Figure 4 Specific implementation of the example.
[0146] In one example, see Figure 7 After receiving a call event, the terminal device completes positioning at time t7, but acquires location information at time t5, which is before time t7, resulting in inaccurate location information. The following example... Figure 7 For example, and in combination Figure 8 The specific implementation details the location information reporting method provided in the embodiments of this application.
[0147] See Figure 7 At time t1, the terminal device is actually located at location A, and its location is set to location A. Between time t1 and time t2, the terminal device's location changes. At time t2, the terminal device is actually located at location B, but its location is not updated and remains at location A. Further details can be found in the documentation. Figure 8 At time t2, the positioning module stores location A, but is actually located at location B.
[0148] See also Figure 7 At time t3, the terminal device detects a dialing of the emergency service number (abbreviated as "dialing" in the diagram) and can obtain location A, i.e., location information 1 is location A. Further details can be found in [link to documentation]. Figure 8 The specific implementation of the terminal device obtaining location A may include the following steps:
[0149] S801, at time t3, the application processor listens to the dialing of the emergency service number.
[0150] For example, an application processor has a calling application installed in it. The application interface of the calling application includes a dialer interface in which the user can make a call, and the application processor can listen to the dialing.
[0151] S802, The application processor reads position A from the positioning module.
[0152] Since the location module still stores location A, the location information 1 read by the application processor is location A.
[0153] S803, The application processor sends position A to the modem processor.
[0154] S804, modem processor stores location A.
[0155] See also Figure 7 At time t4, the terminal device receives a call event (referred to as "emergency call" in the diagram) and can control the positioning module to begin positioning. Further details can be found in the documentation. Figure 8 The specific implementation of the terminal device controlling the positioning module to start positioning may include the following steps:
[0156] S805, at time t4, the application processor receives a call event.
[0157] For example, the dialer interface also includes a call button, and the application processor can receive a call event after the user clicks the call button.
[0158] S806, the application processor sends a call command to the modem processor.
[0159] The call instruction can be used to instruct the modem to call the called party corresponding to the emergency service number.
[0160] S807, the modem processor sends a location request to the application processor.
[0161] S808, the application processor sends a location request to the location module.
[0162] S809, The positioning module begins positioning.
[0163] After the positioning module locates new location information, it can send a broadcast message. Correspondingly, the modem processor can execute the following S810 to listen for the broadcast message and thus detect whether the positioning is complete.
[0164] S810: After sending a location request, the modem processor begins listening for broadcast messages.
[0165] If the modem processor detects a broadcast message, it indicates that the positioning module has completed positioning. If the modem processor does not detect a broadcast message, it indicates that the positioning module has not yet completed positioning.
[0166] See also Figure 7 After receiving a call event, the terminal device waits for a first duration, allowing sufficient time for the positioning module to determine its location. At time t5, after the first duration has elapsed, the terminal device retrieves its location information again. Since the positioning module has not yet determined a new location at time t5, the terminal device still obtains location A; that is, location information 2 is location A. Further details can be found in the documentation. Figure 8 The specific implementation of the terminal device obtaining location A again may include the following steps:
[0167] S811. After sending the location request, the modem processor waits for a first duration.
[0168] The first duration is greater than or equal to the second duration required for the positioning module to complete the positioning. For details on the second duration, please refer to the previous explanation, which will not be repeated here.
[0169] Normally, the positioning module can complete the positioning process within the first time frame, thus determining the new location information. However, there are exceptions where the positioning module fails to complete the positioning within the first time frame. This is understandable. Figure 7 This is what is shown.
[0170] S812, at time t5, in response to the arrival of the first duration, the modem processor sends a location read request to the application processor.
[0171] S813, The application processor reads location A from the positioning module.
[0172] S814, The application processor sends position A to the modem processor.
[0173] S815, modem processor stores location A.
[0174] At this point, the modem processor has obtained location information twice, including the location information obtained in S803 and S814 respectively.
[0175] See also Figure 7 After obtaining location information twice, the terminal device can detect that the two obtained location information are the same, both being location A, and no broadcast message has been detected, meaning that the obtained location A may be inaccurate. At time t6, the terminal device can report location A first. Further details can be found in [link to documentation]. Figure 8 The specific implementation of the terminal device determining and reporting location A may include the following steps:
[0176] S816, the modem processor determines that the two acquired location information are the same and that no broadcast message was detected.
[0177] The location information obtained in the two instances was identical, corresponding to the above. Figure 6 The case shown in S4061 is "Yes".
[0178] Among them, no broadcast messages were detected, which corresponds to the above. Figure 6 The case shown in S4062 is "No".
[0179] If the location information obtained twice is the same and no broadcast message is detected, it indicates that the location A obtained the second time is outdated and may be inaccurate.
[0180] S817. At time t6, the modem processor sends a call invitation message to the network device, and the call invitation message carries location A.
[0181] In this way, even if location A is inaccurate, the modem can still send call invitation messages, allowing the call process to continue and reducing call delays.
[0182] See also Figure 7 After reporting location A, at time t7, the positioning module completes the positioning and sends a broadcast message to confirm that the terminal device has completed the positioning. Further details can be found in [link to documentation]. Figure 8 After the positioning module completes positioning, the terminal device confirms that positioning is complete by taking the following steps:
[0183] S818. At time t7, the positioning module locates position B.
[0184] At this point, the located position B is consistent with the actual location B of the terminal device, therefore the position B is accurate.
[0185] S819, The positioning module stores the location of B.
[0186] S820, the positioning module sends a broadcast message.
[0187] Subsequently, the application processor can listen to the broadcast messages sent by the positioning module.
[0188] S821. In response to detecting a broadcast message, the application processor forwards the broadcast message to the modem processor.
[0189] S822, at time t8, the modem processor detects a broadcast message.
[0190] In this way, the modem processor can hear the broadcast message and determine that the positioning module has completed the positioning.
[0191] See also Figure 7 After the terminal device detects the broadcast message, it retrieves its location information for the third time, obtaining location B; that is, location information 3 indicates location B. Subsequently, at time t9, the terminal device can report location B. Further details can be found in [link to documentation]. Figure 8 The specific implementation of the terminal device obtaining and reporting the location of B includes the following steps:
[0192] S823, The modem processor sends a location read request to the application processor.
[0193] S824, The application processor reads the location of B from the positioning module.
[0194] S825, the application processor sends the B position to the modem processor.
[0195] S826. At time t9, the modem processor sends an update message or a re-invitation message to the network device, and the update message or re-invitation message carries the B position.
[0196] In this way, accurate location information can be reported to network devices.
[0197] Additionally, after detecting a broadcast message, the terminal device can instruct the positioning module to stop broadcasting, thus saving power. Further details can be found in [link to documentation]. Figure 8 The specific implementation of the terminal device notifying the positioning module to stop broadcasting includes the following steps:
[0198] S827, The modem processor sends an acknowledgment message (ACK) to the application processor.
[0199] The confirmation message indicates that broadcasting should be stopped.
[0200] S828, the application processor notifies the positioning module to stop broadcasting.
[0201] S829, the positioning module stops broadcasting.
[0202] Understandable, Figure 8 In this context, S827-S829 are located after S826, that is, after the reported position B. However, this is not the actual limitation; S827-S829 can also be located between S822-S826.
[0203] In the above Figure 7 Examples and Figure 8 In the specific implementation, if the positioning module fails to complete the positioning in a timely manner after receiving a call event, the terminal device can report the location information again after the positioning module completes the positioning to ensure that the accurate location information is reported to the network device.
[0204] See another example. Figure 9 Upon receiving a call event, the terminal device completes positioning at time t7' and acquires location information at time t5, which is accurate. The following example... Figure 9 For example, and in combination Figure 10 The specific implementation details the location information reporting method provided in the embodiments of this application.
[0205] Figure 9 The process from time t1 to time t4 is similar to the previous text. Figure 7 The process from time t1 to time t4 is similar and will not be described in detail here. Accordingly, Figure 10 For the specific implementation of S1001-S1011, please refer to the previous text and the explanation of S801-S811 in section 8, which will not be repeated here.
[0206] See also Figure 9 At time t7', during the initial waiting period on the terminal device, the positioning module completes positioning and sends a broadcast message to confirm that positioning has been completed. Further details can be found in the documentation. Figure 10After the positioning module completes positioning, the terminal device confirms that positioning is complete by taking the following steps:
[0207] S1012. At time t7', the positioning module locates position B.
[0208] At this point, the located position B is consistent with the actual location B of the terminal device, therefore the position B is accurate.
[0209] S1013, The positioning module stores the location of B.
[0210] S1014, The positioning module sends a broadcast message.
[0211] Subsequently, the application processor can listen for broadcast messages.
[0212] S1015. In response to detecting a broadcast message, the application processor forwards the broadcast message to the modem processor.
[0213] S1016, At time t8', the modem processor detects a broadcast message.
[0214] In this way, the modem processor can hear the broadcast message and determine that the positioning module has completed the positioning.
[0215] See also Figure 9 At time t5, after the first duration has elapsed, the terminal device acquires location information again. Since the positioning module has already located location B at time t7', prior to time t5, the terminal device acquires location B at time t5; that is, location information 2 is location B. Further details can be found in [link to documentation]. Figure 10 The specific implementation of the terminal device obtaining the location of B may include the following steps:
[0216] S1017. At time t5, in response to the arrival of the first duration, the modem processor sends a location read request to the application processor.
[0217] S1018, The application processor reads the location of B from the positioning module.
[0218] S1019, The application processor sends the B position to the modem processor.
[0219] S1020, Modem processor storage location B.
[0220] At this point, the modem processor has obtained location information twice, including the location information obtained in S1003 and S1019 respectively.
[0221] Figure 9 and Figure 10In this example, the terminal device listens to a broadcast message and then waits for a first duration before obtaining the location information. In other embodiments, the terminal device can end the wait and obtain the location information after listening to the broadcast message, thereby further reducing the call delay.
[0222] See also Figure 9 After obtaining location information twice, the terminal device can detect that the two obtained location information are different and listen for broadcast messages, meaning that the obtained location B is accurate. At time t6, the terminal device can report the location B first. Further details can be found in [link to documentation]. Figure 10 The specific implementation of the terminal device determining and reporting the location of B may include the following steps:
[0223] S1021, The modem processor determines that the two acquired location information are different and detects a broadcast message.
[0224] The two sets of location information obtained are different, which corresponds to the above. Figure 6 The case shown in S4061 is "No".
[0225] Furthermore, listening to broadcast messages can further ensure that the second acquisition is of the newly located location information.
[0226] If the two obtained location information are different, and a broadcast message is detected, it indicates that the second obtained location B is the updated location information and is accurate.
[0227] S1022. At time t6, the modem processor sends a call invitation message to the network device, and the call invitation message carries the location B.
[0228] This allows the accurate location of B to be reported to the network device.
[0229] It is understandable that since the correct location information has already been reported in the call invitation message, the terminal device does not need to report the location information again when sending update messages or re-invitation messages to the network device.
[0230] Similarly, after detecting a broadcast message, the terminal device can also instruct the positioning module to stop broadcasting, saving power. Further details can be found in [link to documentation]. Figure 10 The specific implementation of the terminal device notifying the positioning module to stop broadcasting includes S1023-S1025, which can be found in the previous introduction to S827-S829, and will not be repeated here. It is understandable that... Figure 10 In this context, S1023-S1025 are located after S1022, that is, after the reported position B. However, this is not the actual limitation; S1023-S1025 can also be located between S1016-S1022.
[0231] In the above Figure 9 Examples and Figure 10 In its specific implementation, after receiving a call event, the positioning module completes the positioning in a timely manner. In this case, the terminal device can obtain the correct location information and report it to the network device after waiting for a certain period of time.
[0232] Figure 11 This is a schematic block diagram of a communication device 1100 provided in an embodiment of this application. The communication device 1100 may be a chip, chip system, or processor, etc., used by a terminal device or network device to implement the above-described methods. The communication device 1100 can be used to implement the methods described in the above-described method embodiments; for details, please refer to the descriptions in the above-described method embodiments.
[0233] like Figure 11 As shown, the communication device 1100 may include one or more processors 1110, which may also be referred to as processing units or processing modules, and can implement certain control functions. The processor 1110 may be a general-purpose processor or a dedicated processor, such as a baseband processor or a central processing unit. The baseband processor can be used to process communication protocols and communication data, while the central processing unit can be used to control the communication device 1100 (e.g., a base station, baseband chip, user, user chip), execute software programs, and process data from the software programs.
[0234] In an alternative design, the processor 1110 may also store instructions and / or data that can be executed by the processor 1110 to cause the communication device 1100 to perform the methods described in the above method embodiments.
[0235] In another alternative design, the communication device 1100 may include a communication interface 1120 for implementing receiving and transmitting functions. For example, the communication interface 1120 may be a transceiver circuit, interface, interface circuit, or transceiver. The transceiver circuit, interface, interface circuit, or transceiver for implementing receiving and transmitting functions may be separate or integrated. The aforementioned transceiver circuit, interface, interface circuit, or transceiver may be used for reading and writing code / data, or it may be used for transmitting or relaying signals.
[0236] Optionally, the communication device 1100 may include one or more memories 1130, which may store instructions that can be executed on the processor 1110, causing the communication device 1100 to perform the methods described in the above method embodiments. Optionally, the memories 1130 may also store data. Optionally, the processor 1110 may also store instructions and / or data. The processor 1110 and the memories 1130 may be provided separately or integrated together.
[0237] It should be understood that, in one possible design, the steps in the method embodiments provided in this application can be implemented by integrated logic circuits in the processor's hardware or by instructions in software form. The steps of the methods disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are not provided here.
[0238] In one implementation, the communication device 1100 may correspond to the terminal device in the above method embodiments, and may be used to execute the various steps and / or processes executed by the terminal device in the above method embodiments. The processor 1110 may be used to execute instructions stored in the memory 1130, and when the processor 1110 executes the instructions stored in the memory, the processor 1110 is used to execute the various steps and / or processes of the above method embodiments corresponding to the terminal device.
[0239] In another implementation, the communication device 1100 may correspond to the network device in the above method embodiments and may be used to execute the various steps and / or processes executed by the network device in the above method embodiments. The processor 1110 may be used to execute instructions stored in the memory 1130, and when the processor 1110 executes the instructions stored in the memory, the processor 1110 is used to execute the various steps and / or processes of the above method embodiments corresponding to the network device.
[0240] It should be understood that the aforementioned processing device can be one or more chips. For example, the processing device can be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0241] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0242] According to the method provided in the embodiments of this application, this application also provides a chip system, which includes one or more processors for calling and executing instructions stored in memory, thereby causing the method described in the embodiments of this application to be executed. The chip system may be composed of chips or may include chips and other discrete devices.
[0243] The chip system may include input circuits or interfaces for transmitting information or data, and output circuits or interfaces for receiving information or data.
[0244] According to the method provided in the embodiments of this application, this application also provides a communication system, which includes the aforementioned network device and terminal device.
[0245] According to the method provided in the embodiments of this application, this application also provides a computer program product, which includes: computer program code, which, when run on a computer, causes the computer to execute the various steps or processes executed by the network device or terminal device in any of the foregoing method embodiments.
[0246] According to the method provided in the embodiments of this application, this application also provides a computer-readable storage medium storing program code, which, when run on a computer, causes the computer to execute the various steps or processes executed by the network device or terminal device in any of the foregoing method embodiments.
[0247] The computer-readable storage medium may be the aforementioned volatile memory or non-volatile memory, or it may include both volatile memory and non-volatile memory.
[0248] In the embodiments of this application, the terms and English abbreviations are exemplary examples given for ease of description and should not be construed as limiting the application in any way. This application does not preclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.
[0249] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated.
[0250] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0251] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0252] In summary, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for reporting location information, characterized in that, Applied to a terminal device, the method includes: When the terminal device is located at a first location and the positioning location is a second location, at a first moment, in response to receiving a first call event, positioning begins, where the second location is different from the first location; At the second moment, a first call invitation INVITE message is sent to the network device. The second moment is after the first moment, and the first INVITE message includes the second position. At the third moment, the first position is located, and the third moment is after the second moment; At the fourth moment, a first update message or a first re-invite message is sent to the network device. The fourth moment is after the third moment, and the first update message or the first re-invite message carries the first position.
2. The method according to claim 1, characterized in that, After sending an UPDATE message or a RE-INVITE message to the network device, the method further includes: When the terminal device is located at the third location and the positioning location is the first location, at the fifth moment, in response to receiving the second call event, positioning begins, where the first location is different from the third location; At the sixth moment, the third position is located, and the sixth moment is after the fifth moment. At the seventh moment, a second INVITE message carrying the third location is sent to the network device, the seventh moment being after the sixth moment.
3. The method according to claim 2, characterized in that, After sending the second INVITE message to the network device, the method further includes: At the eighth moment, a second UPDATE message or a second RE-INVITE message is sent to the network device. The eighth moment is after the seventh moment. The second UPDATE message and the second RE-INVITE message do not carry location information.
4. The method according to any one of claims 1-3, characterized in that, Before sending the first call invitation INVITE message to the network device at the second moment, the method further includes: Location tracking not completed.
5. The method according to claim 4, characterized in that, Before determining that positioning has not been completed, the method further includes: The first positioning position before the first moment is determined to be the same as the second positioning position after the first moment.
6. The method according to claim 5, characterized in that, The method further includes: Before the first moment, a call to the first service number is detected, and the first location is read, which is the second location; After the first moment, after an interval of a first duration, the second positioning position is read, and the second positioning position is the second location.
7. The method according to claim 2, characterized in that, Before sending the second INVITE message carrying the third location to the network device at the seventh moment, the method further includes: Determine that positioning has been completed, and / or determine that the third positioning position before the fifth moment is different from the fourth positioning position after the fifth moment.
8. The method according to claim 7, characterized in that, The method further includes: Before the fifth moment, a call to the second service number is detected, and the third location is read, which is the first location; After the fifth time point, after an interval of the first time period, the fourth positioning position is read, and the fourth positioning position is the third position.
9. The method according to claim 6 or 8, characterized in that, The first duration is greater than or equal to the estimated duration for completing the positioning.
10. The method according to any one of claims 4-8, characterized in that, The terminal device includes a positioning module; The starting positioning includes: The positioning module is controlled to start positioning; wherein, after the positioning is completed, the positioning module sends a broadcast message. If no broadcast message is heard, the positioning is not completed; if a broadcast message is heard, the positioning is completed.
11. A terminal device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the terminal device to perform the method as described in any one of claims 1-10.
12. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-10.
13. A computer program product comprising computer instructions, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-10.