Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a universal comprehensive monitoring front-end communication controller software.
In order to achieve the purpose, the invention adopts the technical scheme that: a general type comprehensive monitoring front-end communication controller software comprises an operating system type identification module, a basic service management module, a real-time database, a channel management module, a parameter database, a parameter file and dynamic library files packaged by different operating systems, wherein the real-time database is a shared memory and is used for storing real-time data received by a front-end communication controller; the channel management module is used for managing a communication link between the front-end communication controller and the lower computer; the parameter library is used for storing configuration parameters required by the operation of the front-end communication controller; the parameter file is a backup storage file of the local configuration parameters of the front-end communication controller; the basic service management module calls a dynamic library file packaged by a corresponding operating system according to the type of the current operating system to operate the real-time database and the channel management module so as to complete various service functions of the front-end communication controller.
Based on the above, each dynamic library file includes a data acquisition file, a database management file, a primary data transmission file and a secondary data transmission file which are respectively connected with the real-time database, a port maintenance file connected with the channel management module, and a parameter management file, a parameter reading file and a data consistency file which are respectively connected with the parameter library and the parameter file; the data collection files include, but are not limited to, a BAS interface file, a FAS interface file, an AFC interface file, a CLK interface file, and a Pscada interface file.
Based on the above, after the device is started, the operating system type identification module identifies the operating system type of the front-end communication controller;
the basic service management module calls a parameter reading file packaged corresponding to the system type according to the identified operating system type to read the configuration parameters from the parameter library, and judges whether the configuration parameters are read successfully:
if the parameter reading is unsuccessful, the basic service management module calls the parameter reading file to read local configuration parameters from the parameter file, and calls the dynamic library file to operate the real-time database and the channel management module according to the local configuration parameters;
if the reading is successful, the basic service management module calls the parameter management file to perform parameter configuration on a front-end communication controller by using the read configuration parameters, then calls the parameter reading file to read local configuration parameters from the parameter file, and then calls the data consistency file to perform consistency comparison of the local configuration parameters and the configuration parameters;
if the local configuration parameters are consistent with the configuration parameters, the basic service management module calls the dynamic library file to operate the real-time database and the channel management module according to the read configuration parameters;
and if the local configuration parameters are not consistent with the configuration parameters, the basic service management module updates the local configuration parameters in the parameter file, and calls the dynamic library file to operate the real-time database and the channel management module according to the read configuration parameters so as to complete various service functions of the front-end communication controller.
Compared with the prior art, the invention has outstanding substantive characteristics and remarkable progress, and particularly, the invention realizes the architecture design of the preposed communication controller software under the multi-system environment by arranging the operating system identification module and the dynamic library files packaged by different operating systems, so that the preposed communication controller software can be suitable for various operating systems and environments, and an operating user of each preposed communication controller only needs to select the corresponding operating system and the corresponding dynamic library file according to the requirement when installing the preposed communication controller software, thereby greatly reducing the difference of the preposed communication controller software of different subway lines of different cities, compressing the development cost of the preposed communication controller software and improving the universality of the preposed communication controller software.
Detailed Description
The technical solution of the present invention is further described in detail by the following embodiments.
As shown in fig. 1, the software for a general-purpose comprehensive monitoring front-end communication controller includes an operating system type identification module, a basic service management module, a real-time database, a channel management module, a parameter library, a parameter file, and a dynamic library file encapsulated by different operating systems, where the real-time database is a shared memory disposed in a memory of the front-end communication controller and is used for storing real-time data received or acquired by the front-end communication controller; the channel management module is used for managing a communication link between the front-end communication controller and the lower computer; the parameter library is used for storing configuration parameters required by the operation of the front-end communication controller, and preferably, the parameter library can be placed on the front-end communication controller and also can be placed on equipment which can be reached by the front-end communication controller through a network; the parameter file is a backup storage file of the local configuration parameters of the front-end communication controller; the basic service management module calls a dynamic library file packaged by a corresponding operating system according to the type of the current operating system to operate the real-time database and the channel management module so as to complete various service functions of the front-end communication controller, such as data acquisition, data processing, data forwarding and the like.
Specifically, the operating systems are multiple, and the same set of dynamic library codes are compiled under different operating systems through a compiler, so that dynamic library files respectively encapsulated by different operating systems can be obtained. In practical applications, the operating systems are various, such as a Windows operating system, a Unix operating system and a Linux operating system, and the corresponding dynamic library files are divided into dynamic library files encapsulated by the Windows operating system, dynamic library files encapsulated by the Unix operating system and dynamic library files encapsulated by the Linux operating system.
Each dynamic library file comprises a data acquisition file, a database management file, a primary data transmission file and a secondary data transmission file which are respectively connected with the real-time database, a port maintenance file connected with the channel management module, and a parameter management file, a parameter reading file and a data consistency file which are respectively connected with the parameter library and the parameter file.
The data acquisition file is an interface program used for acquiring information of a professional system and storing acquired real-time data into the real-time database, and includes but is not limited to a BAS interface file, a FAS interface file, an AFC interface file, a CLK interface file and a Pscada interface file; the BAS interface file is in charge of communication with a BAS (environmental control system) and is used for acquiring data of the BAS and issuing remote control instructions to the BAS; the FAS interface file is responsible for communicating with FAS (fire alarm system) for collecting data thereof; the AFC interface file is responsible for communicating with an AFC (automatic fare collection) system and is used for collecting data of the AFC interface file; the CLK interface file is responsible for communicating with CLK (clock system) to accept the clocking of the CLK system; the Pscada interface file is responsible for communicating with Pscada (power monitoring system) for collecting data thereof and issuing remote control commands thereto.
The database management file is used for allocating memory to the real-time database, storing and forwarding real-time data and the like.
And the primary data sending file uploads the dynamic change conditions of the data in the real-time database to an external comprehensive monitoring server according to remote signaling (primary) classification through a preset rule.
And the primary data sending file uploads the dynamic change conditions of the data in the real-time database to an external comprehensive monitoring server according to remote measurement (secondary) classification through a preset rule.
The port maintenance file is used for maintaining a dual-computer synchronous port and maintaining an opening port of an FEP (fluorinated ethylene propylene) service end;
the parameter management file is used for managing the configuration parameters in the parameter library, updating the configuration parameters in the parameter library and updating the local configuration parameters in the parameter file.
The parameter reading file is used for reading the configuration parameters or the local configuration parameters from the parameter library or the parameter file.
And the data consistency file is used for comparing the configuration parameters with the local configuration parameters.
The log management file is used for managing log files generated in the operation process of the front-end communication controller.
In order to ensure that the front-end communication controller can realize fast, stable and high-quality communication, the channel management file further comprises a path election file, and the path election file is used for selecting a path with the best communication quality from a link group realizing the same function as a main path for communication.
As shown in fig. 2, the workflow of the front-end communication controller software is as follows:
after starting up, the operating system type identification module identifies the operating system type of the front-end communication controller;
the basic service management module calls a parameter reading file packaged corresponding to the system type according to the identified operating system type to read the configuration parameters from the parameter library, and judges whether the configuration parameters are read successfully:
if the parameter reading is unsuccessful, namely the prepositive communication controller can not be connected with the parameter library through a network, the basic service management module calls the parameter reading file to read local configuration parameters from the parameter file, and calls the dynamic library file according to the local configuration parameters to operate the real-time database and the channel management module so as to complete various service functions of the prepositive communication controller;
if the reading is successful, namely the front-end communication controller can be connected with the parameter library through a network or the parameter library is positioned in the front-end communication controller, the basic service management module calls the parameter management file to carry out parameter configuration on the front-end communication controller according to the read configuration parameters, calls the parameter reading file to read local configuration parameters from the parameter file, and then calls the data consistency file to carry out consistency comparison on the local configuration parameters and the configuration parameters;
if the local configuration parameters are consistent with the configuration parameters, the basic service management module calls the dynamic library file to operate the real-time database and the channel management module according to the read configuration parameters so as to complete various service functions of the front-end communication controller;
if the local configuration parameters are not consistent with the configuration parameters, the basic service management module calls the parameter management file to update the local configuration parameters in the parameter file, and simultaneously calls the dynamic library file according to the read configuration parameters to operate the real-time database and the channel management module so as to complete various service functions of the front-end communication controller.
Obviously, by setting the operating system identification module and the dynamic library files packaged by different operating systems, the invention can be suitable for various operating systems and environments by using the preposed communication controller software, different subway lines of different cities can adopt the preposed communication controller software to control and operate the preposed communication controller, and an operating user of each preposed communication controller only needs to select the corresponding operating system and the corresponding dynamic library file according to the requirement when installing the preposed communication controller software, thereby greatly reducing the difference of the preposed communication controller software of different subway lines of different cities, compressing the development cost of the preposed communication controller software, the software can timely and quickly adapt to different environmental requirements of different lines, and the implementation progress of the whole comprehensive monitoring system is also improved.
Further, the present invention, taking the case that the operating system of the front-end communication controller is a Windows operating system, and the configuration parameters in the parameter library are consistent with the local configuration parameters in the parameter file, details the working flow of the front-end communication controller to complete the data forwarding function:
after starting up, the operating system type identification module identifies that the operating system type of the front-end communication controller is a Windows operating system;
the basic service management module calls a parameter reading file packaged by the Windows operating system to read the configuration parameters from the parameter library according to the identification result and judges whether the configuration parameters are read successfully or not;
after the reading is successful, the basic service management module calls the parameter management file to carry out parameter configuration of a front-end communication controller according to the read configuration parameters, then calls the parameter reading file to read local configuration parameters from the parameter file, then calls the data consistency file to carry out consistency comparison of the local configuration parameters and the configuration parameters, if the local configuration parameters are found to be consistent with the configuration parameters through comparison, the basic service management module calls the real-time database management file to carry out memory space allocation according to the configuration parameters, calls the channel management module to carry out connection of network or serial communication, further calls interface files such as BAS interface files to carry out data acquisition after the connection of the network or serial communication is successful, and stores the acquired real-time data into the real-time database in a classified manner, and the real-time database management module carries out data acquisition according to the change of the stored data, and calling the primary data forwarding module and/or the secondary data forwarding module, and forwarding the changed data to an external comprehensive monitoring server, so as to realize the data forwarding function of the front-end communication controller.
Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.