Beidou positioning service access method and system based on message mode

By adopting the message mode publish/subscribe transmission protocol and fast authentication mechanism in Beidou positioning service, the efficiency and stability of user permission authentication in high concurrency scenarios are solved, and secure access and connection management of massive users are realized.

CN120302297AInactive Publication Date: 2025-07-11齐鲁空天信息研究院
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510792787.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-07-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In high concurrency scenarios, the user permission authentication process of the existing Beidou positioning service affects the efficiency and stability of the service connection, and it is difficult to meet the high concurrent access needs of massive users.

Method used

Using a publish/subscribe transmission protocol based on message mode, the delivery of differential positioning data and user permission authentication are realized in a distributed system. Through the NtripCaster load balancing cluster and MQ message server, combined with the fast authentication mechanism, high concurrent and secure access to massive users is achieved.

Benefits of technology

It has achieved secure and stable access to Beidou positioning services for a large number of users, improved service connection efficiency and user connection information security identification capabilities, and adapted to the needs of high concurrency scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120302297A_ABST
    Figure CN120302297A_ABST
Patent Text Reader

Abstract

The invention discloses a Beidou positioning service access method and system based on a message mode, and belongs to the technical field of satellite navigation positioning. The method comprises the following steps: a user connects a Beidou positioning server and establishes a user positioning service request connection, and an NtripCaster load balancing cluster distributes the user connection to an NtripCaster node server; the NtripCaster node server sends the user positioning service request connection information to an MQ message server through a message / subscription mode, verifies the user permission, completes automatic or manual activation according to a user activation mode and a service state, and returns an authentication result to the NtripCaster node server through the message / subscription mode; and the NtripCaster node server establishes or closes the user connection according to the authentication result. According to the invention, based on a rapid authentication mechanism, high-concurrency security access of mass positioning services is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of satellite navigation and positioning, and particularly relates to a Beidou positioning service access method and system based on a message mode. Background Art

[0002] In order to achieve centimeter-level or even millimeter-level real-time high-precision positioning services, the current main positioning modes are carrier real-time kinematic (RTK) and precise point positioning (PPP). Through ground-based or space-based augmentation, technical routes such as network RTK and PPP-RTK are formed.

[0003] With the application of Beidou high-precision positioning services in fields such as intelligent driving, precision agriculture, surveying and mapping, and ocean, the user scale has increased sharply. When users use the above positioning modes, the concurrent number of user positioning requests during peak hours reaches up to millions. For the positioning service requests of hundreds of millions of users, in order to solve the high-concurrency access requirements of positioning services, the distributed architecture is adopted in the existing research methods. Although the service connection number in some high-concurrency scenarios is solved, the service access in high-concurrency scenarios plus the user permission authentication process will affect the service connection efficiency and cause an increase in service access delay. Summary of the Invention

[0004] To solve the above technical problems, the present invention provides a Beidou positioning service access method and system based on a message mode, which realizes the transmission and communication of differential positioning data in a distributed system based on the message publish / subscribe transmission protocol, and at the same time cooperates with a fast authentication mechanism to realize the high-concurrency and secure access of massive positioning services.

[0005] Solve the problems of the connection efficiency and stability of Beidou high-precision positioning services when cooperating with user permission authentication in high-concurrency scenarios of massive users.

[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] A Beidou positioning service access method based on a message mode, the method includes:

[0008] Step 1: The user connects to the Beidou positioning server through the Internet and establishes a user positioning service request connection, and the NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server;

[0009] Step 2: The NtripCaster node server sends the user positioning service request connection information to the MQ message server through the message / subscription mode. The user authentication center subscribes to the MQ message, verifies the user's permissions, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscription mode;

[0010] Step 3: The NtripCaster node server establishes or closes the user connection according to the authentication result. When the user service expires, it receives the expiration information pushed by the user authentication center through the message / subscription mode and disconnects the corresponding user connection.

[0011] On the other hand, the present invention provides a Beidou positioning service access system based on a message mode, including:

[0012] A connection module, used for the user to connect to the Beidou positioning server through the Internet and establish a user positioning service request connection. The NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server;

[0013] A verification module, used for the NtripCaster node server to send the user positioning service request connection information to the MQ message server through the message / subscription mode. The user authentication center subscribes to the MQ message, verifies the user's permissions, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscription mode;

[0014] A decision-making module, used for the NtripCaster node server to establish or close the user connection according to the authentication result. When the user service expires, it receives the expiration information pushed by the user authentication center through the message / subscription mode and disconnects the corresponding user connection.

[0015] In a third aspect, the present invention provides an electronic device, including: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the foregoing Beidou positioning service access method based on a message mode.

[0016] In a fourth aspect, the present invention provides a computer-readable storage medium, on which executable instructions are stored. When the instructions are executed by a processor, the processor can implement the foregoing Beidou positioning service access method based on a message mode.

[0017] The beneficial effects of the present invention are as follows:

[0018] Based on the message publish / subscribe transmission protocol, the present invention deploys multiple nodes within a distributed load balancing cluster, and simultaneously performs quick authentication verification according to the parameters carried when the user sends a positioning request, which can not only ensure the secure and stable access of a large number of users to the Beidou positioning service, but also realize the security identification of the user connection information when the user accesses. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a method for accessing the Beidou positioning service based on the message mode of the present invention;

[0020] Figure 2 It is a schematic diagram of the access authentication process of the authentication center of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0021] The present invention will be further described below in conjunction with the drawings and embodiments.

[0022] As Figure 1 shown, the present invention provides a method for accessing the Beidou positioning service based on the message mode, including the following steps:

[0023] Step 1: The user connects to the Beidou positioning server through the Internet and establishes a user positioning service request connection, and the NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server; specifically:

[0024] When the user connects to the publicly available IP address and port of the Beidou positioning server through the Internet and establishes a user positioning service request connection, relevant parameter information such as the mount point, account, password, and device SN needs to be carried.

[0025] The user connects to the NtripCaster load balancing cluster, and the load balancing cluster adopts the round-robin balancing method to evenly distribute the user positioning service request connection to each NtripCaster node server in turn. At the same time, the load balancing cluster will dynamically expand the number of NtripCaster node servers according to the load capacity of each NtripCaster node server and the user access volume to meet the positioning requests of a large number of users in high-concurrency scenarios.

[0026] Step 2: The NtripCaster node server sends the user positioning service request connection information to the MQ message server through the message / subscribe mode, the user authentication center subscribes to the MQ message and verifies the user's permission, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscribe mode; specifically:

[0027] After the NtripCaster node server receives the user's positioning service request, it sends information such as the node ID, account, password, and device SN to the MQ message server through the message / subscription mode.

[0028] The user authentication center subscribes to the MQ message sent by the NtripCaster node server in the previous step in real time, and verifies the user's permissions in the database through information such as the node ID, mount point, account, password, and device SN.

[0029] As Figure 2 shown, when verifying the user's permissions, first judge whether the user has been activated. If not, further judge the user's activation method. If it is automatic activation, enter step A; if it is manual activation, enter step B; if already activated, verify whether the user's account and password are correct, whether the service is within the validity period, whether the service level is the applied level, etc., and push the verification result to the MQ message server.

[0030] Step A: Verify whether the user's account and password are correct, whether the service is within the validity period, and whether the service level is the applied level. After the user authentication center verifies and passes, it automatically activates the account, and at the same time sends the authentication result to the MQ message server through the message / subscription mode. If the verification fails, directly push the verification result to the MQ message server.

[0031] Step B: Verify whether the user's account and password are correct, whether the service is within the validity period, whether the service level is the applied level, and whether the user has manually activated the service. After the user authentication center verifies, it sends the authentication result to the MQ message server through the message / subscription mode.

[0032] The NtripCaster node server receives the authentication result returned by the user authentication center in real time through the message / subscription mode, and automatically matches to the corresponding NtripCaster node server according to the node ID.

[0033] Step 3: The NtripCaster node server establishes or closes the user connection according to the authentication result, and when the user service expires, it receives the expiration information pushed by the user authentication center through the message / subscription mode and disconnects the corresponding user connection; specifically:

[0034] The NtripCaster node server makes corresponding processing according to the returned authentication result. If the authentication passes, it establishes the corresponding Beidou positioning service. After establishing the Beidou positioning service, the NtripCaster node server will receive the push of product data in real time and push the corrected data products to users through the established Beidou positioning service connection. The corrected product data mainly includes the data products generated by the clock error product calculation server, the orbit product calculation server, and other product calculation servers. These servers are deployed in a highly available cluster to ensure the continuity and stability of the products. The calculation servers push the products to the Redis database cluster in real time, and the Redis database cluster then uniformly pushes the data to the NtripCaster node server. If the authentication fails, the user connection will be closed.

[0035] When the authentication center detects that the user service has expired, it sends the expired user information to the MQ message server through the message / subscription mode.

[0036] The NtripCaster node server receives the expired user messages actively pushed by the user authentication center in real time through the message / subscription mode, and automatically matches the corresponding NtripCaster node server according to the node ID to disconnect the corresponding user connection.

[0037] In summary, for the problem of Beidou positioning service access in high-concurrency scenarios, the present invention proposes a secure access method for Beidou high-precision positioning services based on the message publish / subscription mode. This method uses the protocol of the publish / subscription mode to deploy multiple nodes inside the distributed load balancing cluster, and at the same time performs quick authentication verification according to the parameters carried when the user sends a positioning request, which can not only ensure the secure and stable access of the Beidou positioning services for a large number of users, but also realize the secure identification of the user connection information when the user accesses.

[0038] On the other hand, the present invention provides a Beidou positioning service access system based on the message mode. Each module included therein can implement each step of the foregoing method. Specifically, it includes:

[0039] The connection module is used for the user to connect to the Beidou positioning server through the Internet and establish a user positioning service request connection, and the NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server;

[0040] The verification module is used for the NtripCaster node server to send the user positioning service request connection information to the MQ message server through the message / subscription mode. The user authentication center subscribes to the MQ message and verifies the user's permissions, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscription mode;

[0041] A decision-making module, configured to enable the NtripCaster node server to establish or close a user connection according to the authentication result, and when the user service expires, receive the expiration information pushed by the user authentication center through the message / subscription mode, and disconnect the corresponding user connection.

[0042] In a third aspect, the present invention provides an electronic device, including: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the foregoing Beidou positioning service access method based on the message mode.

[0043] In a fourth aspect, the present invention provides a computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor can be caused to implement the foregoing Beidou positioning service access method based on the message mode.

[0044] Embodiment:

[0045] The intelligent logistics system of a large port needs to utilize the Beidou high-precision positioning service on a large scale and with high frequency to achieve real-time high-precision positioning of cargo transport vehicles, loading and unloading equipment, etc. within the port, so as to optimize scheduling and management and improve the port operation efficiency. There are a large number of vehicles and equipment in this port using the Beidou positioning service simultaneously, and the number of concurrent positioning requests is huge during peak hours, with extremely high requirements for the access efficiency and stability of the positioning service.

[0046] Implementation steps are as follows:

[0047] 1. The user connects to the Beidou positioning server

[0048] Each transport vehicle and loading and unloading equipment within the port is equipped with a Beidou positioning terminal device. Taking a transport vehicle as an example, its positioning terminal device connects to the publicly disclosed IP address and port of the Beidou positioning server through the Internet to establish a user positioning service request connection. When establishing the connection, the positioning terminal device carries the following parameter information:

[0049] Mounting point: Specify the port logistics system module to which the vehicle belongs, such as "Logistics transport vehicle positioning module".

[0050] Account: The dedicated account name assigned by the port logistics department to which the vehicle belongs, such as "vehicle123".

[0051] Password: The password corresponding to the account, used for identity verification.

[0052] Device SN: The unique serial number of the positioning terminal device, such as "SN123456789".

