Relay data exchange method, device, equipment and medium

By introducing a relay data exchange device into the tamping vehicle control system, using the communication drive management module and the subsystem management module, the problems of poor data flexibility, cumbersome subsystem optimization and expansion and complex network communication are solved, and more efficient data sharing and development efficiency are achieved.

CN119629135AActive Publication Date: 2025-03-14CRCC HIGH TECH EQUIP CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510157291.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-03-14
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

The data flexibility of the tampering vehicle control system is poor, the subsystem optimization and expansion are cumbersome, and the network communication during development is complicated.

Method used

A relay data exchange device is designed, including a communication driver management module and a subsystem management module, to obtain the system data of the subsystem through a data subscription mechanism, and to configure the communication driver and data address to simplify the communication network topology.

Benefits of technology

Improves data flexibility and ease of sharing, reduces the complexity of subsystem optimization and scaling, improves development efficiency, and reduces the cost of inspection and after-sales maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629135A_ABST
    Figure CN119629135A_ABST
Patent Text Reader

Abstract

The invention discloses a relay data exchange method, device and equipment and a medium, and relates to the technical field of railway maintenance of large-scale road maintenance machinery. The device is applied to a tamping wagon control system, the tamping wagon control system comprises at least one subsystem, and the relay data exchange device comprises a communication drive management module used for configuring a corresponding communication drive and a data address according to a target subsystem managed by a subsystem management module; and the subsystem management module is used for loading the communication drive to establish communication connection with the target subsystem, and obtaining system data of the target subsystem and / or executing a data operation instruction on the target subsystem according to the data address based on a data subscription mechanism. Through the technical scheme of the invention, the problems of poor data flexibility, tedious subsystem optimization and extension and complex network communication during development of the tamping wagon control system can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of railway maintenance by large-scale track maintenance machinery, and in particular to a relay data exchange method, device, equipment and medium. Background Art

[0002] The tamping machine is the main large-scale mechanized track maintenance equipment for the construction and maintenance of railway lines. Before the tamping machine, the railway was generally maintained manually. Manual maintenance has problems such as high labor intensity, low efficiency, and poor operation accuracy. Compared with manual maintenance, the tamping machine can greatly improve the work efficiency and accuracy of maintenance, among which the electrical control system of the tamping machine plays an important role.

[0003] The characteristics of tamping vehicles are that they have a large number of sensors, many subsystem modules, complex control logic, and require fast data communication response between subsystems and high machine operation accuracy. The tamping vehicle control system needs to process data items from many subsystems, including slave IO (Input / output) modules, track geometry computer, host computer display module, engine communication module, auxiliary generator control module, operation system module, remote data platform, etc. With the demand for intelligent tamping vehicles, the division of labor and cooperation of various systems and the number of subsystems will increase, and the demand for communication will also be varied.

[0004] In order to meet the requirements of data communication between each subsystem and module, most solutions in the existing technology are to select the electrical control system of the same environment at the beginning of designing the tamping vehicle control system, so as to ensure the best communication efficiency between the subsystems. For example, Siemens' SIMATIC S7-1500 platform and the embedded platform based on the CODESYS environment. At present, the existing technology has the following shortcomings:

[0005] 1) The interfaces between the electrical control system of the tamping vehicle and many subsystems only meet the conventional control requirements. Many data items cannot be transmitted to the electrical control system of the tamping vehicle due to various reasons (such as insufficient planning of data points, mismatch of communication interfaces, etc.), which reduces data flexibility;

[0006] 2) After the tamping vehicle electrical control system is released, if some subsystems need to be appropriately modified for engineering optimization, various problems may arise during the optimization process depending on the electrical control system environment and operator capabilities, thereby increasing after-sales costs;

[0007] 3) When developing the electrical control system of the tamping vehicle, developers need to spend a lot of energy dealing with communication problems because they need to connect to various subsystems, and have no time to take care of their own control logic, which affects development efficiency.

[0008] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0009] In view of this, the purpose of the present invention is to provide a relay data exchange method, device, equipment and medium, which can solve the problems of poor data flexibility of the tamping vehicle control system, cumbersome subsystem optimization and expansion, and complex network communication during development. The specific scheme is as follows:

[0010] In a first aspect, the present application discloses a relay data exchange device, which is applied to a tamping vehicle control system, wherein the tamping vehicle control system includes at least one subsystem, wherein the relay data exchange device includes:

[0011] The communication driver management module is used to configure the corresponding communication driver and data address according to the target subsystem managed by the subsystem management module;

[0012] The subsystem management module is used to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, obtain the system data of the target subsystem according to the data address and / or execute data operation instructions on the target subsystem.

[0013] Optionally, the communication driver management module is specifically used to:

[0014] Acquire configuration parameters through a preset configuration interface, and generate a driver configuration file according to the configuration parameters; configure a communication driver and a data address corresponding to the target subsystem according to the driver configuration file;

[0015] Accordingly, the subsystem management module is specifically used for:

[0016] The driver configuration file is called to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, the system data of the target subsystem is obtained according to the data address and / or a data operation instruction is executed on the target subsystem.

[0017] Optionally, the subsystem management module includes:

[0018] A mapping relationship acquisition module, used for calling the data variable configuration file of the target subsystem to automatically acquire the mapping relationship between the system data and the data address;

[0019] An instruction processing module, configured to send the data operation instruction to the target subsystem based on a first preset time interval, and create an independent thread to execute the data operation instruction;

[0020] A data subscription forwarding module is used to obtain a data exchange request from a first subsystem based on a communication interface of a preset transmission protocol, and determine a second subsystem with which the first subsystem requests data exchange according to the data exchange request; obtain system data of the second subsystem based on the data subscription mechanism, and forward the system data of the second subsystem to the first subsystem.

[0021] Optionally, the subsystem management module further includes:

[0022] An event alarm service module, used to obtain preset event alarm rules and monitor the target subsystem according to the preset event alarm rules;

[0023] When it is detected that the target subsystem triggers the preset event alarm rule, the corresponding alarm event is notified to the target subsystem in real time.

[0024] Optionally, the relay data exchange device further includes:

[0025] The historical data archiving service module is used to obtain the system data of the target subsystem and the alarm event corresponding to the preset event alarm rule triggered by the target subsystem; record the system data and the alarm event in real time to the local database, and provide the target subsystem with a preset query interface to query the local database.

[0026] Optionally, the subsystem management module further includes a data refresh module; wherein the data refresh module is used to:

[0027] Polling and acquiring the data status of the target subsystem based on a second preset time interval, and caching the data status in the local database;

[0028] Detecting whether the data state in the local database has changed;

[0029] When the data state changes, the current system data corresponding to the data state change is obtained, and whether the current system data is subscribed is determined;

[0030] If the current system data is subscribed, the data subscription mechanism is triggered to batch obtain the system data currently pushed by the target subsystem, and then the current system data is refreshed using the system data currently pushed by the target subsystem; if the current system data is not subscribed, the current system data is directly refreshed;

[0031] When there is no change in the data status, the process jumps to the step of obtaining the data status of the target subsystem through polling based on a second preset time interval.

[0032] Optionally, the relay data exchange device further includes:

[0033] A redundant function module is used to configure a master service and a slave service; based on a preset time period, a heartbeat signal is sent to the slave service through the master service so that the slave service monitors the master service; when the slave service can receive the heartbeat signal, the slave service is placed in a silent state; when the slave service cannot receive the heartbeat signal, the slave service is started.

[0034] In a second aspect, the present application discloses a relay data exchange method, which is applied to a relay data exchange device, wherein the relay data exchange device is installed in a tamping vehicle control system, and the tamping vehicle control system includes at least one subsystem, wherein the relay data exchange method includes:

[0035] Through the communication driver management module in the relay data exchange device, the corresponding communication driver and data address are configured according to the target subsystem managed by the subsystem management module;

[0036] The communication driver is loaded through the subsystem management module to establish a communication connection with the target subsystem, and based on a data subscription mechanism, the system data of the target subsystem is obtained according to the data address and / or data operation instructions are executed on the target subsystem.

[0037] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relay data exchange method as described above.

[0038] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the relay data exchange method as described above.

[0039] The present application provides a relay data exchange device, which is applied to a tamping vehicle control system. The tamping vehicle control system includes at least one subsystem, and the relay data exchange device includes: a communication driver management module, which is used to configure a corresponding communication driver and a data address according to a target subsystem managed by a subsystem management module; the subsystem management module is used to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, obtain the system data of the target subsystem according to the data address and / or execute data operation instructions on the target subsystem.

[0040] The beneficial technical effect of the present application is as follows: by configuring a relay data exchange device in the tamping vehicle control system, the communication network topology of the tamping vehicle control system can be simplified, the data of all subsystems will be obtained by the relay data exchange device, and the communication drivers adapted to each subsystem have been integrated in the relay data exchange device. Designers do not need to write communication programs, but only need to configure the communication drivers and data addresses of the relevant data. Under the premise of not destroying the independence of each subsystem, the data of the subsystem can be easily obtained, making the respective data sharing easier and the acquisition of data more flexible. For the target subsystem managed by the subsystem management module, the data to be accessed can be obtained based on the data subscription mechanism, and the data operation instructions can be executed on the target subsystem. When it is necessary to add a subsystem or optimize a subsystem, there is no need to optimize the entire control project, and it only needs to be configured and managed through the relay data exchange device, which basically does not affect the whole vehicle control system, thereby reducing the cost of inspection and after-sales maintenance. Developers can focus on the development of the tamping vehicle control system, and the data exchange of the subsystem is handed over to the relay device, thereby improving work efficiency.

[0041] In addition, the present application provides a relay data exchange method, device and storage medium, which correspond to the above-mentioned relay data exchange device and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 It is a block diagram of a tamping vehicle control system without a relay data exchange device in the prior art;

[0044] Figure 2 A schematic diagram of the structure of a relay data exchange device disclosed in this application;

[0045] Figure 3 A block diagram of a tamping vehicle control system based on a relay data exchange device disclosed in the present application;

[0046] Figure 4 A schematic diagram of an example process of a relay data exchange device subscribing to forwarding data disclosed in the present application;

[0047] Figure 5 A block diagram of a relay data exchange device disclosed in the present application;

[0048] Figure 6A schematic diagram of an example process of data exchange between a relay data exchange device and a subsystem disclosed in the present application;

[0049] Figure 7 A flow chart of a relay data exchange method disclosed in this application;

[0050] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0052] like Figure 1 As shown in the figure, it is the block diagram of the current tamping vehicle control system. This technology needs to rely on the main control CPU (Central Processing Unit) unit. The whole vehicle control, auxiliary control, and extended functions all need to be processed by the main control CPU unit, so the performance requirements of the main control CPU unit are relatively high. At the same time, whether the main control CPU unit can meet the requirements also requires specific control requirements for each subsystem. For example, for the upper computer display module, if many modules access the main control CPU unit, the general main control CPU unit cannot meet the real-time communication rate, so the general existing technology limits the number of accesses to the upper computer. For example, if the main control CPU unit of the existing technology cannot exchange data with it in real time, the track geometry parameter computer is generally required to directly enter the control system with analog signals. In the era of continuous development of intelligence, the above two examples can no longer meet the flexibility of data acquisition, the convenience of function expansion, and the development time consumed by complex interactions between a large number of subsystems.

[0053] To this end, the present application provides a relay data exchange solution that can solve the problems of poor data flexibility in the tamping vehicle control system, cumbersome subsystem optimization and expansion, and complex network communication during development.

[0054] The present application embodiment discloses a relay data exchange device, see Figure 2 As shown, it is applied to a tamping vehicle control system, and the tamping vehicle control system includes at least one subsystem, wherein the device includes:

[0055] The communication driver management module 11 is used to configure the corresponding communication driver and data address according to the target subsystem managed by the subsystem management module.

[0056] In the embodiment of the present application, a relay data exchange device that is easy to set up, accurate, powerful and reliable is designed, and the device can be placed in the tamping vehicle control system. For example, the relay data exchange device is installed in the tamping vehicle control system DNCS system. The DNCS system is developed based on Siemens' SIMATIC S7-1500, and its characteristics are centralized control and rich interface modules. DNCS can configure high-efficiency substations for fast data exchange with various subsystems.

[0057] In the embodiment of the present application, the relay data exchange device defines a unified communication driver interface. Among them, the software interface is used to describe the connectivity and read / write properties of each subsystem, and the hardware interface can directly connect to each subsystem. Developers do not need to write a communication program, but only need to configure the relay data exchange device to obtain the data of each subsystem in real time.

[0058] Specifically, the communication driver management module is specifically used to: obtain configuration parameters through a preset configuration interface, and generate a driver configuration file according to the configuration parameters; and configure the communication driver and data address corresponding to the target subsystem according to the driver configuration file.

[0059] It can be understood that the preset configuration interface is a software interface for connecting to each subsystem, and a communication connection can be established with each subsystem in a synchronous or asynchronous manner through the preset configuration interface. Among them, the subsystem is a subsystem with different communication technologies. After the configuration parameters related to the subsystem are obtained through the preset configuration interface, a driver configuration file is generated according to the configuration parameters. Through the communication driver configuration file, there is no need for separate programming, and the driver can be automatically registered, and the communication driver and data address corresponding to the target subsystem to be managed can be configured, so that the communication driver that meets the interface definition can be called.

[0060] The subsystem management module 12 is used to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, obtain the system data of the target subsystem according to the data address and / or execute data operation instructions on the target subsystem.

[0061] In the embodiment of the present application, the communication network topology of the tamping vehicle control system can be simplified, and the data of all subsystems can be obtained through the subsystem management module in the relay data exchange device. Since the communication drivers adapted to each subsystem have been integrated in the relay data exchange device, the designer only needs to configure the communication driver and data address of the relevant data to easily obtain the subsystem data, and only needs to call the driver configuration file to load the communication driver to establish a communication connection with the target subsystem to be connected.

[0062] For subsystems, a unified data subscription method can be used to obtain the data you want to access in real time, or to obtain all the data of another subsystem in batches. At the same time, the subsystem management module can execute relevant data operation instructions on the target subsystem, such as read and write operations.

[0063] It is understandable that after the tamping vehicle electrical control system has passed the factory inspection, if some subsystem functions need to be appropriately modified, the entire control project must be optimized. At this time, various problems will inevitably be encountered during the optimization process depending on the control system environment and the operator's ability, so it is necessary to re-factory inspect after rectification. In the embodiment of the present application, the initial design based on the subsystem management module has completed the testing of the relay data exchange device for all subsystems, and the optimization and modification work for a certain subsystem can be assured. As long as there is no problem with the optimized subsystem, it will basically not affect the vehicle control system, thereby reducing the cost of post-inspection and after-sales maintenance.

[0064] In a specific implementation, the relay data exchange device has a redundancy function, the purpose of which is to ensure the reliability of the relay data exchange device. Specifically, the relay data exchange device also includes: a redundancy function module, which is used to configure the master service and the slave service; send a heartbeat signal to the slave service through the master service based on a preset time period, so that the slave service monitors the master service; when the slave service can receive the heartbeat signal, put the slave service into a silent state; when the slave service cannot receive the heartbeat signal, start the slave service.

[0065] It should be noted that the redundancy function module will start two instances for the communication service, one master service and one slave service. When the master service is normal, the slave service is in a silent state and only communicates with the master service through heartbeats; when the slave service no longer receives the heartbeat of the master service, all functions of the slave service are started.

[0066] like Figure 3 The figure shows a schematic diagram of the structure of a subsystem connected to a relay data exchange device provided in an exemplary embodiment of the present application. A person skilled in the art can understand that the connection structure is only for illustration and does not limit it. Figure 3 In the process, the engine communication module can also be directly connected to the relay data exchange device and then forwarded to the main control CPU (Central Processing Unit), so that the main control CPU unit does not need to spend energy to obtain engine-related data.

