CN103327056A - Online detection system for rail transit and detection method of online detection system - Google Patents
Online detection system for rail transit and detection method of online detection system Download PDFInfo
- Publication number
- CN103327056A CN103327056A CN2012100810993A CN201210081099A CN103327056A CN 103327056 A CN103327056 A CN 103327056A CN 2012100810993 A CN2012100810993 A CN 2012100810993A CN 201210081099 A CN201210081099 A CN 201210081099A CN 103327056 A CN103327056 A CN 103327056A
- Authority
- CN
- China
- Prior art keywords
- source code
- code data
- unit
- buffer memory
- shared buffer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses an online detection system for rail transit and a detection method of the online detection system. The online detection system comprises a plurality of equipment driving units, a protocol driving unit and a transmitting unit, wherein the equipment driving units are used for collecting source code data of external equipment; a communication channel is built between each equipment driving unit and a source code sharing cache unit; the protocol driving unit is used for controlling the equipment driving units to collect the source code data of the external equipment, and the source code data are sent and stored in the source code sharing cache unit in a packaging mode; the protocol driving unit is further used for sequentially detecting whether the source code data collected by all the equipment driving units change; the transmitting unit is used for transmitting the source code data having changing marks in the source code data of the source code sharing cache unit to an external system. The online detection system for the rail transit and the detection method of the online detection system reduce strong coupling among equipment driving, protocol driving, a data base and upper application, and bring convenience to maintenance and expansion of the equipment driving, the protocol driving, the data base and the upper application.
Description
Technical field
The present invention relates to a kind of on-line detecting system and detection method thereof, particularly relate to a kind of on-line detecting system for track traffic and detection method thereof.
Background technology
In the track traffic industry, the means that detect track traffic equipment are more and more at present, are the corresponding communication protocol of a passage in the communication process of general testing process, and transmit and receive data by described passage.For the real-time data, generally all be to create a stipulations processing threads the corresponding stipulations of passage are bound processing, stipulations and upper layer application integrate usually.For slower device status data of variation such as picture transformer oil chromatographic data, only record once every day usually, thus adopt the database mode storage usually, so have to correspondingly increase a database thread process.For the be engaged in data of system and dc load etc. of signal system, worker, owing to all be the data that transmit in real time, so need a plurality of stipulations to be integrated in the upper layer application equally.Too high like this coupling causes the autgmentability of upper layer application poor, can not reach the effect of the concurrent response of data, so cause existing in the communication process of testing process 2 deficiencies: the one, increase new stipulations or revise when having stipulations now, whole upper layer application need recompilate or arrange; The 2nd, when the obstructed institute of network communication causes stopping up, real-time data also usually need to wait for and change after data dispose slowly, just have an opportunity to line up and arrive and correspondingly handle, but this moment, real time data became invalid historical data, so cause the no longer effective property of real time data.
Summary of the invention
The technical problem to be solved in the present invention be for the track traffic that overcomes prior art detect in stipulations and upper layer application integrated level too high, the defective of communication protocol that caused the upper layer application close coupling provides a kind of on-line detecting system and detection method thereof of track traffic.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of on-line detecting system for track traffic, wherein said on-line detecting system comprises: a plurality of device drives unit, the source code data that are used for gathering external equipment; Wherein mapping relations are all set up with a source code shared buffer memory unit in each device drives unit, and a communication port is set up respectively and between the described source code shared buffer memory unit in each device drives unit;
The stipulations driver element is used for that the source code data of external equipment are gathered in the described device drives of control unit and by the described communication port group bag transmission between described device drives unit and the described source code shared buffer memory unit and store described source code data in described source code shared buffer memory unit;
Whether described stipulations driver element also changes for the source code data that detect each device drives unit collection successively, if, the described source code data of storage change also add change flag to the source code data that change, then the source code data of updated stored after the described source code data of described source code shared buffer memory unit are for the variation that adds change flag;
A retransmission unit has the source code data that change mark for the source code data with described source code shared buffer memory unit and is forwarded in the external system.
Each device drives unit and a communication port binding, and by described communication port group bag transmission sources code data or response data etc. to described source code shared buffer memory unit, wherein said source code data can be regarded the original message of information interaction between treatment system and the external equipment as, comprising uplink message or downlink message, described communication port can be regarded communication port group of formation as, described stipulations driver element is visited the source code data of transmitting in the communication port of binding each device drives unit successively, that is to say, each communication port link in the described communication port group of described stipulations driver element poll, and whether the source code data in the described communication port of analyzing and processing change, when changing, the described data that mark changes, and be stored in described source code shared buffer memory unit, therefore retransmission unit only needs to seek the data that are labeled, and be forwarded to ambient systems and get final product, so the present invention drives stipulations independent from upper layer application, and will after handling, the data analysis of gathering be stored in source code shared buffer memory unit, thereby the stipulations that will need the source code data further drive and upper layer application is kept apart, thereby the stipulations that weaken significantly drive and the coupling of upper layer application.
Preferably, described on-line detecting system also comprises one or more relational database addressed locations, be respectively applied to read in having in the described source code shared buffer memory unit and change the source code data of mark, remove described source code data to a relational database after change flag in the described source code data and storage, clearing change mark.
Preferably, described relational database addressed location also is respectively applied to read data from described relational database, and the data that read are written in the source code shared buffer memory unit.
Namely adopt the database mode storage for the slower device status data of variations such as transformer oil chromatographic data, the present invention is also by described source code shared buffer memory unit, relational database addressed location, stipulations are driven and the upper layer application isolation, thereby also reduced the coupling of system further.
Preferably, each described device drives unit is connected with at least one external equipment, wherein each external equipment is mapped with a communication link respectively in described communication port, described about driver element control respectively the unit collection of described device drives and each communication link have mapping relations external equipment the source code data and be sent to described source code shared buffer memory unit by described communication link group bag;
Wherein said stipulations driver element detects the variation of the source code data of transmitting in each communication link successively.
So the source code data of its corresponding equipment are gathered in each device drives unit among the present invention, described stipulations driver element is Frame according to the source code data of the described device drives of communications protocol analysis bank bag unit collection again, simultaneously, to described source code shared buffer memory unit, the device drives unit transmits this Frame to network channel equipment to the stipulations driver element the data frame transfer of request.
Be that every communication port can connect a plurality of external equipments, and its each external equipment is bound described device drives and communication port, thereby form an effective link and transfer data to described source code shared buffer memory unit, so described stipulations driver element carries out poll to each communication link equally, thereby handle the source code data of transmitting in each communication link.
Preferably, described communication link adopts the connected mode of non-blocking type, for example adopting shakes hands connect or etc. link connected mode to be connected.Connected mode by non-blocking type among the present invention guarantees that the fault of each communication link can not influence the communication of other communication links.
Preferably, the quantity of described stipulations driver element is a plurality of, wherein is preset with a sense cycle in each stipulations driver element, and each stipulations driver element is controlled the source code data that external equipment is gathered in described device drives unit by the interval of described sense cycle.So the present invention can send message to corresponding device drives by the different sense cycle of a plurality of communication protocols, regulate the frequency of obtaining the equipment sources code data from each device drives, because the frequency that each device data upgrades in the track traffic is different, for example, the Data Update speed of microcomputer monitoring is very fast, so need detect the data of microcomputer monitoring in real time, and the Data Update of transformer oil chromatographic is very slow, substantially only needs record once every day.Therefore the present invention regulates the transmission of real time data by the sense cycle that different communication protocols are set.
Preferably, described source code shared buffer memory comprises a plurality of memory cell in the unit, and wherein each memory cell is used for the source code data of an external equipment of storage.So the present invention with the status data of source code shared buffer memory unit at different equipment, adopts the mode of subregion to store, thereby is convenient to improve the efficient of application such as follow-up data storehouse processing, thereby further improve the real-time of real time data.
Preferably, each external equipment is set up mapping relations with the different part of the memory space of described source code shared buffer memory unit respectively.So the present invention is with the attribute data of source code shared buffer memory unit at distinct device, divide described source code shared buffer memory space according to data type, thereby store the attribute data of each described distinct device, thereby be convenient to improve the efficient of application such as follow-up data storehouse processing, thereby further improve the real-time of real time data.
The invention provides a kind of online test method for track traffic, be characterized in using on-line detecting system as described above, and may further comprise the steps:
S
101, each device drives unit sets up mapping relations with described source code shared buffer memory unit respectively by a communication port;
S
102, the stipulations driver element controls each described device drives unit successively and gathers the source code data of external equipment and send and store described source code data in described source code shared buffer memory unit by the described communication port group bag between each described device drives unit and the described source code shared buffer memory unit;
Whether the source code data that detect each device drives unit collection successively change, if then enter step S
103, otherwise repeating step S
102
S
103, the described source code data that change of described stipulations driver element storage and in the source code data that change, add change flag, updated stored is the source code data after adding change flag in the described source code data of described shared buffer memory unit then;
S
104, the source code data that have change flag in the source code data of described retransmission unit with described shared buffer memory unit are forwarded in the external system.
Preferably, described on-line detecting system also comprises one or more relational database addressed locations, at step S
103With step S
104Between further comprising the steps of:
Described relational database addressed location is respectively applied to read in the source code data that change mark that have in the described source code shared buffer memory unit, remove described source code data to a relational database after change flag in the described source code data and storage, clearing change mark, perhaps from described relational database, read data, and the data that read are written in the source code shared buffer memory unit.
Preferably, the described device drives of each of described on-line detecting system unit is connected with at least one external equipment, at step S
101In further comprising the steps of:
Each external equipment is all set up mapping relations by a communication link and described source code shared buffer memory unit in described communication port.
Preferably, be preset with a sense cycle in the described on-line detecting system in each stipulations driver element, and step S
101In further comprising the steps of:
Each stipulations driver element is controlled the source code data that external equipment is gathered in described device drives unit by the interval of described sense cycle.Positive progressive effect of the present invention is:
Of the present invention by needing device drives, stipulations driving, database and upper layer application to keep apart, realize system levelization and modularized design, thereby reduced the close coupling between device drives, stipulations driving, database and the upper layer application, be convenient to the maintenance and expansion of device drives, stipulations driving, database and upper layer application.
The present invention regulates the transmission of real time data by the sense cycle that different stipulations are set in addition, thereby improves the real-time of real time data.
Description of drawings
Fig. 1 is the structural representation of the preferred embodiment of on-line detecting system of the present invention.
Fig. 2 is the flow chart of online test method of the preferred embodiment of on-line detecting system of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
Embodiment:
As shown in Figure 1, comprise 3 device drives unit 1,3 stipulations driver elements 2, a source code shared buffer memory unit 3, a retransmission unit 4 and 4 relational database addressed locations 5 in the on-line detecting system of this example.
Wherein each described device drives unit 1 is connected with different external equipments in the present embodiment, checkout gear of microcomputer etc. for example, and also described external equipment is equipment different in the track circuit.Can also connect a plurality of different external equipments according to each described device drives unit 1 of needs of track circuit in addition.
A communication port A is set up respectively and between the described source code shared buffer memory unit 3 in each described device drives unit 1.Wherein the external equipment of each described device drives unit 1 connection is mapped with a communication link a respectively in the communication port A of described device drives unit 1.Described communication link a adopt shake hands connect or etc. the connected mode of non-blocking types such as link connected mode to be connected.
And in the present embodiment because each described device drives unit 1 only is connected with an external equipment, so a communication link a is only arranged in the communication port A of each described device drives unit 1, when if described device drives unit 1 is connected with a plurality of external equipment, to have the communication link a with described external equipment equal number among the communication port A of described device drives unit 1, so the mode by described communication port and communication link can be sorted out the equipment that has identical communications protocol in the external equipment, thereby improved the utilance of communication channel, and be convenient to safeguard and design etc. again.
Described each stipulations driver element 2 each described device drives unit 1 of control are gathered the source code data of connected external equipment respectively and are wrapped transmission and store described source code data in described source code shared buffer memory unit 3 by the described communication port A group between each described device drives unit 1 and the described source code shared buffer memory unit 3.And being preset with a sense cycle T in each stipulations driver element 2, each stipulations driver element 2 is controlled the source code data that external equipment is gathered in described device drives unit 1 by the interval of described sense cycle T.
Whether described stipulations driver element 2 also is used for detecting successively the source code data of gathering each device drives unit 1 and changes, if, the described source code data of storage change also add change flag Y to the source code data that change, then the source code data of updated stored after the described source code data of described source code shared buffer memory unit 3 are for the variation that adds change flag Y.
Described retransmission unit 4 is used for source code data with described source code shared buffer memory unit 3 to have the source code data that change mark Y and is forwarded in the upper layer application such as external system.
Described relational database addressed location 5 is respectively applied to read in the source code data that change mark that have in the described source code shared buffer memory unit 3, remove then change flag Y in the described source code data and respectively storage, clearing change described source code data to a relational database D behind the mark Y, oil chromatography database etc. for example, described relational database addressed location 5 also is respectively applied to read data from described relational database D, and the data that read are written in the source code shared buffer memory unit 3.The quantity of wherein said relational database addressed location 5 can be adjusted arbitrarily according to the quantity of database related in the described track circuit.
Comprise 3 memory cell 11 in the shared buffer memory of source code described in the present embodiment unit 3, wherein each memory cell 11 is used for the source code data of an external equipment of storage, when the quantity of described external equipment increased, described source code shared buffer memory unit 3 can remain the memory cell 11 identical with the quantity of described external equipment in addition.
In addition if described source code shared buffer memory unit 3 integral body are a storage medium, at this moment, can be in described source code shared buffer memory unit 3, each external equipment is set up mapping with the part of the memory space of described source code shared buffer memory unit 3 respectively, thereby the mode by the zoning makes the source code data of described external equipment collection be stored in the memory space fixing in the described source code shared buffer memory unit 3, thereby is convenient to search and operation such as storage.
Comprise the steps: in the operation principle of the on-line detecting system of present embodiment
Though more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art can make numerous variations or modification to these execution modes under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.
Claims (13)
1. on-line detecting system that is used for track traffic is characterized in that described on-line detecting system comprises:
A plurality of device drives unit, the source code data that are used for gathering external equipment; Wherein mapping relations are all set up with a source code shared buffer memory unit in each device drives unit, and a communication port is set up respectively and between the described source code shared buffer memory unit in each device drives unit;
The stipulations driver element is used for that the source code data of external equipment are gathered in the described device drives of control unit and by the described communication port group bag transmission between described device drives unit and the described source code shared buffer memory unit and store described source code data in described source code shared buffer memory unit;
Whether described stipulations driver element also changes for the source code data that detect each device drives unit collection successively, if, add change flag in the source code data that change, the described source code data of updated stored in described source code shared buffer memory unit are the source code data that add change flag then;
One retransmission unit has the source code data that change mark for the source code data with described source code shared buffer memory unit and is forwarded in the external system.
2. on-line detecting system as claimed in claim 1, it is characterized in that, described on-line detecting system also comprises one or more relational database addressed locations, be respectively applied to read in having in the described source code shared buffer memory unit and change the source code data of mark, remove described source code data to a relational database after change flag in the described source code data and storage, clearing change mark.
3. on-line detecting system as claimed in claim 2 is characterized in that, described relational database addressed location also is respectively applied to read data from described relational database, and the data that read are written in the source code shared buffer memory unit.
4. as each described on-line detecting system among the claim 1-3, it is characterized in that, each described device drives unit is connected with at least one external equipment, wherein each external equipment is mapped with a communication link respectively in described communication port, described about driver element control respectively the unit collection of described device drives and each communication link have mapping relations external equipment the source code data and be sent to described source code shared buffer memory unit by described communication link group bag;
Wherein said stipulations driver element also detects the variation of the source code data of transmitting in each communication link successively.
5. on-line detecting system as claimed in claim 4 is characterized in that, described communication link adopts the connected mode of non-blocking type.
6. on-line detecting system as claimed in claim 5 is characterized in that, described communication link adopt shake hands connect or etc. link connected mode to be connected.
7. as each described on-line detecting system among the claim 1-3, it is characterized in that, the quantity of described stipulations driver element is a plurality of, wherein be preset with a sense cycle respectively in each stipulations driver element, each stipulations driver element is controlled the source code data that external equipment is gathered in described device drives unit by the interval of described sense cycle.
8. as each described on-line detecting system among the claim 1-3, it is characterized in that described source code shared buffer memory comprises a plurality of memory cell in the unit, wherein each memory cell is used for the source code data of an external equipment of storage.
9. as each described on-line detecting system among the claim 1-3, it is characterized in that each external equipment is set up mapping with the part of the memory space of described source code shared buffer memory unit respectively.
10. an online test method that is used for track traffic is characterized in that, uses as claim 1 described in the on-line detecting system for track traffic, comprising following steps:
S
101, each device drives unit sets up mapping with described source code shared buffer memory unit respectively by communication port;
S
102, the stipulations driver element controls each device drives unit successively and gathers the source code data of external equipment and send and store described source code data in described source code shared buffer memory unit by the described communication port group bag between each described device drives unit and the described source code shared buffer memory unit, and whether the source code data that detect each device drives unit collection successively change, if then enter step S
103, otherwise repeating step S
102
S
103, the described source code data that change of described stipulations driver element storage and in the source code data that change, add change flag, updated stored is the source code data after adding change flag in the described source code data of described shared buffer memory unit then;
S
104, the source code data that have change flag in the source code data of described retransmission unit with described shared buffer memory unit are forwarded in the external system.
11. online test method as claimed in claim 10 is characterized in that, described on-line detecting system also comprises one or more relational database addressed locations, and at step S
103With step S
104Between further comprising the steps of:
Described relational database addressed location reads in the source code data that change mark that have in the described source code shared buffer memory unit respectively, remove described source code data to a relational database after change flag in the described source code data and storage, clearing change mark, perhaps from described relational database, read data, and the data that read are written in the source code shared buffer memory unit.
12. online test method as claimed in claim 11 is characterized in that, the described device drives of each of described on-line detecting system unit is connected with at least one external equipment, at step S
101In further comprising the steps of:
Each external equipment is all set up mapping relations by a communication link and described source code shared buffer memory unit in described communication port.
13. online test method as claimed in claim 12 is characterized in that, is preset with a sense cycle respectively in each stipulations driver element in the described on-line detecting system, and step S
101In further comprising the steps of:
Each stipulations driver element is controlled the source code data that external equipment is gathered in described device drives unit by the interval of described sense cycle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210081099.3A CN103327056B (en) | 2012-03-23 | 2012-03-23 | For on-line detecting system and the detection method thereof of track traffic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210081099.3A CN103327056B (en) | 2012-03-23 | 2012-03-23 | For on-line detecting system and the detection method thereof of track traffic |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103327056A true CN103327056A (en) | 2013-09-25 |
CN103327056B CN103327056B (en) | 2016-04-27 |
Family
ID=49195586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210081099.3A Active CN103327056B (en) | 2012-03-23 | 2012-03-23 | For on-line detecting system and the detection method thereof of track traffic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103327056B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101209714A (en) * | 2006-12-28 | 2008-07-02 | 上海轨道交通设备发展有限公司 | Track traffic synthetic monitoring system and method |
WO2008084984A2 (en) * | 2007-01-09 | 2008-07-17 | Lg Electronics Inc. | Method of controlling data retransmission in a wireless communication system |
CN102118400A (en) * | 2009-12-31 | 2011-07-06 | 北京四维图新科技股份有限公司 | Data acquisition method and system |
-
2012
- 2012-03-23 CN CN201210081099.3A patent/CN103327056B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101209714A (en) * | 2006-12-28 | 2008-07-02 | 上海轨道交通设备发展有限公司 | Track traffic synthetic monitoring system and method |
WO2008084984A2 (en) * | 2007-01-09 | 2008-07-17 | Lg Electronics Inc. | Method of controlling data retransmission in a wireless communication system |
CN102118400A (en) * | 2009-12-31 | 2011-07-06 | 北京四维图新科技股份有限公司 | Data acquisition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103327056B (en) | 2016-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102362481B (en) | Log collection data harvester for use in building automation system | |
CN102175269A (en) | Sensor device capable of changing sampling frequency and control method thereof | |
CN111918230B (en) | Data acquisition method, data transmission method, gateway, equipment and storage medium | |
CN105204429B (en) | A kind of industrial Multi-parameter data remote transmission device | |
CN103197625A (en) | Remote temperature and humidity monitoring system based on cloud storage | |
CN106292518A (en) | Remote PLC monitoring and debugging system and method | |
CN112529497A (en) | Intelligent warehousing system based on OPC UA over TSN under 5G network | |
CN101284621A (en) | Control system for escalator | |
CN103517085B (en) | Method for implementing remote server management based on video decoding design | |
CN104320301A (en) | Intranet special line flow monitoring method and system | |
CN203581465U (en) | Intelligent control system for packaging machine production line | |
CN111913445A (en) | Data acquisition method, data acquisition equipment, storage medium, data transmission method and gateway | |
CN103426283A (en) | Temperature and humidity data transmission system based on wifi communication technology | |
CN105300471A (en) | Bubble liquid level detection device of industrial liquid level control system | |
CN102184637A (en) | Sensor network-based method, device and system for acquiring traffic state | |
CN103353750B (en) | A kind of microwave metallurgical control method based on multibus | |
CN103327056A (en) | Online detection system for rail transit and detection method of online detection system | |
CN203289484U (en) | Equipment operation state monitoring system | |
CN103684945A (en) | General spacewire node device | |
CN206209306U (en) | A kind of multi-client independent bus line device server for carrying redundant signals collection | |
CN202351855U (en) | Upgrading system for IO (Input/Output) expansion board | |
CN101883036A (en) | Method for converting multi-path RS485 bus into CAN (Controller Area Network) bus in the manner of self-adapting | |
CN114374712B (en) | Driving management method, electronic equipment and storage medium | |
CN104678772A (en) | Cultural relic management system and method based on controller | |
CN107563939A (en) | A kind of environment sanitary cleaning vehicle remote control transfers method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |