CN113362207A - Data processing method and device for bypass type urban rail transit system - Google Patents

Data processing method and device for bypass type urban rail transit system Download PDF

Info

Publication number
CN113362207A
CN113362207A CN202010150198.7A CN202010150198A CN113362207A CN 113362207 A CN113362207 A CN 113362207A CN 202010150198 A CN202010150198 A CN 202010150198A CN 113362207 A CN113362207 A CN 113362207A
Authority
CN
China
Prior art keywords
station terminal
data
acquisition
management device
central management
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.)
Pending
Application number
CN202010150198.7A
Other languages
Chinese (zh)
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.)
Beijing Jiaotong University Siyuan Information Technology Co ltd
Original Assignee
Beijing Jiaotong University Siyuan Information 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 Beijing Jiaotong University Siyuan Information Technology Co ltd filed Critical Beijing Jiaotong University Siyuan Information Technology Co ltd
Priority to CN202010150198.7A priority Critical patent/CN113362207A/en
Publication of CN113362207A publication Critical patent/CN113362207A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a data processing method and a data processing device of a bypass type urban rail transit system, which are used for solving the problem that the prior art cannot intensively supervise each station terminal. The urban rail transit system comprises an automatic fare collection AFC system and a central management device arranged in a bypass, and the central management device is connected with each station terminal in the AFC system. Each station terminal collects respective data and reports the data to the central management device, and the data do not need to be reported step by step through a multi-layer framework of an AFC system, so that the central management device can not only realize centralized supervision on each station terminal, but also improve the real-time performance and flexibility of data collection; and the by-pass is connected with the central management device and the AFC system, so that the station terminal can be supervised by an independent third-party device, the objectivity of supervision is ensured, the defect of self supervision of the AFC system is overcome, the influence of the central management device on the function of the AFC system can be reduced, and the decoupling of the supervision function and the AFC function is realized.

Description

Data processing method and device for bypass type urban rail transit system
Technical Field
The invention relates to the technical field of urban rail transit, in particular to a data processing method and device of a bypass type urban rail transit system.
Background
An Automatic Fare Collection (AFC) system is a commonly used networking charging system in urban rail transit operation, and is internally packaged with various application software, so that Automatic processing of processes such as ticket selling, ticket checking, charging, statistics, score clearing, management and the like can be realized.
At the present stage, the AFC system generally consists of four hierarchical architectures, namely, a device level (such as a gate, an automatic ticket vending machine, and a manual ticket vending machine), a station level, a line level, and a road network level, and when data of a station terminal is collected, the AFC system generally needs to report the data of the station terminal step by step. However, the gradual reporting method takes a long time (for example, ten minutes), which results in poor real-time performance of monitoring the station terminal. In addition, each station terminal can only collect data in the AFC system according to a fixed collection mode, for example, the running state data of the station terminal is only reported to the line center computer system and is stopped, and is not reported to the multi-line center computer system, so that the multi-line center computer system cannot know the running state of each station terminal, and thus, the existing AFC system has poor flexibility in monitoring the station terminal.
In summary, a solution for centralized supervision of each station terminal in the AFC system is needed to improve flexibility and real-time performance of supervision of the station terminal.
Disclosure of Invention
The embodiment of the invention provides a data processing method and a data processing device of a bypass type urban rail transit system, which are used for carrying out centralized supervision on each station terminal in an AFC system and improving the flexibility and the real-time performance of supervision station terminals.
In a first aspect, an embodiment of the present invention provides a data processing method for a bypass urban rail transit system, where the bypass urban rail transit system includes an automatic fare collection AFC system and a central management device that is arranged by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system;
any station terminal collects the data of the station terminal and reports the data to the central management device according to the collection task corresponding to the station terminal; and the data is used for the central management device to perform centralized management on the station terminal.
In the invention, the central management device is connected with each station terminal in the AFC system, so that each station terminal can directly report respective data to the central management device without reporting step by step through a multi-layer framework of the AFC system, thereby not only carrying out centralized supervision on each station terminal by using the central management device, but also improving the real-time performance and flexibility of data acquisition. In addition, the central management device is connected with the AFC system in a bypass mode, so that the station terminal can be supervised through an independent third-party device, the objectivity of supervision is guaranteed, the defect of self supervision of the AFC system is overcome, the influence of the central management device on the function of the AFC system can be reduced, and the decoupling of the supervision function and the AFC function is realized.
In a possible implementation manner, the station terminal sends a registration request to the central management device before acquiring data of the station terminal according to an acquisition task corresponding to the station terminal; the registration request is used for the central management device to establish communication connection with the station terminal; further, the station terminal acquires the acquisition task corresponding to the station terminal from the central management device; the central management device stores acquisition tasks corresponding to all station terminals.
In the implementation mode, the central management device supports the setting of the corresponding acquisition tasks for each station terminal, and compared with the setting of the fixed acquisition tasks for each station terminal by the existing AFC system, the mode is more suitable for the requirements of actual scenes, and the flexible supervision of each station terminal can be realized.
In a possible implementation manner, the acquisition task corresponding to the station terminal includes at least one acquisition item and acquisition time corresponding to each acquisition item; the method comprises the following steps that any station terminal acquires data of the station terminal according to an acquisition task corresponding to the station terminal, and comprises the following steps: for any acquisition item in the acquisition tasks corresponding to the station terminal, the station terminal determines a target acquisition method according to the acquisition item and an operating system of the station terminal, and acquires data corresponding to the acquisition item by using the target acquisition method when the acquisition time corresponding to the acquisition item is up; the operating system of the station terminal is an embedded operating system or a cutting version operating system of any type.
In the implementation mode, each station terminal is provided with a collection method matched with a local embedded operating system or a local cutting version operating system, and the collection method is customized and developed for the station terminal of the AFC system, so that compared with a general monitoring system in the prior art, a large number of unnecessary system functions can be saved, so that the collection method can occupy less resources in the station terminal, and the influence on the AFC software function in the station terminal is reduced; in addition, the acquisition methods corresponding to various acquisition items are packaged in the station terminal in advance, so that the station terminal can directly call the existing acquisition methods to execute acquisition operation, and the data acquisition efficiency can be improved.
In a possible implementation manner, the reporting, by the station terminal, the data of the station terminal to the central management device includes: the station terminal generates a request message according to the data of the station terminal and reports the request message to the central management device; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; the request message is used for the central management device to add the data into a message queue corresponding to the type of the data.
In the implementation manner, the station terminal carries the type of the data in the request message, so that the central management device can directly place the request message in the corresponding message queue according to the type of the data without performing an operation of analyzing the data to determine the type of the data, and the processing efficiency of the data can be improved.
In a possible implementation manner, the collection item is one or more of an AFC software version, parameter version information of AFC software, an operation state of a station terminal, and transaction data.
In the implementation mode, the station terminal can report the running state and the transaction data to the central management device and can also report the software information, the parameter version information and the software running state related to the AFC system, so that the central management device can acquire more comprehensive data, improve the supervision effect and timely acquire the running condition of the AFC software and repair the fault; in addition, the central management device of the scheme is connected with the station terminal through the bypass, so that the station terminal can continue to report data even if AFC software fails, and the availability of the supervision function is good.
In a second aspect, the invention provides a data processing method for a bypass type urban rail transit system, wherein the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device arranged by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system;
the central management device receives data reported by any station terminal and performs centralized management on the station terminals based on the data; and the data is acquired by the station terminal according to the acquisition task corresponding to the station terminal.
In a possible implementation manner, before receiving data reported by any station terminal, the central management device further receives a registration request sent by the station terminal, verifies the registration request, establishes a communication connection with the station terminal if the verification is passed, and provides a collection task corresponding to the station terminal.
In the implementation mode, each station terminal registers with the central management device in advance, so that the central management device can be ensured to supervise only the station terminals which are confirmed to be legal in advance, and the supervision safety is improved.
In a possible implementation manner, before providing the station terminal with the acquisition task corresponding to the station terminal, the central management device further obtains acquisition plan configuration information; the acquisition plan configuration information comprises at least one acquisition plan, and any acquisition plan comprises an acquisition range, acquisition time and acquisition items; the acquisition range is one or more of the type of an operating system, the type of a station terminal, an attribution area and an identifier of the station terminal; further, according to the at least one collection plan, obtaining a collection task corresponding to the station terminal, wherein the collection task corresponding to the station terminal comprises at least one collection item and collection time corresponding to each collection item.
In the implementation mode, the central management device can support a user to define the acquisition plan, and can complete the data acquisition operation corresponding to each station terminal based on the acquisition plan defined by the user, so that the data acquisition flexibility is better.
In a possible implementation manner, the receiving, by the central management device, data reported by any station terminal includes: the central management device receives a request message sent by a station terminal; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; correspondingly, the central management device performs centralized management on the station terminals based on the data, and the centralized management device comprises: the central management device adds the data into a message queue corresponding to the type of the data; the central management device is provided with message queues corresponding to various types, and data in the message queues corresponding to various types are processed in an asynchronous mode.
In the above implementation, by providing a plurality of message queues for parallel processing on the side of the central management apparatus and storing data of one data type using each message queue, the efficiency of data processing can be improved.
In a third aspect, the invention provides a data processing device of a bypass type urban rail transit system, where the bypass type urban rail transit system includes an Automatic Fare Collection (AFC) system and a central management device arranged by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the acquisition module is used for acquiring data of the station terminal according to the acquisition task corresponding to the station terminal;
the receiving and sending module is used for reporting the data to the central management device; and the data is used for the central management device to perform centralized management on the station terminal.
In one possible implementation manner, the apparatus further includes an obtaining module; before the acquisition module acquires the data of the station terminal according to the acquisition task corresponding to the station terminal, the transceiver module also sends a registration request to the central management device; the registration request is used for the central management device to establish communication connection with the station terminal; the acquisition module acquires the acquisition task corresponding to the station terminal from the central management device; the central management device stores acquisition tasks corresponding to all station terminals.
In a possible implementation manner, the acquisition task corresponding to the station terminal includes at least one acquisition item and acquisition time corresponding to each acquisition item; the acquisition module is specifically configured to: for any acquisition item in an acquisition task corresponding to the station terminal, determining a target acquisition method according to the acquisition item and an operating system of the station terminal, and acquiring data corresponding to the acquisition item by using the target acquisition method when the acquisition time corresponding to the acquisition item is reached; the operating system of the station terminal is an embedded operating system or a cutting version operating system of any type.
In a possible implementation manner, the transceiver module is specifically configured to: generating a request message according to the data of the station terminal, and reporting the request message to the central management device; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; the request message is used for the central management device to add the data into a message queue corresponding to the type of the data.
In a possible implementation manner, the collection item is one or more of an AFC software version, parameter version information of AFC software, an operation state of a station terminal, and transaction data.
In a fourth aspect, the invention provides a data processing device of a bypass type urban rail transit system, wherein the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device arranged by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the receiving and transmitting module is used for receiving data reported by any station terminal; the data is acquired by the station terminal according to an acquisition task corresponding to the station terminal;
and the management module is used for carrying out centralized management on the station terminal based on the data.
In a possible implementation manner, before the transceiver module receives data reported by any station terminal, the transceiver module also receives a registration request sent by the station terminal; the management module is also used for verifying the registration request, and if the registration request passes the verification, the management module establishes communication connection with the station terminal; and the transceiver module is also used for providing the acquisition task corresponding to the station terminal for the station terminal based on the communication connection.
In one possible implementation manner, the apparatus further includes an obtaining module; before the transceiver module provides the station terminal with the acquisition task corresponding to the station terminal, the acquisition module acquires acquisition plan configuration information; the acquisition plan configuration information comprises at least one acquisition plan, and any acquisition plan comprises an acquisition range, acquisition time and acquisition items; the acquisition range is one or more of the type of an operating system, the type of a station terminal, an attribution area and an identifier of the station terminal; correspondingly, the management module further obtains the acquisition task corresponding to the station terminal according to the at least one acquisition plan, wherein the acquisition task corresponding to the station terminal comprises at least one acquisition item and acquisition time corresponding to each acquisition item.
In a possible implementation manner, the transceiver module is specifically configured to: receiving a request message sent by a station terminal; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; correspondingly, the management module is specifically configured to: adding the data into a message queue corresponding to the type of the data; the central management device is provided with message queues corresponding to various types, and data in the message queues corresponding to various types are processed in an asynchronous mode.
In a fifth aspect, the present invention provides a computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform any of the methods described above.
In a sixth aspect, the present invention provides a computer readable storage medium storing a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform any of the methods described above.
These and other implementations of the present application will be more readily understood from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic system architecture diagram of a conventional urban rail transit system;
fig. 2 is a schematic structural diagram of a bypass urban rail transit system according to an embodiment of the present invention;
fig. 3 is an interaction flow diagram corresponding to a data processing method based on a bypass urban rail transit system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an acquisition plan master table;
FIG. 5 is a schematic diagram of an acquisition item table;
fig. 6 is a schematic structural diagram of a data processing device based on a bypass urban rail transit system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data processing device based on a bypass urban rail transit system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a backend device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a system architecture of a conventional urban rail transit system, which may be an Automatic Fare Collection (AFC) system. As shown in fig. 1, the AFC system includes a multi-line center computer system 110, a line center computer system 120, a station center computer system 130, and a station terminal 140 arranged hierarchically. The multi-line center computer system 110 is connected to the line center computer system 120, the line center computer system 120 is connected to the station center computer system 130, and the station computer system 130 is connected to the station terminal 140, for example, the multi-line center computer system may be connected by a wired manner, or may be connected by a wireless manner, which is not limited specifically.
In the embodiment of the invention, the station terminal can be any AFC operation terminal, such as an automatic ticket vending machine, an automatic ticket checking machine (gate machine), a box office ticket selling (supplementing) machine, an automatic value adding (inquiring) machine and the like, and is used for providing various ticket selling and checking services for passengers. The station terminal may be installed in an exhibition hall layer of each station of the urban rail transit system and connected to the station center computer system 130 through a station network. Station terminals in the AFC system can simultaneously support two working modes, namely networking and offline, and each station terminal comprises a main control unit, an input/output device, a Radio Frequency Identification (RFID) read-write component and the like.
Taking a station terminal as an automatic ticket checker as an example, ticket card reading and writing equipment is arranged in the station terminal, and when a passenger swipes a card on the station terminal to enter or swipes the card to exit, the ticket card reading and writing equipment can read data in the passenger ticket card; if the data in the passenger ticket card meets the requirement of the passenger for swiping the card at this time, the station terminal can allow the passenger to enter or exit; correspondingly, the ticket card reading and writing equipment can write data into the passenger ticket card according to the card swiping condition of the passenger. Further, the station terminal may generate card swiping information of the passenger according to data changes in the passenger ticket card, and report the card swiping information of the passenger to the station center computer system 130, the station center computer system 130 is configured to report the card swiping information of the passenger to the line center computer system 120, and the line center computer system 120 is configured to report the card swiping information of the passenger to the multi-line center computer system 110.
It can be known that the existing urban rail transit system mainly collects data of each station terminal based on the AFC system, the data collection needs to be packed step by step through the four-stage architecture and finally reported to the multi-line central computer system 110, and the step by step packing process generally has a delay of 5-15 minutes, so that the timeliness of data collection is poor. Moreover, the AFC system is fixed in the data collection mode of each station terminal, and the data collected by each station terminal is consistent and the collection process is also consistent, for example, the transaction data of each station terminal can be reported to the multi-line center computer system 110 step by step, and the operation data is only reported to the line center computer system 120 and is finished, and is not reported to the multi-line center computer system 110 any more, so that the multi-line center computer system 110 cannot know the fault condition and the operation state of each station terminal in time, and cannot perform centralized management on each station terminal. Therefore, the existing urban rail transit system also has the problem of inflexible data acquisition.
In order to solve the above problem, in a possible solution, the original architecture of the AFC system may be adjusted, for example, each station terminal is directly connected to the multi-line center computer system 110, and the multi-line center computer system 110 performs centralized management on each station terminal; or the cloud platform is arranged and is directly connected with each station terminal, and the cloud platform completes the function of AFC software. However, the above methods directly adjust the original architecture of the AFC system, the adjusted architecture not only needs to complete the AFC software function, but also supervises each station terminal based on the AFC software, the supervision function still depends on the AFC software, and if the AFC software has a problem, the supervision function is also unavailable accordingly. Moreover, the supervision function occupies more system resources, thereby affecting the operation capability of the AFC software. In addition, the cloud platform can operate only by depending on a network, so that the cloud platform is used for replacing an original AFC system, the station terminal can only support a networking working mode and cannot support an offline working mode, and the original transaction capability of the station terminal is influenced.
Based on this, the embodiment of the present invention provides a data processing method for a bypass urban rail transit system, so as to perform centralized supervision on each station terminal in an AFC system on the basis of not affecting the original function of the AFC system, thereby improving the flexibility and the real-time performance of supervising the station terminals.
Fig. 2 is a schematic structural diagram of a bypass urban rail transit system according to an embodiment of the present invention, and as shown in fig. 2, the bypass urban rail transit system further includes a central management device 150 in addition to the four-level structure of the AFC system. The central management device 150 may be connected to each station terminal 140 in the AFC system in a bypass manner, for example, by a wired connection, or may be connected by a wireless connection, which is not limited.
It should be noted that, the bypass connection according to the embodiment of the present invention refers to: AFC software and supervision software are deployed on each station terminal at the same time, the AFC software participates in the AFC function of the AFC system and is responsible for completing various transactions, and the supervision software participates in the centralized supervision function of the central management device 150 and is responsible for data acquisition and data reporting of the station terminal. In other words, the AFC software in the station terminal forms a main road with the station center computer system 130, the line center computer system 120, and the multi-line center computer system 110, the supervision software in the station terminal forms a bypass with the center management device 150, the main road is responsible for the original functions of the AFC system, the bypass is responsible for the data acquisition and supervision functions of the station terminal, and the bypass can also supervise the operation condition of the AFC software of the station terminal on the main road, but does not affect the operation of the main road.
Based on the bypass urban rail transit system illustrated in fig. 2, fig. 3 is an interaction flow diagram corresponding to a data processing method provided in the embodiment of the present invention, where the method includes:
step 301, the station terminal acquires data of the station terminal according to the acquisition task corresponding to the station terminal.
Here, the station terminal may be any station terminal in the AFC system.
In the embodiment of the present invention, the acquisition tasks corresponding to each station terminal may be configured directly by the operation and maintenance staff at the station terminal side, may also be distributed to each station terminal after being configured at the central management device side in advance by the operation and maintenance staff, and may also be acquired by each station terminal from a third-party device, which is not limited specifically.
In a possible implementation manner, the acquisition tasks corresponding to the station terminals may be configured on the side of the central management device, and the method specifically includes the following steps:
in step 3011, the central management apparatus provides an acquisition plan configuration interface to the user.
Step 3012, after detecting that the user inputs the collection plan configuration information on the collection plan configuration interface, the central management device obtains and analyzes the collection plan configuration information to obtain each collection plan.
Here, any acquisition plan may include an acquisition scope, an acquisition time, and an acquisition item, or may further include other information such as an acquisition plan name, an acquisition plan alias, an acquisition script parameter, a device type group, an operating system group, and the like, without limitation.
In the embodiment of the invention, the acquisition range can be defined by one or more items of the type of the operating system, the type of the station terminal, the attribution area and the identifier of the station terminal. The embodiment of the invention supports the user to freely combine the following types at the side of the central management equipment to obtain any acquisition range:
the type one is as follows: the general type is suitable for carrying out data acquisition on all station terminals in an AFC system;
type two: the type of the operating system is suitable for data acquisition of the station terminal with the operating system of the corresponding type, for example, if the type of the operating system is set to be a cutting version Linux operating system, data acquisition is performed on the station terminal with the cutting version Linux operating system deployed in all the station terminals of the AFC system;
type three: the type of the station terminal is suitable for data acquisition of the station terminal of the type, for example, if the type of the station terminal is set as a box office ticket machine, data acquisition is carried out on all box office ticket machines of the AFC system, and data acquisition is not carried out on an automatic ticket machine, an automatic ticket checker (gate), a box office ticket supplementing machine and an automatic value adding (inquiring) machine;
type four: the attribution area of the station terminal is suitable for data acquisition of all the station terminals included in the area, for example, if the attribution area is set as a station A, data acquisition of all the station terminals deployed in the station A is performed, or if the attribution area is set as a 16-number line, data acquisition of the station terminals deployed in each station through which the 16-number line passes is performed;
type five: the identification of the station terminal is suitable for data acquisition of the station terminal with the identification.
For example, if the acquisition range is defined by the type of the operating system "cut version Linux operating system" and the type of the home area "16 lines", the acquisition range corresponds to all station terminals of the cut version Linux operating system in all station terminals deployed on the 16 lines, and if the acquisition range is defined by the type of the operating system "cut version Linux operating system", the type of the home area "16 lines" and the type of the station terminal "automatic ticket gate", the acquisition range corresponds to all automatic ticket gates of the cut version Linux operating system in all station terminals deployed on the 16 lines.
As an example, the central management apparatus may further perform configuration management on each acquisition plan based on a database table to obtain an acquisition plan master table, so as to improve flexibility of acquisition plan management. The type of the database table may be an Oracle database table, an SQL database table, or a Mysql database table, and is not limited specifically.
Fig. 4 is a schematic diagram of an acquisition plan main table obtained based on Oracle database table configuration, as shown in fig. 4, the acquisition plan main table includes each acquisition plan, each acquisition plan occupies one row of the Oracle database table, and one or more items of an acquisition plan name, an acquisition plan alias (for defining an acquisition item), an acquisition period (i.e., acquisition time), an acquisition script parameter, an equipment type group, an operating system group, a line group, a site group, and an equipment group may be stored in a row corresponding to each acquisition plan. For example, referring to the third row of the collection plan master table, the collection plan corresponding to the third row is used to collect performance data of all station terminals with the cutting edition linux operating system, and referring to the fourth row of the collection plan master table, the collection plan corresponding to the fourth row is used to collect hard disk data of all station terminals on the line 15 and the line 14.
In one example, the central management device may further support the user to create a new acquisition plan, remove an existing acquisition plan, modify an existing acquisition plan, or query an existing acquisition plan, and after detecting that an acquisition plan is updated, the central management device may further automatically distribute the updated acquisition plan to each corresponding station terminal, so as to improve the accuracy of data acquisition. Taking the example of clearing the existing acquisition plan, when it is detected that the user triggers the modification instruction in the acquisition plan configuration interface, the central management device may display the acquisition plan master table to the user, so that the user may directly select the acquisition plan to be cleared on the acquisition plan master table to perform deletion operation, or may set the acquisition plan to be cleared to a failure state without limitation.
In the above example, the user sets each acquisition plan on the acquisition plan configuration page of the central management device, so that the acquisition plans and the services can be decoupled, the user is supported to configure different acquisition tasks for different station terminals according to respective service requirements, and the flexibility of data acquisition is improved; and each acquisition plan is configured through a configuration interface, so that the operation can be simplified, the cost and the event of manual operation and maintenance are reduced, and the data acquisition efficiency is improved.
And 3013, the central management device extracts the acquisition plans belonging to the same station terminal from the acquisition plans according to the acquisition ranges corresponding to the acquisition plans, and aggregates the acquisition plans belonging to the same station terminal to obtain the acquisition tasks corresponding to the station terminal.
In the embodiment of the present invention, because the alias of the collection plan is used to define the collection item, the central management device may further store a collection item itemization table, where the collection item itemization table is used to store the relevant configuration information of each collection item corresponding to any alias of the collection plan, and specifically may include a rule name, a rule alias, a processing service code, a monitoring item (i.e., a collection item), a rule expression, and the like of the collection item.
In a specific implementation, for any acquisition plan configured by the user, the central management device may first obtain an acquisition plan alias corresponding to the acquisition plan by querying the acquisition plan main table, then query the acquisition item itemizing table corresponding to the acquisition plan alias, and determine each acquisition item corresponding to the acquisition plan. For example, the acquisition plan corresponding to the fifth row of the acquisition plan main table in fig. 4 is used to acquire Solaris performance data, and the acquisition item sub-table corresponding to the Solaris performance data is shown in fig. 5, it can be known that the acquisition items corresponding to the Solaris performance data may include Solaris CPU occupancy, Solaris memory remaining space, Solaris memory total space, Solaris swap remaining space, and Solaris swap total space, and each acquisition item corresponds to its own rule, code, and acquisition method. Thus, the acquisition plan corresponding to the fifth row of the acquisition plan master table in fig. 4 is actually used for data acquisition of each acquisition item included in the Solaris performance data.
Further, the central management device may generate the collection task corresponding to each station terminal in a plurality of ways, such as:
in one example, for any station terminal, the central management device may determine each acquisition plan applicable to the station terminal according to an area to which the station terminal belongs, a route to which the station terminal belongs, and an operating system deployed on the station terminal, and then generate an acquisition task corresponding to the station terminal according to an acquisition item and acquisition time in each acquisition plan applicable to the station terminal.
Alternatively, the first and second electrodes may be,
in another example, the central management device may sequentially traverse each acquisition plan, and when traversing each acquisition plan, for any station terminal in the acquisition plan, if an acquisition task table corresponding to the station terminal already exists, add an acquisition item and acquisition time corresponding to the station terminal in the acquisition plan to the acquisition task table corresponding to the station terminal. And if the acquisition task table corresponding to the station terminal does not exist, establishing the acquisition task table corresponding to the station terminal, and adding the acquisition item and the acquisition time corresponding to the station terminal in the acquisition plan into the acquisition task table corresponding to the station terminal. Therefore, after traversing all the acquisition plans, the central management device can obtain the acquisition task list corresponding to each station terminal.
In the implementation mode, the central management device can support a user to define the acquisition plan, and can complete the data acquisition operation corresponding to each station terminal based on the acquisition plan defined by the user, so that the data acquisition flexibility is better.
Correspondingly, before step 301, the station terminal may further obtain a collection task corresponding to the station terminal from the central management device by the following steps:
in step 3021, the station terminal transmits a registration request to the center management apparatus.
Step 3022, the central management apparatus performs validity verification on the registration request of the station terminal, and if the verification is successful, establishes communication connection with the station terminal.
Here, the communication connection is used to allow the station terminal to acquire an acquisition task corresponding to the station terminal. After the communication connection is established, the central management apparatus may further transmit a response message that the registration is successful to the station terminal.
Accordingly, if the authentication fails, the central management apparatus may refuse to establish a communication connection with the station terminal and transmit a response message of the registration failure to the station terminal.
In the implementation mode, each station terminal registers with the central management device in advance, so that the central management device can be ensured to supervise only the station terminals which are confirmed to be legal in advance, and the supervision safety is improved.
And step 3023, the station terminal obtains a collection task corresponding to the station terminal from the central management device.
In specific implementation, if the station terminal receives the response message of successful registration, the station terminal may obtain the acquisition task corresponding to the station terminal from the central management device, and store the acquisition task corresponding to the station terminal in the local database. If the station terminal does not receive the response message or receives the response message of registration failure, the station terminal can periodically and repeatedly send the registration request to the central management device, and if the registration is not successful after the repeated sending of the set times, the station terminal gives up the registration and generates the alarm message.
In the embodiment of the present invention, the station terminal may obtain the collection task in a variety of ways, for example, after receiving the response message of successful registration, the station terminal may send a collection task obtaining request to the central management device, after the central management device verifies that the sender of the collection task obtaining request is the pre-registered station terminal, the collection task corresponding to the station terminal is sent to the station terminal, or after the central management device successfully establishes a communication connection with the station terminal, the collection task corresponding to the station terminal is actively sent to the station terminal, which is not limited specifically.
In order to ensure the consistency of the acquisition tasks between a configuration party (namely, a central management device) and an execution party (namely, a station terminal) and improve the accuracy of data acquisition, the station terminal can periodically acquire the corresponding acquisition tasks from the central management device, or the central management device can monitor a local database in real time, once the acquisition plan is detected to be updated by a user, an update instruction can be issued to the station terminal corresponding to the updated acquisition plan, and the updated acquisition tasks are carried in the update instruction, so that the station terminal can acquire the updated acquisition tasks in real time.
In the implementation mode, the central management device manages the acquisition plans in a unified way, and each station terminal acquires the corresponding acquisition task from the central management device, so that the acquisition plans can be configured on the side of the central management device in a centralized way without being configured in each station terminal separately, and the flexibility and the convenience of the configuration of the acquisition plans can be improved; and the station terminals are used as units to divide the acquisition tasks of the acquisition plan, so that the data acquisition process is more targeted, the requirements of actual acquisition scenes of different station terminals are met, and flexible supervision of each station terminal is realized.
In a possible implementation manner, the station terminal encapsulates the acquisition method corresponding to each acquisition item, and the acquisition method corresponding to each acquisition item is matched with the operating system of the station terminal, the operating system of the station terminal may be an embedded operating system or any type of cutting version operating system, and the cutting version operating system may be a cutting version of various commercial release version operating systems, such as a cutting version Unix system, a cutting version Linux system, a cutting version Windows system, and the like, without limitation. Therefore, after the station terminal acquires the corresponding acquisition task, for any acquisition item in the acquisition task, the target acquisition method can be determined according to the acquisition item and the operating system of the station terminal, and then the data corresponding to the acquisition item is acquired by using the target acquisition method during the acquisition time corresponding to the acquisition item.
The method for acquiring the encapsulation in the station terminal mainly comprises the following steps:
the acquisition method comprises the following steps: extracting the result content output by the self-contained command by combining the self-contained command and the regular expression of the operating system in the station terminal so as to monitor and collect data of the running state (such as the memory utilization rate of a CPU) of the station terminal;
the second acquisition method comprises the following steps: reading a designated file in a station terminal, and extracting contents corresponding to acquisition items from the designated file through a regular expression so as to perform data monitoring and data acquisition operations on partial transaction data;
the acquisition method comprises the following steps: monitoring a designated file in a station terminal, and acquiring the changed content once the content of the designated file is changed so as to perform data monitoring and data acquisition operation on the changed transaction data;
the acquisition method comprises the following steps: monitoring an appointed directory in a station terminal, and acquiring newly added file contents once newly added files under the appointed directory are found so as to perform data monitoring and data acquisition operations on newly added transaction data;
the acquisition method comprises the following steps: executing a configuration script of AFC software, and extracting specific content from the execution script through a regular expression so as to perform data monitoring and data acquisition operations on software information of an AFC system, parameter version information of the AFC system and software running state of the AFC system;
the acquisition method comprises the following steps: and executing a configuration script of monitoring software in the station terminal, and extracting specific content through a regular expression so as to perform data monitoring and data acquisition operation on the running state of the station terminal.
Based on the above content, in the embodiment of the invention, the station terminal can not only collect the operation state and the transaction data to the central management device, but also collect the software information, the parameter version information and the software operation state related to the AFC system, so that the central management device can collect more comprehensive data, improve the supervision effect, and timely acquire the operation condition of the AFC software and repair the fault; in addition, the central management device of the scheme is connected with the station terminal through the bypass, so that the station terminal can continue to report data even if AFC software fails, and the availability of the supervision function is good.
It should be noted that the acquisition method in the station terminal is developed based on the standard C language, and has the characteristics of small program code amount, high running speed and strong hardware interaction function. In addition, the embodiment of the invention also configures a Socket Tcp communication module, a zip processing module and an ftp file transmission module which are depended when the acquisition method is executed in the station terminal, and the modules have universality and are suitable for a cutting version operating system of each station terminal in an AFC system. In addition, the data collected in the station terminal are stored based on the tree-shaped custom storage structure of the pointer, so that resources required by data storage are reduced, and the efficiency of data reporting is improved.
In the embodiment of the invention, each station terminal is provided with the acquisition method matched with the local cutting version operating system, and the acquisition method is customized and developed for the station terminal of the AFC system, so that compared with the general monitoring system in the prior art, the problem that part of functions in the general monitoring system cannot be realized is solved, a large number of unnecessary system functions can be saved, the occupation amount of the acquisition method on resources in the station terminal is reduced, and the influence on the AFC software function in the station terminal is reduced; in addition, the acquisition methods corresponding to various acquisition items are packaged in the station terminal in advance, so that the station terminal can directly call the existing acquisition methods to execute acquisition operation, and the data acquisition efficiency can be improved.
Step 302, the station terminal reports the data of the station terminal to the central management device.
In a possible implementation manner, before reporting data, the station terminal may further encapsulate the data based on the type of the data to obtain a request message of a corresponding type, where the encapsulation manner mainly includes the following steps:
packaging mode 1: data are packaged in a key value pair mode, the key value pair mode is that the name of an acquisition item is the parameter value of the acquisition item, one or more key value pairs can be contained in a packaged request message, and the number of the key value pairs is related to the acquisition items corresponding to the station terminal;
packaging mode 2: converting the collected data into a binary format and reporting the binary format, wherein the binary format is suitable for reporting transaction data;
packaging mode 3: the JSON format is adopted to convert data, and the method is suitable for reporting data with fixed attributes, such as the software version and the parameter version of AFC software.
In the implementation mode, the data is encapsulated by using the encapsulation mode corresponding to the type of the data, so that the reported request message can better meet the requirement of the data type, and the efficiency of data analysis of the central management equipment is improved while the occupied space is saved.
In the embodiment of the invention, in order to reduce communication consumption, a Socket synchronous short connection mode can be adopted for communication between the station terminal and the central management device. During communication, messages are all initiated at the station terminal side and are responded by the central management device, and the messages are presented in pairs in a question-and-answer mode. Once the station terminal receives the response of the central management device, the station terminal can actively disconnect the communication connection with the central management device so as to reduce the resource occupation of the central management device.
In a specific implementation, the communication protocol of the station terminal and the central management device can be set based on a TCP/IP protocol. The communication message is a proprietary protocol message in a self-defined text format, and the message can be assembled according to the form of a message header, a message body (data acquisition content) + a check bit, for example, a request message sent by a station terminal is set according to the data field format of a fixed-length message header, a signature and a variable-length message body, and a response message sent by the central management device is set according to the data field format of the fixed-length message header and the variable-length message body.
For example, table 1 is a schematic diagram of a format of a request packet provided in the embodiment of the present invention:
Figure BDA0002402159590000181
TABLE 1
Table 2 is a schematic diagram of a format of a response packet provided in the embodiment of the present invention:
Figure BDA0002402159590000191
TABLE 2
And step 303, the central management device performs centralized management on the station terminals according to the data of the station terminals.
In a possible implementation manner, a message queue corresponding to each data type may be further provided in the central management device, and data in each message queue is processed in an asynchronous manner. For example, if the communication protocols between the station terminal and the central management device may include a registration protocol 100100, an acquisition plan protocol 100300, a data reporting protocol (including a full-volume status data protocol 100400 and a transaction data protocol 200100), a data updating protocol (including variable status data 100600) and a heartbeat protocol 100500, the central management device may correspondingly set a corresponding 100100 registration message queue, a 100300 acquisition plan message queue, a 100400 device full-volume status data message queue, an 100500 heartbeat data message queue, a 100600 variable status data message queue and a 200100 transaction data message queue according to the type of the communication protocol.
In specific implementation, the station terminal may encapsulate the request message according to the type of the data, and may also carry the type of the data (or a corresponding communication protocol) in the request message, where the type of the data may be one or more of registration request data, full state data, variable state data, transaction data, and heartbeat data. Correspondingly, after receiving the request message, the central management device may further add the data to the message queue corresponding to the type of the data according to the type of the data carried in the request message.
It should be noted that the type of each message queue in the central management device may be an MQ message queue, such as an ActiveMQ message queue, a RabbitMQ message queue, and the like, and is not particularly limited.
In the implementation mode, the station terminal carries the type of the data in the request message, so that the central management device can directly place the request message in the corresponding message queue according to the type of the data without performing the operation of analyzing the data to determine the type of the data, thereby improving the processing efficiency of the data; and, through set up a plurality of message queues processed in parallel at the side of central management apparatus, and use each message queue to store the data of a kind of data type, can further raise the efficiency of data processing.
In the embodiment of the invention, the station terminal can be divided into three modules in terms of software function: an Agent module, an AgentWatcher module and an AgentKill module. The Agent module is configured to implement the data acquisition and reporting operations described in the above embodiments of the present invention, such as acquiring and reporting the operating state data of each station terminal, the version and/or parameter version of AFC software, acquiring and reporting the data transmission and communication states of each level of architecture in the AFC system, and acquiring and reporting the transaction data of the station terminal. The AgentWatcher module is used for monitoring the running state of the agent module, and once the running abnormality of the agent module is found, the agent module can be restarted. The AgentKill module is used for stopping the related processes when the Agent module executes data acquisition and reporting operations, and ensuring the safe exit of the related processes by sending exit instructions to the related processes.
In the above embodiment of the present invention, the bypass type urban rail transit system includes an AFC system for automatic fare collection and a central management device disposed by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; any station terminal collects the data of the station terminal and reports the data to the central management device according to the collection task corresponding to the station terminal; and the data is used for the central management device to perform centralized management on the station terminal. In the embodiment of the invention, the central management device is connected with each station terminal in the AFC system, so that each station terminal can directly report respective data to the central management device without being reported step by step through a multilayer framework of the AFC system, and thus, the central management device can be used for carrying out centralized supervision on each station terminal, and the real-time performance and flexibility of data acquisition can be improved. In addition, the central management device is connected with the AFC system in a bypass mode, so that the station terminal can be supervised by an independent third-party device, the objectivity of supervision is guaranteed, the defect of self supervision of the AFC system is overcome, the influence of the central management device on the function of the AFC system can be reduced, and the decoupling of the supervision function and the AFC function is realized.
In view of the above method flow, an embodiment of the present invention further provides a data processing apparatus of a bypass urban rail transit system, and the specific content of the apparatus may be implemented with reference to the above method.
Fig. 6 is a schematic structural diagram of a data processing apparatus of a bypass type urban rail transit system according to an embodiment of the present invention, where the bypass type urban rail transit system includes an automatic fare collection AFC system and a central management apparatus disposed by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the acquisition module 601 is used for acquiring data of the station terminal according to the acquisition task corresponding to the station terminal;
a transceiver module 602, configured to report the data to the central management apparatus; and the data is used for the central management device to perform centralized management on the station terminal.
Optionally, before the acquisition module 601 acquires the data of the station terminal according to the acquisition task corresponding to the station terminal, the transceiver module 602 is further configured to: sending a registration request to the central management device; the registration request is used for the central management device to establish communication connection with the station terminal;
the apparatus further comprises an obtaining module 603, wherein the obtaining module 603 is configured to: acquiring the acquisition task corresponding to the station terminal from the central management device; the central management device stores acquisition tasks corresponding to all station terminals.
Optionally, the acquisition task corresponding to the station terminal includes at least one acquisition item and acquisition time corresponding to each acquisition item;
the acquisition module 601 is specifically configured to:
for any acquisition item in an acquisition task corresponding to the station terminal, determining a target acquisition method according to the acquisition item and an operating system of the station terminal, and acquiring data corresponding to the acquisition item by using the target acquisition method when the acquisition time corresponding to the acquisition item is reached; the operating system of the station terminal is an embedded operating system or a cutting version operating system of any type.
Optionally, the transceiver module 602 is specifically configured to:
generating a request message according to the data of the station terminal, and reporting the request message to the central management device; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; the request message is used for the central management device to add the data into a message queue corresponding to the type of the data.
Optionally, the acquisition item is one or more of an AFC software version, parameter version information of AFC software, an operation state of a station terminal, and transaction data.
Fig. 7 is a schematic structural diagram of a data processing apparatus of a bypass type urban rail transit system according to an embodiment of the present invention, where the bypass type urban rail transit system includes an automatic fare collection AFC system and a central management apparatus disposed by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the transceiver module 701 is used for receiving data reported by any station terminal; the data is acquired by the station terminal according to an acquisition task corresponding to the station terminal;
and the management module 702 is configured to perform centralized management on the station terminals based on the data.
Optionally, before the transceiver module 701 receives the data reported by any station terminal, the transceiver module is further configured to: receiving a registration request sent by the station terminal;
the management module 702 is further configured to: verifying the registration request, and if the registration request passes the verification, establishing communication connection with the station terminal;
the transceiver module 701 is further configured to: and providing the acquisition task corresponding to the station terminal based on the communication connection.
Optionally, the apparatus further includes an obtaining module 703;
before the transceiver module 701 provides the station terminal with the acquisition task corresponding to the station terminal, the acquisition module 703 is configured to: acquiring acquisition plan configuration information; the acquisition plan configuration information comprises at least one acquisition plan, and any acquisition plan comprises an acquisition range, acquisition time and acquisition items; the acquisition range is one or more of the type of an operating system, the type of a station terminal, an attribution area and an identifier of the station terminal;
the management module 702 is further configured to: and acquiring an acquisition task corresponding to the station terminal according to the at least one acquisition plan, wherein the acquisition task corresponding to the station terminal comprises at least one acquisition item and acquisition time corresponding to each acquisition item.
Optionally, the transceiver module 701 is specifically configured to: receiving a request message sent by a station terminal; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data;
the management module 702 is specifically configured to: adding the data into a message queue corresponding to the type of the data; the central management device is provided with message queues corresponding to various types, and data in the message queues corresponding to various types are processed in an asynchronous mode.
From the above, it can be seen that: in the above embodiment of the present invention, the bypass type urban rail transit system includes an AFC system for automatic fare collection and a central management device disposed by-pass with the AFC system; the central management device is connected with each station terminal in the AFC system; any station terminal collects the data of the station terminal and reports the data to the central management device according to the collection task corresponding to the station terminal; and the data is used for the central management device to perform centralized management on the station terminal. In the embodiment of the invention, the central management device is connected with each station terminal in the AFC system, so that each station terminal can directly report respective data to the central management device without being reported step by step through a multilayer framework of the AFC system, and thus, the central management device can be used for carrying out centralized supervision on each station terminal, and the real-time performance and flexibility of data acquisition can be improved. In addition, the embodiment of the invention is provided with the bypass connection between the central management device and the AFC system, so that the station terminal can be supervised by an independent third-party device, the objectivity of supervision is ensured, the defect of self supervision of the AFC system is avoided, the influence of the central management device on the function of the AFC system can be reduced, and the decoupling of the supervision function and the AFC function is realized.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, as shown in fig. 8, including at least one processor 801 and a memory 802 connected to the at least one processor, where a specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present invention, and the processor 801 and the memory 802 are connected through a bus in fig. 8 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 802 stores instructions executable by the at least one processor 801, and the at least one processor 801 may execute the steps included in the data processing method based on the urban rail transit system by executing the instructions stored in the memory 802.
The processor 801 is a control center of the terminal device, and may connect various parts of the terminal device by using various interfaces and lines, and implement data processing by executing or executing instructions stored in the memory 802 and calling data stored in the memory 802. Optionally, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes an issued instruction. It will be appreciated that the modem processor described above may not be integrated into the processor 801. In some embodiments, the processor 801 and the memory 802 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 801 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the data processing embodiment based on the urban rail transit system can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 802, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 802 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 802 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
Based on the same technical concept, an embodiment of the present invention provides a backend device, as shown in fig. 9, including at least one processor 901 and a memory 902 connected to the at least one processor, where a specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present invention, and the processor 901 and the memory 902 are connected through a bus in fig. 9 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 902 stores instructions executable by the at least one processor 901, and the at least one processor 901 may execute the steps included in the data processing method based on the urban rail transit system by executing the instructions stored in the memory 902.
The processor 901 is a control center of the backend device, and may connect various parts of the backend device by using various interfaces and lines, and implement data processing by executing or executing instructions stored in the memory 902 and calling data stored in the memory 902. Optionally, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, an application program, and the like, and the modem processor mainly parses a received instruction and parses a received result. It will be appreciated that the modem processor described above may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 901 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the data processing embodiment based on the urban rail transit system can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 902, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 902 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 902 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 902 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium storing a computer program executable by a computing device, where the computer program is configured to cause the computing device to execute the data processing method described in any of fig. 3 when the computer program runs on the computing device.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (20)