[0067] Furthermore, in the embodiment of the present application, the subsystem management module includes:

[0068] A mapping relationship acquisition module, used for calling the data variable configuration file of the target subsystem to automatically acquire the mapping relationship between the system data and the data address;

[0069] An instruction processing module, configured to send the data operation instruction to the target subsystem based on a first preset time interval, and create an independent thread to execute the data operation instruction;

[0070] A data subscription forwarding module is used to obtain a data exchange request from a first subsystem based on a communication interface of a preset transmission protocol, and determine a second subsystem with which the first subsystem requests data exchange according to the data exchange request; obtain system data of the second subsystem based on the data subscription mechanism, and forward the system data of the second subsystem to the first subsystem.

[0071] Among them, the mapping relationship acquisition module does not need to be programmed separately. It can automatically obtain the mapping relationship between data and address through the configuration files of the data variables of each subsystem, and automatically generate the binding database object. After the device is running and the communication drivers of each subsystem are automatically loaded, the instruction processing module establishes a separate thread to access the subsystem at fixed intervals and execute data operation instructions, such as read or write operations. It should be pointed out that the subsystem management module can set a scheduled task separately. After the scheduled task is started, it can start to obtain the data of each subsystem, or forward data and instructions between each subsystem. It can be seen that the relay data exchange device and the subsystem data exchange adopt the polling + subscription method to exchange data in real time, and data reading and data refreshing use independent threads respectively, which do not affect each other.

[0072] Among them, the data subscription forwarding module is used to execute subscription forwarding data, such as Figure 4 The figure shows an example process diagram executed by the data subscription forwarding module. The data subscription forwarding module works independently from the subsystems, and only relies on a communication interface based on a preset transmission protocol, such as a communication interface based on TCP / IP (Transmission Control Protocol / Internet Protocol). Since the subsystem management module can manage data of multiple subsystems, when the first subsystem wants to request data of the second subsystem managed by the subsystem management module, based on the data subscription mechanism, the subsystem management module pushes the relevant data of the second subsystem to the first subsystem. Figure 4 As shown, the subsystem receives the pushed data and determines whether there is data, that is, whether the data is received. If not, the pushed data will be suspended; if the data is received, the data is parsed according to the agreed rules to obtain the parsed value, and then the subscription event inside the subsystem is triggered, and the data is updated when the data is subscribed.

[0073] It should be pointed out that after the subsystem is running, there are many ways to request data in the relay data exchange device. The main APIs (Application Programming Interface) include batch reading and writing, single-point reading and writing, and subscription reading. Any of these methods can be used. In addition, when forwarding data, it supports the data transformation push mechanism, which effectively saves communication resource consumption.

[0074] In a specific implementation, the subsystem management module further includes:

[0075] The event alarm service module is used to obtain preset event alarm rules and monitor the target subsystem according to the preset event alarm rules; when the target subsystem is monitored to trigger the preset event alarm rules, the corresponding alarm event is notified to the target subsystem in real time.

[0076] For the event alarm service module, the designer can set specific event alarm rules in the configuration tool software in advance and associate them with each subsystem. The subsystem only needs to register the event alarm in the relay data transmission device to obtain the service. When the device is running, the event alarm service module will listen to such event alarms. If a subsystem subscribes, it will notify each subsystem in real time. At the same time, the relevant data generated by the alarm event will be backed up in the device's database for query.

[0077] like Figure 5 As shown, it is an exemplary block diagram of a relay data exchange device. The device includes a communication driver management module, a subsystem management module, a redundant function module, a historical data archiving service module, an event alarm service module and a local database. It is understandable that the tamping vehicle control system usually involves a large number of sensors, subsystem equipment, and various switch devices. The traditional control system focuses on completing the functions of the tamping vehicle itself, and each system is relatively independent and the interface definition is not rich. The relay data exchange device of the present invention can make the respective data sharing easier and the data acquisition more flexible without destroying the independence of each subsystem.

