Base station location library establishment method, apparatus and device, and computer storage medium

By using the location service platform to obtain terminal location data, it solves the problems of high cost and long cycle of collecting the existing base station location database, and realizes the construction of efficient base station location database.

CN118828871APending Publication Date: 2024-10-22CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410683836.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing base station location database collection technology relies on special equipment and a large amount of manpower, resulting in high cost, long cycle, and low efficiency.

Method used

By reusing the real-time message data sent to the core network during the communication process between the terminal and the base station, the location service platform is used to obtain terminal location data in batches and stored in the base station location database, thereby reducing the collection cost and shortening the collection cycle.

Benefits of technology

No additional equipment and manual operations are required, which reduces the cost of base station location database collection, shortens the collection cycle, and improves the efficiency of base station location database construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828871A_ABST
    Figure CN118828871A_ABST
Patent Text Reader

Abstract

The invention discloses a base station location library establishment method, apparatus and device, and a computer storage medium. According to the method, message data sent by a terminal to a core network is acquired, the message data comprises identification information of the terminal and interaction data of the terminal and a target base station, and a position service platform is called to acquire position data of the terminal according to the identification information; and taking the position data and the interaction data as base station position data of the target base station, and storing the base station position data to a base station position database to obtain a target base station position database. According to the embodiment of the invention, the acquisition cost of the base station location library acquisition process is reduced, the acquisition period is shortened, and the construction efficiency of the base station location library is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet of Things, and in particular, relates to a method, device, equipment, computer storage medium and computer program product for establishing a base station location database. Background Art

[0002] With the continuous advancement of communication technology, base stations, as an important part of communication networks, the accuracy and real-time location information of base stations are crucial to network planning, optimization and maintenance. By collecting base station locations and establishing a base station location database, operators and related institutions can more accurately grasp the location information of base stations, thereby optimizing network layout and improving network coverage and service quality.

[0003] The current technical solution for collecting and establishing a base station location database is mainly to reach the base station location manually or by vehicle, and use special collection equipment to complete the process. This process involves scanning the base station number and using GPS technology to determine the current location to collect the location information of the base station and then establish a base station location database. However, this existing solution has limitations. It not only relies on dedicated base station location collection equipment, but also requires a lot of human resources for deployment and collection operations, and the number of base stations that can be processed for each collection task is limited. Therefore, the existing technology has the problems of high collection cost and long collection cycle for base station location database collection, and low efficiency in building a base station location database. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, device, computer storage medium and computer program product for establishing a base station location database, which can reduce the collection cost of the base station location database collection process, shorten the collection cycle, and improve the efficiency of building the base station location database.

[0005] In a first aspect, an embodiment of the present application provides a method for establishing a base station location database, the method comprising:

[0006] Acquire message data sent by the terminal to the core network, the message data including identification information of the terminal and interaction data between the terminal and the target base station;

[0007] Based on the identification information, the location service platform is called to obtain the location data of the terminal;

[0008] The location data and the interaction data are used as base station location data of the target base station, and the base station location data is stored in a base station location database to obtain a target base station location database.

[0009] In one embodiment, the location data includes coordinate data and address data;

[0010] Call the location service platform to obtain the terminal's location data, including:

[0011] According to the identification information, the location service platform is called through the location positioning interface to obtain the coordinate data of the terminal;

[0012] According to the coordinate data, the location reverse address resolution service of the location service platform is called to obtain the address data of the terminal.

[0013] In one implementation, the interaction data includes a message type, and before invoking the location service platform to obtain the location data of the terminal according to the identification information, the method further includes:

[0014] Determine the instruction information of the message type, and when the instruction information of the message type is not stop, call the location service platform to obtain the location data of the terminal.

[0015] In one implementation, the interaction data includes location record information and message time. Before calling the location service platform to obtain the location data of the terminal, the method includes:

[0016] Determining whether the base station location database includes a record with location record information as a key value;

[0017] In the case that the base station location database does not include a record with the location record information as a key value, the location service platform is called to obtain the location data of the terminal.

[0018] In one embodiment, the method further comprises:

[0019] In the case where the base station location database includes a record with the location record information as the key value, calculating the difference between the message time and the record update time corresponding to the record with the location record information as the key value;

[0020] When the difference is greater than a set threshold, the data record corresponding to the location record information as the key value is deleted from the base station location database;

[0021] Call the location service platform to obtain the terminal's location data.

[0022] In a second aspect, an embodiment of the present application provides a device for establishing a base station location database, the device comprising:

[0023] An acquisition module, used to acquire message data sent by the terminal to the core network, the message data including identification information of the terminal and interaction data between the terminal and the target base station;

[0024] The acquisition module is also used to call the location service platform to obtain the location data of the terminal according to the identification information;

[0025] The storage module is used to use the location data and the interaction data as the base station location data of the target base station, and store the base station location data in the base station location database to obtain the target base station location database.

[0026] In one embodiment, the location data includes coordinate data and address data;

[0027] The acquisition module is also used to call the location service platform to obtain the location data of the terminal, including: calling the location service platform through the location positioning interface to obtain the coordinate data of the terminal according to the identification information; calling the location service platform location reverse address resolution service to obtain the address data of the terminal according to the coordinate data.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0029] a processor and a memory storing computer program instructions;

