User positioning method and device, electronic equipment and storage medium
By forcibly releasing and re-establishing the user's session, and using the policy control function network element to query location information, the location interruption and inaccuracy caused by changes in user equipment are solved, the continuity and accuracy of user positioning are achieved, and the universality is improved.
Patent Information
- Application Number
- CN202411140622.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the existing user positioning technology, when APP deletion, SIM card replacement or device loss on the user device will be interrupted, location information sharing will be poor, and it will not be reported in time when the cell switches in the same tracking area. The cell information leads to inaccurate positioning.
By collecting the session information of the target user, we determine whether it meets the mandatory update requirements, forcibly release the session and re-establish the session, determine the latest location of the user based on the re-established session information, and use the policy control function network element to query the national location information to solve the roaming problem.
It realizes the continuity and accuracy of user positioning, improves the universality of user positioning, and ensures that users can report location information in a timely manner when switching cells in the same tracking area, avoiding the problem of inaccurate positioning.
Smart Images

Figure CN119233391A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a user positioning method, device, electronic device and storage medium. Background Art
[0002] In daily life, user positioning function has become a necessary requirement for people. For example, user positioning function is needed in scenarios such as navigation services, emergency rescue, and emergency services.
[0003] The current user positioning technology is usually based on GPS (Global Positioning System) or Beidou system to achieve user positioning. However, in this user positioning method, the user to be positioned needs to share the location information with the search party in advance through GPS or Beidou system, and during the location information sharing period, if the relevant APP (Application) on the user's device is deleted, the user's device changes the SIM (Subscriber Identity Module) card, or the user's device is lost, the location information sharing will be interrupted, and the user positioning cannot be performed continuously, and the versatility is poor. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application propose a user positioning method, device, electronic device and storage medium to improve the versatility of user positioning.
[0005] According to one aspect of an embodiment of the present application, a user positioning method is provided, the method comprising:
[0006] Collecting first session information of a first session established by a target user;
[0007] determining whether the first session meets a mandatory update requirement based on the first session information, and forcibly releasing the first session when the first session meets the mandatory update requirement;
[0008] collecting second session information of a second session reestablished by the target user after releasing the first session, and collecting second cell information where the target user is located from the second session information;
[0009] When the second cell information is collected successfully, the location information of the target user is determined based on the second cell information.
[0010] Optionally, after collecting the first session information of the first session established by the target user, the method further includes: collecting the first cell information where the target user is located from the first session information, and recording the first cell information;
[0011] After collecting the second cell information where the target user is located from the second session information, the method further includes: when the collection of the second cell information fails, determining the location information of the target user based on the first cell information.
[0012] Optionally, the determining, based on the first session information, whether the first session meets a mandatory update requirement includes:
[0013] Based on the first session information, determining whether the first session is a continuous service session;
[0014] When the first session is a continuous service session, determining that the first session does not meet the mandatory update requirement;
[0015] When the first session is not a continuous service session, it is determined that the first session meets the mandatory update requirement.
[0016] Optionally, the determining, based on the first session information, whether the first session is a continuous service session includes:
[0017] collecting a quality of service parameter of the first session from the first session information;
[0018] When the quality of service parameter is a value representing a continuous service session, it is determined that the first session is a continuous service session.
[0019] Optionally, the forcibly releasing the first session includes: controlling a policy control function network element to issue a release instruction for the first session to the target user, so that the target user releases the first session after receiving the release instruction.
[0020] Optionally, collecting the first session information of the first session established by the target user includes: collecting first session signaling of the first session at an interface on a policy control function network element, and collecting the first session information of the first session according to the first session signaling;
[0021] The collecting of second session information of a second session re-established by the target user after releasing the first session includes: collecting second session signaling of the second session at the interface on the policy control function network element, and collecting second session information of the second session according to the second session signaling.
[0022] Optionally, the collecting second session information of a second session re-established by the target user after releasing the first session includes: collecting, after a preset delay, the second session information of the second session re-established by the target user after releasing the first session.
[0023] Optionally, determining the location information of the target user based on the second cell information includes:
[0024] searching, from a network parameter table of a non-roaming area corresponding to the target user, first location information corresponding to the second cell information;
[0025] When the first location information is searched, determining the first location information as the location information of the target user;
[0026] When the first location information is not found, searching for the second location information corresponding to the second cell information from the network parameter table of the roaming area corresponding to the target user;
[0027] When the second location information is searched, the second location information is determined as the location information of the target user.
[0028] Optionally, before collecting the first session information of the first session established by the target user, the method further includes: after receiving a location request for the target user, verifying the location request;
[0029] The collecting the first session information of the first session established by the target user includes: after the verification is passed, collecting the first session information of the first session established by the target user.
[0030] According to another aspect of an embodiment of the present application, a user positioning device is provided, the device comprising:
[0031] A first collection module, used to collect first session information of a first session established by a target user;
[0032] an updating module, configured to determine whether the first session meets a mandatory update requirement based on the first session information, and forcibly release the first session when the first session meets the mandatory update requirement;
[0033] A second collection module is used to collect second session information of a second session re-established by the target user after releasing the first session, and collect second cell information where the target user is located from the second session information;
[0034] A mapping module is used to determine the location information of the target user based on the second cell information when the second cell information is collected successfully.
[0035] Optionally, the first collection module is further used to collect first cell information where the target user is located from the first session information, and record the first cell information;
[0036] The mapping module is further configured to determine the location information of the target user based on the first cell information when the collection of the second cell information fails.
[0037] Optionally, the update module includes:
[0038] A judging unit, configured to judge whether the first session is a continuous service session based on the first session information;
[0039] The determining unit is configured to determine that the first session does not meet the mandatory update requirement when the first session is a continuous service session; and determine that the first session meets the mandatory update requirement when the first session is not a continuous service session.
[0040] Optionally, the judging unit is specifically configured to collect a service quality parameter of the first session from the first session information; and determine that the first session is a continuous service session when the service quality parameter is a value representing a continuous service session.
[0041] Optionally, the updating module includes: a control unit, configured to control a policy control function network element to send a release instruction for the first session to the target user, so that the target user releases the first session after receiving the release instruction.
[0042] Optionally, the first acquisition module is specifically used to collect first session signaling of the first session at an interface on a policy control function network element, and collect first session information of the first session according to the first session signaling;
[0043] The second collection module is specifically configured to collect second session signaling of the second session at the interface on the policy control function network element, and collect second session information of the second session according to the second session signaling.
[0044] Optionally, the second collecting module is specifically configured to collect, after a preset delay, second session information of a second session re-established by the target user after the first session is released.
[0045] Optionally, the mapping module includes:
[0046] A first search unit, configured to search for first location information corresponding to the second cell information from a network parameter table of a non-roaming area corresponding to the target user;
[0047] A first determining unit, configured to determine the first location information as the location information of the target user when the first location information is searched;
[0048] A second search unit, configured to search for second location information corresponding to the second cell information from a network parameter table of a roaming area corresponding to the target user when the first location information is not found;
[0049] The second determining unit is used to determine the second location information as the location information of the target user when the second location information is searched.
[0050] Optionally, the device further includes: a verification module, configured to verify the location request for the target user after receiving the location request; and the first collection module, specifically configured to collect first session information of the first session established by the target user after the verification is passed.
[0051] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium; when the computer program is executed by the processor, the processor executes the user positioning method as described in any one of the above items.
[0052] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the user positioning method as described in any one of the above items.
[0053] In the embodiment of the present application, when positioning the target user, if it is determined that the first session information of the first session established by the target user meets the mandatory update requirement, the first session is forcibly released. After releasing the first session, the target user will re-establish the second session, and the second cell information where the target user is currently located can be collected based on the second session information of the second session, and then the location information of the target user is determined based on the second cell information. Therefore, the location information obtained is the latest location information where the target user is currently located, thereby solving the problem of inaccurate positioning caused by the target user not reporting the cell information in time when switching cells in the same tracking area, and improving the accuracy of user positioning. In addition, positioning based on the session information of the target user is not affected by the user device used by the target user, and can continuously perform user positioning, thereby improving the versatility of user positioning.
[0054] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solution of the embodiment of the present application, the drawings required for use in the description of the embodiment of the present application will be briefly introduced below. Obviously, the drawings described below are only some drawings of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 is a flowchart of the steps of a user positioning method according to an embodiment of the present application;
[0057] Figure 2 is a schematic diagram of a session establishment process of an embodiment of the present application;
[0058] Figure 3 is a flow chart of a user positioning process according to an embodiment of the present application;
[0059] Figure 4 is a flow chart of a collection process in an embodiment of the present application;
[0060] Figure 5 is a flow chart of a forced update process in an embodiment of the present application;
[0061] Figure 6 is a structural block diagram of a user positioning device according to an embodiment of the present application;
[0062] Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present application;
[0063] Figure 8 It is a structural block diagram of a computer-readable storage medium in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0065] First, the technical terms mentioned in the embodiments of the present application are explained.
[0066] MME (Mobility Management Entity): It is an important component in the LTE (Long-Term Evolution) network. MME is responsible for handling mobility management and communication with other parts of the core network.
[0067] AMF (Access and Mobility Management Function): performs registration, connection, reachability, and mobility management.
[0068] SMF (Session Management function): responsible for tunnel maintenance, IP (Internet Protocol) address allocation and management, UPF (User Plane Function) selection, policy implementation and QoS (Quality of Service) control, billing data collection, roaming, etc.
[0069] PCF (Policy Control function): A unified policy framework that provides policy rules for control plane functions. Similar to PCRF (Policy and Charging Rules Function) in 4G (the 4Generation mobile communication technology).
[0070] DPI (Deep packet inspection) is a special network technology. Generally, network devices only check the Ethernet and IP headers, but do not analyze the content of TCP (Transmission Control Protocol) / UDP (User Datagram Protocol). This is called shallow packet inspection. The corresponding deep packet inspection introduces DPI technology on this basis, which can realize in-depth inspection and analysis of TCP / UDP content.
[0071] TAC (Tracking Area Code): Location area identifier. A TAC includes multiple cells.
[0072] E-UTRAN (Evolved Universal Terrestrial Radio Access Network): It is the radio access network part of the LTE network architecture, responsible for handling wireless communications between mobile users and the evolved packet core network.
[0073] ECI (E-UTRAN Cell Identifier): It is used as a unique identifier for locating mobile users.
[0074] NR (New Radio): It is one of the key technologies for wireless access.
[0075] NCI (NR Cell Identity): The function is to serve as the positioning and unique identification of mobile users.
[0076] MSISDN (Mobile Station International Subscriber Directory Number): It is basically a number used to identify a mobile phone number internationally. It includes a country code and a national destination code that identifies the specific network the user is on, as well as the subscriber number. In the world of mobile telecommunications, it is essentially a technical term for a telephone number.
[0077] IMSI (International Mobile Subscriber Identity): It is a unique identifier used to identify mobile users in GSM (Global System for Mobile Communications), UMTS (Universal Mobile Telecommunications System), LTE and other mobile phone networks. IMSI is usually stored in the SIM card and is associated with the personal information of each mobile user.
[0078] 5QI (5G QoS Indicator): It is used to describe and distinguish different QoS categories to ensure that the network can meet the requirements of different applications. 5QI can define different service levels, such as low latency, high bandwidth, high reliability, etc., according to the characteristics and requirements of network traffic. These different 5QI values can be used to allocate appropriate resources and priorities to specific data flows to achieve customized processing of different types of data.
[0079] In the embodiments of the present application, in order to solve the problems existing in the method of user positioning based on GPS or Beidou system, the method of using network element equipment in the network to query positioning or using signaling analysis positioning is considered. However, there are also some problems in these positioning methods, as follows.
[0080] (1) Query user location using the mobile network: The mobile management function module in the mobile network implements user location query, such as MME, AMF, and SMF.
[0081] However, in this way, if the user moves within the same TAC, the cell location switch of the user equipment will not be reported to the MME or AMF and other network elements, and the cell information cannot be obtained in real time. If the user roams to another province, the MME or AMF and other network elements in the province cannot query the location information of the other province.
[0082] (2) Positioning platform query: platform query provided by mobile network operators.
[0083] However, in this method, the user's MME or AMF information is first queried from UDM (User Data Management) or HSS (Home Subscriber Server) and then from the corresponding network element. This results in the problem of inaccurate location information in the above method (1). At the same time, the cost is high, as it is necessary to establish a platform to connect the network elements of the entire network, resulting in high activation and maintenance costs.
[0084] (3) Using signaling to collect, analyze and locate: Collect DPI data, analyze cell information, extract the most recently active cells, and perform coarse positioning.
[0085] However, this method also has the problem that the user cell switching is not reported to the network element for the same TAC, resulting in inaccurate location information.
[0086] In the embodiment of the present application, in order to address the above-mentioned problem, it is further considered to forcibly update the location of the target user in order to ensure the accuracy of positioning.
[0087] The user positioning method in the embodiment of the present application is introduced below. The user positioning method in the embodiment of the present application can be applied to a user positioning device, and the user positioning device can be any applicable electronic device.
[0088] Reference Figure 1 , shows a step flow chart of a user positioning method in an embodiment of the present application.
[0089] like Figure 1 As shown, the user positioning method may include the following steps:
[0090] Step 101: collect first session information of a first session established by a target user.
[0091] In an optional implementation manner, the user positioning device may collect the first session information of the first session established by the target user when it is necessary to position the target user.
[0092] Exemplarily, a user initiating a query may trigger a location request for the target user being queried. The user location device may receive the location request for the target user, and after receiving the location request for the target user, verify the location request. After the verification is successful, the user location device performs a process of collecting the first session information of the first session established by the target user. When the verification fails, the user location device may return a prompt message to the user initiating the query, indicating that the verification failed and the query cannot be made.
[0093] Exemplarily, the user positioning device can provide a user interface, and the user who initiates the query can perform relevant operations on the user interface, for example, input the user number (such as a mobile phone number) of the target user being queried, the user number and ID number of the user who initiates the query, the relationship between the user who initiates the query and the target user being queried, and then trigger the query button control to trigger a positioning request for the target user being queried.
[0094] Exemplarily, the positioning request may include, but is not limited to, the user number of the target user being queried, the user number and ID number of the user initiating the query, the relationship between the user initiating the query and the target user being queried, and other information. The user positioning device parses the positioning request to obtain the above information included therein, and verifies the information according to the set verification conditions. If the information meets the verification conditions, the verification is passed, otherwise the verification fails.
[0095] The specific verification conditions can be set according to actual needs and experience, and this embodiment does not limit this. For example, the verification condition can be that the user number and ID card number of the user initiating the query are legal numbers, and / or the relationship between the user initiating the query and the target user being queried is a legal relationship, etc.
[0096] In an optional implementation, the first session information of the first session established by the target user may be collected from any applicable network element (these network elements contain the first session information of the first session) through which the first session established by the target user passes.
[0097] Exemplarily, relevant session signaling of the first session at the interface on network elements such as AMF, MME, SMF, etc. can be collected, and the first session information of the first session can be collected based on the collected relevant session signaling; or, the first session information of the first session stored by network elements such as AMF, MME, SMF, etc. can be collected, and so on.
[0098] For example, since the current user session adopts a dynamic strategy, whether within or outside the province, during the session establishment process, the SMF must send a PDU (Protocol Data Unit)-CAN (Controller Area Network) session process to the policy control function network element to report the user's relevant information, including relevant cell information. Therefore, the first session signaling of the first session at the interface on the policy control function network element can be collected, and the first session information of the first session established by the target user can be collected according to the first session signaling; or, the first session information of the first session saved by the policy control function network element can be collected, and so on. This method utilizes the characteristics of the policy control function network element to solve the problem of incomplete and inaccurate information collection by network elements such as AMF, MME, and SMF, and can query location information across the country to solve roaming problems.
[0099] Among them, for the policy control function network element, it can be PCF in the 5G network and it can be PCRF in the 4G network.
[0100] Among them, for the interface on the policy control function network element, in the NR network, the PCF establishes a session with the SMF through the N7 interface, and in the EUTRAN network, it establishes a session with the PCEF (Policy and Charging Enforcement Function) and PCRF through the GX interface. Therefore, the interface on the policy control function network element may include but is not limited to the N7 interface, the GX interface, and so on.
[0101] The first session signaling of the first session may include but is not limited to: information about the first cell where the target user is located, quality of service parameters of the first session, session type of the first session, etc. The first session information can be obtained by collecting relevant information from the first session signaling. The first session information may include but is not limited to: information about the first cell where the target user is located, quality of service parameters of the first session, session type of the first session, etc. The first cell information may include but is not limited to: TAC, ECI, NCI, etc.
[0102] It is understandable that the target user may have established multiple first sessions, so the first session information of each first session established by the target user may be collected.
[0103] Step 102: determine whether the first session meets a mandatory update requirement based on the first session information, and forcibly release the first session when the first session meets the mandatory update requirement.
[0104] In the embodiment of the present application, not all first sessions are forcibly released. Instead, it is determined based on the first session information whether the first session meets the forced update requirement. When the first session meets the forced update requirement, the first session is forcibly released. When the first session does not meet the forced update requirement, the process of forcibly releasing the first session will not be performed.
[0105] In an optional implementation, in order to ensure that the continuous service session of the target user is not interrupted and avoid affecting the user experience, it is possible to choose to forcefully update the non-continuous service session and not forcefully update the continuous service session, thereby maintaining the continuity of key services. Among them, the continuous service session refers to a session corresponding to a service that needs to be performed continuously, such as a continuous service session that can be a call service session. Therefore, the process of determining whether the first session meets the mandatory update requirement based on the first session information may include: determining whether the first session is a continuous service session based on the first session information; when the first session is a continuous service session, determining that the first session does not meet the mandatory update requirement; when the first session is not a continuous service session, determining that the first session meets the mandatory update requirement.
[0106] Exemplarily, considering that the service quality parameters of a session can characterize the service type of the session, the process of determining whether the first session is a continuous service session based on the first session information may include: collecting the service quality parameters of the first session from the first session information; when the service quality parameter is a value representing a continuous service session, determining that the first session is a continuous service session; when the service quality parameter is not the value representing a continuous service session, determining that the first session is not a continuous service session.
[0107] For example, in a 5G network, the service quality parameter is 5QI. A 5QI value of 1 indicates voice service, a 5QI value of 2 indicates video session service, and a 5QI value of 3 indicates real-time sensitive service. Therefore, it can be considered that a 5QI value of 1, 2, or 3 represents a continuous service session, and other values do not represent a continuous service session.
[0108] Exemplarily, the first session can be forcibly released in the SMF, or the AMF or MME user can deregister in order to forcibly release the first session, or related operations can be performed in other network elements to cause the user to re-create a new session, re-register, or establish a session.
[0109] Exemplarily, the process of forcibly releasing the first session may include: controlling the policy control function network element to issue a release instruction for the first session to the target user, so that the target user releases the first session after receiving the release instruction. Since the release of the SMF, AMF, and MME network elements requires that the target user is located under the network element, and the policy control function network element does not need to meet this requirement, the method of forcibly releasing the first session through the policy control function network element is more universal. It is understandable that in the process of the policy control function network element issuing a release instruction for the first session to the target user, the related network elements (such as SMF, AMF, etc.) passing through during the period will also release the related sessions according to the release instruction for the first session.
[0110] It is understandable that the target user may have established multiple first sessions. Therefore, for each first session established by the target user, it is possible to determine whether the first session meets the forced update requirement based on the first session information. When the first session meets the forced update requirement, the first session is forcibly released.
[0111] Step 103: collect second session information of a second session re-established by the target user after releasing the first session, and collect second cell information where the target user is located from the second session information.
[0112] In the embodiment of the present invention, after receiving the release instruction, the target user will release the first session, and after releasing the first session, re-initiate a session establishment request to re-establish the second session. The user positioning device can collect the second session information of the second session re-established by the target user after releasing the first session.
[0113] Exemplarily, relevant session signaling of the second session at the interface on network elements such as AMF, MME, SMF, etc. can be collected, and the second session information of the second session can be collected based on the collected relevant session signaling; or, the second session information of the second session stored by network elements such as AMF, MME, SMF, etc. can be collected, and so on.
[0114] Exemplarily, the second session signaling of the second session at the interface on the policy control function network element may be collected, and the second session information of the second session re-established by the target user may be collected according to the second session signaling; or, the second session information of the second session stored by the policy control function network element may be collected, etc. This method utilizes the characteristics of the policy control function network element to solve the problem of incomplete and inaccurate information collected by network elements such as AMF, MME, and SMF.
[0115] The second session signaling of the second session may include but is not limited to: information about the second cell where the target user is located, quality of service parameters of the second session, session type of the second session, etc. The second session information may be obtained by collecting relevant information from the second session signaling. The second session information may include but is not limited to: information about the second cell where the target user is located, quality of service parameters of the second session, session type of the second session, etc. The second cell information may include but is not limited to: TAC, ECI, NCI, etc.
[0116] Reference Figure 2 , showing a schematic diagram of a session establishment process of an embodiment of the present application.
[0117] like Figure 2 As shown, during the session establishment process, the following process is performed:
[0118] 1. UE (User Equipment) initiates a PDU Session Establishment Request to AMF through RAN (Radio Access Network);
[0119] 2.AMF executes the SMF selection process;
[0120] 3.AMF sends Nsmf_PDUSession_CreateSMContext Request (Create Session Management Context Request) to SMF;
[0121] 4. SMF interacts with UDM (Unified Data Management) and DN (Data Network) to perform the Registration / Subscription retrieval / Subscription for updates process;
[0122] 5.SMF sends Nsmf_PDUSession_CreateSMContext Response (Create Session Management Context Response) to AMF;
[0123] 6. Each network element collaborates to execute the PDU Session authentication / authorization process;
[0124] 7a.SMF executes PCF selection process;
[0125] 7b. SMF interacts with PCF and initiates SM Policy Association Establishment (session management policy association establishment) or SMF initiated SM Policy Association Modification (SMF initiated session management policy association modification);
[0126] 8. SMF executes the UPF selection process, and then continues to execute the subsequent process, which will not be discussed in detail in this embodiment.
[0127] In the embodiment of the present application, the signaling in the above 7b can be used as the second session signaling, and the second session information of the second session re-established by the target user is collected according to the second session signaling.
[0128] In an optional implementation, after the target user forcibly releases the first session, due to reasons such as different user device performance, different user devices require different lengths of time to re-establish the session. Therefore, in order to avoid the situation where the user device of the target user has not successfully re-established the second session when collecting the second session information and to ensure that the second session information can be successfully collected, the second session information of the second session re-established by the target user after releasing the first session can be collected after a delay of a preset length of time.
[0129] The preset delay duration may be set according to actual experience and requirements, for example, may be set according to the duration required for most user devices to establish a session, to ensure that the second session is established when the second session information is collected.
[0130] It is understandable that the target user may re-establish multiple second sessions, and therefore the second session information of each second session re-established by the target user may be collected.
[0131] Step 104: When the second cell information is collected successfully, determine the location information of the target user based on the second cell information.
[0132] In an optional implementation, the process of determining the location information of the target user based on the second cell information may include: searching for the first location information corresponding to the second cell information from a network parameter table of a non-roaming area corresponding to the target user; when the first location information is searched, determining the first location information as the location information of the target user; when the first location information is not searched, searching for the second location information corresponding to the second cell information from a network parameter table of a roaming area corresponding to the target user; when the second location information is searched, determining the second location information as the location information of the target user; when the second location information is not searched, the second cell information may be fed back.
[0133] The non-roaming area corresponding to the target user may refer to the province or city to which the target user belongs, etc. The roaming area corresponding to the target user may refer to other provinces or cities other than the province or city to which the target user belongs, etc.
[0134] The network parameter table is a pre-created and stored data table. The network parameter table may include the correspondence between the cell information and the location information, so according to the correspondence, the location information corresponding to the cell information may be searched. The location information may include the base station name, the longitude and latitude of the base station, and the location corresponding to the longitude and latitude of the base station, etc.
[0135] It is understandable that there may be multiple second conversations, so the location information of the target user can be obtained based on the second conversation information of multiple second conversations. Usually, the location information obtained based on the multiple second conversation information is similar or the same.
[0136] In an optional implementation, after collecting the first session information of the first session established by the target user in step 101, the first cell information where the target user is located can also be collected from the first session information, and the first cell information can be recorded. Therefore, when the collection of the second cell information fails, the location information of the target user is determined based on the first cell information.
[0137] Exemplarily, the process of determining the location information of the target user based on the first cell information may include: searching for third location information corresponding to the first cell information from a network parameter table of a non-roaming area corresponding to the target user; when the third location information is searched, determining the third location information as the location information of the target user; when the third location information is not searched, searching for fourth location information corresponding to the first cell information from a network parameter table of a roaming area corresponding to the target user; when the fourth location information is searched, determining the fourth location information as the location information of the target user; when the fourth location information is not searched, the first cell information may be fed back.
[0138] It is understandable that there may be multiple first conversations, so the location information of the target user can be obtained based on the first conversation information of multiple first conversations. Usually, the location information obtained based on the multiple first conversation information is similar or the same.
[0139] In the embodiment of the present application, when positioning the target user, if it is determined that the first session information of the first session established by the target user meets the mandatory update requirement, the first session is forcibly released. After releasing the first session, the target user will re-establish the second session, and the second cell information where the target user is currently located can be collected based on the second session information of the second session, and then the location information of the target user is determined based on the second cell information. Therefore, the location information obtained is the latest location information where the target user is currently located, thereby solving the problem of inaccurate positioning caused by the target user not reporting the cell information in time when switching cells in the same tracking area, and improving the accuracy of user positioning. In addition, positioning based on the session information of the target user is not affected by the user device used by the target user, and can continuously perform user positioning, thereby improving the versatility of user positioning.
[0140] Reference Figure 3 , showing a flow chart of a user positioning process in an embodiment of the present application.
[0141] like Figure 3 As shown, the user positioning process may include:
[0142] A verification process is performed (equivalent to the process of verifying the positioning request after receiving the positioning request for the target user) to determine whether the verification is successful.
[0143] If not (verification failed), then end.
[0144] If (verification passed), the first collection process (equivalent to the process of collecting the first session information of the first session established by the target user) is executed to determine whether the collection is successful.
[0145] If not (collection successful), then end.
[0146] If (acquisition fails), a forced update process is executed (equivalent to the process of determining whether the first session meets the forced update requirement based on the first session information, and forcibly releasing the first session when the first session meets the forced update requirement).
[0147] A second collection process (equivalent to the process of collecting the second session information of the second session re-established by the target user after releasing the first session) is executed to determine whether the collection is successful.
[0148] If not (collection is successful), the information collected before the forced update (ie, the first session information) is obtained, and a mapping process (equivalent to the above process of determining the location information of the target user based on the first cell information) is performed.
[0149] If (collection fails), a mapping process (equivalent to the above-mentioned process of determining the location information of the target user based on the second cell information) is executed.
[0150] During the verification process, the name, user number, ID number of the user who initiated the query, and the relationship with the user number of the queried user can be recorded, and a copy of the formal application for the query can be retained. After the verification is passed, the subsequent process will be entered.
[0151] Reference Figure 4 , shows a flow chart of a collection process of an embodiment of the present application. The above-mentioned first collection process and the second collection process can be executed according to this collection process.
[0152] like Figure 4 As shown, the collection process may include:
[0153] Enter the target user's user number (such as MSISDN, IMSI, etc.);
[0154] Let n = number of PCFs, i = 0; there may be multiple PCFs in the network, so the PCFs are traversed;
[0155] Determine whether i is satisfied <n;
[0156] If not (not satisfied), then end;
[0157] If (satisfied), then collect the session signaling (such as the first session signaling and the second session signaling) exchanged at the interface of the PCF;
[0158] Determining whether there is session signaling corresponding to the user number of the target user;
[0159] If not (does not exist), then set i = i + 1, and return to the step of determining whether i < n;
[0160] If so (exists), then obtain the cell information, quality of service parameters, and network element information (including PCF information) in the session signaling.
[0161] Refer to Figure 5 , which shows a flowchart of a forced update process according to an embodiment of the present application.
[0162] As Figure 5 shown, the forced update process may include:
[0163] Input the user number (such as MSISDN, IMSI, etc.), network element information (including PCF information), and network element interface information (N7 interface, GX interface);
[0164] Set n = the number of interface signaling messages, and i = 0; where there may be multiple session signaling messages at the network element interface (such as the above first session signaling and second session signaling), so the session signaling at the interface is traversed;
[0165] Determine whether i < n is satisfied;
[0166] If not (not satisfied), then end;
[0167] If so (satisfied), then determine whether the quality of service parameters in the session signaling represent a continuous service;
[0168] If so (represent a continuous service), then set i = i + 1, and return to the step of determining whether i < n;
[0169] If not (do not represent a continuous service), then forcibly release the session, set i = i + 1, and return to the step of determining whether i < n.
[0170] In the embodiment of the present application, the location information collection point is changed. Instead of collecting at AMF, SMF, and MME, it is changed to collect at PCF, which solves the problems of the user's roaming location and the user's current network, and solves the problems of heavy investment and difficult maintenance of the positioning platform; a forced update process is added. For the target user to be queried, the session is forcibly updated to let the user report the latest location information, which solves the problem of inaccurate positioning by traditional means.
[0171] Refer to Figure 6 , which shows a structural block diagram of a user positioning device according to an embodiment of the present application.
[0172] As Figure 6 shown, the user positioning device may include the following modules:
[0173] The first collection module 601 is used to collect the first session information of the first session established by the target user;
[0174] An updating module 602, configured to determine whether the first session meets a mandatory update requirement based on the first session information, and forcibly release the first session when the first session meets the mandatory update requirement;
[0175] A second collection module 603 is used to collect second session information of a second session re-established by the target user after releasing the first session, and collect second cell information where the target user is located from the second session information;
[0176] The mapping module 604 is configured to determine the location information of the target user based on the second cell information when the second cell information is collected successfully.
[0177] Optionally, the first collection module 601 is further configured to collect first cell information where the target user is located from the first session information, and record the first cell information;
[0178] The mapping module 604 is further configured to determine the location information of the target user based on the first cell information when the collection of the second cell information fails.
[0179] Optionally, the updating module 602 includes:
[0180] A judging unit, configured to judge whether the first session is a continuous service session based on the first session information;
[0181] The determining unit is configured to determine that the first session does not meet the mandatory update requirement when the first session is a continuous service session; and determine that the first session meets the mandatory update requirement when the first session is not a continuous service session.
[0182] Optionally, the judging unit is specifically configured to collect a service quality parameter of the first session from the first session information; and determine that the first session is a continuous service session when the service quality parameter is a value representing a continuous service session.
[0183] Optionally, the updating module 602 includes: a control unit, configured to control a policy control function network element to send a release instruction for the first session to the target user, so that the target user releases the first session after receiving the release instruction.
[0184] Optionally, the first collection module 601 is specifically configured to collect first session signaling of the first session at an interface on a policy control function network element, and collect first session information of the first session according to the first session signaling;
[0185] The second collection module 603 is specifically configured to collect the second session signaling of the second session at the interface on the policy control function network element, and collect the second session information of the second session according to the second session signaling.
[0186] Optionally, the second collecting module 603 is specifically configured to collect, after a preset delay, second session information of a second session re-established by the target user after the first session is released.
[0187] Optionally, the mapping module 604 includes:
[0188] A first search unit, configured to search for first location information corresponding to the second cell information from a network parameter table of a non-roaming area corresponding to the target user;
[0189] A first determining unit, configured to determine the first location information as the location information of the target user when the first location information is searched;
[0190] A second search unit, configured to search for second location information corresponding to the second cell information from a network parameter table of a roaming area corresponding to the target user when the first location information is not found;
[0191] The second determining unit is used to determine the second location information as the location information of the target user when the second location information is searched.
[0192] Optionally, the device further comprises: a verification module, configured to verify the positioning request after receiving the positioning request for the target user;
[0193] The first collection module 601 is specifically configured to collect the first session information of the first session established by the target user after the verification is passed.
[0194] In the embodiment of the present application, when positioning the target user, if it is determined that the first session information of the first session established by the target user meets the mandatory update requirement, the first session is forcibly released. After releasing the first session, the target user will re-establish the second session, and the second cell information where the target user is currently located can be collected based on the second session information of the second session, and then the location information of the target user is determined based on the second cell information. Therefore, the location information obtained is the latest location information where the target user is currently located, thereby solving the problem of inaccurate positioning caused by the target user not reporting the cell information in time when switching cells in the same tracking area, and improving the accuracy of user positioning. In addition, positioning based on the session information of the target user is not affected by the user device used by the target user, and can continuously perform user positioning, thereby improving the versatility of user positioning.
[0195] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0196] In an embodiment of the present application, an electronic device is also provided. The electronic device may include a processor and a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium; when the computer program is executed by the processor, the processor executes the user positioning method of any of the above embodiments.
[0197] Reference Figure 7 , shows a structural block diagram of an electronic device according to an embodiment of the present application. Figure 7 As shown, the electronic device 70 includes a processor 701 and a computer-readable storage medium 702 , on which a computer program 7021 is stored.
[0198] The processor 701 is used to execute the computer program 7021 stored on the computer-readable storage medium 702. When executing the computer program 7021, the processor 701 implements the user positioning method of any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0199] The processor 701 mentioned above may include but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0200] The computer-readable storage medium 702 mentioned above may include but is not limited to: read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), electronic erasable programmable read-only memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0201] In an embodiment of the present application, a computer-readable storage medium is also provided, on which a computer program is stored. The computer program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the processor executes the user positioning method described in any of the above embodiments.
[0202] Reference Figure 8 , shows a block diagram of a computer-readable storage medium according to an embodiment of the present application. Figure 8 As shown, a computer program 801 is stored on a computer-readable storage medium 80. When the computer program 801 is executed by a processor, the processor executes the user positioning method described in any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0203] The various embodiments in this specification are interrelated, and each embodiment is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.
[0204] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.
[0205] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0206] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0207] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0208] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0209] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0210] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0211] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0212] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0213] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A user positioning method, characterized in that: The method comprises: Collecting first session information of a first session established by a target user; determining whether the first session meets a mandatory update requirement based on the first session information, and forcibly releasing the first session when the first session meets the mandatory update requirement; collecting second session information of a second session reestablished by the target user after releasing the first session, and collecting second cell information where the target user is located from the second session information; When the second cell information is collected successfully, the location information of the target user is determined based on the second cell information.
2. The method according to claim 1, characterized in that After the first session information of the first session established by the target user is collected, the method further includes: collecting the first cell information where the target user is located from the first session information, and recording the first cell information; After collecting the second cell information where the target user is located from the second session information, the method further includes: when the collection of the second cell information fails, determining the location information of the target user based on the first cell information.
3. The method according to claim 1, characterized in that The determining, based on the first session information, whether the first session meets the mandatory update requirement includes: Based on the first session information, determining whether the first session is a continuous service session; When the first session is the continuity service session, determining that the first session does not meet the mandatory update requirement; When the first session is not the continuity service session, it is determined that the first session meets the mandatory update requirement.
4. The method according to claim 3, characterized in that The determining, based on the first session information, whether the first session is a continuous service session includes: collecting a quality of service parameter of the first session from the first session information; When the quality of service parameter is a value representing a continuous service session, it is determined that the first session is the continuous service session.
5. The method according to claim 1, characterized in that: The forcibly releasing the first session includes: The control policy control function network element sends a release instruction for the first session to the target user, so that the target user releases the first session after receiving the release instruction.
6. The method according to claim 1, characterized in that The collecting the first session information of the first session established by the target user includes: collecting the first session signaling of the first session at the interface of the policy control function network element, and collecting the first session information of the first session according to the first session signaling; The collecting of second session information of a second session re-established by the target user after releasing the first session includes: collecting second session signaling of the second session at the interface on the policy control function network element, and collecting second session information of the second session according to the second session signaling.
7. The method according to claim 1, characterized in that The collecting the second session information of the second session re-established by the target user after releasing the first session includes: After a preset delay, second session information of a second session re-established by the target user after the first session is released is collected.
8. The method according to claim 1, characterized in that: The determining the location information of the target user based on the second cell information includes: searching, from a network parameter table of a non-roaming area corresponding to the target user, first location information corresponding to the second cell information; When the first location information is searched, determining the first location information as the location information of the target user; When the first location information is not found, searching for the second location information corresponding to the second cell information from the network parameter table of the roaming area corresponding to the target user; When the second location information is searched, the second location information is determined as the location information of the target user.
9. The method according to claim 1, characterized in that: Before collecting the first session information of the first session established by the target user, the method further includes: after receiving a location request for the target user, verifying the location request; The collecting the first session information of the first session established by the target user includes: after the verification is passed, collecting the first session information of the first session established by the target user.
10. A user positioning device, characterized in that: The device comprises: A first collection module, used to collect first session information of a first session established by a target user; an updating module, configured to determine whether the first session meets a mandatory update requirement based on the first session information, and forcibly release the first session when the first session meets the mandatory update requirement; A second collection module is used to collect second session information of a second session re-established by the target user after releasing the first session, and collect second cell information where the target user is located from the second session information; A mapping module is used to determine the location information of the target user based on the second cell information when the second cell information is collected successfully.
11. An electronic device, characterized in that: The electronic device comprises a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program; When the computer program is executed by the processor, the processor is enabled to perform the user positioning method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the user positioning method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Context aware qos / qoe policy provisioning and adaptation in 5g systems
CN108886703A
Method and device for initiating user plane path reconstruction and communication system
CN110290471A
Cross-regional roaming communication method, device, electronic equipment and computer readable medium
CN112929868A
Methods and Apparatuses for Location Area Update
US20220369268A1
Managing Service Function Chains
US20230058366A1
