[go: up one dir, main page]

CN110069359B - A method for data interaction between a control center and a station terminal and an integrated subway system - Google Patents

A method for data interaction between a control center and a station terminal and an integrated subway system Download PDF

Info

Publication number
CN110069359B
CN110069359B CN201810060849.6A CN201810060849A CN110069359B CN 110069359 B CN110069359 B CN 110069359B CN 201810060849 A CN201810060849 A CN 201810060849A CN 110069359 B CN110069359 B CN 110069359B
Authority
CN
China
Prior art keywords
data
station
accessed
control center
data index
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.)
Active
Application number
CN201810060849.6A
Other languages
Chinese (zh)
Other versions
CN110069359A (en
Inventor
李义清
邱俊宏
窦中山
戚振伟
王兆庆
杨坤
卜银娜
韩勇
熊焰
崔丽艳
沈志广
李现伟
卓怀忠
陶颍军
张玉磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN201810060849.6A priority Critical patent/CN110069359B/en
Publication of CN110069359A publication Critical patent/CN110069359A/en
Application granted granted Critical
Publication of CN110069359B publication Critical patent/CN110069359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供了一种控制中心与站端数据交互的方法及地铁综合系统,分别在站端和控制中心对数据请求的有效性、返回数据的有效性都进行校验,实现了控制中心与站端的实时数据交互,保证了实时数据交互的准确性和可靠性,同时,控制中心新的数据请求与已存在的数据请求可能要获取某些相同的数据,该方法中订阅表和发布表的常规更新方式都是添加新的请求中的数据索引,而不是直接将数据索引复制更新到两个表中,提高了实时数据交互的速度,具有广泛的应用价值。

Figure 201810060849

The invention provides a method for data interaction between a control center and a station and a comprehensive subway system. The validity of the data request and the validity of the returned data are verified at the station and the control center respectively, and the control center and the station are realized. The real-time data interaction at the terminal ensures the accuracy and reliability of real-time data interaction. At the same time, the new data request of the control center and the existing data request may need to obtain some of the same data. In this method, the regular The update method is to add the data index in the new request, instead of directly copying and updating the data index to the two tables, which improves the speed of real-time data interaction and has wide application value.

Figure 201810060849

Description

一种控制中心与站端数据交互的方法及地铁综合系统A method for data interaction between a control center and a station terminal and a comprehensive subway system

技术领域technical field

本发明属于数据交互技术领域,特别涉及一种控制中心与站端数据交互的方法及地铁综合系统。The invention belongs to the technical field of data interaction, and in particular relates to a method for data interaction between a control center and a station end and a comprehensive subway system.

背景技术Background technique

目前,城市交通建设如火如荼,随着国家进一步推进综合管廊、海绵城市战略,我国大中城市必将掀起地下工程建设的新一轮高潮,地铁建设大力推进,各地地铁运营线路越来越多,里程越来越长,地铁已经成为市民出行的第一选择。但是在城市交通建设中,传统的地铁网线不可见、种类繁多,管理维护非常困难,地铁的运营给地站的建设带来了越来越大的挑战。对于复杂度地铁建设,设置监控系统很有必要,监控系统采用一体化软硬件平台和专用通信网络采用诸如供电系统、环境与设备监控系统、火灾报警系统、信号系统、广播系统、乘客信息系统等数个专业的实时数据和环境参数,并远程控制各专业系统的运行,这其中,不可避免地涉及到对成千上万个运行设备及动辄几十万数据测点的编制配置、结构组织及逻辑应用。由于在地铁监控系统中,存在多个控制中心端和站端,每个控制中心都可能需要从多个站端获取数据,由于数据量比较庞大及复杂,那么地铁监控系统对于实时交互数据的准确性、可靠性及快速性的要求越来越高,针对此问题提出了一系列的解决方案,如公开号为“CN106776854A”,名称为“一种适应地铁综合监控系统的数据粘合结构及处理方法”的中国专利,该专利的关系实时数据库采用面向对象技术构造,每个物理设备在关系实时数据库中均表示为一个数据对象,黏合器根据应用需求设计,从应用需求出发,把应用感兴趣的数据通过数据关联的方式重新编排为一个有序结构,并配置新结构的辅助信息,最终呈现给高级应用最为精准的数据组织形态,该专利提供的方案未对采集的数据进行校验,使获取的数据存在一定的误差,造成对采集的地铁数据的分析有效性低,进一步造成地铁监控系统的准确性和可靠性低。At present, urban transportation construction is in full swing. As the country further promotes the strategy of comprehensive pipe corridors and sponge cities, large and medium-sized cities in my country will surely set off a new round of underground engineering construction. Subway construction is vigorously promoted, and there are more and more subway operating lines in various places. The mileage is getting longer and longer, and the subway has become the first choice for citizens to travel. However, in the construction of urban transportation, the traditional subway network lines are invisible, there are many types, and the management and maintenance are very difficult. The operation of the subway has brought more and more challenges to the construction of the subway station. For complex subway construction, it is necessary to set up a monitoring system. The monitoring system adopts an integrated software and hardware platform and a dedicated communication network, such as power supply system, environment and equipment monitoring system, fire alarm system, signal system, broadcasting system, passenger information system, etc. Several professional real-time data and environmental parameters, and remote control of the operation of each professional system, which inevitably involves the compilation and configuration of thousands of operating equipment and hundreds of thousands of data measuring points, structure organization and logic application. Since there are multiple control center terminals and station terminals in the subway monitoring system, each control center may need to obtain data from multiple station terminals. Due to the large and complex data volume, the accuracy of the real-time interactive data of the subway monitoring system The requirements for performance, reliability and rapidity are getting higher and higher, and a series of solutions have been proposed for this problem, such as the publication number "CN106776854A", the name is "A data bonding structure and processing method suitable for the comprehensive monitoring system of the subway Method” Chinese patent, the relational real-time database of this patent is constructed using object-oriented technology, each physical device is represented as a data object in the relational real-time database, the gluer is designed according to the application requirements, and the application is interested in The data is rearranged into an orderly structure through data association, and the auxiliary information of the new structure is configured, and finally the most accurate data organization form is presented to advanced applications. The solution provided by this patent does not verify the collected data, so that There are certain errors in the acquired data, resulting in low analysis effectiveness of the collected subway data, which further leads to low accuracy and reliability of the subway monitoring system.

发明内容Contents of the invention

本发明的目的在于提供一种控制中心与站端数据交互的方法及地铁综合系统,用于解决现有技术中的地铁数据监控系统的准确性及可靠性低的问题。The object of the present invention is to provide a method for data interaction between a control center and a station terminal and a subway comprehensive system, which are used to solve the problem of low accuracy and reliability of the subway data monitoring system in the prior art.

为实现上述目的,本发明提供了一种控制中心与站端数据交互的方法,包括以下技术方案:In order to achieve the above object, the present invention provides a method for data interaction between the control center and the station, including the following technical solutions:

方法方案一,一种控制中心与站端数据交互的方法,包括如下步骤:Method scheme 1, a method for data interaction between a control center and a station, including the following steps:

1)各控制中心根据数据访问请求生成数据索引,所述数据索引包括表名称、行ID值、列订阅符;根据所述数据索引判断数据请求要访问的站端,将访问同一站端的数据索引组织到一起;1) Each control center generates a data index according to the data access request, and the data index includes a table name, a row ID value, and a column subscription symbol; according to the data index, the station end to be accessed by the data request is judged, and the data index of the same station end is accessed organize together;

2)各控制中心对要访问的站端的数据索引进行第一CRC冗余校验,得到各个站端的单个数据索引对应的校验码及所有数据索引的总的校验码;根据要访问的站端的数据索引、各数据索引的校验码及要访问的站端的名称获取要访问的站端对应的全局订阅信息表;将各站端相对应的全局订阅信息表发送给对应的站端;2) Each control center performs the first CRC redundancy check on the data index of the station to be accessed, and obtains the check code corresponding to the single data index of each station and the total check code of all data indexes; Obtain the global subscription information table corresponding to the station to be accessed through the data index of the terminal, the check code of each data index, and the name of the station to be accessed; send the global subscription information table corresponding to each station to the corresponding station;

3)要访问的站端对接收到的全局订阅信息表进行校验,若检验有效,则将要访问的站端的全局订阅信息表中的数据索引添加到发布表,根据发布表中的数据索引获取要访问的站端的数据;3) The station to be accessed checks the received global subscription information table. If the verification is valid, the data index in the global subscription information table of the station to be accessed is added to the release table, and obtained according to the data index in the release table. Data on the site side to be accessed;

4)要访问的站端将获取的数据发送给各控制中心,各控制中心发布要访问的站端的数据。4) The station to be accessed sends the acquired data to each control center, and each control center publishes the data of the station to be accessed.

方法方案二,在方法方案一的基础上,根据发布表中的数据索引获取要访问的站端的数据后,各控制中心对发布表中的数据索引进行第二CRC冗余校验,得到要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码。Method scheme two, on the basis of method scheme one, after obtaining the data of the station to be accessed according to the data index in the release table, each control center performs the second CRC redundancy check on the data index in the release table, and obtains the data to be accessed The check code corresponding to a single data index at the station end and the total check code of all data indexes.

方法方案三,在方法方案二的基础上,各控制中心对得到的要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码进行校验,若校验有效,各控制中心发布要访问的站端的数据。Method 3: On the basis of method 2, each control center checks the check code corresponding to the single data index of the station to be accessed and the total check code of all data indexes. If the check is valid, each control center The control center publishes data on the station side to be accessed.

方法方案四,在方法方案三的基础上,根据数据访问请求生成的数据索引在设定的时间内存在,若超过设定的时间未对所述数据索引订阅,则删除所述数据索引。Method 4: On the basis of method 3, the data index generated according to the data access request exists within the set time, and if the data index is not subscribed beyond the set time, the data index is deleted.

方法方案五,在方法方案四的基础上,要访问的站端经过设定的时间间隔根据发布表中的数据索引发布数据。Method scheme five, on the basis of method scheme four, the station to be accessed releases data according to the data index in the release table after a set time interval.

本发明还提供了一种地铁综合系统,包括以下技术方案:The present invention also provides a comprehensive subway system, including the following technical solutions:

系统方案一,一种地铁综合系统,包括至少一个控制中心及至少一个站端,各控制中心分别与各站端通信连接,各控制中心用于根据数据访问请求生成数据索引,所述数据索引包括表名称、行ID值、列订阅符;根据所述数据索引判断数据请求要访问的站端,将访问同一站端的数据索引组织到一起;并对要访问的站端的数据索引进行第一CRC校验,得到各个站端的单个数据索引对应的校验码及所有数据索引的总的校验码;根据要访问的站端的数据索引、各数据索引的校验码及要访问的站端的名称获取要访问的站端对应的全局订阅信息表;将各站端相对应的全局订阅信息表发送给对应的站端;要访问的站端对接收到的全局订阅信息表进行校验,若检验有效,则将要访问的站端的全局订阅信息表中的数据索引添加到发布表,根据发布表中的数据索引获取要访问的站端的数据;且要访问的站端将获取的数据发送给各控制中心,各控制中心发布要访问的站端的数据。System solution 1, a comprehensive subway system, including at least one control center and at least one station terminal, each control center is respectively connected to each station terminal by communication, each control center is used to generate a data index according to a data access request, and the data index includes table name, row ID value, and column subscription symbol; judge the station end to be accessed according to the data index, organize the data indexes that visit the same station end together; and perform the first CRC check on the data index of the station end to be accessed According to the data index of the station to be accessed, the check code of each data index and the name of the station to be accessed, the key is obtained The global subscription information table corresponding to the station to be accessed; the global subscription information table corresponding to each station is sent to the corresponding station; the station to be accessed checks the received global subscription information table, if the verification is valid, Then add the data index in the global subscription information table of the station to be accessed to the release table, and obtain the data of the station to be accessed according to the data index in the release table; and the station to be accessed sends the acquired data to each control center, Each control center distributes data on the station side to be accessed.

系统方案二,在系统方案一的基础上,根据发布表中的数据索引获取要访问的站端的数据后,各控制中心对发布表中的数据索引进行第二CRC冗余校验,得到要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码。System scheme two, on the basis of system scheme one, after obtaining the data of the station to be accessed according to the data index in the release table, each control center performs the second CRC redundancy check on the data index in the release table, and obtains the data to be accessed The check code corresponding to a single data index at the station end and the total check code of all data indexes.

系统方案三,在系统方案二的基础上,各控制中心对得到的要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码进行校验,若校验有效,各控制中心发布要访问的站端的数据。System scheme three, on the basis of system scheme two, each control center checks the check code corresponding to the single data index of the station to be accessed and the total check code of all data indexes. If the check is valid, each control center The control center publishes data on the station side to be accessed.

系统方案四,在系统方案三的基础上,根据数据访问请求生成的数据索引在设定的时间内存在,若超过设定的时间未对所述数据索引订阅,则删除所述数据索引。System Solution 4: On the basis of System Solution 3, the data index generated according to the data access request exists within the set time, and if the data index is not subscribed beyond the set time, the data index is deleted.

系统方案五,在系统方案四的基础上,要访问的站端经过设定的时间间隔根据发布表中的数据索引发布数据。System scheme five, on the basis of system scheme four, the station to be accessed publishes data according to the data index in the release table after a set time interval.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明分别在站端和控制中心对数据请求的有效性、返回数据的有效性都进行校验,实现了控制中心与站端的实时数据交互,保证了实时数据交互的准确性和可靠性,同时,各控制中心新的数据请求与已存在的数据请求可能要获取某些相同的数据,该方法中订阅表和发布表的常规更新方式都是添加新的请求中的数据索引,而不是直接将数据索引复制更新到两个表中,提高了实时数据交互的速度,具有广泛的应用价值。The present invention checks the validity of the data request and the validity of the returned data at the station and the control center, realizes the real-time data interaction between the control center and the station, and ensures the accuracy and reliability of the real-time data interaction. , each control center’s new data request and the existing data request may need to obtain some of the same data. In this method, the regular update method of the subscription table and the release table is to add the data index in the new request instead of directly The data index is copied and updated to two tables, which improves the speed of real-time data interaction and has wide application value.

附图说明Description of drawings

图1为本发明实施例的一种在控制中心与站端进行实时数据交互的方法流程示意图;1 is a schematic flow diagram of a method for real-time data interaction between a control center and a station according to an embodiment of the present invention;

图2位本发明实施例的一种在控制中心与站端进行实时数据交互的方法系统结构示意图。FIG. 2 is a schematic structural diagram of a method for real-time data interaction between a control center and a station according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明的具体实施方式作进一步的说明:The specific embodiment of the present invention will be further described below in conjunction with accompanying drawing:

本发明提供了一种地铁综合系统,包括至少一个控制中心及至少一个站端,各控制中心分别与各站端通信连接,如图2所示,包括两个控制中心和N个站端。该系统通过控制中心下发订阅表,站端返回发布表来实现实时数据的交互。为了判断控制中心与站端收发数据的一致性,需要对订阅表和发布表中的数据索引Key进行一致性校验。基于该系统本发明提供了一种控制中心与站端数据交互的方法,数据交互方法可以应用在初地铁外的其他综合监控系统中,具体的控制中心与站端数据交互的方法,如图1所示,包括如下步骤:The present invention provides a comprehensive subway system, including at least one control center and at least one station terminal, and each control center is connected to each station terminal by communication, as shown in Figure 2, including two control centers and N station terminals. The system realizes the interaction of real-time data through the control center issuing the subscription form, and the station returns the release form. In order to judge the consistency of data sent and received by the control center and the station, it is necessary to perform a consistency check on the data index Key in the subscription table and the release table. Based on this system, the present invention provides a method for data interaction between the control center and the station end. The data interaction method can be applied to other integrated monitoring systems outside the primary subway. The specific method for the data interaction between the control center and the station end is shown in Figure 1 shown, including the following steps:

1、发送站端数据访问请求。地铁综合系统中每一个数据都有一个id作为唯一索引,每一个id都是对应着一个表中的一行数据,因此一个id可能对应着很多字段。1. Send a station-side data access request. Each data in the subway comprehensive system has an id as a unique index, and each id corresponds to a row of data in a table, so an id may correspond to many fields.

2、控制中心要获取的一般不是一个id的所有数据,而是其某一个或某些字段的数据,当某一次某个控制中心要从多个站端获取这些数据时,控制中心首先会根据数据请求生成数据索引Key,Key={表名称,行id值,列订阅符}。2. Generally, what the control center wants to obtain is not all the data of an id, but the data of one or some fields. When a certain control center wants to obtain these data from multiple stations, the control center will first use the The data request generates a data index Key, Key={table name, row id value, column subscription symbol}.

3、控制中心通过id判断该数据请求要访问哪一个站端,将访问同一站端的Key组织到一起,设访问某个站端的数据索引Key有N个,N为整数。3. The control center judges which station is to be accessed by the data request through the id, and organizes the Keys that access the same station together, assuming that there are N data index keys to access a certain station, and N is an integer.

4、对访问该站端的单个数据索引Key进行第一CRC循环冗余校验,分别得到单个数据索引对应的校验码CC1~CCN。4. Perform the first CRC cyclic redundancy check on the single data index Key accessing the station, and respectively obtain the check codes CC1-CCN corresponding to the single data index.

5、将单个数据索引的校验码CC1~CCN相加,得到该次的所有Key的总的校验码CC。5. Add the check codes CC1 to CCN of a single data index to obtain the total check code CC of all Keys at this time.

6、控制中心根据要访问的站端的数据索引Key、各数据索引对应的CC1~CCN、要访问的站端的数量N、数据索引总的校验码CC和要访问的站端的名称来组织控制中心该次访问站端的订阅信息表。6. The control center organizes the control center according to the data index Key of the station to be accessed, CC1~CCN corresponding to each data index, the number N of stations to be accessed, the total check code CC of the data index, and the name of the station to be accessed Subscription information table on the station side of this visit.

7、控制中心将订阅信息表可以分成M个互不相关的部分,每个部分为控制中心对一个站的全局订阅信息表,M为站端的个数,M为整数,即控制中心将该次的订阅信息列表中的Key添加到该站的全局订阅信息表中,并重新按照步骤4和5中的校验方法生成校验信息,得到该站端的全局订阅信息表,全局订阅信息表结构如表1所示:7. The control center can divide the subscription information table into M mutually unrelated parts, each part is the global subscription information table of a station by the control center, M is the number of stations, and M is an integer, that is, the control center will The key in the subscription information list of the station is added to the global subscription information table of the station, and the verification information is generated according to the verification method in steps 4 and 5 again, and the global subscription information table of the station is obtained. The structure of the global subscription information table is as follows Table 1 shows:

表1要访问的站端的订阅信息表Table 1 Subscription information table of the station to be accessed

CCCC 对象数量NNumber of objects N 订阅Key1+CC1Subscribe to Key1+CC1 ……... 订阅KeyN+CCNSubscribe to KeyN+CCN 客户标记customer mark

其中,对象数量为订阅信息中Key的个数,CC1~CCN为单个数据索引Key1~KeyN的校验码,CC为Key1~KeyN总的校验码,客户标记为对应的站端的站名。Among them, the number of objects is the number of Keys in the subscription information, CC1~CCN is the check code of a single data index Key1~KeyN, CC is the total check code of Key1~KeyN, and the customer mark is the station name of the corresponding station.

8、控制中心将要访问的各个站端的全局订阅信息表下发至消息总线,经消息总线发送至要访问的各个站端。8. The control center sends the global subscription information table of each station to be accessed to the message bus, and sends it to each station to be accessed via the message bus.

9、对应站端接收到订阅信息后先依照步骤4和步骤5中的方法进行循环冗余校验,将得到的校验码与全局订阅信息表中的校验码比较,校验该次订阅列表是否有效,以判断全局订阅信息表在传输过程中有无损坏,校验不一致则丢弃数据。9. After receiving the subscription information, the corresponding station first performs cyclic redundancy check according to the methods in step 4 and step 5, compares the obtained check code with the check code in the global subscription information table, and checks the subscription Check whether the list is valid to determine whether the global subscription information table is damaged during transmission. If the verification is inconsistent, the data will be discarded.

10、若校验有效,各站端获取控制中心发送的全局订阅信息表后,并不是直接同步,而是将全局订阅信息表中的数据索引Key添加到本地发布表,根据发布表中的Key在本地获取数据,并按照步骤4和步骤5的方法对发布表中的Key进行第二次循环冗余校验,得到单个Key的校验码SC1~SCN和总校验码SC。10. If the verification is valid, after each station obtains the global subscription information table sent by the control center, it does not directly synchronize, but adds the data index Key in the global subscription information table to the local release table, according to the Key in the release table Obtain the data locally, and perform the second cyclic redundancy check on the Key in the release table according to the method in step 4 and step 5, and obtain the check code SC1-SCN and the total check code SC of a single Key.

11、根据Key、SC1~SCN、N、SC和接受控制中心的名称组织站端的发布订阅表如表2所示,格式如下:11. According to the Key, SC1~SCN, N, SC and the name of the receiving control center, organize the publication and subscription form of the station as shown in Table 2, and the format is as follows:

表2站端的发布订阅信息表Table 2 Station-side publish-subscribe information table

Figure GDA0004054139800000051
Figure GDA0004054139800000051

其中,对象数量N为订阅信息中Key的个数,SC1~SCN为单个数据索引Key1~KeyN的校验码,SC为Key1~KeyN总的校验码,客户标记为对应的控制中心的名称。Among them, the number of objects N is the number of Keys in the subscription information, SC1~SCN is the check code of a single data index Key1~KeyN, SC is the total check code of Key1~KeyN, and the customer mark is the name of the corresponding control center.

12、站端将发布数据经消息总线发送给各控制中心,为了验证控制中心最后获取到的数据正确且完整,控制中心将发布表中的单个数据索引的校验码及总的数据索引校验码与全局订阅信息中的是否相等,即判断CC与SC、CC1~CCN与是否相等,若全部相等,则校验通过数据可用,各控制中心发布各站端的数据,如图2所示。若有任意一个校验码不相等,则控制中心下发同步指令,强制同步对应站端和控制中心该站端全局订阅表中的Key。12. The station will send the released data to each control center via the message bus. In order to verify that the data finally obtained by the control center is correct and complete, the control center will publish the check code of the single data index in the table and the checksum of the total data index Whether the code is equal to that in the global subscription information, that is, to judge whether CC and SC, CC1~CCN are equal, if all are equal, the data that passes the verification is available, and each control center publishes the data of each station, as shown in Figure 2. If any of the check codes are not equal, the control center will issue a synchronization command to force synchronization of the Key in the global subscription table of the corresponding station and the station of the control center.

13、全局订阅信息表中的Key存在一定时间,若超时没有对该数据索引Key持续订阅,则在订阅表中删除该Key,随后控制中心向对应站端发送指令删除该站端的发布表中对应的Key。13. The Key in the global subscription information table exists for a certain period of time. If there is no continuous subscription to the data index Key after timeout, the Key will be deleted in the subscription table, and then the control center will send an instruction to the corresponding station to delete the corresponding key in the release table of the station. the Key.

14、该站端经固定时间间隔循环发布表中的数据索引Key发布数据。14. The station releases data through the data index Key in the table in a fixed time interval cycle.

本发明方法可实现控制中心与站端的实时数据交互,本发明的方法在使用数据之前,分别在站端和控制中心端对数据请求的有效性、返回数据的有效性都进行校验,保证了实时数据交互的准确性和可靠性,同时,控制中心新的数据请求与已存在的数据请求可能要获取某些相同的数据,该方法中订阅信息表和发布表的常规更新方式都是添加新的请求中的Key,而不是直接将Key复制更新到两个表中,提高了实时数据交互的速度,具有广泛的应用价值。The method of the present invention can realize the real-time data interaction between the control center and the station terminal. Before using the data, the method of the present invention checks the validity of the data request and the validity of the returned data respectively at the station terminal and the control center terminal, ensuring The accuracy and reliability of real-time data interaction. At the same time, the new data request of the control center may obtain some of the same data as the existing data request. In this method, the regular update method of the subscription information table and the release table is to add new The Key in the request, instead of directly copying and updating the Key to the two tables, improves the speed of real-time data interaction and has a wide range of application values.

以上给出了具体的实施方式,但本发明不局限于以上所描述的实施方式。本发明的基本思路在于上述基本方案,对本领域普通技术人员而言,根据本发明的教导,设计出各种变形的模型、公式、参数并不需要花费创造性劳动。在不脱离本发明的原理和精神的情况下对实施方式进行的变化、修改、替换和变型仍落入本发明的保护范围内。Specific implementations have been given above, but the present invention is not limited to the above-described implementations. The basic idea of the present invention lies in the above-mentioned basic scheme. For those of ordinary skill in the art, according to the teaching of the present invention, it does not need to spend creative labor to design various deformation models, formulas, and parameters. Changes, modifications, substitutions and variations to the implementations without departing from the principle and spirit of the present invention still fall within the protection scope of the present invention.

Claims (10)