[0030] When the processor executes the computer program instructions, the method for establishing the base station location database in any one of the embodiments of the first aspect is implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, a method for establishing a base station location database as in any one of the embodiments of the first aspect is implemented.

[0032] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for establishing a base station location database as in any one of the embodiments of the first aspect.

[0033] The method, apparatus, equipment, computer storage medium and computer program product for establishing a base station location database in the embodiments of the present application multiplex the real-time message data sent to the core network during the communication between the terminal and the base station, without the need for additional collection equipment and manual operation; based on the acquired message data, the location data of the terminal is acquired in batches using a location service platform, and the message data and the acquired terminal location data are used as the base station location data of the target base station, which are stored in the base station location database to obtain the target base station location database, thereby reducing the collection cost of the base station location database collection process, shortening the collection cycle, and improving the efficiency of building the base station location database. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0035] Figure 1 It is a flowchart of a method for establishing a base station location database provided in an embodiment of the present application;

[0036] Figure 2It is a system schematic diagram of establishing a base station location database provided by an embodiment of the present application;

[0037] Figure 3 It is a flowchart of a method for collecting base station positions provided in an embodiment of the present application;

[0038] Figure 4 It is a flowchart of another method for establishing a base station location database provided in an embodiment of the present application;

[0039] Figure 5 It is a structural schematic diagram of a device for establishing a base station location database provided in an embodiment of the present application;

[0040] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0042] 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 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 device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0043] When faced with the problems of high collection cost, long collection cycle and low efficiency of building base station location database in the traditional way of building base station location database, the inventor of this application deeply thought about how to innovate the process of building base station location database. First of all, the inventor realized that in modern communication networks, the frequent interaction between terminals and base stations generates massive data. The value of base station location information implied in these data has not been fully utilized. Is it possible to extract and analyze these data and mine out data that can reflect the base station location information? After that, the inventor considered that the location service platform can provide accurate coordinate data address data, and thought of the communication interaction principle and method between the terminal and the base station, which inspired the use of the location service platform as a bridge, using the interaction data between the terminal and the base station to mine the terminal related data, obtain the terminal location data through the location service platform, and then map it to the location data of the base station. Through the combined use of the above-mentioned technical means, the inventor of this application conceived a method that can reduce the collection cost of the base station location database collection process, shorten the collection cycle, and improve the efficiency of building the base station location database.

[0044] In the embodiments of the present application, SGSN (Serving GPRS Support Node), MME (Mobility Management Entity), SGW (Serving Gateway), GGSN (Gateway GPRS Support Node), PGW (Packet Data Network Gateway) and SMF (Session Management Function) are core components in different generations of network architectures in mobile communication networks, each of which has specific functions, especially in processing user data and control plane information. SGSN (2G / 3G) manages the mobility and sessions of packet data services, serving as a bridge between internal and external networks; MME (4G) focuses on mobility management and user authentication, and is the core control entity of the LTE network; SGW (4G) is a relay point for data packets, responsible for routing and user status management; GGSN (2G / 3G) connects the mobile network with the external Internet, and handles IP allocation, data routing, and billing information; PGW (4G / 5G) takes over the role of GGSN in 4G, and SMF in 5G is responsible for session management and data path control; SMF (5G) manages user sessions, controls data routing, and indirectly coordinates with the authentication and billing system in the latest 5G architecture. SGSN / MME / SGW is mainly responsible for the control plane functions of mobility and data transmission, while GGSN / PGW / SMF focuses more on data packet routing, external network interfaces, and integration with authentication, authorization, and billing systems to ensure that users can access the network and be billed correctly.

[0045] In the embodiment of the present application, the RADIUS (Remote Authentication Dial-In User Service) protocol uses a series of signaling messages to exchange information between the client (such as the network access server NAS) and the server in order to authenticate, authorize and account for the user. RADIUS signaling messages refer to the data packets exchanged between the RADIUS client (such as the network access server NAS) and the RADIUS server during the network access process, which are used to perform authentication, authorization and accounting functions. These messages follow the standard format defined by the RADIUS protocol and are transmitted through the UDP protocol to ensure security and efficiency. It mainly involves the following core signaling messages: Access-Request: NAS (network access server) sends to the RADIUS server, carrying user information to request verification; Access-Accept: The server sends back to the NAS, indicating that the user authentication is successful, and may be accompanied by authorization information; Access-Reject: The server notifies the NAS that the user authentication has failed; Accounting-Request: NAS reports the user's network usage to the server for accounting; Accounting-Response: The server confirms receipt of the accounting information. There are three main types of billing requests: Start message (Start): sent when the user is successfully authenticated and starts to use the service, recording the session startup details; Update message (Update): sent periodically or on demand during the session to update the user's network usage statistics; Stop message (Stop): sent when the user session ends, summarizing the billing information of the entire session for settlement.

[0046] In the embodiments of the present application, message data refers to a data unit transmitted in network communication, which carries specific information exchanged between the two communicating parties. In different protocols and application scenarios, the structure and content of the message will be different, but usually include two parts: header information and payload data. The header information is used to control the transmission of the message, such as routing, error detection, etc., while the payload is the actual content of the communication, such as user data, control commands, etc. These messages contain specific attributes (Attributes), each of which consists of Type, Length and Value, and is used to carry specific user information, status or instructions. The RADIUS protocol realizes the comprehensive management of user network access through the mutual exchange of messages. Message data plays a core role in RADIUS signaling. It is the basis for the implementation of protocol functions and ensures secure authentication, precise authorization and accurate billing process.

[0047] In the embodiment of the present application, the location-based services platform (LSP) refers to a dedicated positioning platform for a mobile communication system. The LSP cooperates with the core network elements of the mobile communication system, such as the Home Location Register (HLR) / Home Subscriber Server (HSS), the Mobile Switching Center (MSC) / Mobility Management Entity (MME), and the Visiting Location Register (VLR), to obtain the location information of the mobile communication terminal accessing the base station of the mobile communication network.

[0048] In order to solve the problems of the prior art, the embodiments of the present application provide a method, apparatus, device and computer storage medium for establishing a base station location database.

[0049] The following first introduces the method for establishing the base station location database provided in the embodiment of the present application.

[0050] Figure 1 FIG. 1 is a flow chart showing a method for establishing a base station location database provided in an embodiment of the present application. Figure 1 As shown, the method may include the following steps: S110 to S130.

[0051] S110: Acquire message data sent by the terminal to the core network, where the message data includes identification information of the terminal and interaction data between the terminal and the target base station.

[0052] In an embodiment of the present application, the message data obtained from the terminal to the Internet of Things refers to the signaling message of the terminal that complies with the network security authentication, authorization and account billing (AAA, Authentication, Authorization, and Accounting) protocol sent by the SGSN / MME / SGW of each area to the GGSN / PGW / SMF core network equipment after the terminal attaches to the network and turns on the traffic service function, wherein the AAA protocol can be the Radius protocol, and the Radius message protocol: rfc2866. It is an existing process for the terminal to send a signaling message to the core network after the Internet of Things or cellular network is attached. The identification information of the terminal refers to the identifier used to indicate the uniqueness of the terminal identity during the communication process between the terminal, the base station and the core network. The interaction data between the terminal and the target base station refers to the data exchanged and shared between the terminal and the base station to which it is attached during the communication process between the terminal and the core network through the base station to which it is attached.

[0053] Acquire signaling data, such as Radius signaling data, sent by the terminal to the core network through the base station to which it is attached, and parse the acquired Radius signaling data to obtain message data in the process of the terminal communicating with the core network through the base station to which it is attached. The message data may include the unique identity identification information of the terminal, such as the terminal card number, and data exchanged and shared between the terminal and the base station to which it is attached, such as the base station location area code (LAC), the base station cell number (CI), the wireless network type (RatType), the message time (Time), the message type (PacketType), etc.

[0054] In one embodiment, the terminal in the message data sent by the terminal to the core network can be an Internet of Things terminal. Signaling data, such as Radius signaling data, sent by the Internet of Things terminal to the core network through the base station to which it is attached is obtained, and the obtained Radius signaling data is parsed to obtain the message data in the process of the Internet of Things terminal communicating with the core network through the base station to which it is attached. The message data may include the unique identification information of the Internet of Things terminal, such as the Internet of Things card number (MSISDN), and the data exchanged and shared between the terminal and the base station to which it is attached.

[0055] Generally, the mobile cellular network (large network) and the Internet of Things share wireless base station equipment, and the signaling data is diverted on the core network side. The base station location database collection on the core network side can be performed by collecting the interaction data between the mobile cellular network terminal or the Internet of Things terminal and the base station. The effects of the solution of collecting the interaction data between the Internet of Things terminal and the base station on the core network include:

[0056] (1) In terms of network architecture and signaling delivery, the core network equipment of the IoT collection solution is centrally built. Compared with the mobile cellular network core network equipment distributed in various provinces across the country, the collection is more centralized, and the signaling delivery and collection are simpler, more efficient and convenient;

[0057] (2) In terms of personal privacy and information security, the mobile cellular network core network collection solution involves collecting personal mobile terminal location information, which involves personal privacy and other information security issues and requires personal authorization. The IoT terminal is a TOB device with low data sensitivity and does not involve personal privacy;

[0058] (3) In terms of the stability of base station location collection: the mobile cellular network core network collection solution can only collect data in places where people (mobile phone terminals) can reach, and there are some occasional problems (such as: some remote areas are sparsely populated). The Internet of Things terminal's Internet access is controlled by a program (generally a periodic program). After the terminal is put into operation, it runs relatively stably, which is more stable and effective for the collection and update of the base station location database.

[0059] S120: According to the identification information, the location service platform is called to obtain the location data of the terminal.

[0060] In the embodiment of the present application, LSP refers to a dedicated positioning platform of the mobile communication system. Based on LSP, the location information of the base station of the Internet of Things terminal accessing the communication network can be obtained through the Internet of Things card number (identification information) of the mobile communication terminal, i.e., the Internet of Things terminal.

[0061] Based on the IoT card number of the IoT terminal as the input parameter, the LSP platform location positioning service is called, and the LSP platform returns the location data corresponding to the IoT card number, such as latitude and longitude data and administrative address data. The location data corresponding to the IoT card number is also the location data corresponding to the IoT terminal.

[0062] S130: Using the location data and the interaction data as base station location data of the target base station, and storing the base station location data in a base station location database to obtain a target base station location database.

[0063] In the embodiment of the present application, the IoT terminal communicates with the outside world through the communication base station. The location data of the IoT terminal obtained through the LSP platform can represent the location data of the base station to which the IoT terminal is attached. The data exchanged and shared between the IoT terminal and the base station to which it is attached together with the location data of the IoT terminal are used as the base station location data of the base station to which the IoT terminal is attached. The base station location database is responsible for storing base station location records, and can perform operations such as record query, addition, modification, and deletion in the base station location database.

[0064] The location data of the IoT terminal and the data exchanged and shared between the IoT terminal and the base station to which it is attached are used as the base station location data of the base station to which the IoT terminal is attached. For example, the base station location data may include the latitude and longitude information of the base station, administrative address information, base station location area code, base station cell number, wireless network type, message time, message type, etc. The base station location data of the base station is stored in the storage location corresponding to the base station in the base station location database, and finally a target base station location library including the base station location data of the base station is obtained. It can be understood by those skilled in the art that the target base station location library includes the base station location data of at least one base station.

[0065] Exemplarily, the data structure and content of the base station location database may be shown in Table 1 below.

[0066] Fields type Field Description LAC / TAC int LAC (2G network) / TAC (NB / 4G / 5G network) CI / ECI int CI (2G network) / ECI (NB / 4G / 5G network) RATTYPE int 1: 2G network; 2: 4G network; 3: NB network; 4: 5G network LONGITUDE Double longitude LATITUDE Double latitude PROVINCE String Province name CITY String City Name DISTRICT String District / County Name LASTTIME Datetime Last updated

[0067] Table 1

[0068] This embodiment multiplexes the real-time message data sent to the core network during the communication between the terminal and the base station, without the need for additional collection equipment and manual operation; based on the acquired message data, the location service platform is used to batch acquire the terminal location data, and the message data and the collected terminal location data are used as the base station location data of the target base station, which are stored in the base station location database to obtain the target base station location library, thereby reducing the collection cost of the base station location library collection process, shortening the collection cycle, and improving the efficiency of building the base station location library.

[0069] As another implementation of the present application, the location data includes coordinate data and address data. In step S120: invoking the location service platform to obtain the location data of the terminal according to the identification information, the method may further include:

[0070] According to the identification information, the location service platform is called through the location positioning interface to obtain the coordinate data of the terminal; according to the coordinate data, the location reverse address resolution service of the location service platform is called to obtain the address data of the terminal.

[0071] In the embodiment of the present application, the coordinate data may be longitude and latitude data, such as longitude and latitude values, which refer to the longitude and latitude values ​​of the IoT terminal; the address data may be administrative address data, such as administrative division information of provinces, cities, districts / counties, which refer to the administrative division information of the IoT terminal; the location positioning interface is an API service provided by the location service platform to the outside world, and the location positioning interface helps users to obtain and process geographic data in real time through standard programming calls; the reverse address resolution service is a function that converts geographic coordinates (i.e., longitude and latitude) into human-readable address descriptions. It is the opposite of the geocoding service, which converts addresses into coordinates.

[0072] The location data of the IoT terminal may also include coordinate data and address data. The coordinate data includes the longitude and latitude values ​​of the IoT terminal, and the address data includes the specific administrative division information of the IoT terminal. The IoT card number of the IoT terminal is used as the input parameter data, and the LSP platform is called through the location positioning interface of the LSP platform to obtain the coordinate data of the IoT terminal. Then, based on the coordinate data of the IoT terminal, the reverse address resolution service of the LSP platform is called to obtain the address data of the IoT terminal.

[0073] Exemplarily, the LSP platform location positioning interface is called with the Internet of Things card number (MSISDN) of this message as the input parameter to obtain the current longitude and latitude (Latitude, Longitude) of the Internet of Things card number (MSISDN), wherein the current longitude and latitude values ​​of the Internet of Things card number (MSISDN) returned by the LSP platform can be used as the longitude and latitude values ​​of the base station of this message, and the current longitude and latitude values ​​of the Internet of Things card number (MSISDN) returned by the LSP platform are used as input parameters, and the reverse address resolution interface of the LSP platform is called to obtain the province, city, district / county administrative division string value corresponding to the longitude and latitude value, that is, the administrative address information of the base station of this message.

[0074] In one embodiment, the method may also include, using the IoT card number of the IoT terminal as input parameter data, calling the LSP platform through the location positioning interface of the LSP platform to obtain the coordinate data of the IoT terminal, and then storing the coordinate data of the IoT terminal, that is, the coordinate data of the base station to which the IoT terminal is attached, and the data exchanged and shared between the IoT terminal and the base station to which it is attached, such as the base station location area code (LAC), base station cell number (CI), wireless network type (RatType), message time (Time), message type (PacketType), etc., together in the storage location corresponding to the base station in the base station location database. Then, based on the coordinate data of the IoT terminal, calling the reverse address resolution service of the LSP platform to obtain the address data of the IoT terminal, and storing the address data of the IoT terminal in the storage location corresponding to the base station in the base station location database.

