Position information query method and device, equipment and storage medium

By using a query device to obtain the identifiers of network element devices and base stations based on the device's identifier, the problem of low operability of location information in existing technologies is solved, and the effect of accurately determining the device location without relying on GPS is achieved.

CN116156419BActive Publication Date: 2025-12-23CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211729101.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-12-23
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In existing technologies, management devices can only determine location information when the communication device has GPS positioning service enabled, which reduces the operability of the location information.

Method used

The device receives the identifier of the target network element device by querying the device, obtains the identifier of the target network element device, and obtains the identifier of the target base station based on the identifier of the target network element device. Finally, the location information of the target base station is determined, and thus the location of the device is determined.

Benefits of technology

It improves the operability of determining location information, enabling accurate acquisition of device location information without relying on GPS positioning services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156419B_ABST
    Figure CN116156419B_ABST
Patent Text Reader

Abstract

The application provides a position information query method and device, equipment and storage medium, relates to the field of communication, and is used for solving the problem of low operability of determining position information. The method comprises the following steps: receiving a query instruction from a first device, the query instruction being used for indicating the position information of a second device, and the query instruction comprising a first identifier of the second device. According to the first identifier, the identifier of a target network element device is acquired, and the target network element device is a network element device accessed by the second device. According to the first identifier and the identifier of the target network element device, the identifier of a target base station is acquired, and the target base station is a base station accessed by the second device. According to the identifier of the target base station, the position information of the target base station is determined. The position information of the target base station is sent to the first device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication, and in particular to a method and device for querying location information, and a storage medium. BACKGROUND

[0002] In recent years, with the development of communication technology, communication devices (such as mobile phones or computers, etc.) have gradually entered people's lives, and the management requirements of management devices (such as servers) for communication devices are also increasing. For example, the management device queries the location information of the communication device.

[0003] Currently, when the management device queries the location information of the communication device, the management device needs to obtain the identifier of the communication device. Then, the management device determines the location information of the communication device through the Global Positioning System (GPS) according to the identifier of the communication device, thereby completing the query of the location information of the communication device. However, in the above technical solution, the management device can only determine the location information of the communication device when the communication device starts the GPS positioning service, which reduces the operability of determining the location information. SUMMARY

[0004] The present application provides a method and device for querying location information, and a storage medium, to solve the problem of low operability of determining location information.

[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for querying location information, which comprises: a location information querying device (which can be referred to as "querying device" for short) receiving a query instruction from a first device, the query instruction being used to instruct to query the location information of a second device, and the query instruction comprising: a first identifier of the second device. The querying device obtains the identifier of a target network element device according to the first identifier, the target network element device being a network element device accessed by the second device. The querying device obtains the identifier of a target base station according to the first identifier and the identifier of the target network element device, the target base station being a base station accessed by the second device. The querying device determines the location information of the target base station according to the identifier of the target base station. The querying device sends the location information of the target base station to the first device.

[0007] Optionally, the method further comprises: sending, by the querying device, verification information to the second device, the verification information being used to indicate whether the location information is allowed to be located; receiving, by the querying device, confirmation information from the second device, the confirmation information being used to indicate that the location information is allowed to be located; and sending, by the querying device, a first query credential to the first device, the first query credential being used to indicate that the location information of the second device is supported to be queried. The method further comprises: receiving, by the querying device, a second query credential from the first device; and if the second query credential is the same as the first query credential, obtaining, by the querying device, the identification of the target network element device according to the first identification.

[0008] Optionally, the query instruction is further used to indicate that the state information of the second device is queried. The method further comprises: obtaining, by the querying device, target state information according to the first identification and the identification of the target network element device, the target state information being the state information of the second device; and sending, by the querying device, the target state information to the first device.

[0009] Optionally, the state information comprises at least one of the following: registration management (RM) state information, an international mobile equipment identity (IMEI), and connection management (CM) state information.

[0010] Optionally, the query instruction is further used to indicate that the trajectory information of the second device is queried, and the query instruction further comprises a target time period. The method further comprises: determining, by the querying device, at least one target location information from historical location information according to the first identification and the target time period, the historical location information comprising location information of base stations connected by the second device at different time points, the target location information being location information in the target time period in the historical location information; generating, by the querying device, target trajectory information according to the at least one target location information, the target trajectory information comprising the at least one target location information, the target trajectory information being used to indicate a trajectory of the second device in the target time period; and sending, by the querying device, the target trajectory information to the first device.

[0011] In a second aspect, the present application provides a querying device for location information, the device comprising: a receiving module, a processing module, and a sending module.

[0012] The receiving module is configured to receive a query instruction from a first device, the query instruction being used to indicate that location information of a second device is queried, the query instruction comprising a first identification of the second device. The processing module is further configured to obtain an identification of a target network element device according to the first identification, the target network element device being a network element device accessed by the second device. The processing module is further configured to obtain an identification of a target base station according to the first identification and the identification of the target network element device, the target base station being a base station accessed by the second device. The processing module is further configured to determine location information of the target base station according to the identification of the target base station. The sending module is configured to send the location information of the target base station to the first device.

[0013] Optionally, the sending module is further configured to send verification information to the second device, the verification information being used to indicate whether to allow the positioning of the location information. The receiving module is further configured to receive confirmation information from the second device, the confirmation information being used to indicate the allowance of the positioning of the location information. The sending module is further configured to send a first query credential to the first device, the first query credential being used to indicate the support for the query of the location information of the second device. The receiving module is further configured to receive a second query credential from the first device. The processing module is specifically configured to acquire the identity of the target network element device according to the first identity if the second query credential is the same as the first query credential.

[0014] Optionally, the query instruction is further used to indicate the query of state information of the second device. The processing module is further configured to acquire target state information according to the first identity and the identity of the target network element device, the target state information being the state information of the second device. The sending module is further configured to send the target state information to the first device.

[0015] Optionally, the state information includes at least one of the following: registration management (RM) state information, an international mobile equipment identity (IMEI), and connection management (CM) state information.

[0016] Optionally, the query instruction is further used to indicate the query of trajectory information of the second device, and the query instruction further includes a target time period. The processing module is further configured to determine at least one target location information from historical location information according to the first identity and the target time period, the historical location information including location information of base stations connected by the second device at different time instants, and the target location information being location information in the target time period in the historical location information. The processing module is further configured to generate target trajectory information according to the at least one target location information, the target trajectory information including the at least one target location information, and the target trajectory information being used to indicate a trajectory of the second device in the target time period. The sending module is further configured to send the target trajectory information to the first device.

[0017] In a third aspect, a device for querying location information is provided. The device includes a processor and a memory coupled to the processor. The memory is configured to store one or more programs including computer-executable instructions. When the device for querying location information is running, the processor executes the computer-executable instructions stored in the memory to implement the method for querying location information as described in the first aspect and any possible implementation manner of the first aspect.

[0018] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are run on a computer, the computer executes the method for querying location information as described in the first aspect and any possible implementation manner of the first aspect.

[0019] In a fifth aspect, the present application provides a computer program product applied to a server, the computer program product comprising computer instructions, when the computer instructions are executed on the server, the server implements the method for querying location information as described in the first aspect and any possible implementation manner of the first aspect.

[0020] The technical problems and effects of the above-mentioned scheme of the location information querying device, the equipment, the computer storage medium or the computer program product can refer to the technical problems and effects of the first aspect, which will not be repeated here.

[0021] The technical solutions provided by the present application at least have the following beneficial effects: the querying device can receive the query instruction from the first device, the query instruction is used to indicate the location information of the second device, and the query instruction comprises the identifier of the second device. Then, the querying device can obtain the identifier of the target network element device according to the first identifier, the target network element device being the network element device accessed by the second device. Then, the querying device can obtain the identifier of the target base station according to the first identifier and the identifier of the target network element device, the target base station being the base station accessed by the second device. Then, the querying device determines the location information of the target base station according to the identifier of the target base station. Then, the querying device sends the location information of the target base station to the first device. That is, the querying device can determine the base station accessed by the terminal according to the network element device accessed by the terminal, and determine the location information of the terminal according to the location information of the base station. In this way, the operability of determining the location information can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0022] Figure 1 A communication system schematic diagram is provided for the embodiments of the present application;

[0023] Figure 2 A flowchart of a location information querying method is provided for the embodiments of the present application;

[0024] Figure 3 A flowchart of another location information querying method is provided for the embodiments of the present application;

[0025] Figure 4 An example schematic diagram of a display page is provided for the embodiments of the present application;

[0026] Figure 5 A flowchart of another location information querying method is provided for the embodiments of the present application;

[0027] Figure 6 An example schematic diagram of another display page is provided for the embodiments of the present application;

[0028] Figure 7A structural schematic diagram of a position information query device provided by an embodiment of the present application;

[0029] Figure 8 A structural schematic diagram of a position information query device provided by an embodiment of the present application;

[0030] Figure 9 A conceptual partial view of a computer program product provided by an embodiment of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the protection scope of the present application.

[0032] The character " / " in the present application generally represents an "or" relationship between the associated objects before and after it. For example, A / B can be understood as A or B.

[0033] The terms "first" and "second" in the description and claims of the present application are used to distinguish different objects, but not to describe a specific order of the objects.

[0034] In addition, the terms "include" and "have" and any variations thereof in the description of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but can optionally include other steps or modules not listed, or can optionally include other steps or modules inherent to the process, method, product or device.

[0035] In addition, in the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance or illustration. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of "exemplary" or "for example" is intended to present the concept in a specific manner.

[0036] Before the position information query method provided by the embodiments of the present application is described in detail, the implementation environment and application scenario of the embodiments of the present application are introduced.

[0037] First, the application scenario of the embodiments of the present application is introduced.

[0038] The location information query method of this application embodiment is applied to a scenario where the location information of a device is queried. In related technologies, when a management device queries the location information of a communication device, the management device needs to obtain the identifier of the communication device. Then, based on the identifier of the communication device, the management device determines the location information of the communication device via GPS, thereby completing the query of the location information of the communication device.

[0039] In summary, in the current technical solution, the management device can only determine the location information of the communication device when the GPS positioning service is enabled, which reduces the operability of determining the location information.

[0040] To address the aforementioned problems, this application provides a method for querying location information. The querying device can receive an instruction from a first device to query the location information of a second device. This instruction includes the identifier of the second device. Then, the querying device can obtain the network element device to which the second device is connected based on the identifier of the second device. Next, the querying device can obtain the identifier of the base station to which the second device is connected based on the identifier of the second device and the network element device to which the second device is connected, and determine the location information of the base station to which the second device is connected based on the identifier of the base station. Finally, the querying device sends the location information of the base station to which the second device is connected, as the location information of the second device, to the first device. In other words, the querying device can determine the base station to which the terminal is connected based on the network element device to which the terminal is connected, and determine the location information of the terminal based on the location information of the base station. This improves the operability of determining location information.

[0041] The implementation environment of the embodiments of this application is described below.

[0042] like Figure 1 The diagram illustrates a communication system provided in an embodiment of this application. The communication system includes: a management device (such as server 101), at least one communication device (such as terminal 102, terminal 103), and at least one network element device (such as network element device 104, network element device 105). Server 101 can communicate with terminal 102, terminal 103, network element device 104, and network element device 105 via wired / wireless communication.

[0043] The server 101 can receive a query instruction from the terminal 102 for querying the location information of the terminal 103. The server can send verification information for determining whether to allow positioning of the location information to the terminal 103. The server 101 can also receive confirmation information from the terminal 103 indicating that the positioning of the location information is allowed. The server 101 can also send query credentials to the terminal 102 indicating that the terminal 103 supports querying of the location information. The server 101 can also receive the query credentials from the terminal 102 and manage the query credentials from the terminal 102. The server 101 can also send a query instruction to the network element device 104 for querying the network element device accessed by the terminal 103, and receive information of the network element device 105 from the network element device 104. The server 101 can also send a query instruction to the network element device 105 for querying the base station accessed by the terminal 103, and receive the identity of the base station accessed by the terminal 103 from the network element device 105. The server 101 can determine the location information of the base station accessed by the terminal 103 based on the identity of the base station accessed by the terminal 103, and send the location information of the base station accessed by the terminal 103 to the terminal 102.

[0044] In some embodiments, the server 101 can interact with the terminal 102 (or the terminal 103) through the Hyper Text Transfer Protocol (HTTP) protocol, and the server can interact with the network element device 104 (or the network element device 105) through the mobile markup language (MML) protocol.

[0045] The server (such as the server 101) can be a physical server or a cloud server.

[0046] The terminal (such as the terminal 102 and the terminal 103) can be a device with transceiving function. The terminal can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; can be deployed on water surface (such as ships, etc.); can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal includes handheld devices, vehicle-mounted devices, wearable devices or computing devices with wireless communication function. Exemplarily, the terminal can be a mobile phone, a tablet computer or a computer with wireless transceiving function. The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grid, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0047] In some embodiments, the network element device 104 can be a home subscriber server (HSS) network element device. Alternatively, the network element device 104 can be a unified data management (UDM) entity.

[0048] In some embodiments, the network element device 105 can be a mobility management entity (MME). Alternatively, the network element device 105 can be an access and mobility management function (AMF) entity. Alternatively, the network element device 105 can be a visitor location register (VLR).

[0049] After the application scenario and implementation environment of the embodiments of the application are described, the location information query method provided by the embodiments of the application is described in detail below in combination with the implementation environment.

[0050] The methods in the following embodiments can be implemented in the application scenario and implementation environment described above. The embodiments of the application are described in detail below in combination with the accompanying drawings.

[0051] Figure 2 A flowchart of a location information query method provided by the embodiments of the application is shown in FIG. 2. As shown in FIG. 2, the method can include S201-S205. Figure 2

[0052] S201, the server receives a query instruction from a first device.

[0053] The query instruction is used to indicate the location information of a second device, and the query instruction includes a first identifier of the second device.

[0054] In a possible design, the first identifier can be an International Mobile Equipment Identity (IMEI) of the second device.

[0055] In another possible design, the first identifier can be a Mobile Subscriber International ISDN / PSTN number (MSISDN) corresponding to a Subscriber Identification Module (SIM) in the second device. ​

[0056] S202, the server acquires the identifier of the target network element device according to the first identifier.

[0057] The target network element device is a network element device accessed by the second device.

[0058] In a possible implementation, after the server acquires the query instruction from the first device, the server can send the first identifier to the HSS and the UDM entity respectively. The HSS stores identifiers of a plurality of first preset devices and identifiers of a plurality of first preset network element devices, one identifier of a first preset device corresponds to one identifier of a first preset network element device. The UDM entity stores identifiers of a plurality of second preset devices and identifiers of a plurality of second preset network element devices, one identifier of a second preset device corresponds to one identifier of a second preset network element device. Then, the HSS can receive the first identifier from the server. If the HSS determines that there is an identifier of a first preset device in the plurality of identifiers of first preset devices that is the same as the first identifier, the HSS determines the identifier of the target network element device according to the identifier of the first preset device in the plurality of identifiers of first preset devices that is the same as the first identifier, and sends the identifier of the target network element device to the server.

[0059] Similarly, the UDM entity can receive the first identifier from the server. If the UDM entity determines that there is an identifier of a second preset device in the plurality of identifiers of second preset devices that is the same as the first identifier, the UDM entity determines the identifier of the target network element device according to the identifier of the second preset device in the plurality of identifiers of second preset devices that is the same as the first identifier, and sends the identifier of the target network element device to the server.

[0060] In a possible design, if the HSS determines that there is an identifier of a first preset device in the plurality of identifiers of first preset devices that is the same as the first identifier, the target network element device can be any one of an MME and a VLR.

[0061] For example, as shown in Table 1 and Table 2, the correspondence between the identifiers of preset devices stored by the HSS and the identifiers of MMEs and the correspondence between the identifiers of preset devices and VLRs are shown respectively.

[0062] Table 1: Correspondence between identifiers of preset devices and identifiers of MMEs

[0063]

[0064] Table 2: Correspondence between identifiers of preset devices and identifiers of VLRs

[0065]

[0066] In another possible design, if the UDM entity determines that there is a second preset device identifier same as the first identifier in the multiple second preset device identifiers, the target network element device can be an AMF entity.

[0067] For example, as shown in Table 3, a correspondence between the identifiers of the preset devices stored by the UDM entity and the identifiers of the AMF entity is shown.

[0068] Table 3: Correspondence between the identifiers of the preset devices and the identifiers of the UDM entity

[0069]

[0070]

[0071] S203: The server obtains the identifier of the target base station according to the first identifier and the identifier of the target network element device.

[0072] The target base station is a base station accessed by the second device.

[0073] In a possible implementation, the server stores multiple third preset network element device identifiers and multiple preset address information, and one third preset network element device identifier corresponds to one preset address information. After the server obtains the identifier of the target network element device, the server can determine, from the multiple third preset network element device identifiers, a third preset network element device identifier same as the identifier of the target network element device, and determine the target address information according to the third preset network element device identifier same as the identifier of the target network element device in the multiple third preset network element device identifiers, where the target address information is the address information of the target network element device. Then, the server sends the first identifier to the target network element device according to the target address information. After that, the server receives the identifier of the target base station from the target network element device.

[0074] In a possible design, the target network element device stores multiple third preset device identifiers and multiple first preset base station identifiers, and one third preset device identifier corresponds to one first preset base station identifier. After the server sends the first identifier to the target network element device, the target network element device can receive the first identifier from the server. Then, the target network element device can determine, from the multiple third preset device identifiers, a third preset device identifier same as the first identifier, and determine the identifier of the target base station according to the third preset device identifier same as the first identifier in the multiple third preset device identifiers, and send the identifier of the target base station to the server.

[0075] S204: The server determines the location information of the target base station according to the identifier of the target base station.

[0076] In a possible implementation, the server stores a plurality of second preset base station identifiers and a plurality of first preset location information, one second preset base station identifier corresponding to one first preset location information. After the server obtains the identifier of the target base station, the server can determine, from the plurality of second preset base station identifiers, a second preset base station identifier that is the same as the identifier of the target base station, and determine the location information of the target base station according to the second preset base station identifier that is the same as the identifier of the target base station.

[0077] In another possible implementation, the server can be connected with a first database, and the server can interact with the first database. The first database stores a plurality of third preset base station identifiers and a plurality of second preset location information, one third preset base station identifier corresponding to one second preset location information. After the server obtains the identifier of the target base station, the server can determine, based on the first database, a third preset base station identifier that is the same as the identifier of the target base station from the plurality of third preset base station identifiers of the first database, and determine the location information of the target base station according to the third preset base station identifier that is the same as the identifier of the target base station, and obtain the location information of the target base station from the first database.

[0078] It should be noted that the first database can be a 5th generation mobile communication technology (5G) engineering parameter database. Alternatively, the first database can be a 4th generation mobile communication technology (4G) engineering parameter database. Alternatively, the first database can be a 3th generation mobile communication technology (3G) engineering parameter database.

[0079] S205. The server sends the location information of the target base station to the first device.

[0080] That is, the server can take the location information of the target base station as the location information of the second device, and the location information of the target base station can indicate the location of the second device. In addition, the server can take the location information of the target base station as the query result of the first device to the location information of the second device, and send the location information of the target base station to the first device.

[0081] The technical solutions provided by the above embodiments at least have the following beneficial effects: The server can receive a query instruction from the first device, the query instruction being used to indicate querying the location information of the second device, and the query instruction comprising an identifier of the second device. Then, the server can acquire an identifier of a target network element device according to the first identifier, the target network element device being a network element device accessed by the second device. Then, the server can acquire an identifier of a target base station according to the first identifier and the identifier of the target network element device, the target base station being a base station accessed by the second device. Then, the server determines the location information of the target base station according to the identifier of the target base station. Then, the server sends the location information of the target base station to the first device. That is, the server can determine the base station accessed by the terminal according to the network element device accessed by the terminal, and determine the location information of the terminal according to the location information of the base station. In this way, the operability of determining the location information can be improved.

[0082] In some embodiments, as shown in FIG. 3, after S201, the method for querying the location information further comprises S301-S304. Figure 3

[0083] S301, the server sends verification information to the second device.

[0084] The verification information is used to indicate whether to allow positioning the location information.

[0085] In some embodiments, after the server sends the verification information to the second device, the second device can receive the verification information from the server and present the verification information to the user. Then, the second device can receive an operation instruction input by the user to the verification information, and delete the verification information.

[0086] In some embodiments, after the server sends the verification information to the second device, the second device can receive the verification information from the server and present the verification information to the user. Then, the second device can receive an operation instruction input by the user to the verification information, and delete the verification information.

[0087] S302, the server receives the confirmation information from the second device, and sends a first query credential to the first device.

[0088] The first query credential is used to indicate that the location information of the second device is supported to be queried.

[0089] S303, the server receives a second query credential from the first device.

[0090] ​In a possible implementation, the first device can receive a second query credential input by the user, and send the second query credential input by the user to the server. Then, the server can obtain the second query credential from the first device.

[0091] As shown in Figure 4 The first device 400 displays a query page 401, which includes a mobile phone number (i.e., a first identifier) input box 402, a query credential input box 403, a query credential obtaining button 404, and a positioning button 405. In response to an operation (e.g., a click operation) on the query credential obtaining button 404, the first device 400 receives a query credential from the server. For example, the mobile phone number input box 402 can be 12345678901, and the query credential input box 403 can be 853461. In response to an operation (e.g., a click operation) on the positioning button 405, the first device 400 sends a query instruction to the server.

[0092] In a possible design, the first device can receive a second query credential input by the user through a preset application (APP).

[0093] It should be noted that the preset APP is not limited in the embodiments of the present application. For example, the preset APP is an operator business hall APP. For another example, the preset APP is a public number. For another example, the preset APP is a social APP.

[0094] S304, the server determines whether the first query credential and the second query credential are the same.

[0095] In some embodiments, if the server determines that the first query credential and the second query credential are the same, the server performs S202.

[0096] In some embodiments, the query instruction is further used to query state information of the second device. After the server receives the query instruction from the first device, the server can further obtain target state information according to the first identifier and the identifier of the target network element device, and send the target state information to the first device. The target state information is the state information of the second device.

[0097] In a possible implementation, the server can determine target address information according to the identifier of the target network element device, and send the first identifier to the target network element device according to the target address information. Then, the server can receive the target state information from the target network element device.

[0098] In a possible design, the target network element device stores a plurality of third preset device identifiers and a plurality of preset state information, and one third preset device identifier corresponds to one preset state information. After the server sends the first identifier to the target network element device, the target network element device can receive the first identifier from the server. Then, the target network element device can determine, from the plurality of third preset device identifiers, a third preset device identifier that is the same as the first identifier, determine the target state information according to the third preset device identifier that is the same as the first identifier, and send the target state information to the server.

[0099] In a possible design, the state information can include at least one of the following: registration management (RM) state information, an IMEI, connection management (CM) state information, mobility management state information, on-off state information, network type information, a time at which the communication device establishes a connection with the network element device, and a time at which the communication device disconnects from the network element device.

[0100] For example, as shown in Table 4, a correspondence between a preset device identifier and preset state information, and a preset base station identifier stored by an AMF entity is shown. In the table, a registered state is used to indicate that a device is in a powered-on state, and a deregistered state is used to indicate that a device is in a powered-off state.

[0101] Table 4: Correspondence between a preset device identifier and preset state information, and a preset base station identifier

[0102] Identity of the pre-set device Pre-set status information (RM status information) Identity of the pre-set base station Identity A Registered state 46001312894005 Identity B Deregistered state 46001312894035 Identity C Registered state 46001222894005

[0103] For example, as shown in Table 5, a correspondence between a preset device identifier and preset state information, and a preset base station identifier stored by an MME is shown. In the table, IDLE is used to indicate that a device is in an idle state, DEREGISTERED is used to indicate that a device is in a powered-off state, and CONNECTED is used to indicate that a device is in a busy state.

[0104] Table 5: Correspondence between a preset device identifier and preset state information, and a preset base station identifier

[0105]

[0106]

[0107] Exemplarily, as shown in Table 6, a correspondence relationship between the identification of the preset device stored by the VLR and the preset state information, and the identification of the preset base station is shown. Wherein, the ATTACH is used to indicate that the device is in the power-on state, and the DETACH is used to indicate that the device is in the power-off state.

[0108] Table 6: Correspondence relationship between the identification of the preset device and the preset state information, and the identification of the preset base station

[0109]

[0110] It should be noted that if the target network element device is an AMF entity, the network mode information in the target state information is 5G. If the target network element device is an MME, the network mode information in the target state information is 4G. If the target network element device is a VLR, the network mode information in the target state information is 3G.

[0111] In a possible implementation, the server stores a plurality of preset IMEIs and a plurality of preset device models, and one preset IMEI corresponds to one preset device model. If the preset state information corresponding to the third preset device whose identification is the same as the first identification in the plurality of third preset device identifications includes the target IMEI, the server can determine the preset IMEI which is the same as the target IMEI from the plurality of preset IMEIs, and determine the target device model according to the preset IMEI which is the same as the target IMEI in the plurality of preset IMEIs, and generate the target state information.

[0112] In another possible implementation, the server can be connected with a second database, and the server can interact with the second database. The second database stores a plurality of preset IMEIs and a plurality of preset device models, and one preset IMEI corresponds to one preset device model. If the preset state information corresponding to the third preset device whose identification is the same as the first identification in the plurality of third preset device identifications includes the target IMEI, the server can determine the preset IMEI which is the same as the target IMEI from the plurality of preset IMEIs of the second database based on the second database, and determine the target device model according to the preset IMEI which is the same as the target IMEI in the plurality of preset IMEIs, and generate the target state information.

[0113] In some embodiments, after the server determines the location information of the target base station and the target state information, the server can also store the determined location information of the target base station and the target state information, and establish a correspondence relationship between the first identification and the determined location information of the target base station and the target state information.

[0114] Exemplarily, as shown in Table 7, the server stores the correspondence relationship between the first identification and the determined location information of the target base station and the target state information.

[0115] Table 7: Correspondence between the first identifier and the location information of the target base station and the target state information

[0116]

[0117] In a possible implementation, after the server determines the location information of the target base station, the server can further acquire a target time, the target time being a time at which the server determines the location information of the target base station. Then, the server can store the location information of the target base station and the target time, and establish a correspondence between the first identifier and the location information of the target base station and the target time.

[0118] In some other embodiments, a timer is deployed in the server, and the timer stores a preset time. The timer can send a query instruction to the server at the preset time. Then, the server can receive the query instruction from the timer and determine the location information of the target base station at the current time. Then, the server can determine whether the location information of the target base station at the current time is the same as the location information of the target base station at the adjacent preset time. If the server determines that the location information of the target base station at the current time is not the same as the location information of the target base station at the adjacent preset time, the server stores the location information of the target base station at the current time.

[0119] In a possible implementation, if the server determines that the location information of the target base station at the current time is the same as the location information of the target base station at the adjacent preset time, the server deletes the location information of the target base station at the current time.

[0120] The above embodiments will be described below in combination with specific examples. As shown in FIG. 5, the process of the above embodiments includes S501-S505. Figure 5

[0121] S501: The timer initiates a query (i.e., the timer sends a query instruction to the server at a preset time).

[0122] S502: The server queries the location information (i.e., the server receives the query instruction from the timer and determines the location information of the target base station at the current time).

[0123] S503: The server determines whether the queried location information has changed compared with the last location information (i.e., the server determines whether the location information of the target base station at the current time is the same as the location information of the target base station at the adjacent preset time).

[0124] In some embodiments, if the server determines that the queried location information has changed compared with the last location information, S504 is performed.

[0125] ​S504. The server records the time and stores the queried location information (i.e., the server stores the location information of the target base station at the current moment).

[0126] In other embodiments, if the server determines that the queried location information has not changed compared to the previous location information, then S505 is executed.

[0127] S505. The server deletes the queried location information (i.e., the server deletes the location information of the target base station at the current moment).

[0128] In some embodiments, the query instruction is further used to instruct the query of trajectory information of the second device, and the query instruction further includes: a target time period. After the server receives the query instruction from the first device, the server can also determine at least one target location information from historical location information based on the first identifier and the target time period. Then, the server can generate target trajectory information based on the at least one target location information and send the target trajectory information to the first device. The historical location information includes: location information of base stations connected to by the second device at different times; the target location information is the location information within the target time period from the historical location information; the target trajectory information includes at least one target location information and is used to indicate the trajectory of the second device within the target time period.

[0129] In some embodiments, the server may also generate a target map based on the address information of the target base station and send the target map to the first device. The target map includes the address information of the target base station. The first device can then present the target map to the user.

[0130] In one possible design, the server can also generate a target map based on the target base station's address information and the target status information. The target map may also include the target status information.

[0131] For example, such as Figure 6 As shown, the first device 600 displays a query page 601, which includes: network standard information 602, location information 603, device model 604, and map 605. Among them, the network standard information 602 is 4G, the location information 603 is city A, street A, building A, the device model 604 is model A, and the map 605 includes coordinate points 606.

[0132] In some embodiments, the server stores identifiers of multiple fourth preset devices, which are devices that support querying the location information of any device. When the server receives a query instruction from the first device, the server can also obtain the identifier of the first device. If there is an identifier among the multiple fourth preset devices that is the same as the identifier of the first device, the server can skip S301 and directly execute S202.

[0133] In some embodiments, the server may charge the first device a query fee.

[0134] It should be noted that when the server charges the first device for the query, the server can interface with the billing and accounting system to provide package information and query records.

[0135] The foregoing primarily describes the solutions provided in the embodiments of this application from the perspective of computer devices. It is understood that, in order to achieve the aforementioned functions, the computer device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the location information query method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0136] This application also provides a location information query device. This location information query device can be a computer device, a CPU within the aforementioned computer device, a processing module for checking lines within the aforementioned computer device, or a client application for checking lines within the aforementioned computer device.

[0137] This application embodiment can divide the location information query device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0138] like Figure 7 The diagram shown is a structural schematic of a location information query device provided in an embodiment of this application. The location information query device is used to perform... Figure 2 or Figure 3 The location information query method shown is described. The location information query device 700 may include: a receiving module 701, a processing module 702, and a sending module 703.

[0139] The receiving module 701 is configured to receive a query instruction from the first device, the query instruction being used to query the location information of the second device, and the query instruction comprising a first identifier of the second device.

[0140] Optionally, the sending module 703 is further configured to send verification information to the second device, the verification information being used to indicate whether the location information is allowed to be positioned. The receiving module 701 is further configured to receive confirmation information from the second device, the confirmation information being used to indicate that the location information is allowed to be positioned. The sending module 703 is further configured to send a first query credential to the first device, the first query credential being used to indicate that the location information of the second device is supported to be queried. The receiving module 701 is further configured to receive a second query credential from the first device. The processing module 702 is specifically configured to acquire the identifier of the target network element device according to the first identifier if the second query credential is the same as the first query credential.

[0141] Optionally, the query instruction is further used to indicate state information of the second device. The processing module 702 is further configured to acquire target state information according to the first identifier and the identifier of the target network element device, the target state information being the state information of the second device. The sending module 703 is further configured to send the target state information to the first device.

[0142] Optionally, the state information comprises at least one of the following: registration management (RM) state information, an international mobile equipment identity (IMEI), and connection management (CM) state information.

[0143] Optionally, the query instruction is further used to indicate trajectory information of the second device, and the query instruction further comprises a target time period. The processing module 702 is further configured to determine at least one target location information from historical location information according to the first identifier and the target time period, the historical location information comprising location information of a base station connected by the second device at different time instants, and the target location information being location information in the target time period in the historical location information. The processing module 702 is further configured to generate target trajectory information according to the at least one target location information, the target trajectory information comprising the at least one target location information, and the target trajectory information being used to indicate a trajectory of the second device in the target time period. The sending module 703 is further configured to send the target trajectory information to the first device.

[0144] Figure 8This is a schematic diagram of the hardware structure of a location information query device according to an exemplary embodiment. The location information query device may include a processor 802, which executes application code to implement the location information query method of this application.

[0145] The processor 802 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0146] like Figure 8 As shown, the location information query device may further include a memory 803. The memory 803 stores the application code that executes the scheme of this application, and its execution is controlled by the processor 802.