1. A data processing method of a bypass type urban rail transit system is characterized in that the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device which is arranged in a bypass mode with the AFC system; the central management device is connected with each station terminal in the AFC system;
any station terminal collects the data of the station terminal and reports the data to the central management device according to the collection task corresponding to the station terminal; and the data is used for the central management device to perform centralized management on the station terminal.
2. The method according to claim 1, wherein before the station terminal collects the data of the station terminal according to the collection task corresponding to the station terminal, the method further comprises:
the station terminal sends a registration request to the central management device; the registration request is used for the central management device to establish communication connection with the station terminal;
the station terminal acquires the acquisition task corresponding to the station terminal from the central management device; the central management device stores acquisition tasks corresponding to all station terminals.
3. The method according to claim 1, wherein the collection task corresponding to the station terminal comprises at least one collection item and collection time corresponding to each collection item;
the method comprises the following steps that any station terminal acquires data of the station terminal according to an acquisition task corresponding to the station terminal, and comprises the following steps:
for any acquisition item in the acquisition tasks corresponding to the station terminal, the station terminal determines a target acquisition method according to the acquisition item and an operating system of the station terminal, and acquires data corresponding to the acquisition item by using the target acquisition method when the acquisition time corresponding to the acquisition item is up; the operating system of the station terminal is an embedded operating system or a cutting version operating system of any type.
4. The method of claim 1, wherein the reporting of the data of the station terminal to the central management device by the station terminal comprises:
the station terminal generates a request message according to the data of the station terminal and reports the request message to the central management device; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; the request message is used for the central management device to add the data into a message queue corresponding to the type of the data.
5. The method according to any one of claims 1 to 4, wherein the collection items are one or more of AFC software version information, parameter version information of AFC software, running state of station terminals and transaction data.
6. A data processing method of a bypass type urban rail transit system is characterized in that the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device which is arranged in a bypass mode with the AFC system; the central management device is connected with each station terminal in the AFC system;
the central management device receives data reported by any station terminal; the data is acquired by the station terminal according to an acquisition task corresponding to the station terminal;
and the central management device performs centralized management on the station terminals based on the data.
7. The method according to claim 6, wherein before the central management device receives the data reported by any station terminal, the method further comprises:
the central management device receives a registration request sent by the station terminal;
the central management device verifies the registration request, and if the registration request passes the verification, the central management device establishes communication connection with the station terminal;
and the central management device provides the station terminal with a collection task corresponding to the station terminal.
8. The method according to claim 7, wherein before the central management device provides the station terminal with the collection task corresponding to the station terminal, the method further comprises:
the central management device acquires acquisition plan configuration information; the acquisition plan configuration information comprises at least one acquisition plan, and any acquisition plan comprises an acquisition range, acquisition time and acquisition items; the acquisition range is one or more of the type of an operating system, the type of a station terminal, an attribution area and an identifier of the station terminal;
and the central management device obtains the acquisition tasks corresponding to the station terminal according to the at least one acquisition plan, wherein the acquisition tasks corresponding to the station terminal comprise at least one acquisition item and acquisition time corresponding to each acquisition item.
9. The method according to any one of claims 6 to 8, wherein the receiving, by the central management device, data reported by any station terminal includes:
the central management device receives a request message sent by a station terminal; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data;
the central management device performs centralized management on the station terminal based on the data, and includes:
the central management device adds the data into a message queue corresponding to the type of the data; the central management device is provided with message queues corresponding to various types, and data in the message queues corresponding to various types are processed in an asynchronous mode.
10. A data processing device of a bypass type urban rail transit system is characterized in that the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device which is arranged in a bypass mode with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the acquisition module is used for acquiring data of the station terminal according to the acquisition task corresponding to the station terminal;
the receiving and sending module is used for reporting the data to the central management device; and the data is used for the central management device to perform centralized management on the station terminal.
11. The apparatus according to claim 10, wherein before the collection module collects the data of the station terminal according to the collection task corresponding to the station terminal, the transceiver module is further configured to: sending a registration request to the central management device; the registration request is used for the central management device to establish communication connection with the station terminal;
the apparatus further comprises an acquisition module configured to: acquiring the acquisition task corresponding to the station terminal from the central management device; the central management device stores acquisition tasks corresponding to all station terminals.
12. The device according to claim 10, wherein the collection task corresponding to the station terminal includes at least one collection item and a collection time corresponding to each collection item;
the acquisition module is specifically configured to:
for any acquisition item in an acquisition task corresponding to the station terminal, determining a target acquisition method according to the acquisition item and an operating system of the station terminal, and acquiring data corresponding to the acquisition item by using the target acquisition method when the acquisition time corresponding to the acquisition item is reached; the operating system of the station terminal is an embedded operating system or a cutting version operating system of any type.
13. The apparatus of claim 10, wherein the transceiver module is specifically configured to:
generating a request message according to the data of the station terminal, and reporting the request message to the central management device; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data; the request message is used for the central management device to add the data into a message queue corresponding to the type of the data.
14. The apparatus according to any one of claims 10 to 13, wherein the collection item is one or more of AFC software version, parameter version information of AFC software, operation state of station terminal, and transaction data.
15. A data processing device of a bypass type urban rail transit system is characterized in that the bypass type urban rail transit system comprises an Automatic Fare Collection (AFC) system and a central management device which is arranged in a bypass mode with the AFC system; the central management device is connected with each station terminal in the AFC system; the device comprises:
the receiving and transmitting module is used for receiving data reported by any station terminal; the data is acquired by the station terminal according to an acquisition task corresponding to the station terminal;
and the management module is used for carrying out centralized management on the station terminal based on the data.
16. The apparatus according to claim 15, wherein before the transceiver module receives the data reported by any station terminal, the transceiver module is further configured to: receiving a registration request sent by the station terminal;
the management module is further configured to: verifying the registration request, and if the registration request passes the verification, establishing communication connection with the station terminal;
the transceiver module is further configured to: and providing the acquisition task corresponding to the station terminal based on the communication connection.
17. The apparatus of claim 16, further comprising an acquisition module;
before the transceiver module provides the station terminal with the acquisition task corresponding to the station terminal, the acquisition module is used for: acquiring acquisition plan configuration information; the acquisition plan configuration information comprises at least one acquisition plan, and any acquisition plan comprises an acquisition range, acquisition time and acquisition items; the acquisition range is one or more of the type of an operating system, the type of a station terminal, an attribution area and an identifier of the station terminal;
the management module is further configured to: and acquiring an acquisition task corresponding to the station terminal according to the at least one acquisition plan, wherein the acquisition task corresponding to the station terminal comprises at least one acquisition item and acquisition time corresponding to each acquisition item.
18. The apparatus according to any one of claims 15 to 17, wherein the transceiver module is specifically configured to: receiving a request message sent by a station terminal; the request message carries the data and the type of the data; the type of the data is one or more of registration data, full state data, heartbeat data, variable state data and transaction data;
the management module is specifically configured to: adding the data into a message queue corresponding to the type of the data; the central management device is provided with message queues corresponding to various types, and data in the message queues corresponding to various types are processed in an asynchronous mode.
19. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1 to 5 or 6 to 9.
20. A computer-readable storage medium storing a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform the method of any of claims 1 to 5 or 6 to 9.
CN202010150198.7A 2020-03-06 2020-03-06 Data processing method and device for bypass type urban rail transit system Pending CN113362207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150198.7A CN113362207A (en) 2020-03-06 2020-03-06 Data processing method and device for bypass type urban rail transit system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150198.7A CN113362207A (en) 2020-03-06 2020-03-06 Data processing method and device for bypass type urban rail transit system