[0075] This embodiment first obtains the coordinate data of the terminal by calling the location service platform through the location positioning interface according to the identification information, and then obtains the address data of the terminal by calling the location reverse address resolution service of the location service platform according to the coordinate data, thereby realizing the automatic acquisition of the base station location data and improving the collection efficiency of the base station location data.

[0076] As another implementation of the present application, the interaction data includes a message type. Before step S120: invoking a location service platform to obtain the location data of the terminal according to the identification information, the method may further include the following steps:

[0077] S140: Determine the instruction information of the message type, and when the instruction information of the message type is not to stop, call the location service platform to obtain the location data of the terminal.

[0078] In an embodiment of the present application, the message type (PacketType) may include three types: start (Start), update (Update), and stop (Stop), that is, the billing request (Accounting-Request) includes three types of messages: start message (Start), update message (Update), and stop message (Stop), which characterize the network service usage of the Internet of Things terminal.

[0079] The interaction data between the IoT terminal and the base station to which it is attached may also include a message type used to characterize the network service usage of the IoT terminal. When the instruction information of the message type is not stop, that is, when the message type is start (Start) and update (Update), it can be known that the IoT terminal is in an online state. The message data of the IoT terminal corresponding to the message type is retained, and then the location service platform is called to obtain the location data of the IoT terminal in an online state.

[0080] In one embodiment, when the instruction information of the message type is stop, that is, when the message type is stop, it can be known that the Internet of Things terminal is in an offline state, and the message data sent by the Internet of Things terminal corresponding to the message type to the core network is discarded.

[0081] This embodiment determines the instruction information of the message type before calling the location service platform to obtain the location data of the terminal according to the identification information, and calls the location service platform to obtain the location data of the terminal when the instruction information of the message type in the interactive data is not stop. This improves the efficiency and flexibility of the use of resources of the base station location collection system and provides a technical basis for supporting more complex and changeable business scenarios.

[0082] As another implementation of the present application, the interaction data includes location record information and message time. Before step S120: invoking the location service platform to obtain the location data of the terminal according to the identification information, the method may further include the following steps:

[0083] S150: Determine whether the base station location database includes a record with location record information as a key value;

[0084] S160: When the base station location database does not include a record with location record information as a key value, call the location service platform to obtain the location data of the terminal.

[0085] In an embodiment of the present application, location record information refers to a set of key values ​​in a base station location database, which can be used to query data records corresponding to the key values ​​in the base station location database. For example, the location record information may include LAC, CI, and RatType.

[0086] The interactive data between the IoT terminal and the base station to which it is attached may also include location record information, which may include a set of key values ​​in the base station location database, and may be used to query the data record corresponding to the key value in the base station location database, that is, to query the base station location data record of the base station to which the IoT terminal is attached in the base station location database. In the case where the base station location database does not include a record with the location record information as the key value, that is, when there is no query in the base station location database for the base station location data record of the base station to which the IoT terminal is attached, the location service platform is called to obtain the location data of the IoT terminal.

[0087] This embodiment determines whether the base station location database includes a record with location record information as a key value in the interaction data, and calls the location service platform to obtain the terminal's location data when the base station location database does not include a record with location record information as a key value, thereby avoiding unnecessary external service calls and improving the efficiency of base station location collection.

[0088] As another implementation of the present application, after step S150: determining whether the base station location database includes a record with the location record information as a key value, the method may further include the following steps:

[0089] S170: When the base station location database includes records with location record information as key values, calculate the difference between the message time and the record update time corresponding to the record with location record information as key value; when the difference is greater than a set threshold, delete the data record corresponding to the location record information as key value in the base station location database; call the location service platform to obtain the location data of the terminal.

[0090] In the application embodiment, the message time (Time) refers to the time point when the message data is obtained by parsing the interactive data between the IoT terminal and the base station to which it is attached. The record update time corresponding to the record with the location record information as the key value refers to the record update time (LastTime) with the location record information as the key value in the base station location database.

[0091] In the case where the base station location database includes records with location record information as key values, that is, when the base station location data record of the base station to which the Internet of Things terminal is attached is queried in the base station location database, the difference between the message time (Time) and the record update time (LastTime) is calculated. When the difference is greater than a preset threshold, the corresponding data record with location record information as the key value in the base station location database is deleted, that is, the base station location data of the base station corresponding to the location record information in the base station location database is deleted, and then the location service platform is called to obtain the location data of the Internet of Things terminal.

[0092] In one embodiment, the difference between the message time (Time) and the record update time (LastTime) is calculated. When the difference is less than a preset threshold, it can be known that the base station location data has been recently updated. The message data sent by the corresponding Internet of Things terminal to the core network when the difference is less than the preset threshold is discarded.

[0093] Exemplarily, the message time (Time) is 2020-04-02, the record update time (LastTime) is 2020-01-01, and the preset threshold is 3 months. At this time, the difference between the message time (Time) and the record update time (LastTime) is greater than the preset threshold. The base station location data of the base station corresponding to the location record information in the base station location database is deleted, and then the location service platform is called to obtain the location data of the Internet of Things terminal.

[0094] This embodiment calculates the difference between the message time and the record update time corresponding to the record with the location record information as the key value when the base station location database includes the record with the location record information as the key value. When the difference is greater than the set threshold, the corresponding data record in the base station location database with the location record information as the key value is deleted, and the location service platform is called to obtain the location data of the terminal. The base station location database can be dynamically managed and maintained, ensuring the timeliness of the data and improving the utilization and stability of system resources.

[0095] like Figure 2 As shown in FIG. 1 , it is a schematic diagram of a system for establishing a base station location database provided by an embodiment of the present application. Figure 2 The system shown includes a signaling analysis module, a data processing module, a data storage module, and a base station location database.

[0096] Signaling parsing module 210: connects to the telecom operator's core network SMF / PGW / GGSN equipment, receives and parses the core network Radius signaling data, and provides original data input for subsequent modules.

[0097] Connect to the SMF / PGW / GGSN equipment of the telecom operator's core network, receive the Radius signaling data sent by the SGSN / MME / SGW in each area to the GGSN / PGW / SMF core network equipment to interact with the terminal and the attached base station, parse the acquired Radius signaling data to obtain the message data in the process of the terminal communicating with the core network through the base station to which it is attached, and provide original data input for subsequent modules.

[0098] Data processing module 220: connects to the signaling analysis module, receives data input from the signaling analysis module, calls the LSP platform positioning interface and the reverse address resolution interface, and processes the positioning result and the reverse address resolution result data.

[0099] Connect to the signaling parsing module, receive data input from the signaling parsing module, use the IoT card number of the IoT terminal as input parameter data, call the LSP platform through the location positioning interface of the LSP platform to obtain the coordinate data of the IoT terminal, and then based on the coordinate data of the IoT terminal, call the reverse address resolution service of the LSP platform to obtain the address data of the IoT terminal.

[0100] Data storage module 230: provides base station location record query, addition, modification, and deletion operations for the data processing module.

[0101] The base station location database is responsible for storing base station location records, and can perform operations such as record query, addition, modification, and deletion in the base station location database. The base station location data records of the base station to which the IoT terminal is attached are queried in the base station location database. When the base station location data records of the base station to which the IoT terminal is attached are queried in the base station location database, the difference between the message time (Time) and the record update time (LastTime) is calculated. When the difference is greater than the preset threshold, the base station location data of the base station corresponding to the location record information in the base station location database is deleted. The base station location data of the base station is stored in the storage location corresponding to the base station in the base station location database, and finally a target base station location library including the base station location data of the base station is obtained.

[0102] like Figure 3 The figure is a flow chart of a method for collecting base station locations provided in an embodiment of the present application.

[0103] like Figure 3 As shown, in one embodiment of the present application, base station location collection may include the following steps:

[0104] S310: Parsing the Radius message.

[0105] Receive the Radius signaling data received by the GGSN / PGW / SMF core network device from the communication interaction between the IoT terminal and the attached base station, parse the acquired Radius signaling data to obtain the message data of the IoT terminal in the process of communicating with the core network through the base station to which it is attached, and send the parsed message data including the identification information of the IoT terminal and the interaction data between the IoT terminal and the target base station to the base station location database collection system.

[0106] S320: Query the longitude and latitude of the IoT card number.

[0107] Based on the IoT card number of the IoT terminal in the base station location library collection system, the LSP location service platform is called to obtain the location data of the IoT terminal. The location data of the IoT terminal can also include coordinate data and address data. The coordinate data contains the longitude and latitude values ​​of the IoT terminal, and the address data contains the specific administrative division information of the IoT terminal. Using the IoT card number of the IoT terminal as the input parameter data, the LSP platform is called through the location positioning interface of the LSP platform to obtain the longitude and latitude position of the IoT terminal. The longitude and latitude position of the IoT terminal obtained through the LSP platform is sent to the base station location library collection system.

[0108] S330: Reverse address resolution of longitude and latitude positions.

[0109] Based on the obtained latitude and longitude position of the IoT terminal, the reverse address resolution service of the LSP platform is called to obtain the address data of the IoT terminal, that is, the administrative division information. The administrative division information of the IoT terminal obtained through the LSP platform is sent to the base station location database collection system.

[0110] like Figure 4 As shown in FIG. 1 , it is a flow chart of a method for establishing a base station location database provided in an embodiment of the present application. Figure 4 As shown, in one embodiment of the present application, the method for establishing a base station location database may include the following steps:

[0111] S401: Parse the Radius message to obtain MSISDN, LAC, CI, RatType, Time, and PacketType.

[0112] The signaling parsing module obtains the signaling data sent by the terminal to the core network through the base station to which it is attached, such as Radius signaling data. The signaling parsing module parses the signaling data sent by the SMF / PGW / GGSN core network device, obtains the Internet of Things card number (MSISDN), base station location area code (LAC), base station cell number (CI), wireless network type (RatType), message time (Time), message type (PacketType), and sends the parsed message data to the data processing module.

[0113] S402: Check whether PacketType is Stop type.

[0114] The data processing module receives the message data sent in step S401, and starts step S403 if the message type of the message data is not a Stop message, and starts step S407 if the message type of the message data is a Stop message.

[0115] S403: Query the base station location database using LAC, CI, and RatType as primary keys.

[0116] The base station location database is queried using the base station location area code (LAC), base station cell number (CI), and wireless network type (RatType) in the message data as the primary key.

[0117] S404: Confirm whether there is a data record with LAC, CI, and RatType as the primary key in the base station location database.

[0118] Determine whether there is a data record in the base station location database with the base station location area code (LAC), base station cell number (CI), and wireless network type (RatType) in the message data as the primary key. If the base station location database has a data record corresponding to the primary key, start step S405; if the base station location database does not have a data record corresponding to the primary key, start step S410.

[0119] S405: Compare the Radius message time with the time recorded in the database to see if the difference is greater than a set threshold.

[0120] Compare the difference between the record update time (LastTime) queried in the base station location database and the message time (Time) of this Radius message with the numerical value of the set threshold (eg, 3 months).

[0121] S406: Determine whether the difference is greater than a threshold.

[0122] When the difference between the record update time (LastTime) queried in the base station location library and the current Radius message time (Time) is greater than the set threshold, step S408 is started; when the difference between the record update time (LastTime) queried in the base station location library and the current Radius message time (Time) is less than or equal to the set threshold, step S407 is started.

[0123] S407: Discard the Radius message data.

[0124] When the message type of the message data is a Stop message, or when the difference between the record update time (LastTime) queried in the base station location database and the current Radius message time (Time) is less than or equal to the set threshold, it indicates that the terminal is offline or the base station location data has been recently updated in the base station location database. At this time, the obtained Radius message data is discarded.

[0125] S408: Delete the record with LAC, CI, and RatType as the primary key in the base station location database.

[0126] When the difference between the record update time (LastTime) queried in the base station location database and the time (Time) of this Radius message is greater than the set threshold, the data record with the base station location area code (LAC), base station cell number (CI), and wireless network type (RatType) as the primary key in the message data in the base station location database is deleted.

[0127] S409: Call the LSP positioning interface with the MSISDN as an input parameter, and return the latitude and longitude values ​​(Latitude, Longitude) of the card number.

[0128] The LSP platform location positioning interface is called with the Internet of Things card number (MSISDN) in this message data as the input parameter to obtain the current longitude and latitude values ​​(Latitude, Longitude) of the Internet of Things card number (MSISDN). The current longitude and latitude values ​​of the Internet of Things card number (MSISDN) returned by the LSP platform can be used as the longitude and latitude values ​​of the base station corresponding to this message, that is, the longitude and latitude values ​​of the base station corresponding to LAC, CI, and RatType in the interaction data between the Internet of Things terminal and the attached base station.

[0129] S410: Store the LAC, CI, RatType, Time of this message together with the latitude and longitude (Latitude, Longitude) returned by the LSP into the base station location database.

[0130] The base station location area code (LAC), base station cell number (CI), wireless network type (RatType), message time (Time) of the data exchanged between the IoT terminal and the attached base station corresponding to this message obtained in step S140, together with the latitude and longitude values ​​(Latitude, Longitude) of the base station corresponding to this message returned by the LSP platform are stored in the base station location database.

[0131] S411: The LSP platform reverse address resolution interface is called with the latitude and longitude values ​​as input parameters, and the province, city, district / county character string is returned.

[0132] Taking the latitude and longitude values ​​(Latitude, Longitude) returned by the LSP platform in step S410 as input parameters, the reverse address resolution interface of the LSP platform is called to obtain the province, city, district / county administrative division string value corresponding to the latitude and longitude value (Latitude, Longitude), that is, the administrative address information of the base station corresponding to this message.

[0133] S412: Update the province, city, district / county character string returned by the LSP platform to the corresponding latitude and longitude base station location record in the base station location database.

[0134] The province, city, district / county character string returned by the LSP platform in step S412 is used to update the base station location record corresponding to the associated latitude and longitude values ​​in the base station location database, that is, the base station location data of the base station corresponding to this message is updated in the base station location database.

[0135] This embodiment multiplexes the real-time message data sent to the core network during the communication between the terminal and the base station, without the need for additional collection equipment and manual operation; when it is predetermined that the instruction information of the message type is not to stop, when it is determined that the base station location database does not include records with location record information as the key value, the location service platform is called to obtain the terminal's location data, or when the base station location database does not include records with location record information as the key value and the difference between the message time and the record update time corresponding to the record with location record information as the key value is greater than the set threshold, the corresponding data record in the base station location database with location record information as the key value is deleted, and then the location service platform is called to obtain the terminal's location data, thereby avoiding unnecessary external service calls and providing a technical basis for supporting more complex business scenarios; the collected terminal location data is used as the base station location data of the target base station, and is stored in the base station location database to obtain the target base station location library, thereby reducing the collection cost of the base station location library collection process, shortening the collection cycle, and improving the efficiency of building the base station location library.

[0136] Based on the same concept, the present application embodiment provides a device for establishing a base station location database. Figure 5 The device for establishing the base station location database provided in the embodiment of the present application is described in detail.

[0137] Figure 5 It is a structural block diagram of a device for establishing a base station location database according to an exemplary embodiment.

[0138] like Figure 5 As shown, the device for establishing the base station location database may include:

[0139] The acquisition module 510 is used to acquire the message data sent by the terminal to the core network, where the message data includes the identification information of the terminal and the interaction data between the terminal and the target base station;

[0140] The acquisition module 510 is also used to call the location service platform to obtain the location data of the terminal according to the identification information;