[0078] The communication driver management module includes the generation and call of communication driver configuration files and the communication driver registration management. The subsystem management module includes the generation and call of data variable configuration files, data subscription forwarding module, instruction processing module, event alarm, and historical data synchronization update module.

[0079] It should be noted that the relay data exchange device has an event data alarm update synchronization function, and for the update function, it can update the event data of each subsystem to the relay device server. For the synchronization function, it can synchronize the event data with the backup server of the relay device.

[0080] Among them, for the historical data archiving service, its purpose is to archive and back up the data that passes through the relay data exchange device. Specifically, the historical data archiving service module is used to obtain the system data of the target subsystem, and the alarm event corresponding to the target subsystem triggering the preset event alarm rule; record the system data and the alarm event in real time to the local database, and provide the target subsystem with a preset query interface to query the local database. It can be seen that the historical data archiving service module has the historical data archiving service function, which can record the data and alarm events of each subsystem connected to the relay data device in real time to the database according to the rules triggered by timing or transformation. At the same time, a query method is provided for the data in the database, and each subsystem can access it through a specific API.

[0081] Furthermore, the subsystem management module further includes a data refresh module; wherein the data refresh module can implement the following steps today:

[0082] Polling and acquiring the data status of the target subsystem based on a second preset time interval, and caching the data status in the local database;

[0083] Detecting whether the data state in the local database has changed;

[0084] When the data state changes, the current system data corresponding to the data state change is obtained, and whether the current system data is subscribed is determined;

[0085] If the current system data is subscribed, the data subscription mechanism is triggered to batch obtain the system data currently pushed by the target subsystem, and then the current system data is refreshed using the system data currently pushed by the target subsystem; if the current system data is not subscribed, the current system data is directly refreshed;

[0086] When there is no change in the data status, the process jumps to the step of obtaining the data status of the target subsystem through polling based on a second preset time interval.

[0087] In the embodiment of the present application, the data refresh module adopts a subscription push mode for changed data items to reduce the communication load. After the device is running, the refresh module can realize the temporary storage of the data status of the subsystem obtained by polling in the system's cache area, that is, the local database. Each polling updates the cache area and detects the changed area at the same time, thereby triggering the subscription event and refreshing the data. Figure 6 The figure shows an example process diagram of the data exchange between the refresh module and the subsystem. The subsystem is polled at fixed time intervals to perform corresponding read and write operations. Further, the data status in the monitoring subsystem is determined to determine whether the value has changed. If it has not changed, it is continuously monitored; if it has changed, it is further determined whether the data has been subscribed. If the data has been subscribed, the current data is pushed in batches to the relay data exchange device to refresh the data; if it has not been subscribed, the data is directly refreshed and updated.

[0088] In summary, the tamping vehicle control system itself is a complex system, involving the coordinated work of a large number of devices and systems, and its own control logic is extremely complex. With the development of digitalization and intelligence, many subsystems will be added to the tamping vehicle in the future. Each time a subsystem is added or optimized, it brings a lot of adaptation and testing work to the designers. When combined with the corresponding modules disclosed in the above content, developers can focus on the development of the tamping vehicle control system, and the data exchange of the subsystems is handed over to the relay device, thereby improving work efficiency.

[0089] The present application provides a relay data exchange device, which is applied to a tamping vehicle control system. The tamping vehicle control system includes at least one subsystem, and the relay data exchange device includes: a communication driver management module, which is used to configure a corresponding communication driver and a data address according to a target subsystem managed by a subsystem management module; the subsystem management module is used to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, obtain the system data of the target subsystem according to the data address and / or execute data operation instructions on the target subsystem.

[0090] The beneficial technical effect of the present application is as follows: by configuring a relay data exchange device in the tamping vehicle control system, the communication network topology of the tamping vehicle control system can be simplified, the data of all subsystems will be obtained by the relay data exchange device, and the communication drivers adapted to each subsystem have been integrated in the relay data exchange device. Designers do not need to write communication programs, but only need to configure the communication drivers and data addresses of the relevant data. Under the premise of not destroying the independence of each subsystem, the data of the subsystem can be easily obtained, making the respective data sharing easier and the acquisition of data more flexible. For the target subsystem managed by the subsystem management module, the data to be accessed can be obtained based on the data subscription mechanism, and the data operation instructions can be executed on the target subsystem. When it is necessary to add a subsystem or optimize a subsystem, there is no need to optimize the entire control project, and it only needs to be configured and managed through the relay data exchange device, which basically does not affect the whole vehicle control system, thereby reducing the cost of inspection and after-sales maintenance. Developers can focus on the development of the tamping vehicle control system, and the data exchange of the subsystem is handed over to the relay device, thereby improving work efficiency.

[0091] Accordingly, the embodiment of the present invention discloses a relay data exchange method, see Figure 7 As shown, it is applied to a relay data exchange device, the relay data exchange device is installed in a tamping vehicle control system, the tamping vehicle control system includes at least one subsystem, wherein the method includes:

[0092] Step S11: configuring corresponding communication drivers and data addresses according to the target subsystem managed by the subsystem management module through the communication driver management module in the relay data exchange device;

[0093] Step S12: Loading the communication driver to establish a communication connection with the target subsystem through the subsystem management module, and acquiring the system data of the target subsystem according to the data address and / or executing data operation instructions on the target subsystem based on a data subscription mechanism.

[0094] For more specific processing procedures of the above steps, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0095] It can be seen that the above-mentioned scheme of this embodiment is applied to a relay data exchange device, and the relay data exchange device is installed in a tamping vehicle control system, and the tamping vehicle control system includes at least one subsystem, wherein the method includes: through the communication driver management module in the relay data exchange device, according to the target subsystem managed by the subsystem management module, the corresponding communication driver and data address are configured; through the subsystem management module, the communication driver is loaded to establish a communication connection with the target subsystem, and based on the data subscription mechanism, the system data of the target subsystem is obtained according to the data address and / or data operation instructions are executed on the target subsystem.

[0096] The beneficial technical effect of the present application is as follows: by configuring a relay data exchange device in the tamping vehicle control system, the communication network topology of the tamping vehicle control system can be simplified, the data of all subsystems will be obtained by the relay data exchange device, and the communication drivers adapted to each subsystem have been integrated in the relay data exchange device. Designers do not need to write communication programs, but only need to configure the communication drivers and data addresses of the relevant data. Under the premise of not destroying the independence of each subsystem, the data of the subsystem can be easily obtained, making the respective data sharing easier and the acquisition of data more flexible. For the target subsystem managed by the subsystem management module, the data to be accessed can be obtained based on the data subscription mechanism, and the data operation instructions can be executed on the target subsystem. When it is necessary to add a subsystem or optimize a subsystem, there is no need to optimize the entire control project, and it only needs to be configured and managed through the relay data exchange device, which basically does not affect the whole vehicle control system, thereby reducing the cost of inspection and after-sales maintenance. Developers can focus on the development of the tamping vehicle control system, and the data exchange of the subsystem is handed over to the relay device, thereby improving work efficiency.

[0097] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0098] Figure 8 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the relay data exchange method disclosed in any of the aforementioned embodiments.

[0099] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0100] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The data 223 may include various data. The storage method may be temporary storage or permanent storage.

[0101] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the relay data exchange method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0102] Furthermore, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned relay data exchange method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiment, and no further description will be given here.

[0103] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0104] The steps of the relay data exchange method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0106] The above is a detailed introduction to a relay data exchange method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A relay data exchange device, characterized in that: Applied to a tamping vehicle control system, the tamping vehicle control system includes at least one subsystem, wherein the relay data exchange device includes: The communication driver management module is used to configure the corresponding communication driver and data address according to the target subsystem managed by the subsystem management module; The subsystem management module is used to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, obtain the system data of the target subsystem according to the data address and / or execute data operation instructions on the target subsystem.

2. The relay data exchange device according to claim 1, characterized in that: The communication driver management module is specifically used for: Acquire configuration parameters through a preset configuration interface, and generate a driver configuration file according to the configuration parameters; configure a communication driver and a data address corresponding to the target subsystem according to the driver configuration file; Accordingly, the subsystem management module is specifically used for: The driver configuration file is called to load the communication driver to establish a communication connection with the target subsystem, and based on a data subscription mechanism, the system data of the target subsystem is obtained according to the data address and / or a data operation instruction is executed on the target subsystem.

3. The relay data exchange device according to claim 1, characterized in that: The subsystem management module comprises: A mapping relationship acquisition module, used for calling the data variable configuration file of the target subsystem to automatically acquire the mapping relationship between the system data and the data address; An instruction processing module, configured to send the data operation instruction to the target subsystem based on a first preset time interval, and create an independent thread to execute the data operation instruction; A data subscription forwarding module is used to obtain a data exchange request from a first subsystem based on a communication interface of a preset transmission protocol, and determine a second subsystem with which the first subsystem requests data exchange according to the data exchange request; obtain system data of the second subsystem based on the data subscription mechanism, and forward the system data of the second subsystem to the first subsystem.

4. The relay data exchange device according to claim 1, characterized in that: The subsystem management module further includes: The event alarm service module is used to obtain preset event alarm rules and monitor the target subsystem according to the preset event alarm rules; when the target subsystem is monitored to trigger the preset event alarm rules, the corresponding alarm event is notified to the target subsystem in real time.

5. The relay data exchange device according to claim 4, characterized in that: Also includes: A historical data archiving service module, used to obtain the system data of the target subsystem and the alarm event corresponding to the target subsystem when the preset event alarm rule is triggered; The system data and the alarm events are recorded in real time to a local database, and a preset query interface is provided to the target subsystem to query the local database.

6. The relay data exchange device according to claim 5, characterized in that: The subsystem management module further includes a data refresh module; wherein the data refresh module is used to: Polling and acquiring the data status of the target subsystem based on a second preset time interval, and caching the data status in the local database; Detecting whether the data state in the local database has changed; When the data state changes, the current system data corresponding to the data state change is obtained, and whether the current system data is subscribed is determined; If the current system data is subscribed, the data subscription mechanism is triggered to batch obtain the system data currently pushed by the target subsystem, and then the current system data is refreshed using the system data currently pushed by the target subsystem; if the current system data is not subscribed, the current system data is directly refreshed; When there is no change in the data status, the process jumps to the step of obtaining the data status of the target subsystem through polling based on a second preset time interval.

7. The relay data exchange device according to any one of claims 1 to 6, characterized in that: Also includes: Redundancy function module, used to configure the master service and the slave service; Sending a heartbeat signal to the slave service through the master service based on a preset time period, so that the slave service monitors the master service; When the slave service can receive the heartbeat signal, placing the slave service in a silent state; When the slave service fails to receive the heartbeat signal, the slave service is started.

8. A relay data exchange method, characterized in that: Applied to a relay data exchange device, the relay data exchange device is installed in a tamping vehicle control system, the tamping vehicle control system includes at least one subsystem, wherein the relay data exchange method includes: Through the communication driver management module in the relay data exchange device, the corresponding communication driver and data address are configured according to the target subsystem managed by the subsystem management module; The communication driver is loaded through the subsystem management module to establish a communication connection with the target subsystem, and based on a data subscription mechanism, the system data of the target subsystem is obtained according to the data address and / or data operation instructions are executed on the target subsystem.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relay data exchange method as claimed in claim 8.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein the computer program, when executed by the processor, implements the relay data exchange method as claimed in claim 8.

Citation Information

Patent Citations

  • High-efficiency high-stability page real-time data refreshing method

    CN105282227A

  • Event collection method and device for large-scale industrial automation system

    CN116257536A

  • Equipment networking system based on industrial protocol

    CN118573701A

  • Communication method and device based on portable operating system, computer equipment, storage medium and computer program product

    CN118796746A

  • Wireless control device for tamping machine

    CN202989058U