An event routing method, system, medium and device of rail transit internet of things

By creating identity credentials and device business attributes for applications in the rail transit IoT platform, and using JsonKV and JsonPath routing rules, the problem of inaccurate routing of device events was solved, and device-level permission isolation and precise authorization were achieved.

CN123184873APending Publication Date: 2026-11-27TENCENT CLOUD COMPUTING (BEIJING) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610984933.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing rail transit IoT platforms cannot accurately map the complex business organization model of rail transit, resulting in device events not being accurately routed to applications and failing to achieve device-level permission isolation.

Method used

By creating identity credentials for multiple applications, establishing long-lived connections, obtaining device IDs and business attributes, and creating JsonKV and JsonPath routing rules, fine-grained and batch authorization can be achieved, ensuring that device events are accurately routed to applications.

Benefits of technology

It enables precise authorization for individual key devices and batch authorization for multiple devices with the same business attributes, improving the accuracy of device event routing and device-level permission isolation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184873A_ABST
    Figure CN123184873A_ABST
Patent Text Reader

Abstract

The application discloses a rail transit Internet of Things event routing method, system, medium and equipment, and the method comprises the steps of creating identity credential information for a plurality of applications respectively, establishing a long connection of the application and an event center according to the identity credential information, obtaining a device ID as a fine authorization dimension and a device service attribute as a batch authorization dimension based on a subscription topic corresponding to the plurality of applications respectively, creating a JsonKV routing rule corresponding to the plurality of applications respectively according to the fine authorization dimension and the batch authorization dimension, creating a JsonPath routing rule corresponding to the plurality of applications respectively based on a preset filtering condition of the subscription topic, obtaining a device event of a target device, determining a to-be-routed application in the plurality of applications according to the JsonKV routing rule and the JsonPath routing rule, and routing the device event to the to-be-routed application by the target device through the event center based on the long connection. The application can accurately route the device event to the application and realize permission isolation at the device level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to an event routing method, system, medium, and device for rail transit IoT. Background Technology

[0002] With the widespread application of IoT technology in the rail transit sector, modern subway and light rail systems have deployed a large number of intelligent devices and sensors, forming a complex equipment monitoring network. These devices encompass multiple specialized subsystems, including platform screen door systems, environmental monitoring systems, fire alarm systems, video surveillance systems, signaling systems, power monitoring systems, and passenger information systems. These devices generate massive amounts of real-time status data, historical trend data, and alarm event data daily, reaching millions of data entries per day. The IoT platform is responsible for the unified reception, storage, and management of this equipment data, but it faces numerous challenges in data distribution and application integration.

[0003] Existing rail transit IoT platforms typically adopt a centralized data management architecture. In this architecture, the IoT platform acts as a data center, responsible for receiving and storing all device data, while various applications obtain data through polling or customized interfaces.

[0004] However, existing architectures typically use coarse-grained authorization based on applications or users, which cannot accurately map the complex business organization model of rail transit, which consists of "line-station-equipment type-specific equipment". Administrators find it difficult to intuitively authorize in batches according to business attributes such as lines, stations or equipment types, and also cannot accurately authorize individual key equipment. Consequently, they cannot accurately route equipment events to applications and achieve device-level permission isolation. Summary of the Invention

[0005] In order to overcome the shortcomings of the prior art, the present invention aims to provide an event routing method, system, medium and device for rail transit Internet of Things, which can authorize multiple devices in batches according to the device business attributes, and can also accurately authorize a single key device, thereby accurately routing device events to applications and realizing device-level permission isolation.

[0006] This invention is implemented according to the following scheme: An event routing method for rail transit Internet of Things (IoT) is provided, including: Create identity credential information for multiple applications, and establish a long connection between the applications and the event center based on the identity credential information; Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; Based on the fine-grained authorization dimension and the batch authorization dimension, create JsonKV routing rules corresponding to multiple applications respectively; Based on the preset filtering conditions of the subscribed topic, create JsonPath routing rules corresponding to multiple applications respectively; Obtain device events from the target device, and determine the application to be routed among multiple applications that has the permission to receive the device events based on the JsonKV routing rules and the JsonPath routing rules; Based on the long-lived connection between the application and the event center, the target device routes the device events to the application to be routed through the event center.

[0007] Compared with the prior art, the beneficial effects of the event routing method for rail transit Internet of Things of the present invention are as follows: by using the device ID as a fine-grained authorization dimension, precise authorization can be achieved for a single key device; by using the device business attribute as a batch authorization dimension, batch authorization can be achieved for multiple devices with the same business attributes; and thus, device events are accurately routed to applications, achieving device-level permission isolation.

[0008] Optionally, the identity credential information includes an application ID and an application key; Create identity credential information for each application, including: Obtain the application creation timestamp and the application's business name; Create the application ID based on the application creation timestamp and the business name; The application key is created based on SecureRandom and the SHA-256 hash algorithm.

[0009] Optionally, the application includes multiple subscribers, and the identity credential information also includes subscriber IDs corresponding to each of the multiple subscribers; Creating identity credential information for each application also includes: Get the subscriber's creation timestamp and subscriber name; Create a subscriber ID associated with the application ID based on the application ID, the subscriber creation timestamp, and the subscriber name.

[0010] Optionally, establishing a long-lived connection between the application and the event center based on the identity credential information includes: Verify the existence of the application ID and determine the application ID verification result; Verify whether the application key is correct and determine the application key verification result; Verify the association between the application ID and the subscriber ID, and determine the association verification result; When the application ID verification result, the application key verification result, and the association verification result are all verified successfully, a long connection is established between the application and the event center.

[0011] Optionally, the equipment service attributes include line ID, station ID, and equipment type.

[0012] Optionally, device events of the target device are obtained, and based on the JsonKV routing rules and the JsonPath routing rules, applications with permission to receive the device events are determined from among multiple applications, including: The device events are parsed to obtain multiple event fields; Based on multiple event fields and JsonKV routing rules corresponding to multiple applications, the device permissions corresponding to multiple applications are determined. The device permissions are used to indicate whether the application has the permission to receive events generated by the target device. Based on multiple event fields and JsonPath routing rules corresponding to multiple applications, the event permissions corresponding to multiple applications are determined. The event permissions are used to indicate whether the application has the permission to receive the device events. Applications whose device permissions are sufficient to receive events generated by the target device, and whose event permissions are sufficient to receive events from the device, are identified as applications to be routed.

[0013] Optionally, the JsonKV routing rules for each of the multiple applications may include a list of allowed fields; Based on multiple event fields and the corresponding JsonKV routing rules for each application, determine the device permissions for each application, including: The device is granted the permission to receive events generated by the target device by checking the value of the HashMap index. If at least one of the event fields is in the list of allowed fields, the device permission is checked by examining the value of the HashMap index.

[0014] A rail transit IoT event routing system is also provided, which applies the above-mentioned rail transit IoT event routing method, including: The application management module is used to create identity credential information for multiple applications and establish a long connection between the application and the event center based on the identity credential information. The rules management module is used for: Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; Based on the fine-grained authorization dimension and the batch authorization dimension, create JsonKV routing rules corresponding to multiple applications respectively; Based on the preset filtering conditions of the subscribed topic, create JsonPath routing rules corresponding to multiple applications respectively; The event routing module is used for: Obtain device events from the target device, and determine the application to be routed among multiple applications that has the permission to receive the device events based on the JsonKV routing rules and the JsonPath routing rules; Based on the long-lived connection between the application and the event center, the target device routes the device events to the application to be routed through the event center.

[0015] A computer-readable storage medium is also provided, which is a computer-readable storage medium storing a computer program thereon, which, when executed, implements the event routing method of the rail transit Internet of Things.

[0016] A computer device is also provided, including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the processor loads and executes the at least one instruction, at least one program, code set, or instruction set to implement the event routing method for a rail transit Internet of Things. Attached Figure Description

[0017] Figure 1 This is a flowchart of the event routing method of the present invention. Detailed Implementation

[0018] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0019] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0020] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0021] See Figure 1 As shown, an event routing method for a rail transit Internet of Things according to the present invention includes: S1: Create identity credential information for multiple applications and establish a long connection between the applications and the event center based on the identity credential information; In one embodiment of the present invention, the identity credential information includes an application ID and an application key; creating identity credential information for each application includes: obtaining the application creation timestamp and the application's business name; creating an application ID based on the application creation timestamp and business name; and creating an application key based on SecureRandom and the SHA-256 hash algorithm.

[0022] In one embodiment of the present invention, the application ID is formatted as app_{timestamp}_{business_name}. The timestamp and business name ensure that the application ID corresponding to each application is globally unique. For example, if an application with the business name station_a_emergency is created in 20250118, the generated application ID is app_20250118_station_a_emergency. This ID creation method ensures that the application ID corresponding to each application is globally unique.

[0023] In one embodiment of the present invention, an application key is created based on SecureRandom and the SHA-256 hash algorithm, including: generating a 32-byte high-quality random number based on SecureRandom; converting the 32-byte high-quality random number into a 64-bit hexadecimal string based on the SHA-256 hash algorithm; and obtaining the application key by adding the key prefix secret_ to the 64-bit hexadecimal string. This key creation method ensures that the application key corresponding to each application has randomness, irreversibility, and uniqueness.

[0024] In one embodiment of the present invention, the application includes multiple subscribers, and the identity credential information also includes subscriber IDs corresponding to each of the multiple subscribers; creating identity credential information for each application further includes: obtaining the subscriber creation timestamp and subscriber name; creating a subscriber ID associated with the application ID based on the application ID, the subscriber creation timestamp, and the subscriber name; through this subscriber creation method, multiple subscribers can use the same application to view device events for different subscribed topics.

[0025] In one embodiment of the present invention, when an application establishes a long connection with an event center, it needs to carry an application ID and an application key in the request header. The long connection between the application and the event center is established based on the identity credential information, including: verifying whether the application ID exists and determining the application ID verification result; verifying whether the application key is correct and determining the application key verification result; verifying the association between the application ID and the subscriber ID and determining the association verification result; when the application ID verification result, the application key verification result, and the association verification result are all verified successfully, the long connection between the application and the event center is established.

[0026] In existing rail transit IoT platforms or integrated monitoring systems (such as systems built on traditional industrial protocols like OPC UA), data output is typically directed to internal modules or a few fixed clients. When data needs to be provided to massive, heterogeneous third-party business applications (such as emergency command, passenger flow analysis, and equipment health management), it is often necessary to develop separate data interfaces for each application or adopt an inefficient polling mode. This architecture leads to inconsistent interfaces, poor real-time performance, and weak scalability. Adding a new application requires modifying the platform code, resulting in a tightly coupled system architecture that cannot support an open IoT application ecosystem. In contrast, this invention establishes a long-lived connection between the application and the event center, and establishes a standardized event subscription endpoint WebSocket in the event center. This allows for the addition of new applications without requiring modifications to the IoT platform, supporting the open ecosystem of the IoT platform.

[0027] S2: Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; wherein, the device ID of each device is globally unique, and the device business attributes include line ID, station ID and device type; this invention uses the globally unique device ID as the fine-grained authorization dimension to achieve precise authorization of a single key device, and uses the device business attributes as the batch authorization dimension to achieve batch authorization of multiple devices with the same business attributes based on the rail transit organizational structure, simplifying the permission management of large-scale device groups, and achieving device-level permission isolation through two different authorization dimensions, thereby improving the accuracy of routing device events to applications.

[0028] S3: Create JsonKV routing rules for multiple applications based on the fine-grained authorization dimension and the bulk authorization dimension. The JsonKV routing rules include fine-grained rules created based on the fine-grained authorization dimension and bulk rules created based on the bulk authorization dimension.

[0029] In one embodiment of the present invention, multiple fine rules corresponding to each application are created according to the fine authorization dimension, including: validating the device ID, and creating fine rules based on the device ID when the device ID is valid; and multiple batch rules corresponding to each application are created according to the batch authorization dimension, including: validating the attribute fields of the device business attributes, and creating batch rules based on the device business attributes when the attribute fields of the device business attributes are valid. For example, create fine-grained rules with the device IDs station_A and station_B as fine-grained authorization dimensions, and batch rules with the device service attribute fire_alarm as batch authorization dimensions. The format of the JsonKV routing rule is: {"stationId": ["station_A", "station_B"], "deviceType": ["fire_alarm"]}. In the subsequent routing process, the present invention pre-builds allowed values ​​(such as ["station_A", "station_B"]) for each key (such as the device ID in the JsonKV routing rule) through the routing engine. The allowed values ​​are in the data format of a hash set (HashSet) to achieve fast matching of the corresponding device. The time consumption of the matching operation will not change with the increase of the number of allowed values, achieving a matching with a time complexity of 0(1).

[0030] In one embodiment of the present invention, the latest JSONKV routing rules are periodically obtained and compared with the old JSONKV routing rules. If there are changes, the JSONKV routing rules are updated. The updated JSONKV routing rules take effect when routing the next device event. This achieves dynamic updates of the JSONKV routing rules corresponding to the application without disconnecting the long connection between the application and the event center. Permissions can also be adjusted without modifying the code or configuration files, avoiding the inability to take effect dynamically and reducing the risk of unauthorized data access.

[0031] S4: Based on the preset filtering conditions of the subscription topic, create JsonPath routing rules corresponding to multiple applications respectively; for example, when a subscription topic that needs to filter emergency alarms has a preset filtering condition of alarmLevel>=3, the application only receives device events with an alarm level greater than or equal to 3. If the alarm levels are 1, 2, 3, 4, and 5, the corresponding JsonPath routing rule is: {"alarmLevel": ["3", "4", "5"]}, which only receives device events with alarm levels of 3, 4, and 5; if the subscription topic has no preset filtering conditions, there is no need to create JsonPath routing rules; this invention filters the device events required by the application through JsonPath routing rules, avoiding routing device events that the application does not need, reducing the application's processing burden on device events and the waste of application computing resources.

[0032] In one embodiment of the present invention, the latest JsonPath routing rules are periodically obtained and compared with the old JsonPath routing rules. If there are changes, the JsonPath routing rules are updated. The updated JsonPath routing rules take effect when routing the next device event. This achieves dynamic updates of the JsonPath routing rules corresponding to the application without disconnecting the long connection between the application and the event center. Permissions can also be adjusted without modifying the code or configuration files, avoiding the inability to take effect dynamically and reducing the risk of unauthorized data access.

[0033] S5: Obtain device events from the target device. Based on JSONKV and JsonPath routing rules, determine the application to be routed among multiple applications that has the permission to receive device events. This includes: parsing the device events to obtain multiple event fields; determining the device permissions corresponding to each application based on the multiple event fields and the JSONKV routing rules corresponding to each application. Device permissions are used to indicate whether an application has the permission to receive events generated by the target device; determining the event permissions corresponding to each application based on the multiple event fields and the JsonPath routing rules corresponding to each application. Event permissions are used to indicate whether an application has the permission to receive device events; and identifying the application with both device permissions and event permissions that allow it to receive device events as the application to be routed.

[0034] In one embodiment of the present invention, the JsonKV routing rules corresponding to multiple applications include a list of allowed fields; the device permissions corresponding to multiple applications are determined according to multiple event fields and the JsonKV routing rules corresponding to multiple applications, including: checking the value through a HashMap index to determine whether at least one event field is in the list of allowed fields; if so, the device permission is to have the permission to receive events generated by the target device.

[0035] This invention parses device events to obtain event fields including device ID, device service attributes, and alarm levels. Taking a JSONKV routing rule {"stationId": ["station_A", "station_B"], "deviceType": ["fire_alarm"]} corresponding to a certain application as an example, its allowed field list includes the three allowed fields "station_A", "station_B", and "fire_alarm". If the device ID that generates the device event is station_A or station_B, or the device service attribute that generates the device event is fire_alarm, then the application's device permission is to receive events generated by the target device.

[0036] Taking the JsonPath routing rule {"alarmLevel": ["3", "4", "5"]} corresponding to a certain application as an example, if the alarm level of the device event is 1 or 2, then the application does not have the permission to receive the device event. In this case, even if the application has the permission to receive events generated by the target device, the application cannot receive the device event. If the alarm level of the device event is 3, 4 or 5, then the application has the permission to receive the device event. In this case, if the application has the permission to receive events generated by the target device, the application can receive the device event.

[0037] S6: Based on the long connection between the application and the event center, the target device routes device events to the application to be routed through the event center; in one embodiment of the present invention, based on the long connection between the application and the event center, messages sent by the application are received through the standardized event subscription endpoint WebSocket in the event center to filter device events, route the events required by the application, and realize the distribution of multiple device events through the event center.

[0038] The present invention provides an event routing system for a rail transit Internet of Things (IoT), which applies the above-described event routing method for a rail transit IoT, and includes: The application management module is used to create identity credential information for multiple applications and establish a long connection between the application and the event center based on the identity credential information. The rules management module is used for: Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; Based on the fine-grained authorization dimension and the batch authorization dimension, create JsonKV routing rules corresponding to multiple applications respectively; Based on the preset filtering conditions of the subscribed topic, create JsonPath routing rules corresponding to multiple applications respectively; The event routing module is used for: Obtain device events from the target device, and determine the application to be routed among multiple applications that has the permission to receive the device events based on the JsonKV routing rules and the JsonPath routing rules; Based on the long-lived connection between the application and the event center, the target device routes the device events to the application to be routed through the event center.

[0039] This invention discloses a computer-readable storage medium storing a computer program thereon, which, when executed, implements the event routing method described above.

[0040] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0041] The computer device of the present invention includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the above-described event routing method.

[0042] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0043] The memory can be used to store the computer programs or modules. The processor implements various functions of the event routing method by running or executing the computer programs or modules stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0044] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. An event routing method for a rail transit Internet of Things (IoT), characterized in that, include: Create identity credential information for multiple applications, and establish a long connection between the applications and the event center based on the identity credential information; Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; Based on the fine-grained authorization dimension and the batch authorization dimension, create JsonKV routing rules corresponding to multiple applications respectively; Based on the preset filtering conditions of the subscribed topic, create JsonPath routing rules corresponding to multiple applications respectively; Obtain device events from the target device, and determine the application to be routed among multiple applications that has the permission to receive the device events based on the JsonKV routing rules and the JsonPath routing rules; Based on the long-lived connection between the application and the event center, the target device routes the device events to the application to be routed through the event center.

2. The event routing method for a rail transit Internet of Things according to claim 1, characterized in that, The identity credential information includes the application ID and the application key; Create identity credential information for each application, including: Obtain the application creation timestamp and the application's business name; Create the application ID based on the application creation timestamp and the business name; The application key is created based on SecureRandom and the SHA-256 hash algorithm.

3. The event routing method for a rail transit Internet of Things according to claim 2, characterized in that, The application includes multiple subscribers, and the identity credential information also includes subscriber IDs corresponding to each of the multiple subscribers; Creating identity credential information for each application also includes: Get the subscriber's creation timestamp and subscriber name; Create a subscriber ID associated with the application ID based on the application ID, the subscriber creation timestamp, and the subscriber name.

4. The event routing method for a rail transit Internet of Things according to claim 3, characterized in that, Establishing a long-lived connection between the application and the event center based on the identity credential information includes: Verify the existence of the application ID and determine the application ID verification result; Verify whether the application key is correct and determine the application key verification result; Verify the association between the application ID and the subscriber ID, and determine the association verification result; When the application ID verification result, the application key verification result, and the association verification result are all verified successfully, a long connection is established between the application and the event center.

5. The event routing method for a rail transit Internet of Things according to claim 1, characterized in that, The equipment service attributes include line ID, station ID, and equipment type.

6. The event routing method for a rail transit Internet of Things according to claim 1, characterized in that, Obtain device events from the target device. Based on the JsonKV routing rules and the JsonPath routing rules, determine the application to be routed among multiple applications that has the permission to receive the device events, including: The device events are parsed to obtain multiple event fields; Based on multiple event fields and JsonKV routing rules corresponding to multiple applications, the device permissions corresponding to multiple applications are determined. The device permissions are used to indicate whether the application has the permission to receive events generated by the target device. Based on multiple event fields and JsonPath routing rules corresponding to multiple applications, the event permissions corresponding to multiple applications are determined. The event permissions are used to indicate whether the application has the permission to receive the device events. Applications whose device permissions are sufficient to receive events generated by the target device, and whose event permissions are sufficient to receive events from the device, are identified as applications to be routed.

7. The event routing method for a rail transit Internet of Things according to claim 6, characterized in that, The JsonKV routing rules for each application include a list of allowed fields; Based on multiple event fields and the corresponding JsonKV routing rules for each application, determine the device permissions for each application, including: The device is granted the permission to receive events generated by the target device by checking the value of the HashMap index. If at least one of the event fields is in the list of allowed fields, the device permission is checked by examining the value of the HashMap index.

8. An event routing system for a rail transit Internet of Things (IoT), employing the event routing method for a rail transit IoT as described in any one of claims 1-7, characterized in that, include: The application management module is used to create identity credential information for multiple applications and establish a long connection between the application and the event center based on the identity credential information. The rules management module is used for: Based on the subscription topics corresponding to multiple applications, obtain the device ID as the fine-grained authorization dimension and the device business attributes as the batch authorization dimension; Based on the fine-grained authorization dimension and the batch authorization dimension, create JsonKV routing rules corresponding to multiple applications respectively; Based on the preset filtering conditions of the subscribed topic, create JsonPath routing rules corresponding to multiple applications respectively; The event routing module is used for: Obtain device events from the target device, and determine the application to be routed among multiple applications that has the permission to receive the device events based on the JsonKV routing rules and the JsonPath routing rules; Based on the long-lived connection between the application and the event center, the target device routes the device events to the application to be routed through the event center.

9. A computer-readable storage medium, characterized in that, It is a computer-readable storage medium on which a computer program is stored, which, when executed, implements an event routing method for a rail transit Internet of Things as described in any one of claims 1-7.

10. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, at least one program, code set, or instruction set being loaded and executed by the processor to implement an event routing method for a rail transit Internet of Things as described in any one of claims 1 to 7.