[0053] The connection request is sent to the NtripCaster load balancing cluster. The cluster uses the round-robin load balancing method to evenly distribute the connection request of this vehicle to a certain NtripCaster node server. At the same time, the cluster will monitor the load capacity of each NtripCaster node server and the current user access volume in real time. If it is found that the load of a certain node server is too high, new NtripCaster node servers will be dynamically added to handle the high-concurrency positioning requests initiated by a large number of vehicles and devices in the port at the same time.

[0054] 2. User Authentication and Activation

[0055] After the NtripCaster node server receives the positioning service request of this vehicle, it sends information such as the node ID, account "vehicle123", password, and device SN "SN123456789" to the MQ message server through the message / subscription mode. After the user authentication center subscribes to this message in real time, it verifies the user permissions according to this information in the database.

[0056] The database stores data such as account information, permission levels, and service activation status of all vehicles and devices in this port. The authentication center first checks whether the account "vehicle123" has been activated and finds that the account has not been activated. Further querying the activation method of this account, it is found that it is of the automatic activation type. Therefore, the authentication center verifies according to the automatic activation process:

[0057] Verify whether the account "vehicle123" and the password are correct.

[0058] Check whether the service corresponding to this account is within the validity period. The validity period of the Beidou positioning service purchased by the port logistics department for this vehicle is one year, and it is still within the validity period.

[0059] Confirm whether the service level is the applied level. The port has applied for the high-precision real-time positioning service level, which is consistent with the positioning service level corresponding to the account "vehicle123".

[0060] After the authentication center passes the verification, it automatically activates this account and sends the authentication result (including the information of successful activation) to the MQ message server through the message / subscription mode. The NtripCaster node server receives the authentication result from the MQ message server in real time and automatically matches it to the connection request corresponding to this vehicle according to the node ID.

[0061] 3. Establish or Close User Connection

[0062] Based on the received authentication result, the NtripCaster node server determines that the authentication of the vehicle's positioning service request has passed, and then establishes a corresponding Beidou positioning service connection. After establishing the connection, the NtripCaster node server will receive the correction data products from the product data push server in real time. These correction data products are generated by other product calculation servers such as the clock error product calculation server and the orbit product calculation server, and are uniformly pushed through the Redis database cluster. The NtripCaster node server pushes these correction data products to the positioning terminal device of the vehicle through the just-established Beidou positioning service connection, so that the vehicle can obtain high-precision positioning information and achieve accurate cargo transportation and scheduling.

[0063] During subsequent use, if the Beidou positioning service of the vehicle expires, the authentication center will detect it and timely send the expired user information to the MQ message server through the message / subscription mode. The NtripCaster node server receives and matches the corresponding connection of the vehicle in real time, and then automatically disconnects the Beidou positioning service connection of the vehicle to avoid its continued occupation of positioning service resources and ensure the reasonable allocation and efficient utilization of port Beidou positioning service resources.

[0064] Through the above embodiments, it can be seen that the present invention can effectively meet the Beidou positioning service access requirements in high-concurrency scenarios such as ports, realize the rapid, safe and stable access of a large number of vehicles and devices, and ensure the efficient operation of the positioning service, providing strong support for the safe and intelligent operation of ports.

[0065] The specific embodiments described above further elaborate on the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A Beidou positioning service access method based on a message mode, characterized in that The method includes the following steps: Step 1: The user connects to the Beidou positioning server through the Internet and establishes a user positioning service request connection. The NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server. Step 2: The NtripCaster node server sends the user positioning service request connection information to the MQ message server through the message / subscription mode. The user authentication center subscribes to the MQ message and verifies the user's permissions, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscription mode. Step 3: The NtripCaster node server establishes or closes the user connection according to the authentication result, and when the user service expires, receives the expiration information pushed by the user authentication center through the message / subscription mode and disconnects the corresponding user connection.

2. The Beidou positioning service access method based on a message pattern according to claim 1, characterized in that, In step 1, the user positioning service request connection carries the information of the mount point, account, password, and device SN parameter.

