A method, apparatus and equipment for implementing adaptive software for ATS devices

By configuring a unified framework program and interface for ATS devices, the problem of low reusability of node software in the ATS system is solved, enabling efficient management and simplified upgrades of ATS devices, and reducing the error rate.

CN116263677BActive Publication Date: 2026-11-17QINGDAO JIADU WEILIAN SIGNALING SYSTEM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111528697.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2026-11-17
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

The existing ATS system suffers from low software reusability, high development and management difficulty, difficult deployment, and complex software upgrades, which increases the probability of errors.

Method used

Configure a unified framework program and interface for ATS devices, load components corresponding to node types, implement unified data forwarding rules and software update mechanisms, and support ATS devices of different node types to share the same software package.

Benefits of technology

It improves the reusability of ATS software, reduces the difficulty of development, management and deployment, reduces the error rate, and simplifies the software upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116263677B_ABST
    Figure CN116263677B_ABST
Patent Text Reader

Abstract

This application provides an adaptive software implementation method, apparatus, and device for ATS (Automatic Train Monitoring) equipment. The method configures a unified framework program for ATS equipment with different node types. Based on a pre-configured correspondence between node types and components, it determines the components corresponding to each node type of the ATS equipment in a pre-configured component set. Then, it loads the components corresponding to each node type of the ATS equipment through a unified interface, enabling ATS equipment with different node types to implement different train monitoring functions. This method improves the reusability of ATS software, reduces the difficulty of software development management and deployment, and lowers the error rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of business support, specifically to an ATS device adaptive software implementation method, apparatus, and device. Background Technology

[0002] The ATS (Automatic Train Supervision) system is a distributed system with a client / server architecture. It comprises numerous node devices of different types to meet the usage requirements of various user roles. Different node types correspond to different node software, broadly categorized as follows: server software, including application server software, communication server software, interface server software, and large-screen server software; and workstation software, which is further divided according to user roles into dispatch workstation software, maintenance workstation software, shift workstation software, large-screen display workstation software, and various display terminal software.

[0003] These node software programs share some common functionalities but also exhibit certain differences. Traditionally, focusing on these differences necessitates developing a separate software suite for each type of node device. However, this development model neglects the commonalities, leading to reduced reusability of software modules. Furthermore, managing the development of multiple software programs simultaneously, while ensuring the reuse of common modules, increases the complexity of software development and management. Such a diverse range of node software types also presents challenges in deployment and increases the probability of errors.

[0004] During software upgrades, the differences between the software at each node make online upgrades complex or impossible to standardize. When commissioning ATS (Automatic Train Protection) systems on urban rail lines, significant manpower and time are often required for software upgrades and rollbacks. Summary of the Invention

[0005] This application provides an ATS device adaptive software implementation method, apparatus, and device. By configuring a unified framework program and a unified interface for ATS devices with different node types, and loading the components corresponding to the node type of the ATS, the reusability of the ATS software is improved, the difficulty of software development management and software deployment is reduced, and the error rate is reduced.

[0006] In a first aspect, embodiments of this application provide an ATS device adaptive software implementation method, the method comprising:

[0007] After startup, the following logic is executed by running the configured unified framework program:

[0008] When determining the loading component, the node type of the train automatic monitoring system equipment is obtained, and the node type includes server type, workstation type and display terminal type;

[0009] Based on the pre-configured components corresponding to the server type, workstation type, and display terminal type in the component set, determine the components corresponding to the node types of the train automatic monitoring system equipment.

[0010] The system loads components corresponding to the node types of the automatic train monitoring system equipment through a unified interface, and calls the loaded components to execute the corresponding train monitoring functions when a control command is received. The unified interface is a uniformly configured interface for automatic train monitoring system equipment of server type, workstation type and display terminal type.

[0011] In one possible implementation, the method further includes:

[0012] When a software update is triggered, the system queries the update server for the latest software package set with unified configuration. The latest software package set includes the latest software package corresponding to server type upgrade, the latest software package corresponding to workstation type, and the latest software package corresponding to display terminal type. The latest software package includes a unified framework program and component set.

[0013] When it is determined that the update conditions for the software package of its own node type are met, the latest software package corresponding to the node type of the train automatic monitoring system equipment is downloaded from the latest software package set, and the latest software package is used for update;

[0014] Send software update instructions to other train automatic monitoring system devices of the same node type as itself, instructing the other train automatic monitoring system devices of the same node type to download the corresponding latest software package and update the software package.

[0015] In one possible implementation, upon receiving a control command, the loaded component is invoked to execute the corresponding train monitoring function, including:

[0016] When a control command for data packet transmission is received, and it is determined that the data packet does not carry a destination, the configured protocol frame routing table is queried. The protocol frame routing table is configured to implement the corresponding data forwarding rules for the train monitoring function of the ATS device based on the server type, workstation type, and display terminal type. The data forwarding rules include multiple entries, each of which includes the local node type, the transmitted protocol frame type, the sender node type, and the filtering conditions for deciding the forwarding route.

[0017] Based on the protocol frame type of the transmitted data packet, the sender node type, and the local node type of the ATS device, query the matching entry in the protocol frame routing table;

[0018] Based on the filtering conditions in the matching entries, the forwarding route of the data packets is determined and the packets are transmitted.

[0019] In one possible implementation, the sender node type in the table entry is configured with a default value, representing a sender corresponding to all node types. The method further includes:

[0020] If no entry for the local node type of the ATS device is found in the table, the ATS device is determined to be of the client type, and the data packet is sent to the ATS device of the server type.

[0021] If it is determined that the received data packet from the sender carries a specified destination, the data packet is sent directly to the specified destination.

[0022] In one possible implementation, the process of downloading the latest software package corresponding to the node type of the automatic train monitoring system equipment further includes:

[0023] When it is determined that the software packages of other node types meet the update conditions, the latest software packages corresponding to other node types are downloaded from the latest software package set and the corresponding software packages are updated. The other node types are node types other than the node types of the train automatic monitoring system equipment.

[0024] Send software update instructions to other types of nodes to instruct them to download the latest corresponding software package and update the software package.

[0025] In one possible implementation, triggering a software update includes:

[0026] It receives software update instructions from other train automatic monitoring system devices of the same type during the software update process, triggering a software update; or

[0027] It receives software update instructions from other train automatic monitoring system devices of different types and, during the software update process, determines that the software package of its own node type meets the update conditions, thereby triggering a software update.

[0028] In one possible implementation, obtaining the node type of the ATS device includes:

[0029] Obtain the IP address of the ATS device;

[0030] The node type corresponding to the ATS device is determined based on the IP address of the ATS device.

[0031] Secondly, embodiments of this application provide an ATS device adaptive software implementation apparatus, the apparatus comprising:

[0032] The runtime framework module is used to execute the following logic through the configured unified framework program after startup;

[0033] The node type acquisition module is used to determine the node type of the train automatic monitoring system equipment when loading components. The node type includes server type, workstation type and display terminal type.

[0034] The component modules are determined by identifying the components corresponding to the node types of the train automatic monitoring system equipment based on the pre-configured components corresponding to the server type, the workstation type, and the display terminal type in the component set.

[0035] The component module is used to load the components corresponding to the node type of the train automatic monitoring system equipment through a configured unified interface, and to call the loaded components to execute the corresponding train monitoring functions when a control command is received. The unified interface is a uniformly configured interface for train automatic monitoring system equipment of server type, workstation type and display terminal type.

[0036] Thirdly, embodiments of this application provide an ATS device adaptive software implementation device, the device comprising:

[0037] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods described in an ATS device adaptive software implementation method.

[0038] Fourthly, embodiments of this application provide a computer storage medium storing a computer program for causing a computer to execute any of the methods described in an ATS device adaptive software implementation method.

[0039] This application provides an ATS device adaptive software implementation method. By configuring a unified framework program and a unified interface for ATS devices of different node types, different ATS devices of different node types can realize different train monitoring functions, which improves the reusability of ATS software, reduces the difficulty of software development management and software deployment, and reduces the error rate. Attached Figure Description

[0040] Figure 1 An example of an ATS node type diagram according to an exemplary embodiment of the present invention;

[0041] Figure 2This is a schematic flowchart illustrating an ATS device adaptive software implementation method according to an exemplary embodiment of the present invention.

[0042] Figure 3 This is a schematic diagram illustrating the node software startup process according to an exemplary embodiment of the present invention;

[0043] Figure 4 This is a schematic diagram illustrating an automatic update process according to an exemplary embodiment of the present invention;

[0044] Figure 5 This is a schematic diagram of an ATS device adaptive software implementation apparatus according to an exemplary embodiment of the present invention;

[0045] Figure 6 This is a schematic diagram of an ATS device adaptive software implementation as an example of an exemplary embodiment of the present invention. Detailed Implementation

[0046] The technical solutions in the embodiments of this application will now be described clearly and in detail with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0047] This application's embodiments apply to ATS, a distributed system with a C / S architecture, which has a large number of different types of node devices to meet the usage requirements of different user roles, such as... Figure 1 As shown, the ATS (Automatic Train Protection System) includes central equipment, station equipment, and depot equipment. Each type of equipment includes server equipment and terminal equipment. The central equipment's server equipment includes large-screen servers, gateway servers, application servers, communication servers, and interface servers. The central equipment's terminal equipment includes dispatch workstations, dispatch supervisor workstations, timetable editing workstations, maintenance workstations, vehicle workstations, large-screen display workstations, and timetable display workstations. The station equipment's server equipment includes station servers; the station equipment's terminal equipment includes station display terminals. The depot equipment's server equipment includes station servers; the depot equipment's terminal equipment includes dispatch workstations. The central equipment can issue commands and view data for all station-related equipment. Station equipment allows operation and data viewing for equipment within the station itself, while data viewing for adjacent stations is only permitted.

[0048] The node software for different ATS devices has both commonalities and differences in functionality. For example, both application server devices and communication server devices include components such as alarm, user management, site map management (SDM), and node management (NDM). Developing a single framework program for each type of ATS device based solely on these differences would ignore the commonalities, resulting in low reusability of the node software. To address these issues, this application implements a unified framework program and interface for different node types within the ATS, enabling an adaptive software implementation method for ATS devices. Figure 2 As shown, the method includes:

[0049] S201: When determining the loading component, obtain the node type of the train automatic monitoring system equipment. The node type includes server type, workstation type and display terminal type.

[0050] This application embodiment configures the same set of components for ATS devices of all node types. This set of components consists of components configured for ATS devices of different node types. Different node types of ATS devices implement different train monitoring functions, and components corresponding to different node types are pre-configured. An example of a specific configuration is shown in Table 1. The component set shown in Table 1 is: M1 Alarm, M2 Train Management (AUM), M3 Replay, M4 User Management, M5 Traffic Status Report, M6 Station Map Management (SDM), M7 Temporary Speed ​​Limit (TSR), M8 Node Management (NDM), and M9 Automatic Entry Management (ARS).

[0051] Table 1

[0052]

[0053] In this embodiment, the same framework program is configured for ATS devices of different node types. That is, after all ATS devices start up, the framework program is run. During the startup process, the framework program triggers the loading of components. In order to load the components corresponding to the node type into the ATS device to realize the corresponding functions, it is necessary to obtain the node type of the ATS device. This improves the reusability of the node software, reduces the difficulty of deploying the node software, and makes it less prone to errors.

[0054] In one possible implementation, the node type of the ATS device can be determined based on its IP address. One node type of ATS device may correspond to multiple ATS devices. For example, depending on the actual situation, an ATS may include multiple communication server devices, and if these multiple communication server devices have different IP addresses, then the communication server node type corresponds to multiple IP addresses.

[0055] S202: Determine the component corresponding to the node type of the train automatic monitoring system equipment based on the pre-configured components corresponding to the server type, the workstation type, and the display terminal type in the component set.

[0056] In this embodiment, the node type of the ATS device and its corresponding components are pre-configured. When the node type of the ATS device is determined, the corresponding components can be found and loaded from the uniformly configured set of components.

[0057] For example, if the node type of the ATS device is determined to be a dispatcher workstation device, then the components configured for it are: Alarm, Train Management (AUM), Replay, User Management, Traffic Status Report, Station Map Management (SDM), Temporary Speed ​​Limit (TSR), and Node Management (NDM). By loading and calling the above components, the dispatcher workstation device can realize the monitoring and control of train operation.

[0058] S203: Load the components corresponding to the node type of the train automatic monitoring system equipment through the configured unified interface, and call the loaded components to execute the corresponding train monitoring function when a control command is received. The unified interface is a uniformly configured interface for train automatic monitoring system equipment of server type, workstation type and display terminal type.

