PIS protocol message processing method and device, equipment, storage medium and program product
By receiving real-time messages from vehicles in the intelligent rail transit system and matching the target PIS protocol processing method in the component library, the compatibility problem of different standard PIS systems is solved, data access and message processing of multi-standard vehicles are realized, and the system is improved. compatibility and operational efficiency.
Patent Information
- Application Number
- CN202410771002.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-29
AI Technical Summary
The existing intelligent rail transit system is difficult to be compatible with different formats of Passenger Information System (PIS) protocols, resulting in compatibility issues when new rail transit vehicles are connected to the system.
By receiving real-time messages from vehicles, the PIS format of the vehicle to be accessed is determined, and the target PIS protocol processing method is matched in the preset component library, and data conversion and encapsulation are performed to realize data access and message processing of different PIS formats.
It realizes data access and message compatibility of different PIS standard vehicles in the intelligent rail transit system, improves the flexibility and operational efficiency of the system, and supports the coexistence and resource sharing of multi-standard vehicles.
Smart Images

Figure CN118869733A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a PIS protocol message processing method, device, equipment, storage medium and program product. Background Art
[0002] As the problem of urban traffic congestion becomes increasingly serious, intelligent rail transit systems have emerged as a key means to solve urban traffic problems. In intelligent rail transit systems, the Passenger Information System (PIS) plays a pivotal role. It is based on multimedia network technology and takes computer systems as the core. It provides passengers with real-time and accurate information services through channels such as centers, stations and on-board display terminals, which may include important operational information such as the first and last train times, arrival times, timetables, and management announcements.
[0003] Usually, the PIS system standards corresponding to rail vehicles of different standards may also be different, and the intelligent rail transit system usually has the matching PIS system determined before it is established, and the PIS system standard matched by the general intelligent rail transit system is unique.
[0004] However, with the continuous advancement of science and technology and the rapid development of rail transit, new rail transit vehicles are emerging in an endless stream, and more and more PIS systems are emerging. However, it is difficult to make other PIS systems compatible with the existing intelligent rail transit system through the above method. Summary of the invention
[0005] The present invention provides a PIS protocol message processing method, device, equipment, storage medium and program product, which are used to solve the defect that the intelligent rail transit system in the prior art is difficult to be compatible with PIS systems of other formats, and achieve the purpose of being compatible with PIS systems of other formats in the existing intelligent rail transit system.
[0006] The present invention provides a PIS protocol message processing method, comprising: Receive the vehicle real-time message sent by the edge device, and determine the PIS format of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; the above vehicle real-time message is reported to the edge device by the vehicle to be connected; The PIS standard to be accessed is matched with the preset component library, and the target PIS protocol processing method matching the PIS standard to be accessed is determined in the component library; the above component library includes multiple PIS standards and the PIS protocol processing method corresponding to each PIS standard; the vehicle real-time message is processed according to the target PIS protocol processing method, the target PIS message corresponding to the PIS standard to be accessed is determined, and the target PIS message is sent to the vehicle to be accessed via the edge device.
[0007] According to a PIS protocol message processing method provided by the present invention, the PIS standard to be accessed is matched with a preset component library, and a target PIS protocol processing mode matching the PIS standard to be accessed is determined in the component library, including: Obtain a preset configuration file; the configuration file includes a vehicle standard and a PIS protocol processing method corresponding to each vehicle standard, and the vehicle standard corresponds to the PIS standard; Matching the PIS format to be connected with the vehicle format in the configuration file, and determining the PIS protocol processing method corresponding to the successfully matched vehicle format as the candidate PIS protocol processing method; The candidate PIS protocol processing methods and the component library will be matched to determine the target PIS protocol processing method.
[0008] According to a PIS protocol message processing method provided by the present invention, the candidate PIS protocol processing method and the component library are matched to determine the target PIS protocol processing method, including: The unique identifier of each PIS protocol processing method in the component library is read cyclically, and according to the unique identifier of each PIS protocol processing method, a reflection reading method is used to obtain the assembly corresponding to each PIS protocol processing method; The program set corresponding to each PIS protocol processing method is matched with the program set corresponding to the candidate PIS protocol processing method; if the match is successful, the PIS protocol processing method that successfully matches the candidate PIS protocol processing method is determined as the target PIS protocol processing method.
[0009] According to a PIS protocol message processing method provided by the present invention, the above-mentioned unique identification of each PIS protocol processing method is used to obtain the program set corresponding to each PIS protocol processing method by a reflection reading method, including: According to the unique identifier of each PIS protocol processing method, a compilation file corresponding to each PIS protocol processing method is obtained; each compilation file includes metadata and code of the corresponding PIS protocol processing method; According to the metadata in the compilation file of each PIS protocol processing mode, the assembly corresponding to each PIS protocol processing mode is determined.
[0010] According to a PIS protocol message processing method provided by the present invention, the vehicle real-time message is processed according to the target PIS protocol processing mode to determine the target PIS message corresponding to the PIS format to be accessed, including: Determine the data transmission mode and data type of the required data corresponding to the PIS standard to be accessed according to the target PIS protocol processing mode; extract the data to be processed corresponding to the data type in the vehicle real-time message; The data to be processed is converted according to the data transmission mode to determine the target PIS message.
[0011] According to a PIS protocol message processing method provided by the present invention, the above-mentioned conversion processing of the data to be processed according to the data transmission mode to determine the target PIS message includes: The data to be processed is converted according to the data transmission mode to obtain the target data corresponding to the data to be processed; The data encapsulation method corresponding to the PIS standard to be accessed is determined according to the target PIS protocol processing method, and the target data is encapsulated and processed according to the data encapsulation method to determine the target PIS message.
[0012] According to a PIS protocol message processing method provided by the present invention, the method is applied in a rail vehicle operation scenario, and the data to be processed includes at least one of the following: Platform code, direction, validity, vehicle format, line, vehicle schedule, vehicle code, arrival time, start time, origin station code, destination station code, hold status, skin status, service status, last shift and first shift.
[0013] The present invention also provides a PIS protocol message processing device, comprising: A data receiving module is used to receive the vehicle real-time message sent by the edge device, and determine the PIS format of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; the above vehicle real-time message is reported to the edge device by the vehicle to be connected; A matching module is used to match the PIS standard to be accessed with a preset component library, and determine a target PIS protocol processing mode that matches the PIS standard to be accessed in the component library; the above component library includes multiple PIS standards and a PIS protocol processing mode corresponding to each PIS standard; The data processing and sending module is used to process the vehicle's real-time messages according to the target PIS protocol processing method, determine the target PIS message corresponding to the PIS format to be accessed, and send the target PIS message to the vehicle to be accessed via the edge device.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned PIS protocol message processing methods is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the PIS protocol message processing method described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned PIS protocol message processing methods.
[0017] The PIS protocol message processing method, device, equipment, storage medium and program product provided by the present invention, the cloud receives the vehicle real-time message reported by the edge device, and determines the PIS standard to be connected corresponding to the vehicle to be connected according to the vehicle real-time message, and then matches the PIS standard to be connected in the preset component library to obtain the matching target PIS protocol processing method, and then processes the vehicle real-time message according to the target PIS protocol processing method to obtain the target PIS message of the PIS standard to be connected, and sends the target PIS message to the vehicle to be connected via the edge device; wherein, the vehicle real-time message is reported to the edge device by the vehicle to be connected, and the component library includes multiple PIS standards and the PIS protocol processing method corresponding to each PIS standard. In this method, since multiple protocol processing methods of different PIS standards can be preset in the component library, when the cloud of the intelligent rail system needs to access the data of vehicles with different PIS standards, the matching protocol processing method can be quickly determined in the component library and the vehicle real-time data can be processed accordingly, so as to realize the data access of vehicles with different PIS standards, that is, to realize the compatibility of vehicle data with different PIS standards. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is one of the flow charts of the PIS protocol message processing method provided by the present invention.
[0020] Figure 2 It is a structural block diagram of the component library provided by the present invention.
[0021] Figure 3 This is the second flow chart of the PIS protocol message processing method provided by the present invention.
[0022] Figure 4 It is a schematic diagram of the injection flow of the package assembly method provided by the present invention.
[0023] Figure 5 This is the third flow chart of the PIS protocol message processing method provided by the present invention.
[0024] Figure 6 It is a flowchart of the reflective reading method provided by the present invention.
[0025] Figure 7 This is the fourth flow chart of the PIS protocol message processing method provided by the present invention.
[0026] Figure 8 It is a structural block diagram of the cloud-edge protocol system provided by the present invention.
[0027] Fig. 9 It is a module block diagram of the PIS protocol processing method provided by the present invention.
[0028] Fig.10 It is a flowchart of the loading target PIS protocol processing method provided by the present invention.
[0029] Fig.11 It is a flowchart of processing vehicle real-time messages provided by the present invention.
[0030] Fig.12 It is a structural schematic diagram of the PIS protocol message processing device provided by the present invention.
[0031] Fig.13 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] In the current social context, it is particularly important that the intelligent rail transit system can be compatible with the operation of rail vehicles of various standards. This compatibility means that the system can allow different types of vehicles to run on the same line, so as to flexibly adjust the capacity according to passenger flow demand and improve operational efficiency. At the same time, the compatibility of multi-standard rail transit vehicles can also help promote resource sharing between different lines, bringing passengers a more convenient and efficient travel experience. With the continuous advancement of science and technology and the rapid development of rail transit, new rail transit vehicles are emerging in an endless stream. Therefore, ensuring that these new vehicles can be smoothly integrated into the existing rail transit system is crucial to promoting the sustainable development and innovation of the rail transit system. In this context, it is particularly important for the intelligent rail transit system to be compatible with the protocols of multi-standard PIS systems. An excellent intelligent rail transit system not only needs to be able to accept different types of vehicles running on the line at the same time, but also needs to be able to provide corresponding PIS communication interfaces for vehicles of different standards. In this way, no matter what type of vehicle, it can obtain complete operation information such as station announcements, timetables, first and last vehicle service times, etc. in the system. However, there is currently no method and system on the market that can be compatible with protocol switching of PIS systems of different standards. Based on this, the present invention provides a PIS protocol message processing method, device, equipment, storage medium and program product, which can realize compatible switching of PIS system protocols of different standards, thereby promoting the sustainable development and innovation of rail transit systems.
[0034] In order to facilitate understanding of the technical solution of the present invention, relevant terms that may be involved in the technical solution of the present invention are first explained below.
[0035] Central cloud or cloud: The central cloud is a cloud service model deployed in a traditional data center, responsible for comprehensive management and provision of cloud computing services. It usually includes a large number of servers and provides persistent storage for applications, and mainly serves applications that require large amounts of computing. The central cloud controls the edge cloud through a management network and provides secure connections. The central cloud has good stability, and its service capabilities and resource scale are large, which can meet large-scale computing and storage needs.
[0036] Edge side or edge device: The edge side is built on edge infrastructure. Based on the core and edge computing capabilities of cloud computing technology, it fully deploys computing, networking, storage, and security capabilities at the edge to form a flexible cloud platform. This platform works in conjunction with the central cloud and IoT terminals to form an end-to-end technical architecture of "cloud-edge-end collaboration".
[0037] PIS: Passenger Information System is a service system that relies on multimedia network technology and takes computer systems as the core. It provides passengers with various information by setting up display terminals in station halls, platforms, entrances and exits, and trains. Under normal circumstances, it provides real-time dynamic multimedia information such as boarding time, service time, train arrival and departure time, and advertisements; in abnormal circumstances, such as fire, blockage, and terrorist attacks, it provides dynamic emergency evacuation prompt information. The system is an important facility in rail transit vehicles such as subways and light rails, aiming to improve service quality, speed up the transmission of information announcements, and improve the level of operation management.
[0038] PIS Protocol: The PIS communication protocol is a set of rules and standards for communication and data transmission between the passenger information system and the central cloud service system.
[0039] Multi-mode: Multi-mode refers to a system or device that can support multiple different communication standards or technologies. The main advantage of multi-mode systems is their flexibility and compatibility. They can be used in different environments and scenarios, covering a wider geographical area and user groups. In addition, as technology develops and standards evolve, multi-mode systems can be more easily upgraded and expanded to adapt to new needs and challenges.
[0040] Cloud-edge collaboration: Cloud-edge collaboration refers to the complementary collaboration between cloud computing and edge computing. In this collaborative working mode, edge devices are responsible for real-time data collection, processing, and preliminary analysis, while using edge computing gateways to transmit data to the cloud. The cloud is responsible for more in-depth data analysis, machine learning, model training, and other tasks. Through the close collaboration of cloud and edge, the needs of various application scenarios can be better met, thereby amplifying the application value of both.
[0041] Component library: In actual applications, the component library can be customized and extended according to specific needs and scenarios. By utilizing the reusable components in the component library, the development and deployment of cloud-edge collaborative applications can be accelerated, and the reliability and performance of the system can be improved. At the same time, the component library can also promote interoperability and standardization between different vendors and platforms, and promote the development of the cloud-edge collaborative ecosystem.
[0042] It should be noted that the executor of the technical solution of the present invention can be the cloud or the central cloud, or it can be a PIS protocol message processing device, or it can also be an electronic device in the cloud or the central cloud, or it can also be a processor or controller in an electronic device, or it can also be other devices or apparatuses. The following embodiments take the cloud as an example to illustrate the PIS protocol message processing method of the present invention.
[0043] Combine the following Figure 1-Figure 11 The PIS protocol message processing method of the present invention is described.
[0044] Figure 1 This is one of the flow charts of the PIS protocol message processing method provided by the present invention. This embodiment involves the specific process of how to process vehicle data of different PIS formats. Figure 1 As shown, the method may include the following steps: S102, receiving a vehicle real-time message sent by an edge device, and determining the PIS format of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; the above vehicle real-time message is reported to the edge device by the vehicle to be connected.
[0045] Among them, the vehicle real-time message can represent the real-time operation message of the vehicle to be connected, which can be collected in real time by the vehicle to be connected and reported to the edge device, and then reported to the cloud by the edge device. The vehicle real-time message can include the vehicle type, arrival time, vehicle schedule, vehicle running kilometer mark, vehicle related status information, etc. of the vehicle to be connected. The specific structure of the vehicle real-time message can be seen as follows:
[0046] After receiving the real-time vehicle message of the vehicle to be connected reported by the edge device, the cloud can parse the real-time vehicle message to obtain the vehicle type of the vehicle to be connected. The vehicle type can represent the vehicle standard or the PIS standard of the vehicle to be connected. Therefore, the PIS standard of the vehicle to be connected can be obtained through the vehicle type of the vehicle to be connected, which is recorded as the PIS standard to be connected.
[0047] It should be noted that the vehicle to be connected here has not yet been connected to the cloud, that is, it has not been connected to the intelligent rail transit system where the cloud is located, but the vehicle to be connected and the edge device are connected in communication, so data can be sent and received between the vehicle to be connected and the edge device. Later, the vehicle to be connected needs to be connected to the cloud so that information can be published to the vehicle to be connected and its corresponding vehicle terminal through the cloud.
[0048] S104, matching the PIS standard to be accessed with a preset component library, and determining a target PIS protocol processing mode matching the PIS standard to be accessed in the component library; the component library includes multiple PIS standards and a PIS protocol processing mode corresponding to each PIS standard.
[0049] Among them, the component library can be pre-set, which may include multiple PIS standards and the PIS protocol processing method corresponding to each PIS standard, wherein the PIS protocol processing method represents a method for processing and analyzing a specific PIS protocol and packaging messages corresponding to a specific PIS protocol.
[0050] For this component library, the "factory method design pattern" architecture can be used to define the commands and properties of the methods in the component library. Specifically, the PisPackClass class can be defined in the component library and the CreatePisPackMethod interface can be defined in it. For different PIS interface protocols, the implementation class of the CreatePisPackMethod interface can be defined in the component library of the corresponding protocol and its interface can be implemented. For example, see Figure 2 The component library structure block diagram shows the defined PisPackClass class and the defined CreatePisPackMethod interface. PisPackClassA is defined in the A-standard protocol component library and the interface is implemented therein. PisPackClassB is defined in the B-standard protocol component library and the interface is implemented therein. Factory in the figure is the factory, object is the object, and abstract is the abstract.
[0051] The above-mentioned PisPackClass class refers to different PIS formats, CreatePisPackMethod refers to creating a PIS protocol processing method / method, and the interface of CreatePisPackMethod can be an interface provided to other programs to call the PIS protocol processing method / method, so that other programs can quickly call the corresponding PIS protocol processing method / method through this interface.
[0052] Furthermore, when the component library is pre-set, various PIS formats can be collected, and the protocol processing methods required for each different PIS format can be created to form a component library. Then, after obtaining the PIS format to be connected through the vehicle real-time message of the vehicle to be connected, it can be searched in the component library to obtain the matching PIS format and the corresponding PIS protocol processing method, which is recorded as the target PIS protocol processing method.
[0053] S106, processing the vehicle real-time message according to the target PIS protocol processing mode, determining the target PIS message corresponding to the PIS format to be connected, and sending the target PIS message to the vehicle to be connected via the edge device.
[0054] In this step, after obtaining the target PIS protocol processing method that matches the PIS format to be accessed, the vehicle real-time message can be converted according to the target PIS protocol processing method to convert the vehicle real-time message into a message in a data format that can be published (or supported) by the cloud, and obtain the target PIS message.
[0055] Afterwards, the cloud can send the target PIS message to the edge device, which then sends it to the vehicle to be connected. After obtaining the target PIS message, the vehicle to be connected can publish the target PIS message to the on-board terminal corresponding to the vehicle to be connected or the terminal in the station, thereby connecting the vehicle to be connected to the intelligent rail transit system where the cloud is located, that is, realizing data access and message publishing compatible with different PIS formats in the cloud.
[0056] In the above-mentioned PIS protocol message processing method, the cloud receives the real-time vehicle message reported by the edge device, and determines the PIS standard to be connected corresponding to the vehicle to be connected according to the vehicle real-time message, and then matches the PIS standard to be connected in the preset component library to obtain the matching target PIS protocol processing method, and then processes the vehicle real-time message according to the target PIS protocol processing method to obtain the target PIS message of the PIS standard to be connected, and sends the target PIS message to the vehicle to be connected via the edge device; wherein, the vehicle real-time message is reported to the edge device by the vehicle to be connected, and the component library includes multiple PIS standards and the PIS protocol processing method corresponding to each PIS standard. In this method, since multiple protocol processing methods of different PIS standards can be preset in the component library, when the cloud of the intelligent rail system needs to access the data of vehicles with different PIS standards, it can quickly determine the matching protocol processing method in the component library and perform corresponding protocol processing on the vehicle real-time data, so as to realize the data access of vehicles with different PIS standards, that is, to realize the compatibility of vehicle data with different PIS standards.
[0057] The above embodiment illustrates the process of matching the appropriate PIS protocol processing method through the component library to process vehicle data of different PIS formats. In the actual matching process, since the component library is a library composed of classes and class interfaces, it may be necessary to access the component library through a configuration file to achieve matching. The following embodiment illustrates the specific matching process through the configuration file.
[0058] Figure 3 This is a flow chart of the second method for processing a PIS protocol message provided by the present invention. Based on the above embodiment, see Figure 3 As shown, the above S104 may include the following steps: S202, obtaining a preset configuration file; the configuration file includes vehicle standards and the PIS protocol processing method corresponding to each vehicle standard, and the vehicle standards correspond to the PIS standards.
[0059] Among them, the configuration file can be a configuration file set by the cloud configuration module to facilitate dynamic loading of component libraries and corresponding packaging methods (i.e. the above-mentioned PIS protocol processing method). The configuration file can be recorded as PISDIConf.config, which can configure the component library name, protocol packaging method name, implemented interface name, vehicle standard identification (corresponding to the PIS standard identification), method injection method and other contents. Subsequent cloud applications can load and inject component libraries and corresponding packaging methods according to the relevant configuration content of the configuration file. The structure of the configuration file can be seen as follows:
[0060] The above configuration file PISDIConf includes two vehicle standard SType nodes, namely vehicle standard SType node A and vehicle standard SType node B. Of course, the above structure is only an example. In actual situations, the configuration file may include more vehicle standards. Each vehicle standard SType node may include the corresponding Interface interface, Implement attribute and Scope range, and of course other information. For the Interface interface, some information of the interface is configured, such as the interface name, summary, etc. For the Implement attribute, some information of the method attributes is configured, such as the protocol package method name, component library name, etc. The method injection method is configured in the Scope range, such as Transient transient injection.
[0061] From the above description, it can be seen that the above configuration file can be configured with multiple vehicle standard identifications and the corresponding component library name, protocol packaging method name (corresponding to the PIS protocol processing method identification) and other information under each vehicle standard identification.
[0062] Furthermore, after the cloud completes the parameter configuration of the component library, that is, after setting up the configuration file, the component library and the packaging method (that is, the PIS protocol processing method) can be injected through the component library and method injection module of the cloud, waiting for the subsequent dynamic selection of the packaging method. Specifically, the corresponding DLL (Dynamic Link Library) can be loaded into the program, so that the packaging method in the component library can be called by other services during the program running, and the packaging method can be injected into a unified interface factory, and a method will be selected from it for the interface to use through loading. For more details, see the process of method injection. Figure 4As shown, when the service / program is started, the IConfigurationRoot (configuration root) class is used to read the PISDIConf.config configuration file and the Items project node is traversed or read in a loop, and then the Implement attribute in Items is read, and then the LoadFromAssemblyPath (load from assembly path) method of the AssemblyLoadContext (assembly load context) class is used to load the component library specified in the Implement attribute (for example: UCI.Cloud.Huawei.dll), and then the Interface interface and Implement attribute are read, and the PisPackClassB.CreatePisPackMethod method is injected into the corresponding PisPackClass.CreatePisPackMethod interface using IServiceCollection (service collection). (After the method is injected into the corresponding interface, IEnumerable will be used.) <createpispackmethod>(Enumerable<>) This method factory receives all methods implemented under this interface).
[0063] S204: Match the PIS standard to be connected with the vehicle standard in the configuration file, and determine the PIS protocol processing mode corresponding to the successfully matched vehicle standard as the candidate PIS protocol processing mode.
[0064] In this step, after obtaining the PIS standard to be accessed from the vehicle real-time message, the cloud can determine the corresponding vehicle standard based on the PIS standard to be accessed, or can directly search in the configuration file whether there is a vehicle standard matching the PIS standard based on the PIS standard to be accessed; if there is a matching vehicle standard in the configuration file, the interface, attributes and other information included in the vehicle standard node can be found in the configuration file through the identifier of the matching vehicle standard, and then the name of the packaging method can be determined from the interface, attributes and other information, that is, the name of the PIS protocol processing method is obtained, which is recorded as the candidate PIS protocol processing method.
[0065] S206, matching the candidate PIS protocol processing mode with the component library to determine the target PIS protocol processing mode.
[0066] In this step, after the name of the matching candidate PIS protocol processing method is determined in the configuration file, it can be determined that the PIS protocol processing method corresponding to the name of the candidate PIS protocol processing method is the protocol processing method required to process the vehicle real-time message. Then, the component library can be called by the program, and the PIS protocol processing method corresponding to the name of the candidate PIS protocol processing method can be found in the component library through the name of the candidate PIS protocol processing method. The PIS protocol processing method finally found in the component library can be recorded as the target PIS protocol processing method.
[0067] In this embodiment, by matching the PIS standard to be accessed in the configuration file and then performing protocol matching in the component library, it is convenient to quickly and accurately obtain the target PIS protocol processing method in the component library, thereby improving the efficiency and accuracy of PIS protocol message processing.
[0068] The following embodiment describes the specific process of matching the target PIS protocol processing method by the name of the candidate PIS protocol processing method in the component library.
[0069] Figure 5 This is a flow chart of the third method for processing a PIS protocol message provided by the present invention. Based on the above embodiment, see Figure 5 As shown, the above S206 may include the following steps: S302, cyclically reading the unique identifier of each PIS protocol processing method in the component library, and according to the unique identifier of each PIS protocol processing method, using a reflection reading method to obtain the assembly corresponding to each PIS protocol processing method.
[0070] In this step, each PIS protocol processing method in the component library can have a unique identifier, which can be recorded as a GUID. The unique identifier can be assigned to each PIS protocol processing method by the cloud when setting up the component library or configuration file. Of course, it can also be obtained by other methods, which is not specifically limited here.
[0071] When matching the target PIS protocol processing method in the component library, the unique identifier of each PIS protocol processing method in the component library can be read in a loop or traversal manner, so as to avoid repeated reading and binding errors (i.e., errors in determining the target PIS protocol processing method). After reading the unique identifier of a PIS protocol processing method each time, the assembly corresponding to the PIS protocol processing method can be obtained through the reflection reading method. The assembly here can be the program code corresponding to the PIS processing method, etc.
[0072] As an optional embodiment, for a program set that obtains the PIS protocol processing mode by a reflective reading method, the following steps A1 and A2 may be used: Step A1, according to the unique identifier of each PIS protocol processing mode, obtain the compilation file corresponding to each PIS protocol processing mode; each compilation file includes metadata and code of the corresponding PIS protocol processing mode.
[0073] Step A2, determining the assembly corresponding to each PIS protocol processing mode according to the metadata in the compilation file of each PIS protocol processing mode.
[0074] Among them, see Figure 6 The flowchart of the reflection reading method shown in the figure, since the computer device can only recognize the machine code of 0101, the general code encoded before the program runs will be compiled into DLL or EXE (executable file), and the component library DLL compiled in this application will contain two parts, namely metadata metadata and IL intermediate language / intermediate code. IL contains code, such as methods, entity classes, etc., and metadata will contain a description of the component library, such as assembly name, class name, attribute name, etc. In the use of this reflection, reflection is mainly used to read the assembly information corresponding to the method in the component library, and output it to the upper-level application for matching.
[0075] That is to say, when setting each PIS processing mode as described above, the program code corresponding to each PIS processing mode can be compiled into a compiled file such as DLL or EXE to obtain a compiled file corresponding to each PIS processing mode, and each compiled file can include metadata and IL corresponding to the PIS protocol processing mode. Then, when traversing or looping, the corresponding metadata can be obtained from the compiled file of each PIS protocol processing mode, and the assembly corresponding to the PIS protocol processing mode can be obtained through the assembly name and other information in the metadata.
[0076] S304, matching the program set corresponding to each PIS protocol processing mode with the program set corresponding to the candidate PIS protocol processing mode.
[0077] In this step, when the name of the candidate PIS protocol processing method is determined by the configuration file, the assembly corresponding to the candidate PIS protocol processing method can also be determined in the configuration file. Then, after the unique identifier of each PIS protocol processing method in the component library is read in a loop and the assembly corresponding to each PIS protocol processing method is obtained, the assembly corresponding to the read PIS protocol processing method and the assembly of the candidate PIS protocol processing method can be matched to obtain a matching result. The specific matching can be to compare whether the names of the two assemblies are consistent, or it can also be to compare whether the specific contents of the two assemblies are consistent, or it can also be to compare whether the names and specific contents of the two assemblies are consistent at the same time, or it can also be to compare other contents of the two assemblies, etc. In short, the result of whether the two assemblies match can be obtained. For example, if the names of the two assemblies are consistent and / or the specific contents are consistent, it can be considered that the two assemblies are matched, that is, the two assemblies match successfully or the PIS protocol processing methods corresponding to the two assemblies match successfully, otherwise the matching fails.
[0078] S306: If the match is successful, the PIS protocol processing method that successfully matches the candidate PIS protocol processing method is determined as the target PIS protocol processing method.
[0079] In this step, after obtaining the matching result, for example, the assembly of a certain PIS protocol processing method in the component library successfully matches the assembly of the candidate PIS protocol processing method, that is, the certain PIS protocol processing method successfully matches the candidate PIS protocol processing method, then it can be determined that the certain PIS protocol processing method in the component library is the target PIS protocol processing method to be determined, and then the method corresponding to the target PIS protocol processing method (that is, CreatePisPackMethod) can be loaded.
[0080] In this embodiment, the unique identifiers of each PIS protocol processing method in the component library are read cyclically to obtain each PIS protocol processing method, so that errors in the reading result can be avoided; and then the assembly of the PIS protocol processing method read by the reflection reading method in the component library and the assembly of the candidate PIS protocol processing method determined in the configuration file can be matched to determine the target PIS protocol processing method, so that the reflection reading method can facilitate the reading of the assembly to improve the efficiency of assembly matching. Further, when reading the assembly by the reflection reading method, the compiled file and the metadata therein can be read by the unique identifier, and then the assembly can be obtained, so that the process of obtaining the assembly can be refined, the difficulty of subsequent assembly matching can be reduced, and the efficiency and accuracy of assembly matching can be improved.
[0081] The above embodiment briefly describes the process of processing vehicle real-time messages through the target PIS protocol processing method. The following embodiment describes a specific implementation method of the process.
[0082] Figure 7 This is a fourth flow chart of the PIS protocol message processing method provided by the present invention. Based on the above embodiment, see Figure 7 As shown, the above S106 may include the following steps: S402, determining the data transmission mode corresponding to the PIS standard to be accessed and the data type of the required data according to the target PIS protocol processing mode.
[0083] In this step, when presetting the method corresponding to each PIS protocol processing mode, the corresponding data transmission mode and the data type of the required data can be set for each PIS protocol processing mode. Of course, other information, such as data encapsulation mode, can also be preset. Among them, the data transmission mode refers to the form / mode in which the data of the PIS protocol processing mode is to be transmitted. The data transmission mode may include binary, octal, hexadecimal, etc. The data type of the required data refers to what type of data is required when the PIS protocol processing mode is transmitted. The data type may be, for example, the identification of the required data, for example, the data type of the required data may be the data type of the vehicle arrival time, the vehicle departure station, the vehicle terminal, etc. The data encapsulation mode refers to the order in which the data is arranged and then encapsulated, or the protocol used to encapsulate the data.
[0084] After setting the corresponding data transmission mode and the data type of the required data for each PIS protocol processing mode in advance, after determining the target PIS protocol processing mode, the data transmission mode and the data type of the required data corresponding to the target PIS protocol processing mode can also be obtained.
[0085] S404, extracting the to-be-processed data corresponding to the data type from the vehicle real-time message.
[0086] In this step, after obtaining the data type required by the target PIS protocol processing method, data matching the data type can be extracted from the vehicle real-time message of the vehicle to be connected, and the extracted data is recorded as the data to be processed. For example, if the data type of the required data is the vehicle departure station, the specific data of the vehicle departure station can be extracted from the vehicle real-time message. At the same time, the cloud can also obtain the basic information of the line, and combine the basic information with the vehicle real-time information, and then extract the required data to be processed from the combined data based on the above data type.
[0087] Taking the application of this method in a rail vehicle operation scenario as an example, optionally, the above-mentioned data to be processed may include at least one of the following: platform code, direction, validity, vehicle standard, row, vehicle schedule, vehicle code, arrival time, start time, departure station code, terminal station code, holding status, skin status, service status, last shift and first shift.
[0088] S406, converting the data to be processed according to the data transmission mode, and determining the target PIS message.
[0089] In this step, after the data to be processed is extracted, as an optional embodiment, the data to be processed can be converted according to the data transmission method to obtain the target data corresponding to the data to be processed, that is, the format of the data to be processed can be converted according to the data transmission method corresponding to the target PIS protocol processing method to convert the data to be processed into data in the required format to obtain the target data.
[0090] The specific structure of the above target data can be seen as follows:
[0091] After obtaining the target data that conforms to the target PIS protocol processing method, the data can be encapsulated into a message and sent to the edge side device. As an optional embodiment, the data encapsulation method corresponding to the PIS standard to be accessed can be determined according to the target PIS protocol processing method, and the target data can be encapsulated and processed according to the data encapsulation method to determine the target PIS message.
[0092] As mentioned above, the data encapsulation method here can be pre-set for each PIS protocol processing method in the component library, so that after determining the target PIS protocol processing method, the data encapsulation method corresponding to the target PIS protocol processing method can also be obtained. Then the above target data can be encapsulated according to the data encapsulation method to obtain the encapsulated message, which is recorded as the target PIS message. After that, the target PIS message can be sent from the cloud to the edge device, and then forwarded by the edge device to the vehicle to be connected and the terminal device associated with the vehicle to be connected (the terminal device can include the terminal device on the vehicle to be connected and the terminal device of the station passed by the vehicle to be connected during the journey, etc.), and then the vehicle to be connected and the related terminal devices can display the target PIS message, thereby completing the cloud publishing process of the vehicle operation message.
[0093] In this embodiment, by extracting the corresponding data to be processed from the vehicle real-time message based on the data type in the target PIS protocol processing mode, and converting the data to be processed into target data of the required format through the data transmission mode in the target PIS protocol processing mode, the PIS protocol processing and switching of the vehicle real-time message are realized. Furthermore, the target data is encapsulated through the data encapsulation mode in the target PIS protocol processing mode to obtain the target PIS message that can be published, so that the publication of different PIS protocol messages can be realized quickly.
[0094] Furthermore, the PIS protocol processing method of the present invention can be applied to the cloud-edge protocol system, and the system is divided into two parts to implement the PIS protocol processing method, see Figure 8 The structure diagram of the cloud-edge protocol and system shown in the figure shows that the first part is the business logic processing module, which focuses on processing the communication connection between the cloud (i.e., the central cloud) and the edge device (i.e., the edge side), vehicle arrival calculation, vehicle operation data analysis and other business contents, but does not focus on the specific protocol content of PIS. The edge side can have multiple edge devices and terminal devices of different PIS standards, such as A-standard PIS edge side, B-standard PIS edge side, C-standard PIS edge side, etc.
[0095] The second part is the communication protocol processing module, which will focus on processing the interface protocol content of PIS without being affected by the business layer. At the same time, it can also be connected with multi-standard PIS systems. When a new standard PIS system is added, it only needs to write the corresponding interface protocol and introduce the component library to complete the business connection, which will greatly expand the versatility and compatibility of the intelligent rail transit system.
[0096] Based on the above system description, continue to see Fig. 9 The module block diagram of the PIS protocol processing method of the present invention shown in the figure includes five modules, namely, the protocol processing and packaging module, the component library configuration module, the component and method injection module, the data receiving and method loading module and the data processing and sending module. Among them, the protocol processing and packaging module is mainly used to set up a component library for specific processing and analysis of different PIS protocols and packaging corresponding messages for specific PIS protocols; the component library configuration module is mainly used to set up a configuration file for dynamically recording the component library and the corresponding packaging method; the component and method injection module mainly uses the configuration file to inject the component library and the methods in the component library; the data receiving and method loading module is mainly used to receive the real-time vehicle messages sent by the edge device and load the required target PIS protocol processing method; the data processing and sending module is mainly used to process the real-time vehicle messages using the loaded target PIS protocol processing method and send them to the edge device after processing.
[0097] Continue to see Fig.10 The flowchart of the loading target PIS protocol processing method shown in FIG. Fig.11 The flowchart of processing vehicle real-time messages through the target PIS protocol processing method shown in the figure, the process of implementing PIS protocol message processing through five modules can specifically include: the cloud first receives the vehicle operation message / vehicle real-time message reported by the edge side / edge device, and extracts the vehicle standard type (carType, corresponding to the PIS standard) in the message. Then read the configuration of the SType node in the PISDIConf.config configuration file for matching, which can be specifically to determine whether the PIS standard in the vehicle real-time message matches the vehicle standard in the SType node. If the vehicle standard does not match, return to re-read the configuration of the SType node in the PISDIConf.config configuration file for matching; if the vehicle standard matches, obtain the assembly indicated in the configuration attribute Implement (that is, the assembly corresponding to the candidate PIS protocol processing method). Then loop read the GUID and properties of the method factory (that is, loop read the unique identifier of each PIS protocol processing method in the component library), and then use the reflection reading method to obtain the assembly corresponding to each PIS protocol processing method / method. After that, it can be determined whether the assembly corresponding to each PIS protocol processing mode / method matches the assembly indicated in the configuration property Implement. If the assembly does not match, it returns to re-read the GUID and properties of the method factory. If the assembly matches, the CreatePisPackMethod method is loaded (that is, the target PIS protocol processing mode is loaded). After that, the target PIS protocol processing mode can be used to process the vehicle real-time message. The specific processing can be to first call the CreatePisPackMethod method (that is, call the method corresponding to the target PIS protocol processing mode in the component library), and then organize the vehicle operation message according to the specific protocol (that is, process the vehicle real-time message according to the target PIS protocol processing mode, such as including data extraction, transmission mode conversion, packaging, etc.), obtain the target PIS message, and then output the target PIS message to the edge side / edge device.
[0098] From the above description, it can be seen that the present invention completes the processing and classification of vehicle real-time messages through the above five modules, and dynamically loads PIS protocol processing methods of different standards through vehicle real-time messages of different PIS standards. By identifying vehicle messages of different PIS standards during system operation and dynamically switching protocols, the compatibility with PIS systems of different standards is completed, the compatibility of the cloud-edge collaborative system is increased, and the system is more flexible and can cope with the scenario of multi-standard co-operation.
[0099] The PIS protocol message processing device provided by the present invention is described below. The PIS protocol message processing device described below and the PIS protocol message processing method described above can be referenced to each other.
[0100] Fig.12 It is a schematic diagram of the structure of the PIS protocol message processing device provided by the present invention, see Fig.12 As shown, the device may include: The data receiving module 502 is used to receive the vehicle real-time message sent by the edge device, and determine the PIS format of the to-be-connected passenger information system corresponding to the to-be-connected vehicle according to the vehicle real-time message; the above vehicle real-time message is reported to the edge device by the to-be-connected vehicle; A matching module 504 is used to match the PIS standard to be accessed with a preset component library, and determine a target PIS protocol processing mode that matches the PIS standard to be accessed in the component library; the component library includes multiple PIS standards and a PIS protocol processing mode corresponding to each PIS standard; The data processing and sending module 506 is used to process the vehicle real-time message according to the target PIS protocol processing mode, determine the target PIS message corresponding to the PIS format to be connected, and send the target PIS message to the vehicle to be connected via the edge device.
[0101] In an exemplary embodiment, the matching module 504 may include: A configuration file acquisition unit, used to acquire a preset configuration file; the configuration file includes a vehicle standard and a PIS protocol processing method corresponding to each vehicle standard, and the vehicle standard corresponds to the PIS standard; A standard matching unit is used to match the PIS standard to be connected with the vehicle standard in the configuration file, and determine the PIS protocol processing mode corresponding to the successfully matched vehicle standard as the candidate PIS protocol processing mode; The protocol matching unit is used to match the candidate PIS protocol processing mode with the component library to determine the target PIS protocol processing mode.
[0102] In an exemplary embodiment, the protocol matching unit may include: The assembly determination subunit is used to cyclically read the unique identifier of each PIS protocol processing method in the component library, and obtain the assembly corresponding to each PIS protocol processing method by a reflection reading method according to the unique identifier of each PIS protocol processing method; the assembly matching subunit is used to match the assembly corresponding to each PIS protocol processing method with the assembly corresponding to the candidate PIS protocol processing method; The target protocol determination subunit is used to determine the PIS protocol processing mode that successfully matches the candidate PIS protocol processing mode as the target PIS protocol processing mode if the match is successful.
[0103] Optionally, the above-mentioned target protocol determination sub-unit is specifically used to obtain the compilation file corresponding to each PIS protocol processing method according to the unique identifier of each PIS protocol processing method; each compilation file includes metadata and code of the corresponding PIS protocol processing method; based on the metadata in the compilation file of each PIS protocol processing method, determine the program set corresponding to each PIS protocol processing method.
[0104] In an exemplary embodiment, the data processing and sending module 506 may include: A mode and type determination unit, used to determine the data transmission mode corresponding to the PIS standard to be accessed and the data type of the required data according to the target PIS protocol processing mode; A data extraction unit, used to extract the to-be-processed data corresponding to the data type from the vehicle real-time message; The conversion unit is used to convert the data to be processed according to the data transmission mode and determine the target PIS message.
[0105] Optionally, the above-mentioned conversion unit is specifically used to convert the data to be processed according to the data transmission mode to obtain the target data corresponding to the data to be processed; determine the data encapsulation method corresponding to the PIS standard to be accessed according to the target PIS protocol processing method, and encapsulate the target data according to the data encapsulation method to determine the target PIS message.
[0106] In an exemplary embodiment, the device is applied to a rail vehicle operation scenario, and the above-mentioned data to be processed includes at least one of the following: platform code, direction, validity, vehicle standard, row, vehicle schedule, vehicle code, arrival time, start time, departure station code, terminal station code, holding status, skin status, service status, last shift and first shift.
[0107] Fig.13 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.13 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the PIS protocol message processing method, which includes: receiving the vehicle real-time message sent by the edge device, and determining the PIS standard of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; the above-mentioned vehicle real-time message is reported to the edge device by the vehicle to be connected; matching the PIS standard to be connected with the preset component library, and determining the target PIS protocol processing method matching the PIS standard to be connected in the component library; the above-mentioned component library includes multiple PIS standards and the PIS protocol processing method corresponding to each PIS standard; processing the vehicle real-time message according to the target PIS protocol processing method, determining the target PIS message corresponding to the PIS standard to be connected, and sending the target PIS message to the vehicle to be connected via the edge device.
[0108] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the PIS protocol message processing method provided by the above methods, which includes: receiving a vehicle real-time message sent by an edge device, and determining the PIS format of the passenger information system to be accessed corresponding to the vehicle to be accessed based on the vehicle real-time message; the above-mentioned vehicle real-time message is reported to the edge device by the vehicle to be accessed; matching the PIS format to be accessed with a preset component library, and determining a target PIS protocol processing method matching the PIS format to be accessed in the component library; the above-mentioned component library includes multiple PIS formats and a PIS protocol processing method corresponding to each PIS format; processing the vehicle real-time message according to the target PIS protocol processing method, determining the target PIS message corresponding to the PIS format to be accessed, and sending the target PIS message to the vehicle to be accessed via the edge device.
[0110] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the PIS protocol message processing method provided by the above-mentioned methods, the method comprising: receiving a vehicle real-time message sent by an edge device, and determining a PIS format of a passenger information system to be accessed corresponding to the vehicle to be accessed according to the vehicle real-time message; the above-mentioned vehicle real-time message is reported to the edge device by the vehicle to be accessed; matching the PIS format to be accessed with a preset component library, and determining a target PIS protocol processing method matching the PIS format to be accessed in the component library; the above-mentioned component library includes multiple PIS formats and a PIS protocol processing method corresponding to each PIS format; processing the vehicle real-time message according to the target PIS protocol processing method, determining a target PIS message corresponding to the PIS format to be accessed, and sending the target PIS message to the vehicle to be accessed via the edge device.
[0111] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / createpispackmethod>
Claims
1. A PIS protocol message processing method, characterized in that: include: Receive the vehicle real-time message sent by the edge device, and determine the PIS format of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; The vehicle real-time message is reported by the vehicle to be connected to the edge device; Matching the PIS standard to be accessed with a preset component library, and determining a target PIS protocol processing mode matching the PIS standard to be accessed in the component library; the component library includes multiple PIS standards and a PIS protocol processing mode corresponding to each PIS standard; The vehicle real-time message is processed according to the target PIS protocol processing mode, the target PIS message corresponding to the PIS format to be accessed is determined, and the target PIS message is sent to the vehicle to be accessed via the edge device.
2. The PIS protocol message processing method according to claim 1, characterized in that: The step of matching the PIS standard to be accessed with a preset component library, and determining a target PIS protocol processing mode matching the PIS standard to be accessed in the component library, includes: Obtaining a preset configuration file; the configuration file includes a vehicle standard and a PIS protocol processing method corresponding to each of the vehicle standards, wherein the vehicle standard corresponds to the PIS standard; Matching the PIS standard to be accessed with the vehicle standard in the configuration file, and determining the PIS protocol processing mode corresponding to the successfully matched vehicle standard as the candidate PIS protocol processing mode; The candidate PIS protocol processing mode and the component library are matched to determine the target PIS protocol processing mode.
3. The PIS protocol message processing method according to claim 2, characterized in that: The step of matching the candidate PIS protocol processing mode with the component library to determine the target PIS protocol processing mode includes: Circularly read the unique identifier of each PIS protocol processing method in the component library, and according to the unique identifier of each PIS protocol processing method, use the reflection reading method to obtain the assembly corresponding to each PIS protocol processing method; Matching the program set corresponding to each of the PIS protocol processing modes with the program set corresponding to the candidate PIS protocol processing modes; If the match is successful, the PIS protocol processing method that successfully matches the candidate PIS protocol processing method is determined as the target PIS protocol processing method.
4. The PIS protocol message processing method according to claim 3, characterized in that: The method of obtaining the assembly corresponding to each PIS protocol processing mode by using a reflective reading method according to the unique identifier of each PIS protocol processing mode includes: obtaining the compilation file corresponding to each PIS protocol processing mode according to the unique identifier of each PIS protocol processing mode; each compilation file includes metadata and code of the corresponding PIS protocol processing mode; According to the metadata in the compilation file of each of the PIS protocol processing modes, the assembly corresponding to each of the PIS protocol processing modes is determined.
5. The PIS protocol message processing method according to any one of claims 1 to 4, characterized in that: The processing of the vehicle real-time message according to the target PIS protocol processing mode to determine the target PIS message corresponding to the PIS format to be accessed includes: Determine the data transmission mode corresponding to the PIS standard to be accessed and the data type of the required data according to the target PIS protocol processing mode; Extracting the to-be-processed data corresponding to the data type from the vehicle real-time message; The data to be processed is converted according to the data transmission mode to determine the target PIS message.
6. The PIS protocol message processing method according to claim 5, characterized in that: The converting and processing the data to be processed according to the data transmission mode to determine the target PIS message includes: Convert the data to be processed according to the data transmission mode to obtain target data corresponding to the data to be processed; The data encapsulation method corresponding to the to-be-accessed PIS standard is determined according to the target PIS protocol processing method, and the target data is encapsulated and processed according to the data encapsulation method to determine the target PIS message.
7. The PIS protocol message processing method according to claim 5, characterized in that: Applied to the rail vehicle operation scenario, the data to be processed includes at least one of the following: Platform code, direction, validity, vehicle format, line, vehicle schedule, vehicle code, arrival time, start time, origin station code, destination station code, hold status, skin status, service status, last shift and first shift.
8. A PIS protocol message processing device, characterized in that: include: A data receiving module is used to receive the vehicle real-time message sent by the edge device, and determine the PIS standard of the passenger information system to be connected corresponding to the vehicle to be connected according to the vehicle real-time message; The vehicle real-time message is reported by the vehicle to be connected to the edge device; A matching module, used for matching the PIS standard to be accessed with a preset component library, and determining a target PIS protocol processing mode matching the PIS standard to be accessed in the component library; the component library includes multiple PIS standards and a PIS protocol processing mode corresponding to each PIS standard; The data processing and sending module is used to process the vehicle real-time message according to the target PIS protocol processing method, determine the target PIS message corresponding to the PIS format to be accessed, and send the target PIS message to the vehicle to be accessed via the edge device.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the PIS protocol message processing method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the PIS protocol message processing method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the PIS protocol message processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
PIS (Passenger Information System) external interface monitoring system and method
CN105743712A
Track networking system compatible with WLAN and LTE-M wireless signals
CN106817705A
Vehicle-mounted wireless access equipment, communication method and device thereof and storage medium
CN110225561A
Passenger information system based on rail transit network
CN110636316A
Programmable edge device self-adaption method and device
CN114253552A