[0147] Memory 803 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory 803 may exist independently and be connected to processor 802 via bus 804. Memory 803 may also be integrated with processor 802.

[0148] like Figure 8 As shown, the location information query device may further include a communication interface 801, wherein the communication interface 801, processor 802, and memory 803 may be coupled to each other, for example, through a bus 804. The communication interface 801 is used for information exchange with other devices, such as enabling the location information query device to exchange information with other devices.

[0149] It should be pointed out that, Figure 8The device structure shown does not constitute a limitation on the device used to query this location information, except... Figure 8 In addition to the components shown, the device for querying location information may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0150] In actual implementation, the functions implemented by processing module 702 can be derived by... Figure 8 The processor 802 shown calls the program code in memory 803 to implement this.

[0151] This application also provides a computer-readable storage medium storing instructions that, when executed by a processor of a computer device, enable the computer to perform the location information query method provided in the above-described embodiments. For example, the computer-readable storage medium may be a memory 803 including instructions, which may be executed by a processor 802 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.

[0152] Figure 9 A conceptual partial view of a computer program product provided in an embodiment of this application is shown as an example. The computer program product includes a computer program for executing computer processes on a computing device.

[0153] In one embodiment, the computer program product is provided using a signal bearer medium 900. The signal bearer medium 900 may include one or more program instructions that, when executed by one or more processors, can provide the above-mentioned... Figure 2 or Figure 3 The described function or part of the function. Therefore, for example, refer to... Figure 2 In the embodiment shown, one or more features of S201 to S205 can be fulfilled by one or more instructions associated with the signal carrying medium 900. Furthermore, Figure 9 The program instructions in the document also describe example instructions.

[0154] In some examples, the signal carrying medium 900 may include a computer-readable medium 901, such as, but not limited to, a hard disk drive, a compact disc (CD), a digital video disc (DVD), a digital magnetic tape, a memory, a read-only memory (ROM), or a random access memory (RAM), etc.

[0155] In some embodiments, the signal-bearing medium 900 can comprise a computer- readable medium 902, such as, but not limited to, memory, a Compact Disc Read Only Memory (CD-ROM), a Read / Write (R / W) CD, a R / W DVD, etc.

[0156] In some embodiments, the signal-bearing medium 900 can comprise a communication medium 903, such as, but not limited to, digital and / or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communication link, a wireless communication link, etc.).

[0157] The signal-bearing medium 900 can be conveyed by a wireless form of the communication medium 903. The one or more program instructions can be, for example, computer-executable or logic-implementing instructions.

[0158] In some examples, such as for Figure 7 The described location information querying apparatus can be configured to provide various operations, functions, or acts in response to the one or more program instructions embodied in one or more of the computer-readable medium 901, the computer-recordable medium 902, and / or the communication medium 903.

[0159] From the above description of embodiments, it is apparent that a person skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules, that is, the internal structure of the apparatus is divided into different functional modules to complete the full classification or part of the functions described above.

[0160] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules or units is only a logical function division, and in actual implementation, another division manner can be adopted, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.

[0161] The units described as separate components can or can not be physically separate, and the components displayed as units can be one physical unit or a plurality of physical units, that is, can be in one place or can be distributed to a plurality of different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0162] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.

[0163] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application are essentially or say the part that contributes to the prior art or the whole classification or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute the whole classification or part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk and various storage program codes.

[0164] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of inquiring about position information, characterized by, The method comprises: receiving a query instruction from a first device, the query instruction being used to query location information of a second device and state information of the second device, the query instruction comprising: a first identifier of the second device; sending the first identifier to a home subscriber server (HSS) and a unified data management (UDM) entity respectively, and receiving an identifier of a target network element device, the target network element device being a network element device accessed by the second device; the HSS storing a plurality of first preset device identifiers and a plurality of first preset network element device identifiers, one first preset device identifier corresponding to one first preset network element device identifier, the UDM entity storing a plurality of second preset device identifiers and a plurality of second preset network element device identifiers, one second preset device identifier corresponding to one second preset network element device identifier; wherein the HSS determines the identifier of the target network element device according to a first preset device identifier identical to the first identifier in the plurality of first preset device identifiers, and sends the identifier of the target network element device to a server; the UDM entity determines the identifier of the target network element device according to a second preset device identifier identical to the first identifier in the plurality of second preset device identifiers, and sends the identifier of the target network element device to the server; determining a third preset network element device identifier identical to the identifier of the target network element device from a plurality of third preset network element device identifiers, and determining target address information according to the third preset network element device identifier identical to the identifier of the target network element device in the plurality of third preset network element device identifiers, the target address information being address information of the target network element device; wherein the server stores a plurality of third preset network element device identifiers and a plurality of preset address information, one third preset network element device identifier corresponding to one preset address information; sending the first identifier to the target network element device according to the target address information, and receiving an identifier of a target base station and target state information from the target network element device, the target base station being a base station accessed by the second device, the target state information being state information of the second device; the state information comprising at least one of the following: registration management (RM) state information, an international mobile equipment identity (IMEI), and connection management (CM) state information; determining a second preset base station identifier identical to the identifier of the target base station from a plurality of second preset base station identifiers, and determining location information of the target base station according to the second preset base station identifier identical to the identifier of the target base station in the plurality of second preset base station identifiers; wherein the server stores a plurality of second preset base station identifiers and a plurality of first preset location information, one second preset base station corresponding to one first preset location information; sending the location information of the target base station and the target state information to the first device.

2. The method of claim 1, wherein, After the receiving of the query instruction from the first device, the method further comprises: sending verification information to the second device, the verification information being used to indicate whether to allow positioning of the location information; receiving confirmation information from the second device, the confirmation information being used to indicate that positioning of the location information is allowed, and sending a first query credential to the first device, the first query credential being used to indicate that querying of the location information of the second device is supported; receiving a second query credential from the first device; the target network element device identifier is obtained according to the first identifier, including: if the second query credential is the same as the first query credential, the target network element device identifier is obtained according to the first identifier.

3. The method according to claim 1 or 2, characterized in that, the query instruction is also used to indicate that trajectory information of the second device is queried, and the query instruction further includes a target time period; the method further includes: determining at least one target location information from historical location information according to the first identifier and the target time period, the historical location information including location information of base stations connected by the second device at different time instants, and the target location information being location information in the target time period in the historical location information; generating target trajectory information according to the at least one target location information, the target trajectory information including the at least one target location information, and the target trajectory information being used to indicate a trajectory of the second device in the target time period; sending the target trajectory information to the first device.

4. A position information inquiry apparatus characterized by comprising: The apparatus includes: a receiving module configured to receive a query instruction from a first device, the query instruction being used to indicate that location information of a second device and state information of the second device are queried, and the query instruction including a first identifier of the second device; a sending module configured to send the first identifier to a home subscriber server (HSS) and a unified data management (UDM) entity respectively; the receiving module is configured to receive a target network element device identifier, the target network element device being a network element device accessed by the second device; the HSS stores a plurality of first preset device identifiers and a plurality of first preset network element device identifiers, one first preset device identifier corresponding to one first preset network element device identifier; the UDM entity stores a plurality of second preset device identifiers and a plurality of second preset network element device identifiers, one second preset device identifier corresponding to one second preset network element device identifier; wherein the HSS determines the target network element device identifier according to a first preset device identifier that is the same as the first identifier among the plurality of first preset device identifiers, and sends the target network element device identifier to a server; and the UDM entity determines the target network element device identifier according to a second preset device identifier that is the same as the first identifier among the plurality of second preset device identifiers, and sends the target network element device identifier to the server. The processing module is configured to determine an identity of a third preset network element device that is the same as the identity of the target network element device from a plurality of identities of third preset network element devices, and determine target address information according to the identity of the third preset network element device that is the same as the identity of the target network element device from the plurality of identities of third preset network element devices, the target address information being address information of the target network element device; the server stores a plurality of identities of third preset network element devices and a plurality of preset address information, and one identity of a third preset network element device corresponds to one preset address information; The sending module is further configured to send the first identity to the target network element device according to the target address information. The receiving module is further configured to receive an identity of a target base station and target state information from the target network element device, the target base station being a base station accessed by the second device, and the target state information being state information of the second device; the state information includes at least one of the following: registration management (RM) state information, an international mobile equipment identity (IMEI), and connection management (CM) state information. The processing module is further configured to determine an identity of a second preset base station that is the same as the identity of the target base station from a plurality of identities of second preset base stations, and determine location information of the target base station according to the identity of the second preset base station that is the same as the identity of the target base station from the plurality of identities of second preset base stations; the server stores a plurality of identities of second preset base stations and a plurality of first preset location information, and one second preset base station corresponds to one first preset location information. The sending module is further configured to send the location information of the target base station and the target state information to the first device.

5. The apparatus of claim 4, wherein The sending module is further configured to send verification information to the second device, the verification information being used to indicate whether to allow positioning of location information. The receiving module is further configured to receive confirmation information from the second device, the confirmation information being used to indicate to allow positioning of location information. The sending module is further configured to send a first query credential to the first device, the first query credential being used to indicate support for querying location information of the second device. The receiving module is further configured to receive a second query credential from the first device. The processing module is specifically configured to acquire the identity of the target network element device according to the first identity if the second query credential is the same as the first query credential.

6. The apparatus of claim 4 or 5, wherein, The query instruction is further used to indicate to query trajectory information of the second device, and the query instruction further includes a target time period. The processing module is further configured to determine at least one target location information from historical location information according to the first identity and the target time period, the historical location information including location information of base stations connected by the second device at different times, and the target location information being location information in the target time period in the historical location information. The processing module is further configured to determine at least one target location information from historical location information according to the first identity and the target time period, the historical location information including location information of base stations connected by the second device at different times, and the target location information being location information in the target time period in the historical location information. The processing module is further configured to generate target trajectory information according to the at least one target position information, the target trajectory information comprising the at least one target position information, and the target trajectory information being used to indicate a trajectory of the second device in the target time period. The sending module is further configured to send the target trajectory information to the first device.

7. A position information inquiry apparatus characterized by comprising: Comprising: a processor and a memory; the processor and the memory are coupled; the memory is configured to store one or more programs, the one or more programs comprising computer execution instructions, when a position information query device runs, the processor executes the computer execution instructions stored in the memory, so that the position information query device executes the position information query method as claimed in any one of claims 1-3.

8. A computer-readable storage medium having stored therein instructions, the computer-readable storage medium comprising: When the computer executes the instructions, the computer executes the position information query method as claimed in any one of claims 1-3.

Citation Information

Patent Citations

  • Wireless device and mobile terminal positioning method and system

    CN102325324A

  • Selection method and device, management function entity, access network node, GMLC and NRF

    CN110913473A

  • Position information obtaining method, position information sending method, terminal and control plane node

    CN113225668A