Publications (1)

Publication Number Publication Date
CN113362207A true CN113362207A (en) 2021-09-07

Family

ID=77523939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150198.7A Pending CN113362207A (en) 2020-03-06 2020-03-06 Data processing method and device for bypass type urban rail transit system

Country Status (1)

Country Link
CN (1) CN113362207A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116251A1 (en) * 2021-12-22 2023-06-29 卡斯柯信号有限公司 Data consistency control method applied to centralized railway signal monitoring system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033505A1 (en) * 2002-12-05 2005-02-10 Premier Wireless, Inc. Traffic surveillance and report system
CN101241587A (en) * 2008-02-15 2008-08-13 上海申通轨道交通研究咨询有限公司 Rail traffic ticket automatic selling and checking system
CN110426971A (en) * 2019-06-26 2019-11-08 北京全路通信信号研究设计院集团有限公司 A kind of rail traffic control network data acquisition and management method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033505A1 (en) * 2002-12-05 2005-02-10 Premier Wireless, Inc. Traffic surveillance and report system
CN101241587A (en) * 2008-02-15 2008-08-13 上海申通轨道交通研究咨询有限公司 Rail traffic ticket automatic selling and checking system
CN110426971A (en) * 2019-06-26 2019-11-08 北京全路通信信号研究设计院集团有限公司 A kind of rail traffic control network data acquisition and management method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘志宏;: "城市轨道交通综合监控系统的信息安全防护研究", 现代信息科技, no. 08 *
王晓军等: "北京地铁AFC系统智能化维修管理探索与实践", 《城市轨道交通》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116251A1 (en) * 2021-12-22 2023-06-29 卡斯柯信号有限公司 Data consistency control method applied to centralized railway signal monitoring system

Similar Documents

Publication Publication Date Title
CN103761309B (en) Operation data processing method and system
CN109067859A (en) A kind of double-deck cloud framework system and implementation method towards cross-domain cooperation with service
CN110401720A (en) Information processing method, device, system, application server and medium
CN104980525A (en) Pervasive mobile computing frame based on state middleware
CN111966289A (en) Partition optimization method and system based on Kafka cluster
US20240038002A1 (en) Method and device for remotely diagnosing vehicle faults, vehicle, and computer storage medium
CN112559285B (en) Micro-service monitoring method and related device based on distributed service architecture
CN109561403A (en) A kind of short message dispatching method, equipment and storage medium
JP2019121358A (en) Logistics data transmitting system and method thereof
CN113190423A (en) Service data monitoring method, device and system
CN111770022B (en) Capacity expansion method, system, equipment and computer storage medium based on link monitoring
CN114466227B (en) Video analysis method and device, electronic equipment and storage medium
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN113362207A (en) Data processing method and device for bypass type urban rail transit system
CN107995026B (en) Management and control method, management node, managed node and system based on middleware
CN114676205A (en) Event information processing method and device
CN111190875A (en) Log aggregation method and device based on container platform
CN115883330B (en) Alarm event processing method, system, equipment and storage medium
CN109308219B (en) Task processing method and device and distributed computer system
CN116136801B (en) Cloud platform data processing method and device, electronic equipment and storage medium
CN106304122A (en) A kind of business datum analyzes method and system
CN111401819B (en) Intersystem data pushing method and system
CN111376953B (en) Method and system for issuing plan for train
CN114281549A (en) Data processing method and device
CN113204464A (en) Real-time service monitoring method, system, terminal and medium based on service scene

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