[0141] The storage module 520 is used to use the location data and the interaction data as the base station location data of the target base station, and store the base station location data in the base station location database to obtain a target base station location database.

[0142] In one embodiment, the location data includes coordinate data and address data; the acquisition module 510 is also used to call the location service platform to obtain the location data of the terminal, and according to the identification information, call the location service platform through the location positioning interface to obtain the coordinate data of the terminal; according to the coordinate data, call the location service platform location reverse address resolution service to obtain the address data of the terminal.

[0143] In one embodiment, the interaction data includes a message type, and the acquisition module 510 is further used to determine the instruction information of the message type before calling the location service platform to obtain the terminal location data according to the identification information, and to call the location service platform to obtain the terminal location data when the instruction information of the message type is not to stop.

[0144] In one embodiment, the acquisition module 510 is also used to interact with data including location record information and message time. Before calling the location service platform to obtain the location data of the terminal, it is determined whether the base station location database includes records with location record information as the key value; if the base station location database does not include records with location record information as the key value, the location service platform is called to obtain the location data of the terminal.

[0145] In one embodiment, the acquisition module 510 is also used to calculate the difference between the message time and the record update time corresponding to the record with the location record information as the key value when the base station location database includes records with the location record information as the key value; when the difference is greater than a set threshold, delete the corresponding data record in the base station location database with the location record information as the key value; and call the location service platform to obtain the terminal's location data.

[0146] Figure 5 Each module in the device shown has the function of realizing Figure 1 , Figure 3 and Figure 4 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0147] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0148] The electronic device may include a processor 610 and a memory 620 storing computer program instructions.

[0149] Specifically, the processor 610 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0150] The memory 620 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 620 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 620 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 620 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 620 is a non-volatile solid-state memory.

[0151] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0152] The processor 610 implements any one of the methods for establishing a base station location database in the above embodiments by reading and executing computer program instructions stored in the memory 620 .

[0153] In one example, the electronic device may further include a communication interface 630 and a bus 640. As shown in FIG6, the processor 610, the memory 620, and the communication interface 630 are connected via the bus 640 and communicate with each other.

[0154] The communication interface 630 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0155] Bus 640 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0156] The electronic device can execute the method for establishing the base station location database in the embodiment of the present application, thereby realizing the combination Figure 1 , Figure 3 and Figure 4 The invention describes a method and device for establishing a base station location database.

[0157] In addition, in combination with the method for establishing a base station location database in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any method for establishing a base station location database in the above embodiment is implemented.

[0158] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the methods for establishing a base station location database in the above embodiments.

[0159] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0160] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0161] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0162] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0163] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for establishing a base station location database, characterized in that: include: Acquire message data sent by the terminal to the core network, where the message data includes identification information of the terminal and interaction data between the terminal and the target base station; According to the identification information, calling the location service platform to obtain the location data of the terminal; The location data and the interaction data are used as base station location data of the target base station, and the base station location data is stored in a base station location database to obtain a target base station location database.

2. The method according to claim 1, characterized in that The location data includes coordinate data and address data; The calling of the location service platform to obtain the location data of the terminal includes: According to the identification information, the location service platform is called through the location positioning interface to obtain the coordinate data of the terminal; According to the coordinate data, the location reverse address resolution service of the location service platform is called to obtain the address data of the terminal.

3. The method according to claim 1, characterized in that The interaction data includes a message type. Before calling the location service platform to obtain the location data of the terminal according to the identification information, the method further includes: Determine the instruction information of the message type, and when the instruction information of the message type is not to stop, call the location service platform to obtain the location data of the terminal.

4. The method according to claim 1, characterized in that: The interaction data includes location record information and message time. Before the location service platform is called to obtain the location data of the terminal, the method includes: Determining whether the base station location database includes a record with the location record information as a key value; In the case that the base station location database does not include a record with the location record information as a key value, a location service platform is called to obtain the location data of the terminal.

5. The method according to claim 4, characterized in that The method further comprises: In the case where the base station location database includes a record where the location record information is a key value, calculating a difference between the message time and a record update time corresponding to the record where the location record information is a key value; When the difference is greater than a set threshold, deleting the data record corresponding to the position record information as the key value in the base station location database; Call the location service platform to obtain the terminal's location data.

6. A device for establishing a base station location database, characterized in that: The device comprises: An acquisition module, used to acquire message data sent by the terminal to the core network, wherein the message data includes identification information of the terminal and interaction data between the terminal and the target base station; The acquisition module is also used to call the location service platform to acquire the location data of the terminal according to the identification information; The storage module is used to use the location data and the interaction data as the base station location data of the target base station, and store the base station location data in a base station location database to obtain a target base station location database.

7. The device according to claim 6, characterized in that The location data includes coordinate data and address data; The acquisition module is also used to call the location service platform to obtain the location data of the terminal, including: calling the location service platform through the location positioning interface to obtain the coordinate data of the terminal according to the identification information; calling the location service platform location reverse address resolution service to obtain the address data of the terminal according to the coordinate data.

8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for establishing a base station location database as described in any one of claims 1-5 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for establishing a base station location database according to any one of claims 1 to 5 is implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for establishing a base station location database as described in any one of claims 1-5.