3. The Beidou positioning service access method based on a message mode according to claim 1, wherein In step 1, the NtripCaster load balancing cluster adopts the round-robin balancing method to evenly distribute the user positioning service request connection to each NtripCaster node server in turn. The NtripCaster load balancing cluster dynamically expands the number of NtripCaster node servers according to the load capacity of each NtripCaster node server and the user access volume.

4. A Beidou positioning service access method based on a message mode according to claim 1, characterized in that, In step 2, the user authentication center subscribes to the MQ message and verifies the user's permissions, which includes that the user authentication center subscribes to the MQ message sent by the NtripCaster node server in the previous step in real time, and verifies the user's permissions in the database through the node ID, mount point, account, password, and device SN parameter information.

5. A Beidou positioning service access method based on a message mode according to claim 1, characterized in that, In step 2, completing automatic or manual activation according to the user activation method and service status and returning the authentication result to the NtripCaster node server through the message / subscription mode includes that when verifying the user's permissions, it is judged whether the user has been activated. If not, it is judged whether the user's activation method is automatic activation or manual activation; if already activated, it is verified whether the user's account and password are correct, whether the service is within the validity period, and whether the service level is the applied level, and the verification result is pushed to the MQ message server.

6. The Beidou positioning service access method based on a message mode according to claim 5, wherein If it is automatic activation, go to step A; if it is manual activation, go to step B: Step A: Verify whether the user's account and password are correct, whether the service is within the validity period, and whether the service level is the applied level. After the user authentication center verifies successfully, it automatically activates the account, and at the same time sends the authentication result to the MQ message server through the message / subscription mode. If the verification fails, the verification result is directly pushed to the MQ message server. Step B: Verify whether the user's account and password are correct, whether the service is within the validity period, whether the service level is the applied level, and whether the user has manually activated the service. After the user authentication center verifies, it sends the authentication result to the MQ message server through the message / subscription mode.

7. A Beidou positioning service access method based on a message mode according to claim 1, characterized in that, Step 3 includes that the NtripCaster node server makes corresponding processing according to the returned authentication result. If the authentication is passed, the corresponding Beidou positioning service is established. If the authentication fails, the user connection is closed. When the authentication center detects that the user service expires, the expired user information is sent to the MQ message server through the message / subscription mode. The NtripCaster node server receives the expired user messages actively pushed by the user authentication center in real time through the message / subscription mode, automatically matches the corresponding NtripCaster node server according to the node ID, and disconnects the corresponding user connection.

8. A Beidou positioning service access system based on a message mode, characterized in that, It includes: A connection module, which is used for the user to connect to the Beidou positioning server through the Internet and establish a user positioning service request connection, and the NtripCaster load balancing cluster distributes the user connection to the NtripCaster node server. A verification module, which is used for the NtripCaster node server to send the user positioning service request connection information to the MQ message server through the message / subscription mode. The user authentication center subscribes to the MQ message and verifies the user's permissions, completes automatic or manual activation according to the user activation method and service status, and returns the authentication result to the NtripCaster node server through the message / subscription mode. A decision-making module, which is used for the NtripCaster node server to establish or close the user connection according to the authentication result, and receive the expired information pushed by the user authentication center through the message / subscription mode when the user service expires, and disconnect the corresponding user connection.

9. An electronic device, characterized in that, It includes: One or more processors; A memory, which is used to store one or more programs; Wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement a Beidou positioning service access method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, An executable instruction is stored thereon, and when the instruction is executed by the processor, the processor can implement a Beidou positioning service access method according to any one of claims 1-7.

Citation Information

Patent Citations

  • System and method for identification, authentication and billing of differentiated service

    CN106790305A

  • Data subscription and dissemination method and device in large-scale CORS station broadcasting system

    CN107959666A

  • MQTT-based RTCM-RTK precise positioning network system

    CN113365341A

  • Cloud MQTT access authority control method

    CN114205112A

  • High-precision positioning method based on satellite-based enhancement system and storage medium

    CN114994723A