1.一种控制中心与站端数据交互的方法,其特征在于,包括如下步骤:1. A method for control center and station end data interaction, is characterized in that, comprises the steps: 1)各控制中心根据数据访问请求生成数据索引,所述数据索引包括表名称、行ID值、列订阅符;根据所述数据索引判断数据请求要访问的站端,将访问同一站端的数据索引组织到一起;1) Each control center generates a data index according to the data access request, and the data index includes a table name, a row ID value, and a column subscription symbol; according to the data index, the station end to be accessed by the data request is judged, and the data index of the same station end is accessed organize together; 2)各控制中心对要访问的站端的数据索引进行第一CRC冗余校验,得到各个站端的单个数据索引对应的校验码及所有数据索引的总的校验码;根据要访问的站端的数据索引、各数据索引的校验码及要访问的站端的名称获取要访问的站端对应的全局订阅信息表;将各站端相对应的全局订阅信息表发送给对应的站端;2) Each control center performs the first CRC redundancy check on the data index of the station to be accessed, and obtains the check code corresponding to the single data index of each station and the total check code of all data indexes; Obtain the global subscription information table corresponding to the station to be accessed through the data index of the terminal, the check code of each data index, and the name of the station to be accessed; send the global subscription information table corresponding to each station to the corresponding station; 3)要访问的站端对接收到的全局订阅信息表进行校验,若检验有效,则将要访问的站端的全局订阅信息表中的数据索引添加到发布表,根据发布表中的数据索引获取要访问的站端的数据;3) The station to be accessed checks the received global subscription information table. If the verification is valid, the data index in the global subscription information table of the station to be accessed is added to the release table, and obtained according to the data index in the release table. Data on the site side to be accessed; 4)要访问的站端将获取的数据发送给各控制中心,各控制中心发布要访问的站端的数据。4) The station to be accessed sends the acquired data to each control center, and each control center publishes the data of the station to be accessed. 2.根据权利要求1所述的控制中心与站端数据交互的方法,其特征在于,根据发布表中的数据索引获取要访问的站端的数据后,各控制中心对发布表中的数据索引进行第二CRC冗余校验,得到要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码。2. the method for control center and station end data interaction according to claim 1, it is characterized in that, after obtaining the data of the station end to be visited according to the data index in the release table, each control center carries out the data index in the release table The second CRC redundancy check is to obtain the check code corresponding to the single data index of the station to be accessed and the total check code of all data indexes. 3.根据权利要求2所述的控制中心与站端数据交互的方法,其特征在于,各控制中心对得到的要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码进行校验,若校验有效,各控制中心发布要访问的站端的数据。3. The method for data interaction between the control center and the station end according to claim 2, characterized in that each control center obtains a check code corresponding to a single data index of the station end to be accessed and a total checksum of all data indexes The code is verified, and if the verification is valid, each control center releases the data of the station to be accessed. 4.根据权利要求3所述的控制中心与站端数据交互的方法,其特征在于,根据数据访问请求生成的数据索引在设定的时间内存在,若超过设定的时间未对所述数据索引订阅,则删除所述数据索引。4. The method for data interaction between the control center and the station according to claim 3, wherein the data index generated according to the data access request exists within the set time, and if the data index is not updated beyond the set time index subscription, delete the data index. 5.根据权利要求4所述的控制中心与站端数据交互的方法,其特征在于,要访问的站端经过设定的时间间隔根据发布表中的数据索引发布数据。5. The method for data interaction between the control center and the station according to claim 4, wherein the station to be visited releases data according to the data index in the release table after a set time interval. 6.一种地铁综合系统,其特征在于,包括至少一个控制中心及至少一个站端,各控制中心分别与各站端通信连接,各控制中心用于根据数据访问请求生成数据索引,所述数据索引包括表名称、行ID值、列订阅符;根据所述数据索引判断数据请求要访问的站端,将访问同一站端的数据索引组织到一起;并对要访问的站端的数据索引进行第一CRC校验,得到各个站端的单个数据索引对应的校验码及所有数据索引的总的校验码;根据要访问的站端的数据索引、各数据索引的校验码及要访问的站端的名称获取要访问的站端对应的全局订阅信息表;将各站端相对应的全局订阅信息表发送给对应的站端;要访问的站端对接收到的全局订阅信息表进行校验,若检验有效,则将要访问的站端的全局订阅信息表中的数据索引添加到发布表,根据发布表中的数据索引获取要访问的站端的数据;且要访问的站端将获取的数据发送给各控制中心,各控制中心发布要访问的站端的数据。6. A comprehensive subway system, characterized in that it comprises at least one control center and at least one station end, each control center is respectively connected to each station end in communication, each control center is used to generate a data index according to a data access request, and the data The index includes table name, row ID value, and column subscription symbol; judge the station to be accessed by the data request according to the data index, and organize the data indexes that visit the same station together; and perform the first CRC check, obtain the check code corresponding to the single data index of each station and the total check code of all data indexes; according to the data index of the station to be accessed, the check code of each data index and the name of the station to be accessed Obtain the global subscription information table corresponding to the station to be accessed; send the global subscription information table corresponding to each station to the corresponding station; the station to be accessed will verify the received global subscription information table, if the verification If it is valid, add the data index in the global subscription information table of the station to be accessed to the release table, and obtain the data of the station to be accessed according to the data index in the release table; and the station to be accessed will send the acquired data to each controller Center, each control center releases the data of the station to be accessed. 7.根据权利要求6所述的地铁综合系统,其特征在于,根据发布表中的数据索引获取要访问的站端的数据后,各控制中心对发布表中的数据索引进行第二CRC冗余校验,得到要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码。7. subway integrated system according to claim 6, it is characterized in that, after obtaining the data of the station end to be visited according to the data index in the release table, each control center carries out the second CRC redundancy check to the data index in the release table Check, get the check code corresponding to the single data index of the station to be accessed and the total check code of all data indexes. 8.根据权利要求7所述的地铁综合系统,其特征在于,各控制中心对得到的要访问的站端的单个数据索引对应的校验码及所有数据索引总的校验码进行校验,若校验有效,各控制中心发布要访问的站端的数据。8. The comprehensive subway system according to claim 7, wherein each control center checks the check code corresponding to the single data index of the station end to be accessed and the total check code of all data indexes, if The verification is valid, and each control center releases the data of the station to be accessed. 9.根据权利要求8所述的地铁综合系统,其特征在于,根据数据访问请求生成的数据索引在设定的时间内存在,若超过设定的时间未对所述数据索引订阅,则删除所述数据索引。9. The comprehensive subway system according to claim 8, wherein the data index generated according to the data access request exists within the set time, and if the data index is not subscribed to within the set time, the data index will be deleted. data index. 10.根据权利要求9所述的地铁综合系统,其特征在于,要访问的站端经过设定的时间间隔根据发布表中的数据索引发布数据。10. The comprehensive subway system according to claim 9, wherein the station terminal to be visited releases data according to the data index in the release table after a set time interval.
CN201810060849.6A 2018-01-22 2018-01-22 A method for data interaction between a control center and a station terminal and an integrated subway system Active CN110069359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810060849.6A CN110069359B (en) 2018-01-22 2018-01-22 A method for data interaction between a control center and a station terminal and an integrated subway system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810060849.6A CN110069359B (en) 2018-01-22 2018-01-22 A method for data interaction between a control center and a station terminal and an integrated subway system

Publications (2)

Publication Number Publication Date
CN110069359A CN110069359A (en) 2019-07-30
CN110069359B true CN110069359B (en) 2023-05-02

Family

ID=67364759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810060849.6A Active CN110069359B (en) 2018-01-22 2018-01-22 A method for data interaction between a control center and a station terminal and an integrated subway system

Country Status (1)

Country Link
CN (1) CN110069359B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953417A (en) * 1996-09-04 2007-04-25 英特托拉斯技术公司 A method to distribute use data from user site to external site
CN103379577A (en) * 2012-04-30 2013-10-30 摩托罗拉解决方案公司 Method and apparatus for restricting radio access to a system
CN104599060A (en) * 2015-01-09 2015-05-06 国家电网公司 Secondary circuit file comparison based intelligent substation debugging scheme generation method
CN105282143A (en) * 2015-09-09 2016-01-27 民航局空管局技术中心 Message access control method, device and system
CN105740296A (en) * 2014-12-12 2016-07-06 国家电网公司 Intelligent substation data subscription method based on access model
CN106817689A (en) * 2017-01-22 2017-06-09 兴唐通信科技有限公司 The data subscription and dissemination method and system of a kind of high reliability

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8959162B2 (en) * 2011-02-23 2015-02-17 International Business Machines Corporation Publisher-based message data cashing in a publish-subscription environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953417A (en) * 1996-09-04 2007-04-25 英特托拉斯技术公司 A method to distribute use data from user site to external site
CN103379577A (en) * 2012-04-30 2013-10-30 摩托罗拉解决方案公司 Method and apparatus for restricting radio access to a system
CN105740296A (en) * 2014-12-12 2016-07-06 国家电网公司 Intelligent substation data subscription method based on access model
CN104599060A (en) * 2015-01-09 2015-05-06 国家电网公司 Secondary circuit file comparison based intelligent substation debugging scheme generation method
CN105282143A (en) * 2015-09-09 2016-01-27 民航局空管局技术中心 Message access control method, device and system
CN106817689A (en) * 2017-01-22 2017-06-09 兴唐通信科技有限公司 The data subscription and dissemination method and system of a kind of high reliability

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
B/S模式下基于内容的发布/订阅系统的设计与实现;郝光星;《中国优秀硕士学位论文全文数据库 信息科技辑》;20131115(第11期);第I138-122页 *
Management through cross-layer design in mobile tactical networks;David Kidston 等;《2010 IEEE Network Operations and Management Symposium-NOMS 2010》;20100617;第890-893页 *

Also Published As

Publication number Publication date
CN110069359A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN104992022A (en) Aeronautics electronic system interface management method based on models
CN104951623A (en) Avionics system interface management system based on models
CN103268325A (en) Dynamic checking method of IED model configuration correctness in intelligent substation based on SCD file
CN103606032B (en) A kind of method in two dimension power grid GIS data set
CN107194533A (en) A kind of power distribution network full information model building method and system
CN103366411A (en) Method and device for transmitting vehicle position data residual errors by virtue of wireless network
CN104748757B (en) A kind of data in navigation electronic map update method and device
CN117951341A (en) Block chain-based service processing method, device, equipment, medium and product
CN113393288A (en) Order processing information generation method, device, equipment and computer readable medium
CN114969161B (en) Data processing method and device and data center system
CN110069359B (en) A method for data interaction between a control center and a station terminal and an integrated subway system
CN110807619A (en) Method for supporting business handling in government affair service field
CN111132181B (en) Ray tracing technology method and device applied to wireless communication network
CN104573229A (en) Interface module for automatically introducing three-dimensional design data into process system and working method
CN103473654A (en) Asset data cleaning auxiliary method and system for electric ERP system
CN108287844A (en) A kind of public transport data managing method and system and navigation equipment
CN111401934A (en) Distributed advertising statistics method and device
CN105447154B (en) A kind of update method and more new system of entropy pool
CN115168392A (en) A structured rule description method and system for building code index query
CN113485890A (en) Flight inquiry system service monitoring method, device, equipment and storage medium
CN114971176A (en) Data blood relationship analysis method for power grid company data center
CN114283025A (en) Equipment ID generation method and device suitable for power Internet of things and equipment access method
CN111930829A (en) Method, apparatus, device and medium for generating standard addresses
CN115357657B (en) Data processing method and device, computer equipment and storage medium
CN112612825B (en) Method, device, equipment and storage medium for determining vehicles in the same row

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