CN-116095599-B - Terminal position determining method, system, electronic equipment and storage medium
Abstract
The application relates to a method, a system, an electronic device and a storage medium for determining the position of a terminal, wherein the method comprises the steps of acquiring visiting base station information of the terminal under the condition that the terminal initiates inter-province roaming registration, carrying the visiting base station information and visiting system information in a registration request and sending the registration request to a visiting province gateway, so that the visiting province gateway sends the registration request carrying the visiting base station information, the visiting system information, the visiting province gateway information and the belonging province gateway information to a home system through a home province gateway, and acquiring the visiting base station information of the terminal under the condition that the terminal initiates intra-province roaming registration, carrying the visiting base station information and the visiting system information in the registration request and sending the registration request to the home system. Therefore, the home system can accurately determine the position of the terminal when the terminal initiates transprovincially roaming registration or intra-provincial roaming registration, and the functions of visual monitoring, visual scheduling and the like of the terminal are better realized.
Inventors
- JIN GUICAI
- TANG LI
- YU YANG
Assignees
- 哈尔滨海能达科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221226
Claims (11)
- 1. A method for determining a terminal position, applied to a visiting system, the method comprising: Under the condition that a terminal initiates cross-province roaming registration, acquiring visiting base station information of the terminal, carrying the visiting base station information and visiting system information in a registration request and sending the registration request to a visiting province gateway, so that the visiting province gateway sends a registration request carrying the visiting base station information, the visiting system information, the visiting province gateway information and the attribution province gateway information to an attribution system through an attribution province gateway, and the attribution system determines the position of the terminal according to the visiting base station information, the visiting system information, the visiting province gateway information and the attribution province gateway information; under the condition that a terminal initiates intra-provincial roaming registration, acquiring visiting base station information of the terminal, carrying the visiting base station information and the visiting system information in a registration request, and sending the visiting base station information and the visiting system information to a home system, so that the home system determines the position of the terminal according to the visiting base station information and the visiting system information; The visiting base station information is used for representing relevant information of a visiting base station of the terminal, the visiting system information is used for representing relevant information of the visiting system, the visiting province gateway information is used for representing relevant information of the visiting province gateway, the attribution province gateway information is used for representing relevant information of the attribution province gateway, the visiting province gateway is a province-based interconnection center where the visiting system is located, and the attribution province gateway is a province-based interconnection center where the attribution system is located.
- 2. The method of claim 1 wherein said sending the visited base station information and the visited system information to the visited province gateway carrying in a registration request comprises: the visiting base station information and the visiting system information are carried in a registration request as fields expanded by MAP protocol and are sent to the visiting province gateway, the visiting base station information comprises at least one of the name of the visiting base station, the domain name of the visiting base station and the positioning information of the visiting base station, the visiting system information comprises at least one of the name of the visiting system, the domain name of the visiting system and the city name of the visiting system, or Carrying the visiting base station information as a field of MAP protocol extension in a registration request, carrying the visiting system information as an original Via field in pSIP protocol in the registration request and sending the visiting system information to the visiting provincial gateway, wherein the visiting base station information comprises at least one of a name of the visiting base station, a domain name of the visiting base station and positioning information of the visiting base station, and the visiting system information comprises at least one of a domain name and an IP address of the visiting system, or The visiting system information is taken as an original Via field in pSIP protocols to be carried in a registration request, the visiting base station information is taken as a newly added Via field in pSIP protocols to be carried in the registration request and sent to the visiting provincial gateway, the visiting base station information comprises at least one of a domain name and an IP address of the visiting base station, and the visiting system information comprises at least one of the domain name and the IP address of the visiting system.
- 3. The method of claim 1 wherein said sending the visited base station information and the visited system information to the home system with a registration request comprises: Carrying the visiting base station information as a field of MAP protocol extension in a registration request, carrying the visiting system information as an original Via field in pSIP protocol in the registration request and sending the visiting system information to the home system, wherein the visiting base station information comprises at least one of a name of the visiting base station, a domain name of the visiting base station and positioning information of the visiting base station, and the visiting system information comprises at least one of a domain name and an IP address of the visiting system, or The visiting system information is taken as an original Via field in pSIP protocols to be carried in a registration request, the visiting base station information is carried in the registration request through a newly added Via field in pSIP protocols and is sent to the home system, the visiting base station information comprises at least one of a domain name and an IP address of the visiting base station, and the visiting system information comprises at least one of the domain name and the IP address of the visiting system.
- 4. The method according to claim 1, wherein the method further comprises: Under the condition that a position information inquiry request sent by the visiting province gateway is received, the visiting base station information and the visiting system information are carried in a response message and sent to the visiting province gateway, so that the visiting province gateway sends the response message carrying the visiting base station information, the visiting system information, the visiting province gateway information and the attributive province gateway information to an attributive system through an attributive province gateway, and the attributive system determines the position of the terminal according to the visiting base station information, the visiting system information, the visiting province gateway information and the attributive province gateway information; And under the condition that a position information inquiry request sent by the home system is received, carrying the visiting base station information and the visiting system information in a response message and sending the response message to the home system, so that the home system determines the position of the terminal according to the visiting base station information and the visiting system information.
- 5. A method for determining a location of a terminal, the method being applied to a home system, the method comprising: Under the condition that a registration request sent by a home province gateway is received, analyzing to obtain visiting base station information, visiting system information, visiting province gateway information and home province gateway information carried in the registration request, determining the position of the terminal according to the visiting base station information, the visiting system information, the visiting province gateway information and the home province gateway information, wherein the registration request is generated when the terminal initiates cross province roaming registration, and the registration request fills in the information of a routing node and sends the information to the next routing node every time the registration request passes through one routing node; under the condition of receiving a registration request sent by a visiting system, analyzing to obtain the visiting base station information and the visiting system information, and determining the position of the terminal according to the visiting base station information and the visiting system information, wherein the registration request is generated when the terminal initiates intra-provincial roaming registration; The visiting base station information is used for representing relevant information of a visiting base station of the terminal, the visiting system information is used for representing relevant information of the visiting system, the visiting province gateway information is used for representing relevant information of the visiting province gateway, the attribution province gateway information is used for representing relevant information of the attribution province gateway, the visiting province gateway is a province-based interconnection center where the visiting system is located, and the attribution province gateway is a province-based interconnection center where the attribution system is located.
- 6. The method of claim 5, wherein the parsing obtains visited base station information, visited system information, visited province gateway information, and home province gateway information carried in the registration request, comprising: Analyzing the MAP protocol extended field in the registration request to obtain the visiting base station information, the visiting system information, the visiting province gateway information and the attribution province gateway information, wherein the visiting base station information comprises at least one of the name of the visiting base station, the domain name of the visiting base station and the positioning information of the visiting base station, the visiting system information comprises at least one of the name of the visiting system, the domain name of the visiting system and the city name where the visiting system is located, the visiting province gateway information comprises at least one of the name of the visiting province gateway and the domain name of the visiting province gateway, and the attribution province gateway information comprises at least one of the name of the attribution province gateway and the domain name of the attribution province gateway, or Analyzing the MAP protocol extended field in the registration request to obtain the visiting base station information, the visiting system information and the visiting province gateway information, and analyzing the original Via field in the pSIP protocol in the registration request to obtain the attribution province gateway information, wherein the visiting base station information comprises at least one of the name of the visiting base station, the domain name of the visiting base station and the positioning information of the visiting base station, the visiting system information comprises at least one of the name of the visiting system, the domain name of the visiting system and the city name of the visiting system, the visiting province gateway information comprises at least one of the name of the visiting province gateway and the domain name of the visiting province gateway, and the attribution province gateway information comprises at least one of the domain name and the IP address of the attribution province gateway, or Analyzing an original Via field in a pSIP protocol in a registration request to obtain the home province gateway information, and analyzing a newly added Via field in a pSIP protocol in the registration request to obtain the visiting base station information, the visiting system information and the visiting province gateway information, wherein the visiting base station information comprises at least one of a domain name and an IP address of the visiting base station, the visiting system information comprises at least one of a domain name and an IP address of the visiting system, the visiting province gateway information comprises at least one of a domain name and an IP address of the visiting province gateway, and the home province gateway information comprises at least one of a domain name and an IP address of the home province gateway.
- 7. The method of claim 5 wherein said parsing results in said visited base station information and said visited system information, comprising: Analyzing the MAP protocol extended field in the registration request to obtain the visiting base station information, and analyzing the original Via field in pSIP protocol in the registration request to obtain the visiting system information, wherein the visiting base station information comprises at least one of the name of the visiting base station, the domain name of the visiting base station and the positioning information of the visiting base station, and the visiting system information comprises at least one of the domain name and the IP address of the visiting system, or Analyzing an original Via field in a pSIP protocol in a registration request to obtain the visiting system information, and analyzing a newly added Via field in a pSIP protocol in the registration request to obtain the visiting base station information, wherein the visiting base station information comprises at least one of a domain name and an IP address of the visiting base station, and the visiting system information comprises at least one of the domain name and the IP address of the visiting system.
- 8. The method of claim 5, wherein the method further comprises: Under the condition that a response message returned by the home province gateway is received, analyzing to obtain response messages of the visiting base station information, the visiting system information, the visiting province gateway information and the home province gateway information carried in the response message, determining the position of the terminal according to the visiting base station information, the visiting system information, the visiting province gateway information and the home province gateway information, wherein the response message is generated based on a position information query request sent by the home system, and the position information query request fills the information of the routing node into the response message and returns the response message to the last routing node every time the position information query request passes through one routing node; And under the condition that a response message returned by the visiting system is received, analyzing the visiting base station information and the visiting system information carried in the response message, and determining the position of the terminal according to the visiting base station information and the visiting system information.
- 9. The system for determining the terminal position is characterized by comprising a visiting system, a visiting province gateway, a home province gateway and a home system, or comprising the visiting system and the home system; Wherein the visited system is adapted to perform the steps of the method for determining a terminal position according to any one of claims 1-4, and the home system is adapted to perform the steps of the method for determining a terminal position according to any one of claims 5-8.
- 10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; A memory for storing a computer program; A processor for implementing the steps of the method for determining a terminal position according to any one of claims 1 to 4 or the steps of the method for determining a terminal position according to any one of claims 5 to 8 when executing a program stored on a memory.
- 11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of determining a terminal position according to any one of claims 1-4 or the steps of the method of determining a terminal position according to any one of claims 5-8.
Description
Terminal position determining method, system, electronic equipment and storage medium Technical Field The present application relates to the field of wireless communications technologies, and in particular, to a method and system for determining a terminal position, an electronic device, and a storage medium. Background Police digital trunking (Police Digital Trunking, abbreviated PDT) systems have basically achieved national deployment. PDT system deployed by taking city as area realizes national networking according to GA/T1364-2017 Police Digital Trunking (PDT) communication system interconnection technical Specification. The PDT systems corresponding to different cities in the same province can be directly interconnected, but cannot be directly interconnected with PDT systems in other provinces, and in order to realize the trans-province interconnection between PDT systems in different provinces, a trans-province interconnection center (Inter-province Connection Center, abbreviated as ICC) needs to be added for realizing. PDT systems typically require accurate location management of their home terminals to support their visual monitoring, visual scheduling, etc. In order to ensure the accuracy of the terminal location information, it is generally necessary to obtain terminal registration location information and terminal geographical location information to perform comprehensive judgment. The terminal registration location information includes visited base station information, visited system information, visited provincial gateway information, and the like, and the terminal geographic location information includes beidou/global positioning system (Global Positioning System, abbreviated as GPS) location information, and the like. In the prior art, when a terminal roams in a home province, a home system can acquire visiting system information of the terminal and geographic position information of the terminal, and can not acquire visiting base station information of the terminal, and when the terminal roams across provinces, the home system can acquire geographic position information of the terminal, and can not acquire visiting base station information, visiting system information and visiting province gateway information. Therefore, in the prior art, when the terminal is in out-of-province roaming or in-province roaming, the position of the terminal cannot be accurately determined, and functions such as visual monitoring and visual scheduling of the terminal cannot be well realized. Disclosure of Invention The application provides a method, a system, electronic equipment and a storage medium for determining the position of a terminal, which are used for solving the problems that the position of the terminal cannot be accurately determined and the functions of visual monitoring, visual scheduling and the like of the terminal cannot be better realized when the terminal is in out-of-province roaming or in-province roaming in the prior art. In a first aspect, an embodiment of the present application further provides a method for determining a terminal location, which is applied to a visited system, where the method includes: Under the condition that a terminal initiates cross-province roaming registration, acquiring visiting base station information of the terminal, carrying the visiting base station information and visiting system information in a registration request and sending the registration request to a visiting province gateway, so that the visiting province gateway sends a registration request carrying the visiting base station information, the visiting system information, the visiting province gateway information and the attribution province gateway information to an attribution system through an attribution province gateway, and the attribution system determines the position of the terminal according to the visiting base station information, the visiting system information, the visiting province gateway information and the attribution province gateway information; under the condition that a terminal initiates intra-provincial roaming registration, acquiring visiting base station information of the terminal, carrying the visiting base station information and the visiting system information in a registration request, and sending the visiting base station information and the visiting system information to a home system, so that the home system determines the position of the terminal according to the visiting base station information and the visiting system information; The visiting base station information is used for representing relevant information of a visiting base station of the terminal, the visiting system information is used for representing relevant information of the visiting system, the visiting province gateway information is used for representing relevant information of the visiting province gateway, the attribution province gateway information is used for representing relevant informa