[0059] Different node types of ATS devices utilize unified loading and unloading functions to load / unload components corresponding to their respective node types. Components corresponding to different node types are loaded / unloaded through a unified framework program. This process initializes the data within the components. However, it does not invoke all functions of the components during this process; instead, it invokes the loaded components to execute the corresponding train monitoring functions upon receiving control commands. For example, when the dispatcher workstation monitors current train data and receives a command to replay the previous day's train data, it invokes the Replay component from the component set corresponding to the dispatcher workstation device type to replay the data.

[0060] Server and workstation software with different functions require configuration data that has both commonalities and differences. Related technologies, due to these differences, require separate design and deployment of configuration data for different software, resulting in scattered and inconsistent configuration data and access interfaces. This invention unifies the management of system configuration data and develops a unified access interface. After the software automatically identifies the current node type, it calls the configuration reading interface to retrieve configuration information as needed.

[0061] This application provides an adaptive software implementation method for ATS devices. By configuring a unified framework program and a unified interface for ATS devices of different node types, ATS devices of different node types can implement different train monitoring functions, which improves the reusability of components in ATS, reduces the difficulty of software development and management, and simplifies software deployment and reduces the likelihood of errors.

[0062] As an optional implementation, obtaining the node type of the ATS device includes: obtaining the IP address of the ATS device;

[0063] The node type corresponding to the ATS device is determined based on the IP address of the ATS device.

[0064] Within the ATS network, the IP addresses of ATS devices are fixed and unique. This embodiment binds node types to specific IP addresses through node information configuration. During software startup, the node type is identified by obtaining the current ATS device's IP address information. Subsequently, based on the node type, the required components are loaded, and the overall process is as follows: Figure 3 As shown:

[0065] Step 1: Obtain the IP address of the current ATS device;

[0066] Step 2: Obtain the node type based on the binding relationship between the IP address and the node type of the ATS device;

[0067] Step 3: Obtain the components configured for the current ATS device based on the node type;

[0068] Step 4: Locate the component collection in the component directory, the components within the component collection, and the components configured for the current ATS device;

[0069] Step 5: Determine whether the corresponding component is loaded. If yes, load the component corresponding to the ATS device; otherwise, proceed to step 3.

[0070] Step 6: Determine whether the components corresponding to the ATS device have been loaded. If yes, the startup is complete; otherwise, proceed to step 4.

[0071] Since ATS devices of different node types share the same software package, when updating the software, only the same software package needs to be updated.

[0072] In one possible embodiment, when a software update is triggered, the update server is queried for the latest software package set with unified configuration. The latest software package set includes the latest software package corresponding to server type upgrade, the latest software package corresponding to workstation type, and the latest software package corresponding to display terminal type. The latest software package includes a unified framework program and component set.

[0073] When it is determined that the update conditions for the software package of its own node type are met, the latest software package corresponding to the node type of the train automatic monitoring system equipment is downloaded from the latest software package set, and the latest software package is used for update. It should be noted that although a unified latest software package set and the software packages corresponding to each node type in the set are configured, one software package may correspond to multiple node types. For example, the unified program framework corresponds to all node types. Since the latest software package set contains software packages corresponding to each type of node, the software package of its own node type can be compared with the latest software package to determine whether it is necessary to download the latest software package corresponding to its own node type, such as the unified framework program and / or components that need to be updated, and the latest software package is used for update.

[0074] Send software update instructions to other train automatic monitoring system devices of the same node type as itself, instructing the other train automatic monitoring system devices of the same node type to download the corresponding latest software package and update the software package.

[0075] In this embodiment of the application, for a certain ATS device, only the software package corresponding to its own node type can be updated, while remotely notifying other ATS devices of the same node type to perform synchronous updates.

[0076] The update server can be any one or more servers in ATS. In this application embodiment, the unified framework program and / or component to be updated can be configured as multiple update sources. An available update source is searched according to the configuration order, which is a preset order. The available update source is one where the update server where the update source is located is communicating normally and the configuration directory of the update source's software package is accessible.

[0077] The unified upgrade of the framework programs and component sets in the software package greatly reduced the manpower and time required for ATS commissioning on urban rail lines.

[0078] As an optional implementation, the process of downloading the latest software package corresponding to the node type of the train automatic monitoring system equipment further includes:

[0079] When it is determined that the software packages of other node types meet the update conditions, the latest software packages corresponding to other node types are downloaded from the latest software package set and the corresponding software packages are updated. The other node types are node types other than the node types of the train automatic monitoring system equipment.

[0080] Send software update instructions to other types of nodes to instruct them to download the latest corresponding software package and update the software package.

[0081] Since a unified framework program and component set are configured for ATS devices of all node types, each ATS device can determine whether other ATS devices of other node types also meet the software update conditions while updating its own software package. For example, if it determines that the unified framework program has been updated, or that the components of other node types in the latest software package set are different from the components of other node types in the local ATS device, it can determine that other ATS devices of other node types also need to be updated. In this case, it can instruct other ATS devices of other types to perform software updates through remote update commands.

[0082] The software package updates include three modes: local automatic updates, remote automatic updates, and manually triggered updates. Specifically, these include:

[0083] 1) When the software starts, it triggers a query of the latest software package set, queries the update server for the latest software package corresponding to its own node type, compares it with its current software package, and if the update conditions are met, downloads the latest software package corresponding to its own node type from the latest software package set and uses the downloaded latest software package to perform the update;

[0084] 2) During the operation of the software, the latest software package set is queried by the operation, the latest software package corresponding to its own node type is queried from the update server, and compared with its own current software package. When it is determined that the update conditions are met, the latest software package corresponding to its own node type is downloaded from the latest software package set, and the latest software package is used for update.

[0085] 3) Receives software update instructions from other Automatic Train Monitoring System (ATS) devices of the same type as itself during software update processes, triggering a software update; or receives software update instructions from other ATS devices of different types during software update processes when the software package of its own node type meets the update conditions, triggering a software update. The ATS device automatic update function has an intra-group node discovery function, allowing any node to remotely and automatically update the software of other ATS nodes.

[0086] As described above, the update process requires no manual intervention; the node software automatically completes file download, file backup and replacement, and process restart.

[0087] Back up your local files before automatically updating local software packages. If the automatic update fails, you can restore from the backup.

[0088] During the update process, updates can be made to either newer or older versions; they can also be made to versions with later or earlier last modification times, ensuring that the updated component versions are consistent. According to the file update strategy, the update source file is downloaded to the local directory. An MD5 algorithm is used to verify the update source package and the local package. If the verification values ​​match, the latest package is used to update the unified framework program and / or components that need updating. If they do not match, the update is not performed, preventing file unavailability due to errors during transmission.

[0089] Once the file update is complete, the ATS software process will automatically restart, loading the corresponding components and functions based on the node type.

[0090] In one possible implementation, determining that the update conditions are met includes at least one of the following:

[0091] 1) If the latest software package version number is different from the local software package version number and the checksum of the latest software package is the same as the checksum of the local software package, then the update condition is met.

[0092] The latest package version number differs from the local package version number in at least one of the following situations:

[0093] The latest package version number is newer than the local package version number;

[0094] The latest package version number is older than the local package version number.

[0095] 2) If the latest software package and the local software package have different last modification times and the checksum of the latest software package and the checksum of the local software package are the same, then the update conditions are met.

[0096] The latest software package and the local software package have different last modification times, including at least one of the following situations:

[0097] The latest software package has a later last modified time than the local software package;

[0098] The latest package's last modification time is earlier than the local package's last modification time.

[0099] In this embodiment, the software package update process requires no manual intervention; the software automatically completes file download, file backup and replacement, and process restart. The specific update process is as follows: Figure 4 As shown:

[0100] Step 1: Find an update source;

[0101] Step 2: Determine if the update source is available. If yes, pause process monitoring; otherwise, end the update.

[0102] Step 3: Compare the updated software package with the local software package and obtain a list of differences, terminate the monitored process, and back up the local software package;

[0103] Step 4: Download the new program and / or component and the program and / or component that need to be updated;

[0104] Step 5: Verify the latest software package and the local software package using MD5;

[0105] Step 6: Determine if the verification passes. If it passes, resume the monitoring process; otherwise, proceed to step 4.

[0106] There is a large amount of protocol frame exchange between ATS nodes, and different types of protocol frames have different forwarding routes. The embodiments of this application formulate unified and scalable routing and forwarding rules for protocol frames within the ATS, and the communication component automatically completes the forwarding of protocol frames between nodes. The protocol frame sender does not need to care about the forwarding route of the protocol.

[0107] In one possible implementation, when a control command for data packet transmission is received, if it is determined that the data packet does not carry a destination, the configured protocol frame routing table is queried. The protocol frame routing table is configured to implement the corresponding data forwarding rules for the train monitoring function of the ATS device based on the server type, workstation type, and display terminal type. The data forwarding rules include multiple entries, each of which includes the local node type, the transmitted protocol frame type, the sender node type, and the filtering conditions for deciding the forwarding route.

[0108] Based on the protocol frame type of the transmitted data packet, the sender node type, and the local node type of the ATS device, query the matching entry in the protocol frame routing table;

[0109] Based on the filtering conditions in the matching entries, the forwarding route of the data packets is determined and the packets are transmitted.

[0110] Taking the local node type as the central server as an example, when the central server receives a route arrangement command, according to the protocol frame routing table shown in Table 2, the main type of the protocol frame is control command, the secondary type is route arrangement, and the sender type is the default value. This means that the central server will forward protocol frames sent by senders of all node types. The filtering condition is ChildrenSpecifyDeviceType. According to the filtering conditions shown in Table 3, the protocol frame will be forwarded to the specified sub-device type. That is, the protocol frame will pass through the communication server → station server, and finally the protocol frame will be forwarded to the interlocking system for route arrangement.

[0111] In one possible implementation, if no entry for the local node type of the ATS device is found in the table, the ATS device is determined to be of the client type, and the data packet is sent to the ATS device of the server type.

[0112] If it is determined that the received data packet from the sender carries a specified destination, the data packet is sent directly to the specified destination.

[0113] Local device node types include only server-type devices, which support protocol frame forwarding. Client-type devices have no configuration and by default send messages to the server corresponding to that client-type device. For example, protocol frames from a station display terminal can only be sent to its corresponding station server. It's important to note that only the central application server, communication server, and station server types support protocol frame forwarding.

[0114] Table 2

[0115]

[0116] Table 3

[0117] Serial Number name Value (HEX) describe 1 None 0x0000 Do not send 2 Sibling 0x0001 Neighboring machine 3 All Children 0x0002 All ATS sub-devices of this equipment 4 AllParents 0x0004 All ATS parent devices of this device 5 ChildrenSpecifyDeviceType 0x0010 Specified sub-device type 6 ChildrenExcludeDeviceType 0x0020 All sub-devices, but exclude the device types specified in the exclusion criteria. 7 ChildrenExcludeSenderType 0x0040 All sub-devices, but excluding sender type. 8 ChildrenExcludeSenderID 0x0080 All child nodes, but exclude the sender ID. 9 SpecifyDeviceIDInFrame 0x0100 Target device specified in the protocol frame

[0118] In traditional methods, when configuring the corresponding software for ATS devices of various node types, the forwarding rules for instructions and data are configured simultaneously. The protocol frame forwarding routing table proposed in this application is fully adaptable to the unified program framework configured for ATS devices of various node types, playing a positive role in software module reusability and software deployment.

[0119] Based on the same concept, embodiments of this application also provide an ATS device adaptive software implementation apparatus, such as... Figure 5 As shown, the apparatus 500 includes:

[0120] The runtime framework module 501 is used to execute the following logic after startup by running the configured unified framework program;

[0121] The node type acquisition module 502 is used to acquire the node type of the train automatic monitoring system equipment when determining the loading component. The node type includes server type, workstation type and display terminal type.

[0122] The component determination module 503 determines the component corresponding to the node type of the train automatic monitoring system equipment based on the pre-configured components corresponding to the server type, the workstation type, and the display terminal type in the component set.

[0123] The component module 504 is invoked to load the component corresponding to the node type of the train automatic monitoring system device through the configured unified interface, and the loaded component is invoked to execute the corresponding train monitoring function when a control command is received. The unified interface is a uniformly configured interface for train automatic monitoring system devices of server type, workstation type and display terminal type.

[0124] In one possible implementation, the software update module is used to query the update server for information on the latest software package when a software update is triggered. The update server is used to store the latest software package uniformly configured for ATS devices of server type, workstation type and display terminal type. The latest software package includes a unified framework program and a set of components.

[0125] When the query results determine that the update conditions are met, the unified framework program and / or components that need to be updated are identified, and the latest software package is used to perform the update.

[0126] In one possible implementation, the component module is used to invoke the loaded components to execute the corresponding train monitoring function upon receiving a control command, including:

[0127] When a control command for data packet transmission is received, and it is determined that the data packet does not carry a destination, the configured protocol frame routing table is queried. The protocol frame routing table is configured to implement the corresponding data forwarding rules for the train monitoring function of the ATS device based on the server type, workstation type, and display terminal type. The data forwarding rules include multiple entries, each of which includes the local node type, the transmitted protocol frame type, the sender node type, and the filtering conditions for deciding the forwarding route.

[0128] Based on the protocol frame type of the transmitted data packet, the sender node type, and the local node type of the ATS device, query the matching entry in the protocol frame routing table;

[0129] Based on the filtering conditions in the matching entries, the forwarding route of the data packets is determined and the packets are transmitted.

[0130] In one possible implementation, the method involves calling a component module to configure the sender node type in the table entry as a default value, representing a sender corresponding to all node types. The method further includes:

[0131] If no entry for the local node type of the ATS device is found in the table, the ATS device is determined to be of the client type, and the data packet is sent to the ATS device of the server type.

[0132] If it is determined that the received data packet from the sender carries a specified destination, the data packet is sent directly to the specified destination.

[0133] In one possible implementation, the software update module is configured to, when the software starts, trigger an instruction to query the latest software package information, obtain a latest software package from the update server, and use the latest software package to perform an update;

[0134] During the operation of the software, an instruction to query the latest software package information is triggered by an operation, a latest software package is obtained from the update server, and the latest software package is used for updating;

[0135] It receives instructions from other ATS devices to query the latest software package information, retrieves the latest software package from the update server, and uses the latest software package to perform a remote update.

[0136] In one possible implementation, the software update module is used to identify the unified framework programs and / or components that need to be updated, and to update them using the latest software package, including:

[0137] The latest software package and the local software package are verified using the MD5 algorithm. If the verification values ​​match, the latest software package is used to update the unified framework program and / or components that need to be updated; otherwise, no update is performed.

[0138] In one possible implementation, the node type acquisition module is used to acquire the IP address of the ATS device;

[0139] The node type corresponding to the ATS device is determined based on the IP address of the ATS device.

[0140] Based on the same concept, this application implements an ATS device adaptive software implementation device, such as... Figure 6 As shown, the device includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute any of the ATS device adaptive software implementation methods in the above embodiments.

[0141] The following reference Figure 6 To describe an electronic device 130 according to this embodiment of the present application. Figure 6 The electronic device 130 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0142] like Figure 6 As shown, the electronic device 130 is presented in the form of a general-purpose electronic device. The components of the electronic device 130 may include, but are not limited to: at least one processor 131, at least one memory 132, and a bus 133 connecting different system components (including memory 132 and processor 131).

[0143] The processor 131 is used to read and execute instructions from the memory 132, so that the at least one processor can execute the ATS device adaptive software implementation method provided in the above embodiments.

[0144] Bus 133 represents one or more of several bus structures, including a memory bus or memory controller, peripheral bus, processor, or local bus using any of the various bus structures.

[0145] The memory 132 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 1321 and / or cache memory 1322, and may further include read-only memory (ROM) 1323.

[0146] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0147] Electronic device 130 can also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), and with one or more devices that enable a user to interact with electronic device 130, and / or with any device that enables electronic device 130 to communicate with one or more other electronic devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 135. Furthermore, electronic device 130 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 136. As shown, network adapter 136 communicates with other modules used in electronic device 130 via bus 133. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0148] In some possible implementations, various aspects of the ATS device adaptive software implementation method provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to perform the steps of the ATS device adaptive software implementation method according to the various exemplary embodiments of this application described above.

[0149] In addition, this application also provides a computer-readable storage medium storing a computer program for causing a computer to perform the method described in any of the above embodiments.

[0150] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0151] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0152] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0153] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for implementing adaptive software in an ATS device, characterized in that, The method includes: The same framework program configured for different node types of Automatic Train Monitoring (ATS) devices is started to execute the following logic: When determining the loading component, the node type of the ATS device is obtained, including server type, workstation type, and display terminal type; Based on the pre-configured components corresponding to the server type, workstation type, and display terminal type in the component set, determine the components corresponding to the node types of the train automatic monitoring system equipment. The system loads components corresponding to the node type of the train automatic monitoring system equipment through a configured unified interface, and calls the loaded components to execute the corresponding train monitoring function when a control command is received. The unified interface is a uniformly configured interface for train automatic monitoring system equipment of server type, workstation type and display terminal type. When a software update is triggered, the system queries the update server for the latest software package set with unified configuration. ATS devices of different node types share the same software package set. When it is determined that the software package update conditions for its own node type are met, the system downloads the latest software package corresponding to the node type of the train automatic monitoring system equipment from the latest software package set, and uses the latest software package to update; it also sends software update instructions to other train automatic monitoring system equipment of the same node type to instruct them to download the corresponding latest software package and update the software package.

2. The method according to claim 1, characterized in that, Upon receiving a control command, the loaded components are invoked to execute the corresponding train monitoring functions, including: When a control command for data packet transmission is received, and it is determined that the data packet does not carry a destination, the configured protocol frame routing table is queried. The protocol frame routing table is configured to implement the corresponding data forwarding rules for the train monitoring functions of the train automatic monitoring system equipment based on the server type, workstation type, and display terminal type. The data forwarding rules include multiple entries, each of which includes the local node type, the transmitted protocol frame type, the sender node type, and the filtering conditions for deciding the forwarding route. Based on the protocol frame type of the transmitted data packet, the sender node type, and the local node type of the ATS device, query the matching entry in the protocol frame routing table; Based on the filtering conditions in the matching entries, the forwarding route of the data packets is determined and the packets are transmitted.

3. The method according to claim 2, characterized in that, The sender node type in the table entry is configured with a default value, representing a sender for all node types. The method also includes: If no entry for the local node type of the train automatic monitoring system device is found in the table, the train automatic monitoring system device is determined to be of the client type, and the data packet is sent to the train automatic monitoring system device of the server type. If it is determined that the received data packet from the sender carries a specified destination, the data packet is sent directly to the specified destination.

4. The method according to claim 1, characterized in that, The process of downloading the latest software package corresponding to the node type of the train automatic monitoring system equipment also includes: When it is determined that the software packages of other node types meet the update conditions, the latest software packages corresponding to other node types are downloaded from the latest software package set and the corresponding software packages are updated. The other node types are node types other than the node types of the train automatic monitoring system equipment. Send software update instructions to other types of nodes to instruct them to download the latest corresponding software package and update the software package.

5. The method according to claim 1 or 4, characterized in that, Triggering software updates includes: It receives software update instructions from other train automatic monitoring system devices of the same type during the software update process, triggering a software update; or It receives software update instructions from other train automatic monitoring system devices of different types and, during the software update process, determines that the software package of its own node type meets the update conditions, thereby triggering a software update.

6. The method according to claim 1, characterized in that, The step of obtaining the node type of the train automatic monitoring system equipment includes: Obtain the IP address of the train automatic monitoring system equipment; The node type corresponding to the automatic train monitoring system equipment is determined based on the IP address of the automatic train monitoring system equipment.

7. An ATS device adaptive software implementation apparatus, characterized in that, The device includes: The runtime framework module is used to launch the same framework program configured for different node types of Automatic Train Monitoring System (ATS) devices to execute the following logic; The node type acquisition module is used to acquire the node type of the ATS device when determining the loading component. The node type includes server type, workstation type and display terminal type. The component modules are determined by identifying the components corresponding to the node types of the train automatic monitoring system equipment based on the pre-configured components corresponding to the server type, the workstation type, and the display terminal type in the component set. The component module is used to load the components corresponding to the node type of the train automatic monitoring system equipment through the configured unified interface, and to call the loaded components to execute the corresponding train monitoring functions when a control command is received. The unified interface is a unified interface configured for train automatic monitoring system equipment of server type, workstation type and display terminal type. The software update module is used to query the update server for the latest software package set with unified configuration when a software update is triggered. Different ATS devices of different node types share the same software package set. When it is determined that the software package update conditions for its own node type are met, it downloads the latest software package corresponding to the node type of the Train Automatic Monitoring System device from the latest software package set and uses the latest software package to update. It also sends a software update instruction to other Train Automatic Monitoring System devices of the same node type to instruct them to download the corresponding latest software package and update the software package.

8. An ATS device adaptive software implementation device, characterized in that, The device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of claims 1-6.

9. A computer storage medium, characterized in that, The computer storage medium stores a computer program that enables the computer to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Information synchronization method and device of access device

    CN102724356A

  • A method and system for automatically upgrading a train automatic monitoring ATS subsystem software

    CN109445809A

  • Rail transit monitoring system, method and server

    CN112394675A