CN115858520A - Data processing method, front-end processor and comprehensive monitoring system - Google Patents
Data processing method, front-end processor and comprehensive monitoring system Download PDFInfo
- Publication number
- CN115858520A CN115858520A CN202111115601.3A CN202111115601A CN115858520A CN 115858520 A CN115858520 A CN 115858520A CN 202111115601 A CN202111115601 A CN 202111115601A CN 115858520 A CN115858520 A CN 115858520A
- Authority
- CN
- China
- Prior art keywords
- point
- target
- data
- monitored
- monitored point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本申请涉及列车监控技术领域,尤其涉及一种数据处理方法、前置机和综合监控系统。The present application relates to the technical field of train monitoring, in particular to a data processing method, a front-end processor and an integrated monitoring system.
背景技术Background technique
发明人研究发现,传统的综合监控系统(Integrated Supervision and ControlSystem,ISCS)中,对数据的控制或监视,是在系统数据库中维护一张数据表,所有被监测点的数据持久化至数据表中,当监视或需控制数据时,会通过对该数据配置表进行检索,查到相应的数据变量后,对数据变量进行调取、追加、更新、修改、或者删除等操作。The inventor found that in the traditional integrated supervision and control system (Integrated Supervision and Control System, ISCS), the control or monitoring of data is to maintain a data table in the system database, and the data of all monitored points are persisted in the data table , when data is monitored or needs to be controlled, the data configuration table will be retrieved, and after the corresponding data variable is found, operations such as calling, adding, updating, modifying, or deleting the data variable will be performed.
对于现代多线路的轨道交通等综合监控系统而言,被监测点是非常多的,对应的数据量也是巨大的,通过数据表配置表的方式,对数据表进行一系列检索处理的方式,降低了处理效率。For comprehensive monitoring systems such as modern multi-line rail transit, there are a lot of monitored points, and the corresponding data volume is also huge. Through the way of data table configuration table, a series of retrieval and processing methods are performed on the data table, reducing the processing efficiency.
发明内容Contents of the invention
本申请的目的在于提供一种数据处理方法、前置机和综合监控系统,以解决传统方案中,数据处理效率过低的技术问题。The purpose of this application is to provide a data processing method, a front-end processor and an integrated monitoring system to solve the technical problem of low data processing efficiency in traditional solutions.
一种数据处理方法,数据处理方法包括:A data processing method, the data processing method comprising:
获取标签文件,标签文件适于表征各被监测点的多个标签信息之间的映射关系,该标签文件包括多个标签信息,每个标签信息至少包括标签值、点表地址和标签名;Obtaining a label file, the label file is suitable for representing the mapping relationship between multiple label information of each monitored point, the label file includes multiple label information, and each label information includes at least a label value, a point table address and a label name;
接收数据处理请求,数据处理请求包含目标被监测点的标签名和标签值;Receive a data processing request, the data processing request includes the tag name and tag value of the target monitored point;
依据映射关系和目标被监测点的标签名确定数据操作类型,并依据映射关系和目标被监测点的标签值,确定目标被监测点对应的目标点表地址;Determine the data operation type according to the mapping relationship and the tag name of the target monitored point, and determine the target point table address corresponding to the target monitored point according to the mapping relationship and the tag value of the target monitored point;
通过目标点表地址定位出目标被监测点,并对定位出的目标被监测点执行数据操作类型对应的操作。The target monitored point is located through the address of the target point table, and the operation corresponding to the data operation type is performed on the located target monitored point.
一种前置机,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机可读指令时实现如前述所述数据处理方法的步骤。A front-end processor, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the computer-readable instructions, the aforementioned Steps of the data processing method.
一种综合监控系统,包括前端监控模块、前置机和一个以上被监测子系统,被监测子系统包含一个以上被监测点;A comprehensive monitoring system, including a front-end monitoring module, a front-end processor and more than one monitored subsystem, and the monitored subsystem includes more than one monitored point;
前置机,用于获取标签文件,标签文件包含各被监测点的多个标签信息之间的映射关系,每个标签文件包括多个标签信息,每个标签信息至少包括标签值、点表地址和标签名;The front-end processor is used to obtain the label file. The label file contains the mapping relationship between multiple label information of each monitored point. Each label file includes multiple label information, and each label information includes at least the label value and point table address. and the tag name;
前端监控模块,用于向前置机发送数据处理请求,数据处理请求包含目标被监测点的标签名和标签值;The front-end monitoring module is used to send a data processing request to the front-end processor, and the data processing request includes the tag name and tag value of the target monitored point;
前置机,用于响应数据处理请求,依据映射关系和目标被监测点的标签名确定数据操作类型,并依据映射关系和目标被监测点的标签值,确定目标被监测点对应的目标点表地址;通过目标点表地址定位出目标被监测点,并对目标被监测点执行数据操作类型对应的操作。The front-end processor is used to respond to the data processing request, determine the data operation type according to the mapping relationship and the tag name of the target monitored point, and determine the target point table corresponding to the target monitored point according to the mapping relationship and the tag value of the target monitored point Address: Locate the target monitored point through the address of the target point table, and perform the operation corresponding to the data operation type on the target monitored point.
在本申请所提供的方案中,可以看出本申请主要包含如下特点:1)当被监测点有变化时,可通过标签文件配置被监测点,并配置给前置机,使得部署被监测节点时无需一一配置数据表,而仅需配置映射关系,更为灵活,简单。2)本申请通过标签文件仅是维护各被监测点的标签信息的映射关系就行,避免数据集中到数据表中,提高了数据安全性,减少对被监测点的影响,尤其是列车轨道系统中,某个被监测点的数据的变化,会给列车轨道系统带来的影响不容小觑。3)通过在数据库维护数据表的方式,每次对数据进行监视或控制时,数据的读取,操作都要对数据表进行一系列的索引、查找等操作,当数据量比较大时,对于实时监测试与控制,其响应时间是比较长的,本申请中,直接通过标签文件的映射关系便可定位到被监测点的变量,从而直接定位到对被监测点进行读取或写入,极大的缩短了响应时间,提高实时监视与实时控制的时效性,提高了处理效率。4)另外,维护数据表的方式,为了加快响应,还可能会开启多线程并行处理,这样也会加大处理负担和资源消耗,而本申请由于没有查表、索引等繁琐操作,可以有效地减少线程数量,在一定程度上,也降低了资源消耗和处理负担,也有利于提高处理效率。5)本申请中,通过数据处理请求中目标被监测点的标签名,就能马上知晓数据操作类型,如遥测、遥控等类型,便于开发,这样,开发人员在开发监视或控制代码时,可以更多的关注业务逻辑,而无需判断代码中的数据类型,有效地减少开发工作量。6)本申请的标签文件中,可对一组标签都定义了一组被监测点的点表地址,对于每一组标签而言,标签文件中配置的每个被监控子中被监测点的数量有关系,直接利用标签文件的映射关系,能够推算出杯监控子系统中所有被监测点对应的被监测设备,简化被监测设备出现问题后的排查问题难度。7)本申请中,当有新被监测点添加时,按照标签文件中的点表地址映射直接配置便可,减少工作量,尤其是被监测点较多的情况,本申请实施例可以极大的减少配置偏移地址带来的工作量。In the solution provided by this application, it can be seen that this application mainly includes the following features: 1) When the monitored point changes, the monitored point can be configured through the label file and configured to the front-end processor, so that the monitored node can be deployed It is not necessary to configure the data tables one by one, but only needs to configure the mapping relationship, which is more flexible and simple. 2) This application only needs to maintain the mapping relationship of the tag information of each monitored point through the tag file, avoiding data concentration into the data table, improving data security, and reducing the impact on the monitored points, especially in the train track system , the change of data at a certain monitored point will have an impact on the train track system that cannot be underestimated. 3) By maintaining the data table in the database, every time the data is monitored or controlled, the data reading and operation must perform a series of indexing, searching and other operations on the data table. When the amount of data is relatively large, for The response time of real-time monitoring and control is relatively long. In this application, the variable of the monitored point can be located directly through the mapping relationship of the label file, so as to directly locate the monitored point for reading or writing. The response time is greatly shortened, the timeliness of real-time monitoring and real-time control is improved, and the processing efficiency is improved. 4) In addition, in order to speed up the response, the method of maintaining the data table may also enable multi-threaded parallel processing, which will also increase the processing burden and resource consumption. However, since this application does not have tedious operations such as table lookup and indexing, it can effectively Reducing the number of threads, to a certain extent, also reduces resource consumption and processing burden, and is also conducive to improving processing efficiency. 5) In this application, through the tag name of the target monitored point in the data processing request, the type of data operation, such as telemetry, remote control, etc., can be known immediately, which is convenient for development. In this way, developers can develop monitoring or control codes. Pay more attention to business logic without judging the data type in the code, effectively reducing the development workload. 6) In the label file of this application, a set of point table addresses of monitored points can be defined for a set of labels. For each set of labels, the Quantity is related. Directly using the mapping relationship of the label file can calculate the monitored equipment corresponding to all monitored points in the cup monitoring subsystem, simplifying the difficulty of troubleshooting after a problem occurs in the monitored equipment. 7) In this application, when a new monitored point is added, it can be directly configured according to the point table address mapping in the label file, reducing the workload, especially when there are many monitored points, the embodiment of the present application can be greatly improved. Reduce the workload caused by configuring the offset address.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本申请一种实施例提供的一种综合监控系统的一结构示意图;Fig. 1 is a schematic structural diagram of an integrated monitoring system provided by an embodiment of the present application;
图2是本申请一种实施例提供的一种综合监控系统的另一结构示意图;Fig. 2 is another structural schematic diagram of an integrated monitoring system provided by an embodiment of the present application;
图3是本申请一种实施例提供的一种数据处理方法的一流程示意图;Fig. 3 is a schematic flow chart of a data processing method provided by an embodiment of the present application;
图4是本申请一种实施例提供的一种前置机的一结构示意图;Fig. 4 is a schematic structural diagram of a front-end processor provided by an embodiment of the present application;
图5是本申请一种实施例提供的一种计算机设备的一结构示意图。Fig. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution of the present application, specific examples are used below to illustrate.
为便于理解本申请,先对本申请涉及的综合监控系统框架进行介绍,该综合监控系统可应用于轨道交通系统中,该综合监控系统可如图1所示,包括前端监控模块(Human-Machine Interface,HMI)、数据管理模块(Real-time Database,RTDB)和前置机(Front-End Processors,RTDB),其中,前端监控模块与数据管理模块之间,可通过通讯组件服务提供的通讯服务实现交互,数据管理模块与前置机之间,也可通过相应的通讯组件服务提供的通讯服务实现交互。For the convenience of understanding the present application, the integrated monitoring system framework involved in the present application is first introduced. The integrated monitoring system can be applied in the rail transit system. , HMI), data management module (Real-time Database, RTDB) and front-end processor (Front-End Processors, RTDB), among them, between the front-end monitoring module and the data management module, can be realized through the communication service provided by the communication component service Interaction, between the data management module and the front-end processor, the interaction can also be realized through the communication service provided by the corresponding communication component service.
该前端监控模块包括客户端组件,该客户端组件可提供提供监控显示界面(Graph),监控显示界面所提供的监控图可包括站点、链路、设备和标签这四级组态信息,其中,轨道交通现场中可设置有一个或多个站点,站点为现场中一台负责采集数据的计算机设备,可通过前端监控模块中配置该计算机设备的计算机名和网络地址(InternetProtocol,IP)等信息;该用于采集数据的计算机设备下可以对应有一条或多条链路,每条链路对应着该计算机上设备的一块网卡或者一个端口,也可以通过前端监控模块,依据链路的类型配置每条链路的网卡的IP地址、端口的端口号以及通讯波特率等信息,对于每条链路,该链路可以挂载一个被监测子系统下的一个或多个被监测设备,或者多个不同被监测子系统下的多个被监测设备,其中,以轨道交通系统为例,不同的被监测子系统可以包括但不局限于:列车电力系统、自动售票检票系统(Auto Fare Collection,AFC)、公共广播系统等。The front-end monitoring module includes a client component, which can provide a monitoring display interface (Graph), and the monitoring graph provided by the monitoring display interface can include four-level configuration information of site, link, device and label, wherein, One or more stations can be arranged in the rail transit scene, and the station is a computer device responsible for collecting data in the scene, and information such as computer name and network address (Internet Protocol, IP) of this computer device can be configured in the front-end monitoring module; There can be one or more links under the computer equipment used to collect data, and each link corresponds to a network card or a port of the equipment on the computer. You can also configure each link according to the type of link through the front-end monitoring module. Information such as the IP address of the network card of the link, the port number of the port, and the communication baud rate. For each link, the link can mount one or more monitored devices under a monitored subsystem, or multiple Multiple monitored devices under different monitored subsystems. Taking the rail transit system as an example, different monitored subsystems may include but not limited to: train power system, automatic fare collection system (Auto Fare Collection, AFC) , public broadcasting system, etc.
值得说明的是,上述不同的被监测子系统为独立的系统,通常采用不同的通讯驱动协议,例如,自动售票检票系统用的modbus协议,电力系统用的是IEC104协议等。也就是说,对于某个站点下的某条链路,该链路下可以根据被监测子系统运行的通讯驱动协议,可以挂载多个不同被监测设备。对于被监测设备而言,就保存着众多的标签点,每个标签点即对应一被监测点,每个监测点即是一被监测设备下的数据采集点,每个被监测设备下可以包括多个被监测点,每个被监测点对应的变量,便是需要监视或者控制的数据变量点。It is worth noting that the above-mentioned different monitored subsystems are independent systems, and usually use different communication drive protocols, for example, the modbus protocol used in the automatic ticketing and checking system, and the IEC104 protocol used in the power system. That is to say, for a certain link under a certain site, multiple different monitored devices can be mounted under the link according to the communication driver protocol run by the monitored subsystem. For the monitored equipment, there are many label points, each label point corresponds to a monitored point, and each monitoring point is a data collection point under the monitored equipment. Each monitored equipment can include There are multiple monitored points, and the variable corresponding to each monitored point is the data variable point that needs to be monitored or controlled.
该前端监控模块可以包括公共广播子系统(Public Address system,PA),可通过该公共广播子系统与数据管理模块或者其他系统进行交互。The front-end monitoring module may include a public address system (Public Address system, PA), through which it can interact with the data management module or other systems.
数据管理模块,为前端监控模块与前置机之间所设置的中间模块,该数据管理模块为一综合监控系统服务器,为一实时服务器,该数据管理模块包括服务端插件,用于通过该服务端插件实现对前端监控模块或前置消息的传递与解析等服务,服务端插件可提供实时服务(RT server),该数据管理模块可通过相应的通讯驱动协议与相应的设备或系统交互。The data management module is an intermediate module set between the front-end monitoring module and the front-end computer. The data management module is a comprehensive monitoring system server, which is a real-time server. The data management module includes a server plug-in for passing the service The terminal plug-in realizes services such as the delivery and analysis of the front-end monitoring module or pre-message, and the server-side plug-in can provide real-time service (RT server). The data management module can interact with the corresponding device or system through the corresponding communication driver protocol.
前置机,该前置机为一种通讯前置机,用于通过驱动或者其他接口插件的形式,连接至被监测子系统中的有关被监控的外部设备,也即连接至被监测设备。驱动(IO Server)指的是前置机与被监测设备等外部设备进行通讯的软件接口。以综合监控系统为例,综合监控系统中的前置机的主要职责是提供加载、运行、停止驱动或其它接口插件;该前置机还用于连接、断开数据源服务器等功能,是采集被监测点实时数据的工具,前置机可通过多种标准或非标准协议获得被监测子系统有关被监测点的实时数据。例如,图1中,前置机可通过FeqTETRA协议,与PA车载(如手持对讲机)进行交互,通过FepModbus协议,与PA车站(具有公共广播系统的车站)中的被监测子系统进行交互,其中,FeqTETRA协议,是一种PA车载使用通讯驱动协议,FepModbus协议,是一种前置机与被监测子系统的通讯驱动协议。The front-end processor, which is a communication front-end processor, is used to connect to the monitored external device in the monitored subsystem through a driver or other interface plug-in form, that is, to connect to the monitored device. The driver (IO Server) refers to the software interface for the front-end processor to communicate with external devices such as the monitored device. Taking the comprehensive monitoring system as an example, the main responsibility of the front-end processor in the comprehensive monitoring system is to provide loading, running, stopping drivers or other interface plug-ins; the front-end processor is also used to connect and disconnect the data source server and other functions. A tool for real-time data of the monitored point. The front-end processor can obtain real-time data about the monitored point of the monitored subsystem through a variety of standard or non-standard protocols. For example, in Figure 1, the front-end processor can interact with the PA vehicle (such as a handheld walkie-talkie) through the FeqTETRA protocol, and interact with the monitored subsystem in the PA station (the station with the public address system) through the FepModbus protocol, wherein , the FeqTETRA protocol is a communication driver protocol used in PA vehicles, and the FepModbus protocol is a communication driver protocol between the front-end processor and the monitored subsystem.
如图2所示,在一实施例中,该综合监控系统还可以包括预设数据库和历史数据库,前端监控模块或数据管理模块,可用于向实时数据库和/或历史数据库写入有关数据,以为综合监控系统或者其他系统中的重要组件提供着所需的数据。As shown in Figure 2, in one embodiment, the integrated monitoring system can also include a preset database and a historical database, a front-end monitoring module or a data management module, which can be used to write relevant data to the real-time database and/or historical database to Important components in the ISMS or other systems provide the required data.
前置机可来实现命令调用功能,用于发送强制\取消强制、禁止\取消禁止、模拟\取消模拟、通讯监视\取消通讯监视、记录日志\取消记录日志、启动链路通道或设备\停止链路通道或设备等请求或命令。The front-end processor can realize the command call function, which is used to send force\cancel force, prohibit\cancel prohibition, simulation\cancel simulation, communication monitoring\cancel communication monitoring, record log\cancel record log, start link channel or device\stop Requests or commands such as link channels or devices.
传统的方案中,数据管理模块通过把被监测点的数据持久化读入某个数据库中,即在该数据库维护一张数据表,当有监测点对应的数据变化时会通过前置机对数据表进行检索,然后对数据进行监视或进行后续控制。缺点很明显,主要体现在:被监测点的数据过于集中,安全性不易保障;每次对被监测点数据的读取,前置机都要经过一系列的索引操作,先是从数据库查找,再更新,其次通过IO写入,尤其当数据量比较大时,对于实时监测试与控制的需求,响应时间比较慢,是不能接受的。另外,上述传统方案过于消耗计算资源,为了缩短响应速度,前置机不得不以多线程并发处理每一次的数据变化,对于现代多线路的轨道交通环境而言,被监测设备以及被监点数量是巨大的,这样的并发数据对系统开销是巨大的挑战,造成资源浪费等问题。In the traditional solution, the data management module reads the data of the monitored point into a certain database persistently, that is, maintains a data table in the database, and when there is a change in the data corresponding to the monitoring point, it will update the data through the front-end computer. table, and then monitor or subsequently control the data. The disadvantages are obvious, mainly reflected in: the data of the monitored point is too concentrated, and the security is not easy to guarantee; every time the data of the monitored point is read, the front-end processor has to go through a series of indexing operations, first search from the database, and then Update, and then write through IO, especially when the amount of data is relatively large, the response time is relatively slow for real-time monitoring and control requirements, which is unacceptable. In addition, the traditional solution above consumes too much computing resources. In order to shorten the response speed, the front-end processor has to process each data change concurrently with multiple threads. For the modern multi-line rail transit environment, the number of monitored devices and monitored points It is huge, such concurrent data is a huge challenge to the system overhead, causing resource waste and other problems.
对此,发明人提出新的设计理念,引入特有的标签文件,使综合监控系统中的前置机,可利用该标签文件实现对被监测点进行监视或控制的方案,控制包括追加、更新、修改、或者删除等操作。下面,对本申请提供的数据处理方法和综合监控系统进行详细的描述。In this regard, the inventor proposes a new design concept and introduces a unique label file, so that the front-end processor in the integrated monitoring system can use the label file to implement a monitoring or control scheme for the monitored point. The control includes adding, updating, Modify, or delete operations. In the following, the data processing method and the integrated monitoring system provided by the present application will be described in detail.
在一实施例中,提供了一种数据处理方法,应用于图1中的前置机,如图3所示,包括如下步骤:In one embodiment, a data processing method is provided, which is applied to the front-end processor in FIG. 1, as shown in FIG. 3, comprising the following steps:
S10:获取标签文件,标签文件适于表征各被监测点的多个标签信息之间的映射关系,标签文件包括多个标签信息,每个标签信息至少包括标签值、点表地址和标签名。S10: Obtain a tag file, the tag file is suitable for representing the mapping relationship between multiple tag information of each monitored point, the tag file includes multiple tag information, and each tag information includes at least a tag value, a point table address and a tag name.
该实施例中,前置机可先获取标签文件,该标签文件是本申请特提出的一种表明被监测点的多个标签信息之间映射关系的映射文件,该标签文件中定义了各被监测点对应的标签的命名规则和类型,上述每个标签信息至少包括被监测点的标签名、标签值和点表地址,被监测点相当于一标签点,该被监测点具有相应的标签名、点表地址和标签值。In this embodiment, the front-end processor can first obtain the label file, which is a mapping file that indicates the mapping relationship between multiple label information of the monitored point proposed by the application. The label file defines the The naming rules and types of tags corresponding to monitoring points. Each of the above tag information includes at least the tag name, tag value and point table address of the monitored point. The monitored point is equivalent to a tag point, and the monitored point has a corresponding tag name , point table address and tag value.
其中,标签名是以被监测点的数据操作类型来命名,数据操作类型包括遥信、遥测、遥控和遥调等类型,也就是说,被监测点可能是遥信点、遥测点、遥控点或遥调点等,对应的数据操作类型是遥信操作、遥测操作、遥控操作或遥调操作等,标签值唯一对应某个被监测点的变量地址,而标签值唯一对应一点表地址,可以看出,标签文件中定义了被监测点唯一对应的点表地址,同个标签名下对应有一个或多个被监测点,同个标签名下可对应有一个或多个标签值,需要说明的是,点表地址也就是被监测点的变量的物理地址。Among them, the tag name is named after the data operation type of the monitored point, and the data operation type includes remote signaling, telemetry, remote control, and remote adjustment. Or remote adjustment points, etc., the corresponding data operation types are remote signaling operation, telemetry operation, remote operation or remote adjustment operation, etc., the tag value uniquely corresponds to the variable address of a monitored point, and the tag value uniquely corresponds to the address of a point table, which can be It can be seen that the unique point table address corresponding to the monitored point is defined in the tag file, and there are one or more monitored points corresponding to the same tag name, and one or more tag values can be corresponding to the same tag name, which needs to be explained More importantly, the address of the point table is also the physical address of the variable of the monitored point.
在一示例实施例中,该标签文件的部分内容具体可以如下表1所示:In an example embodiment, part of the content of the tag file may be specifically shown in Table 1 below:
表1Table 1
需要说明的是,表1在此仅为示例性说明,而且为部分内容示例,标签文件中,还还包括了遥控标签类型,如DOA和DOB等,以及遥调标签类型,如AOAA和AOAB等,具体这里不一一列举,为便于理解,结合上表1,对标签文件中的个别标签进行举例说明,例如:It should be noted that Table 1 is only an example here, and it is an example of part of the content. The label file also includes remote control label types, such as DOA and DOB, and remote control label types, such as AOAA and AOAB. , the details are not listed here, for the sake of easy understanding, combined with the above table 1, give examples of individual tags in the tag file, for example:
1,标签DIA,标签类型为遥信点,数据类型为布尔型(Boolean)。1. For the tag DIA, the tag type is remote signaling point, and the data type is Boolean.
标签名为DIA,标签名表示了此类标签为遥信点标签,该标签名下的标签值范围DIA1~DIA65536,表示Coils 0××××(DI)00001~065536,如点表地址00005,则对应的标签值为DIA5,表明该DIA5对应的被监测点为一个遥信点,点表地址为00005,其中,Coils0表示线圈。The tag name is DIA, and the tag name indicates that this type of tag is a remote signaling point tag. The tag value range under this tag name is DIA1~DIA65536, which means Coils 0××××(DI)00001~065536, such as point table address 00005, Then the corresponding tag value is DIA5, indicating that the monitored point corresponding to DIA5 is a remote signaling point, and the address of the point table is 00005, where Coils0 represents a coil.
2,标签DIB,标签类型为遥信点,数据类型Boolean。2. Label DIB, the label type is remote signaling point, and the data type is Boolean.
标签范围DIB1~DIB165536,表示Input Registers 1××××(DI)100001~165536,如点表地址10005,则对应标签值为DIB5,表明该DIB5对应的被监测点为一个遥信点,点表地址为10005。Input Registers1表示输入寄存器。The label range is DIB1~DIB165536, indicating Input Registers 1××××(DI)100001~165536. For example, the address of the point table is 10005, and the corresponding label value is DIB5, indicating that the monitored point corresponding to DIB5 is a remote signaling point. The address is 10005. Input Registers1 represents an input register.
3,标签DIC,标签类型为返信点,标签类型为(字节)BYTE,只有一个标签值DIC0,点表地址为DIC0。3. Label DIC, the label type is return point, the label type is (byte) BYTE, there is only one label value DIC0, and the point table address is DIC0.
其中,所有遥控和遥调共用一个返信点,1代表遥控或遥调成功,0代表遥控或遥调失败,或者0表示处于初始状态。每次遥控或遥调执行前,一般会自动把返信点的值清零,表示处于初始状态,前置机一旦收到被监测设备的正确响应,表示执行成功,则立即把返信点置为1。如果因被监测设备异常,而导致的遥控或遥调失败,前置机可能会收到被监测设备传送的故障码,此时该标签点的值将表示故障码,范围128~255。一般而言,如果标签点的值在128~255之间,应该说明被监测设备存在异常。Among them, all remote control and remote adjustment share a return point, 1 means remote control or remote adjustment is successful, 0 means remote control or remote adjustment fails, or 0 means it is in the initial state. Before each remote control or remote adjustment is executed, the value of the return point is generally automatically cleared to indicate that it is in the initial state. Once the front-end processor receives the correct response from the monitored device, indicating that the execution is successful, it immediately sets the return point to 1. . If the remote control or remote adjustment fails due to the abnormality of the monitored equipment, the front-end processor may receive the fault code sent by the monitored equipment. At this time, the value of the label point will indicate the fault code, ranging from 128 to 255. Generally speaking, if the value of the tag point is between 128 and 255, it should indicate that the monitored device is abnormal.
4,标签DID,标签类型为遥信点,数据类型为Boolean。4. The tag DID, the tag type is remote signaling point, and the data type is Boolean.
标签范围DID100~DID6553615,本申请实施例中,标签文件中可把相应寄存器拆分成位,用于表示DI量,表示Input Registers 3××××(DI)00001~65536的第1~16位(DI)。一个输入寄存器可容纳16个DI。最后两位数字表示输入寄存器所在的位,范围总是0~15,分别代表第1~16位。位前面的数字代表输入寄存器的相对地址,如点表地址300201的第5位的标签点为DID20104,从这里也可以看出,对点表地址进行换算,则可以得到被监测点的变量的偏移地址。The label range is DID100~DID6553615. In the embodiment of this application, the corresponding register can be split into bits in the label file to represent the DI quantity, which means the 1st to 16th bits of Input Registers 3××××(DI)00001~65536 (DI). One input register can accommodate 16 DIs. The last two digits indicate the bit where the input register is located, and the range is always 0 to 15, representing bits 1 to 16 respectively. The number in front of the bit represents the relative address of the input register. For example, the fifth label point of the point table address 300201 is DID20104. It can also be seen from here that the offset of the variable of the monitored point can be obtained by converting the point table address. address.
5,标签DOB,标签类型为遥控点,数据类型为字节。5. Label DOB, the label type is remote point, and the data type is byte.
标签范围为DOB100~DOB6553615,以写4X位(bit)的方式实现遥控,表示HoldingRegister 4××××,400001~465536的第1~16位(DO),一个寄存器可容纳16个DO,最后两位数字表示保持寄存器所在的位,范围总是0~15,分别代表第1~16位。位前面的数字代表保持寄存器的相对地址,如点表地址400201的第5位的标签为DOB20104,HoldingRegister表示保持寄存器。The label range is DOB100~DOB6553615, and the remote control is realized by writing 4X bits (bit), which means HoldingRegister 4××××, the 1st to 16th bits (DO) of 400001~465536, one register can hold 16 DOs, and the last two The bit number indicates the bit where the holding register is located, and the range is always 0 to 15, representing the 1st to 16th bits respectively. The number in front of the bit represents the relative address of the holding register. For example, the label of the fifth bit of the point table address 400201 is DOB20104, and HoldingRegister represents the holding register.
通过上述例子也可以看出,标签名中,AI、DI为开头标签的是一种输入通道标签,AO、DO为开头标签的是一种输出通道标签。It can also be seen from the above examples that among the label names, the label starting with AI and DI is an input channel label, and the label starting with AO and DO is a kind of output channel label.
需要说明的是,在一些实施方式中,标签文件中还配置了数据类型、功能码和寄存器类型等映射关系,如上表1所示,这里不做说明。It should be noted that, in some embodiments, the label file is also configured with mapping relationships such as data types, function codes, and register types, as shown in Table 1 above, which will not be described here.
另外需要说明的是,从上述标签文件中还可以进一步看出,每一组标签名下都定义了一组被监测点的数据,每个被监测点对应具体的点表地址,根据前端监控模块配置每个子系统监测的被监测数量有关系,按照点表地址的配置,能够快速推算出被监测子系统中,每个被监测点的偏移地址,减少代码量,当某个监测点出现问题时,也有利于简化了排查问题的难度。In addition, it should be noted that, from the above tag files, it can be further seen that a group of monitored point data is defined under each group of tag names, and each monitored point corresponds to a specific point table address. According to the front-end monitoring module It is related to the number of monitored points to be monitored by configuring each subsystem. According to the configuration of the point table address, the offset address of each monitored point in the monitored subsystem can be quickly calculated to reduce the amount of code. When a problem occurs at a certain monitoring point It is also helpful to simplify the difficulty of troubleshooting.
在一实施例中,如图1所示,步骤S10中,也即前置机获取标签文件,指的是前端监控模块通过下装服务下装标签文件到前置机。在该实施例中,用户或者管理者可通过前端监控模块提供的组态图形化界面配置上述标签文件,并通过组态服务,将标签文件下装至前置机中。In one embodiment, as shown in FIG. 1 , in step S10 , that is, the front-end processor obtains the label file, it means that the front-end monitoring module downloads the label file to the front-end processor through the download service. In this embodiment, the user or manager can configure the above-mentioned label file through the configuration graphical interface provided by the front-end monitoring module, and download the label file to the front-end processor through the configuration service.
其中,根据标签文件的格式组织,标签文件中的点表地址的支持格式可以如下:%U:UnitAddress=VALUE,例如:Among them, according to the format organization of the label file, the supported format of the point table address in the label file can be as follows: %U:UnitAddress=VALUE, for example:
DI%U(0,0,100):如果点表地址表示为DIX,则该标签点的点表地址为X,X的有效范围是0-100。DI%U(0,0,100): If the point table address is expressed as DIX, then the point table address of the label point is X, and the valid range of X is 0-100.
AI%U(0,0,10)%*100+%U(0,0,100):如果地址表示为AIX:Y,则该标签点的点表地址为X*100+Y,X的有效范围是0-10,Y的有效范围是1-100。AI%U(0,0,10)%*100+%U(0,0,100): If the address is expressed as AIX:Y, then the point table address of the label point is X*100+Y, and the valid range of X is 0-10, the valid range of Y is 1-100.
需要说明的是,在一些实施方式中,还可以是其他地址模板格式,这里不一一说明,也不做限定。It should be noted that, in some implementation manners, other address template formats may also be used, which will not be described or limited here.
前端监控模块下装了标签文件后,前置机可加载该标签文件,从而使得前端监控模块创建的图形化监控界面,能与前置机下的各被监测点通过标签文件的点表地址建立成统一的数据关联,也即将前端监控模块中图形化监控界面的各被监测点的实际变量关联了起来,以便对各时间段的标签文件进行管理。After the front-end monitoring module downloads the label file, the front-end computer can load the label file, so that the graphical monitoring interface created by the front-end monitoring module can be established with each monitored point under the front-end computer through the point table address of the label file To form a unified data association, that is, to associate the actual variables of each monitored point in the graphical monitoring interface of the front-end monitoring module, so as to manage the label files of each time period.
如图2所示,在一实施例中,前端监控模块在组态得到标签文件之后,可见该版本的标签文件,与该标签文件的版本号关联保存在预设数据库中。As shown in FIG. 2 , in one embodiment, after the front-end monitoring module obtains the label file through configuration, it can see the label file of this version, which is associated with the version number of the label file and stored in the preset database.
S20:接收数据处理请求,数据处理请求包含目标被监测点的标签名和标签值。S20: Receive a data processing request, the data processing request includes the tag name and tag value of the target monitored point.
前置机加载了标签文件之后,前端监控模块便可实现对被监测点进行监视或控制的目的,并将结果显示于前端监控模块的图形化监控界面,具体地,前置机可接收前端监控模块的数据处理请求,数据处理请求包含目标被监测点的标签名和标签值。目标被监测点指的是标签文件中各被监测点的一个或多个被监测点。After the front-end processor loads the label file, the front-end monitoring module can realize the purpose of monitoring or controlling the monitored point, and display the result on the graphical monitoring interface of the front-end monitoring module. Specifically, the front-end monitor can receive the front-end monitoring The data processing request of the module, the data processing request includes the tag name and tag value of the target monitored point. The target monitored point refers to one or more monitored points among the monitored points in the label file.
S30:依据映射关系和目标被监测点的标签名确定数据操作类型,并依据映射关系和目标被监测点的标签值,确定目标被监测点对应的目标点表地址。S30: Determine the data operation type according to the mapping relationship and the tag name of the target monitored point, and determine the target point table address corresponding to the target monitored point according to the mapping relationship and the tag value of the target monitored point.
在该实施例中,由于数据处理请求中包含了目标被监测点的标签名,而标签名是依据不同数据操作类型而命名,前置机在接收到前端监控模块的数据处理请求之后,通过解析该数据处理请求,可得到数据处理请求中的标签名和标签值,如前述,标签文件中配置了被监测点的多个标签信息之间的映射关系,因此,依据目标被监测点的标签名和标签文件,通过解析标签文件,可得到目标被监测点的标签类型,继而获取具体的数据操作类型。例如,标签名为DIA,便可知道该标签类型为遥信点,从而知道数据操作类型为遥信。In this embodiment, since the data processing request contains the tag name of the target monitored point, and the tag name is named according to different data operation types, after receiving the data processing request from the front-end monitoring module, the front-end The data processing request can obtain the tag name and tag value in the data processing request. As mentioned above, the tag file configures the mapping relationship between multiple tag information of the monitored point. Therefore, according to the tag name and tag of the target monitored point File, by parsing the tag file, the tag type of the target monitored point can be obtained, and then the specific data operation type can be obtained. For example, if the tag name is DIA, it can be known that the tag type is remote signaling point, and thus the data operation type is remote signaling.
另外,依据目标被监测点的标签值,并依据映射关系和目标被监测点的标签值,获取目标被监测点对应的目标点表地址。例如,目标被监测点的标签值为DIA5,则通过标签文件可获取该目标被监测点的目标点表地址为00005。In addition, according to the tag value of the target monitored point, and according to the mapping relationship and the tag value of the target monitored point, the address of the target point table corresponding to the target monitored point is obtained. For example, if the tag value of the target monitored point is DIA5, the target point table address of the target monitored point can be obtained through the tag file as 00005.
S40:通过目标点表地址定位出目标被监测点,并对目标被监测点执行数据操作类型对应的操作。S40: Locate the target monitored point through the address of the target point table, and perform an operation corresponding to the data operation type on the target monitored point.
在得到目标被监测点的目标点表地址后,通过该目标点表地址便能计算相应的该目标被监测点的偏移地址,继而利用该目标被监测点的偏移地址定位出目标被监测点的变量所在的寄存器单元,从而对该寄存器单元的目标被监测点的变量数据进行操作,以对目标被监测点执行数据操作类型对应的操作。After obtaining the target point table address of the target monitored point, the corresponding offset address of the target monitored point can be calculated through the target point table address, and then the target monitored point can be located by using the offset address of the target monitored point The register unit where the variable of the point is located, so as to operate the variable data of the target monitored point of the register unit, so as to perform the operation corresponding to the data operation type on the target monitored point.
在一实施例中,步骤S40之后,也即对目标被监测点的变量执行数据操作类型对应的操作之前,还包括如下步骤:In one embodiment, after step S40, that is, before executing the operation corresponding to the data operation type on the variable of the target monitored point, the following steps are further included:
S50:根据目标被监测点的标签名,确定目标被监测点所在的被监测子系统。S50: Determine the monitored subsystem where the target monitored point is located according to the tag name of the target monitored point.
在该实施例中,接收到数据处理请求之后,根据目标被监测点的标签名,确定目标被监测点所在的被监测子系统。In this embodiment, after receiving the data processing request, the monitored subsystem where the target monitored point is located is determined according to the tag name of the target monitored point.
在一实施例中,对目标被监测点的数据执行数据操作类型对应的操作之前,前置机可获取前端监控模块发送的驱动协议名称;依据驱动协议名称查询出对应的驱动类,并加载驱动类中的通讯驱动协议文件,包括通讯驱动协议文件包括各被监测点所在子系统对应的通讯驱动协议文件。在该实施例中,前端监控模块可在下装标签文件之前就指定驱动协议名称,以使前置机响应前端监控模块的指定,依据驱动协议名称获取对应的驱动类,并加载驱动类中的通讯驱动协议文件。例如,获取modbus协议、IEC104协议文件,以通讯时提供驱动接口,便于前置机与被监测子系统交互。In one embodiment, before performing the operation corresponding to the data operation type on the data of the target monitored point, the front-end processor can obtain the driver protocol name sent by the front-end monitoring module; query the corresponding driver class according to the driver protocol name, and load the driver The communication driver protocol file in the class includes the communication driver protocol file corresponding to the subsystem where each monitored point is located. In this embodiment, the front-end monitoring module can specify the driver protocol name before downloading the label file, so that the front-end processor responds to the designation of the front-end monitoring module, obtains the corresponding driver class according to the driver protocol name, and loads the communication in the driver class. Driver protocol file. For example, obtain the modbus protocol and IEC104 protocol files to provide a driver interface during communication to facilitate the interaction between the front-end processor and the monitored subsystem.
S60:确定目标被监测点所在的被监测子系统对应的通讯驱动协议;S60: Determine the communication driver protocol corresponding to the monitored subsystem where the target monitored point is located;
例如,目标被监测点为列车电力系统中的被监测点,则可以确定出该列车电力系统的通讯驱动协议为IEC104协议。For example, if the target monitored point is a monitored point in the train power system, it can be determined that the communication driving protocol of the train power system is the IEC104 protocol.
这样,步骤S40中,对目标被监测点执行数据操作类型对应的操作,也就可以基于被监测子系统对应的通讯驱动协议,对目标被监测点执行数据操作类型对应的操作。In this way, in step S40, the operation corresponding to the data operation type is performed on the target monitored point, and the operation corresponding to the data operation type can be performed on the target monitored point based on the communication driving protocol corresponding to the monitored subsystem.
在确定被监测子系统对应的通讯驱动协议之后,基于被监测子系统对应的通讯驱动协议,便能对目标被监测点的数据执行数据操作类型对应的操作,如基于IEC104协议,便能对列车电力系统中的被监测设备对应的被监测点的变量进行操作,对于自动售票检票系统,则可以加载modbus协议,对于其他被监控子系统,也可以通过加载相应的通讯驱动协议完成后续操作,这里不一一举例说明。After determining the communication driver protocol corresponding to the monitored subsystem, based on the communication driver protocol corresponding to the monitored subsystem, the operation corresponding to the data operation type can be performed on the data of the target monitored point. For example, based on the IEC104 protocol, the train can be The variables of the monitored points corresponding to the monitored equipment in the power system are operated. For the automatic ticketing and checking system, the modbus protocol can be loaded. For other monitored subsystems, the follow-up operations can also be completed by loading the corresponding communication driver protocol. Here Not one by one examples.
可以看出,在该实施例中,前置机预先通过前端监控模块指定的驱动协议名称,加载所需的驱动类,以满足后续与被监测子系统的通讯要求。It can be seen that in this embodiment, the front-end processor pre-loads the required driver class through the driver protocol name specified by the front-end monitoring module to meet the subsequent communication requirements with the monitored subsystem.
在一实施例中,数据操作类型包含数据监视操作,对目标被监测点的变量执行数据操作类型对应的操作,包括:通过目标被监测点的目标点表地址定位到目标被监测点,读取目标被监测点的变量数据,并将目标被监测点的变量数据发布至数据管理模块的目标主题(Topic)中,这样,已订阅了目标主题的前端监控模块可同步到目标被监测点的变量的变化数据。在一实施例中,对于前端监控模块而言,其可以订阅多个不同被监测点相应的主题,并通过上述方式得到不同被监测点的变化数据,并以颜色区别渲染在监控显示界面中,达到对各被监测点进行监视的目的。这里不对前端监控模块如何显示被监测点的数据进行显示的方案进行限定,可依需求设定,这里不详细展开。In one embodiment, the data operation type includes data monitoring operation, and the operation corresponding to the data operation type is performed on the variable of the target monitored point, including: locating the target monitored point through the target point table address of the target monitored point, reading Variable data of the target monitored point, and publish the variable data of the target monitored point to the target topic (Topic) of the data management module, so that the front-end monitoring module that has subscribed to the target topic can synchronize to the variable of the target monitored point change data. In one embodiment, for the front-end monitoring module, it can subscribe to the topics corresponding to a plurality of different monitored points, and obtain the change data of different monitored points through the above method, and render them in the monitoring display interface in different colors, To achieve the purpose of monitoring each monitored point. Here we do not limit the scheme of how the front-end monitoring module displays the data of the monitored points, which can be set according to the needs, and will not be expanded here in detail.
可见,在该实施例中,提供了一种利用标签文件,实现对各被监测点的数据进行监视的方案,其中,在一些应用场景中,上述被监测点可以是遥信点或遥测点,从而得到遥信或遥测的目的,有利于对所有被监控系统进行有效的监视。It can be seen that in this embodiment, there is provided a solution for monitoring the data of each monitored point by using a tag file, wherein, in some application scenarios, the above-mentioned monitored point can be a remote signaling point or a telemetry point, Therefore, the purpose of remote signaling or telemetry is obtained, which is conducive to effective monitoring of all monitored systems.
如图2所示,在一些实施例中,数据管理模块在得到前置机发送的各被监测点的变化数据之后,还会将变化数据同步记录在预设数据库中。As shown in FIG. 2 , in some embodiments, after the data management module obtains the change data of each monitored point sent by the front-end processor, it will also synchronously record the change data in the preset database.
在一应用场景中,数据操作类型包含数据控制操作,对目标被监测点的变量执行数据操作类型对应的操作,包括:响应数据控制操作,对目标被监测点的变量数据进行相应的更改。在一些应用场景中,目标被监测点为遥控点或遥调点。前端监控模块在需要对目标被监测点进行控制时,可依据该目标被监测点的标签类型生成上述数据处理请求,该数据处理请求的标签名指示了具体数据操作类型,如遥调或遥控,从而将该数据处理请求下发给前置机,前置机依据数据处理请求中目标被监测点的标签值,定位到目标被监测点后,对目标被监测点的变量数据进行遥测或遥调,从而对目标被监测点对应的被监测设备进行相应的控制。在该实施例中,提供了一种利用标签文件,实现对各被监测点的数据进行控制的方案,具体可以是遥测或要调,从而达到遥信或遥测的目的,有利于对所有被监控系统的被监测点进行控制,如可以实现更改被监测子系统中,某些被监测设备的设备状态。In an application scenario, the data operation type includes data control operation, and the operation corresponding to the data operation type is performed on the variable of the target monitored point, including: responding to the data control operation, and correspondingly changing the variable data of the target monitored point. In some application scenarios, the target monitored point is a remote point or a remote adjustment point. When the front-end monitoring module needs to control the target monitored point, it can generate the above data processing request according to the tag type of the target monitored point. The tag name of the data processing request indicates the specific data operation type, such as remote adjustment or remote control, Therefore, the data processing request is sent to the front-end processor, and the front-end processor locates the target monitored point according to the label value of the target monitored point in the data processing request, and performs telemetry or remote adjustment on the variable data of the target monitored point , so as to control the monitored equipment corresponding to the target monitored point. In this embodiment, a solution is provided to control the data of each monitored point by using a label file, which can be telemetry or adjustment, so as to achieve the purpose of remote signaling or telemetry, which is beneficial to all monitored points The monitored points of the system are controlled, such as changing the equipment status of some monitored equipment in the monitored subsystem.
经过上述描述,可以看出申请实施例提供的数据处理方法,主要包含如下特点:Through the above description, it can be seen that the data processing method provided by the application embodiment mainly includes the following features:
1)当被监测点有变化时,可通过标签文件配置被监测点,并配置给前置机,使得部署被监测节点时无需一一配置,而仅需配置映射关系,更为灵活,简单。1) When the monitored points change, the monitored points can be configured through the label file and configured to the front-end processor, so that when deploying the monitored nodes, there is no need to configure them one by one, but only need to configure the mapping relationship, which is more flexible and simple.
2)无需像传统方案中在将有数据集中到数据库的数据表,本申请通过标签文件仅是维护各被监测点的标签信息的映射关系就行,避免数据集中到数据表中,提高了数据安全性,减少对被监测点的影响,尤其是列车轨道系统中,某个被监测点的数据的变化,会给列车轨道系统带来的影响不容小觑。2) There is no need to centralize the data into the data table of the database as in the traditional scheme. This application only needs to maintain the mapping relationship of the label information of each monitored point through the label file, avoiding the collection of data into the data table, and improving data security. To reduce the impact on the monitored point, especially in the train track system, the change of data at a certain monitored point will have an impact on the train track system that cannot be underestimated.
3)通过在数据库维护数据表的方式,每次对数据进行监视或控制时,数据的读取,操作都要对数据表进行一系列的索引操作,先是查找,当数据量比较大时,对于实时监测试与控制影响,其响应时间是比较长的,本申请中,直接通过标签文件的映射关系便可定位到被监测点的变量,从而直接定位到对被监测点的变量进行读取或写入,极大的缩短了响应时间,提高实时监视与实时控制的时效性,提高了处理效率。3) By maintaining the data table in the database, every time the data is monitored or controlled, a series of index operations must be performed on the data table for data reading and operation. First, search. When the amount of data is large, for The response time of real-time monitoring test and control is relatively long. In this application, the variable of the monitored point can be located directly through the mapping relationship of the label file, so as to directly locate the variable of the monitored point to read or Write, greatly shorten the response time, improve the timeliness of real-time monitoring and real-time control, and improve the processing efficiency.
4)另外,维护数据表的方式,为了加快响应,还可能会开启多线程并行处理,这样也会加大处理负担和资源消耗,而本申请由于没有查表、索引等繁琐操作,可以有效地减少线程数量,在一定程度上,也降低了资源消耗和处理负担,也有利于提高处理效率。4) In addition, in order to speed up the response, the method of maintaining the data table may also enable multi-threaded parallel processing, which will also increase the processing burden and resource consumption. However, since this application does not have tedious operations such as table lookup and indexing, it can effectively Reducing the number of threads, to a certain extent, also reduces resource consumption and processing burden, and is also conducive to improving processing efficiency.
5)本申请中,通过数据处理请求中目标被监测点的标签名,就能马上知晓数据操作类型,如遥测、遥控等类型,便于开发,这样,开发人员在开发监视或控制代码时,可以更多的关注业务逻辑,而无需判断代码中的数据类型,有效地减少开发工作量。5) In this application, through the tag name of the target monitored point in the data processing request, the type of data operation, such as telemetry, remote control, etc., can be known immediately, which is convenient for development. In this way, developers can develop monitoring or control codes. Pay more attention to business logic without judging the data type in the code, effectively reducing the development workload.
6)本申请的标签文件中,可对一组标签都定义了一组被监测点的点表地址,对于每一组标签而言,标签文件中配置的每个被监控子中被监测点的数量有关系,直接利用标签文件的映射关系,能够推算出杯监控子系统中所有被监测点对应的被监测设备,简化被监测设备出现问题后的排查问题难度。7)本申请中,当有新被监测点添加时,按照标签文件中的点表地址映射直接配置便可,减少工作量,尤其是被监测点较多的情况,本申请实施例可以极大的减少配置偏移地址带来的工作量。6) In the label file of this application, a set of point table addresses of monitored points can be defined for a set of labels. For each set of labels, the Quantity is related. Directly using the mapping relationship of the label file can calculate the monitored equipment corresponding to all monitored points in the cup monitoring subsystem, simplifying the difficulty of troubleshooting after a problem occurs in the monitored equipment. 7) In this application, when a new monitored point is added, it can be directly configured according to the point table address mapping in the label file, reducing the workload, especially when there are many monitored points, the embodiment of this application can greatly Reduce the workload caused by configuring the offset address.
在一实施例中,如图4所示,提供了一种前置机,包括:In one embodiment, as shown in FIG. 4, a front-end processor is provided, including:
获取模块101,用于获取标签文件,标签文件包含各被监测点的多个标签信息的映射关系,标签信息包括标签值、点表地址和标签名;Obtaining
接收模块102,用于接收前端监控模块的数据处理请求,数据处理请求包含目标被监测点的标签名和标签值;The receiving
处理模块103,用于依据映射关系和目标被监测点的标签名确定数据操作类型,并依据映射关系和目标被监测点的标签值,确定目标被监测点对应的目标点表地址;通过目标点表地址定位目标被监测点的变量,并对目标被监测点的变量执行数据操作类型对应的操作。The
在一实施例中,处理模块103还用于:In an embodiment, the
根据目标被监测点的标签名,确定目标被监测点所在的被监测子系统;According to the tag name of the target monitored point, determine the monitored subsystem where the target monitored point is located;
确定被监测子系统对应的通讯驱动协议;Determine the communication driver protocol corresponding to the monitored subsystem;
基于被监测子系统对应的通讯驱动协议,对目标被监测点的变量执行数据操作类型对应的操作。Based on the communication driver protocol corresponding to the monitored subsystem, the operation corresponding to the data operation type is performed on the variable of the target monitored point.
在一实施例中,获取模块101还用于:获取前端监控模块发送的驱动协议名称;处理模块103还用于:依据驱动协议名称获取对应的驱动类,并加载驱动类中的通讯驱动协议文件,通讯驱动协议文件包括各被监测点所在被监测子系统对应的通讯驱动协议文件。In an embodiment, the
在一实施例中,数据操作类型包含数据监视操作,处理模块还用于:读取目标被监测点的变量数据,并将目标被监测点的变量数据发布至数据管理模块的目标主题中,以使已订阅了目标主题的前端监控模块同步目标被监测点的变量数据。目标被监测点可为遥信点或遥测点。In one embodiment, the data operation type includes data monitoring operations, and the processing module is also used to: read the variable data of the target monitored point, and publish the variable data of the target monitored point to the target topic of the data management module, so as to Make the front-end monitoring module that has subscribed to the target topic synchronize the variable data of the target monitored point. The target monitored point can be a remote signaling point or a telemetry point.
在一实施例中,处理模块103还用于:响应数据控制操作,对目标被监测点的变量数据进行相应的更改。目标被监测点可为遥控点或遥调点。In an embodiment, the
在一实施例中,一种综合监控系统,其特征在于,包括前端监控模块、前置机和一个以上被监测子系统,被监测子系统包含一个以上被监测点;In one embodiment, an integrated monitoring system is characterized in that it includes a front-end monitoring module, a front-end processor, and more than one monitored subsystem, and the monitored subsystem includes more than one monitored point;
前置机,用于获取标签文件,标签文件包含各被监测点的多个标签信息之间的映射关系,该标签文件包括多个标签信息,每个标签信息至少包括标签值、点表地址和标签名;The front-end processor is used to obtain a label file. The label file includes a mapping relationship between multiple label information of each monitored point. The label file includes multiple label information, and each label information includes at least a label value, a point table address and tag name;
前端监控模块,用于向前置机发送数据处理请求,数据处理请求包含目标被监测点的标签名和标签值;The front-end monitoring module is used to send a data processing request to the front-end processor, and the data processing request includes the tag name and tag value of the target monitored point;
前置机,用于响应数据处理请求,依据映射关系和目标被监测点的标签名确定数据操作类型,并依据映射关系和目标被监测点的标签值,确定目标被监测点对应的目标点表地址;通过目标点表地址定位出目标被监测点,并对目标被监测点执行数据操作类型对应的操作。The front-end processor is used to respond to the data processing request, determine the data operation type according to the mapping relationship and the tag name of the target monitored point, and determine the target point table corresponding to the target monitored point according to the mapping relationship and the tag value of the target monitored point Address: Locate the target monitored point through the address of the target point table, and perform the operation corresponding to the data operation type on the target monitored point.
在一实施例中,综合监控系统还包括数据管理模块,数据操作类型包含数据监视操作;In one embodiment, the integrated monitoring system further includes a data management module, and the data operation type includes data monitoring operation;
前置机,用于读取目标被监测点的变量数据,并将目标被监测点的变量数据发布至数据管理模块的目标主题中;The front-end processor is used to read the variable data of the target monitored point, and publish the variable data of the target monitored point to the target theme of the data management module;
前端监控模块,用于订阅目标主题,并当目标主题对应的变量数据发生变化时,同步目标被监测点的变量数据。The front-end monitoring module is used to subscribe to the target topic, and when the variable data corresponding to the target topic changes, synchronize the variable data of the target monitored point.
需要说明的是,关于前置机或者综合监控系统的更多描述,可对应参阅前述方法实施例,以及前述综合监控系统的描述,这里不再重复描述,前置机或者综合监控系统所带来的特点,也可以对应前述方法实施例中的描述,这里也不再重复描述。It should be noted that, for more descriptions about the front-end processor or the integrated monitoring system, you can refer to the aforementioned method embodiments and the description of the aforementioned integrated monitoring system, and the description will not be repeated here. The features may also correspond to the descriptions in the aforementioned method embodiments, and will not be described again here.
在一个实施例中,提供了一种计算机设备,其内部结构图可以如图5所示,该计算机设备可以为上述前置机,该计算机设备包括通过系统总线连接的处理器、存储器和通讯接口,其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性和易失性存储介质、内存储器。该存储介质存储有计算机程序。该计算机设备的通讯接口用于与外部的外部系统,如前端监控模块等连接通信,以获取所需的数据或指令,该计算机程序被处理器执行时以实现本申请实施例中提到的前置机的步骤或功能。In one embodiment, a kind of computer equipment is provided, and its internal structure diagram can be as shown in Figure 5, and this computer equipment can be above-mentioned front-end processor, and this computer equipment comprises the processor connected by system bus, memory and communication interface , wherein the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile and volatile storage media, and internal memory. The storage medium stores a computer program. The communication interface of the computer device is used to connect and communicate with external external systems, such as the front-end monitoring module, etc., to obtain the required data or instructions. When the computer program is executed by the processor, it can realize the above-mentioned The steps or functions of setting up the machine.
在一实施例中,提供了一种计算机可读存储介质,可读存储介质存储有计算机程序,计算机程序被处理器执行时实现实现本申请实施例中提到的前置机的步骤或功能。In one embodiment, a computer-readable storage medium is provided. The readable storage medium stores a computer program. When the computer program is executed by a processor, the steps or functions of the front-end processor mentioned in the embodiments of the present application are realized.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the above computer programs can be stored in a non-volatile computer-readable storage medium In this case, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still apply to the foregoing embodiments Modifications to the technical solutions recorded, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the application, and should be included in this application. within the scope of protection.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111115601.3A CN115858520B (en) | 2021-09-23 | 2021-09-23 | Data processing method, front-end processor and comprehensive monitoring system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111115601.3A CN115858520B (en) | 2021-09-23 | 2021-09-23 | Data processing method, front-end processor and comprehensive monitoring system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115858520A true CN115858520A (en) | 2023-03-28 |
| CN115858520B CN115858520B (en) | 2024-09-10 |
Family
ID=85652973
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111115601.3A Active CN115858520B (en) | 2021-09-23 | 2021-09-23 | Data processing method, front-end processor and comprehensive monitoring system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115858520B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118714202A (en) * | 2024-06-26 | 2024-09-27 | 北京汇能达电力技术有限公司 | A method, system, device and storage medium for communication protocol data conversion |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0926607A2 (en) * | 1997-12-23 | 1999-06-30 | Ricoh Company | Object-oriented system for mapping structered information to different structured information |
| CN107797927A (en) * | 2017-10-18 | 2018-03-13 | 中国平安人寿保险股份有限公司 | Using automated testing method, device, equipment and readable storage medium storing program for executing |
-
2021
- 2021-09-23 CN CN202111115601.3A patent/CN115858520B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0926607A2 (en) * | 1997-12-23 | 1999-06-30 | Ricoh Company | Object-oriented system for mapping structered information to different structured information |
| CN107797927A (en) * | 2017-10-18 | 2018-03-13 | 中国平安人寿保险股份有限公司 | Using automated testing method, device, equipment and readable storage medium storing program for executing |
Non-Patent Citations (3)
| Title |
|---|
| CARSON HARMON等: "Toward Automated Grammar Extraction via Semantic Labeling of Parser Implementations", 2020 IEEE SECURITY AND PRIVACY WORKSHOPS (SPW), 18 December 2020 (2020-12-18), pages 276 - 283 * |
| STRIVEB: "MyBatis中XML 映射文件中常见的标签", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/striveb/article/details/90709045> * |
| 王鹏: "基于流程的数据挖掘生成工具的设计与实现", 中国优秀硕士学位论文全文数据库信息科技辑, no. 4, 15 April 2018 (2018-04-15), pages 138 - 2053 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118714202A (en) * | 2024-06-26 | 2024-09-27 | 北京汇能达电力技术有限公司 | A method, system, device and storage medium for communication protocol data conversion |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115858520B (en) | 2024-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111225082B (en) | Identity management method and device of Internet of things intelligent equipment and Internet of things platform | |
| CN106155775B (en) | Message processing method, device and system | |
| CN108804197B (en) | Dynamic componentization implementation method, device, equipment and storage medium | |
| CN111538497A (en) | Configuration method and device suitable for multi-satellite measurement and control management | |
| CN111611207B (en) | State data processing method and device and computer equipment | |
| CN113760242B (en) | Data processing method, device, server and medium | |
| CN114328210A (en) | Test method, test device and computer readable storage medium | |
| CN113359642A (en) | Multi-brand fusion dyeing and finishing control method, device, system and processor | |
| CN117056282A (en) | Vehicle data conversion method, device, equipment and storage medium | |
| CN111049913B (en) | Data file transmission method and device, storage medium and electronic equipment | |
| CN115858520B (en) | Data processing method, front-end processor and comprehensive monitoring system | |
| CN114185555A (en) | Server deployment method and device and electronic equipment | |
| CN112468562A (en) | Vehicle-mounted terminal file sending and upgrading method, device and storage medium | |
| CN113472880B (en) | Gateway processing method and system based on database configuration in micro-service architecture | |
| CN113836212B (en) | Method for automatically generating Json data by database data, readable medium and electronic equipment | |
| CN116600025A (en) | Data protocol conversion method, device and storage medium supporting configuration | |
| CN115134427A (en) | Communication protocol coordination method, device, computer equipment and storage medium | |
| CN109684283B (en) | Local caching method, system and equipment for CIM/G file of mobile application | |
| CN114124847A (en) | Message queue message processing method and device | |
| CN106850546B (en) | Map module software organization method of radar terminal | |
| CN111324374A (en) | Application program registration method and device based on application performance management system | |
| CN112860292A (en) | Configuration management method and device based on application | |
| CN114679483B (en) | Communication method, system and storage medium for distributed service communication system | |
| CN114827172B (en) | Data migration method and device based on Internet of things and electronic equipment | |
| CN116566969B (en) | Protocol downloading method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |