CN105631965A - Vehicle-mounted WTB message recorder - Google Patents

Vehicle-mounted WTB message recorder Download PDF

Info

Publication number
CN105631965A
CN105631965A CN201410606196.9A CN201410606196A CN105631965A CN 105631965 A CN105631965 A CN 105631965A CN 201410606196 A CN201410606196 A CN 201410606196A CN 105631965 A CN105631965 A CN 105631965A
Authority
CN
China
Prior art keywords
processor
wtb
message accounting
message
decoder
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
Application number
CN201410606196.9A
Other languages
Chinese (zh)
Other versions
CN105631965B (en
Inventor
杜振环
王�锋
陈玉飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Dalian R&D Co Ltd
Original Assignee
CRRC Dalian R&D 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 CRRC Dalian R&D Co Ltd filed Critical CRRC Dalian R&D Co Ltd
Priority to CN201410606196.9A priority Critical patent/CN105631965B/en
Publication of CN105631965A publication Critical patent/CN105631965A/en
Application granted granted Critical
Publication of CN105631965B publication Critical patent/CN105631965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a vehicle-mounted WTB message recorder. The vehicle-mounted WTB message recorder comprises a WTB interface, a WTB decoder, a first processor, a high speed RAM, a voltage measuring circuit, a capacitor circuit, and a power supply circuit; the WTB interface, the WTB decoder, and the first processor are connected successively; the first processor is connected with the high speed RAM; the voltage measuring circuit is connected with the power supply circuit, the first processor, and the capacitor circuit respectively; and the capacitor circuit is connected with the high speed RAM. According to the vehicle-mounted WTB message recorder, when it is detected by the voltage measuring circuit that the voltage of the power supply circuit is lower than a threshold value, read-write message recording is stopped, and the RAM is supplied with electricity so as to avoid message record loss caused by sudden power failure or low voltage, and incomplete message recording caused by message record loss; and in addition, the writing speed of the high speed RAM is high, so that timeliness of write operation of message recording is improved, message recording loss caused by non-timely processing is avoided, and incomplete message recording caused by message recording loss is avoided.

Description

Vehicle-mounted WTB message accounting instrument
Technical field
The present embodiments relate to train level communication technical field, particularly relate to a kind of vehicle-mounted WTB message accounting instrument.
Background technology
Stranded train (WireTrainBus is called for short WTB) bus is the IEC61375 train bus-line specified, is applied to train and heavily joins and automatically organize into groups. When locomotive double heading debugging and coupled running are broken down, it is necessary to check WTB bus message.
Prior art obtains WTB bus message by vehicle-mounted WTB message accounting instrument, the structure chart being illustrated in figure 1 in prior art vehicle-mounted WTB message accounting instrument 15, vehicle-mounted WTB message accounting instrument 15 includes WTB interface 11, WTB decoder 12, processor 13, memorizer 14 and power supply circuits 16, wherein, WTB interface 11 is for being converted to, by the differential signal in WTB bus 10, the level signal that WTB decoder 12 is capable of identify that; WTB decoder 12 is used for resolving level signal, and level signal is converted to message data, and joining day stamp obtains message accounting in message data, then message accounting is write in first in first out (FirstInFirstOut the is called for short FIFO) queue being connected with WTB decoder 12; Processor 13 is for reading the message accounting in fifo queue, and is write by message accounting in memorizer 14, and memorizer 14 is specially Nand-flash memorizer; Power supply circuits 16 are for powering to vehicle-mounted WTB message accounting instrument 15.
In prior art, processor 13 first reads message accounting from fifo queue, again message accounting is write in Nand-flash memorizer, if the unexpected power-off of power supply circuits 16 or voltage reduce suddenly, processor 13 is carrying out the read-write operation of message accounting, to cause that message accounting is lost, the message accounting causing final storage is imperfect; Further, since the writing rate of Nand-flash memorizer is slow, cause processor 13 to message accounting write operation not in time, it is easy to make message accounting lose thus causing that the message accounting of final storage is imperfect.
Summary of the invention
The embodiment of the present invention provides a kind of vehicle-mounted WTB message accounting instrument, to improve the integrity of message accounting.
One aspect of the embodiment of the present invention is to provide a kind of vehicle-mounted WTB message accounting instrument, including:
WTB interface, WTB decoder, first processor, high-speed RAM, voltage detecting circuit, condenser network and power supply circuits; Wherein,
Described WTB interface, described WTB decoder and described first processor are sequentially connected;
Described WTB interface for being converted to the level signal that described WTB decoder is capable of identify that by the differential signal in WTB bus;
Stamp of described message data joining day, for described level signal is resolved to message data, is obtained message accounting by described WTB decoder;
Described first processor is connected with described high-speed RAM, for reading described message accounting from described WTB decoder, and is write by described message accounting in described high-speed RAM;
Described power supply circuits are for powering to described vehicle-mounted WTB message accounting instrument;
Described voltage detecting circuit is connected with described power supply circuits and described first processor respectively, for detecting the voltage of described power supply circuits, when described voltage is lower than threshold value, send the first interrupt signal to described first processor, so that described first processor stops reading and writing described message accounting;
Described condenser network is connected with described high-speed RAM and described voltage detecting circuit respectively, for when described voltage detecting circuit detects the voltage of described power supply circuits lower than threshold value, powering to described high-speed RAM.
Another aspect of the embodiment of the present invention is to provide a kind of vehicle-mounted WTB message accounting method, including:
Differential signal in WTB bus is converted to the level signal that WTB decoder is capable of identify that by WTB interface;
Described level signal is resolved to message data by described WTB decoder, and stamp of described message data joining day is obtained message accounting;
First processor reads described message accounting from described WTB decoder, and is write by described message accounting in high-speed RAM;
Voltage detecting circuit detects the voltage of described power supply circuits, when described voltage is lower than threshold value, sending the first interrupt signal to described first processor, so that described first processor stops reading and writing described message accounting, condenser network powers to described high-speed RAM simultaneously.
The vehicle-mounted WTB message accounting instrument that the embodiment of the present invention provides, the voltage of power supply circuits is detected by voltage detecting circuit, when voltage is lower than threshold value, first processor stops read-write message accounting, simultaneously condenser network has the high-speed RAM of message accounting to power to storage, it is prevented that due to the unexpected power-off of power supply circuits or voltage is low causes message accounting to lose and cause that the message accounting of final storage is imperfect; Additionally, owing to the writing rate of high-speed RAM is more than the writing rate of Nand-flash memorizer, improve first processor and message accounting is carried out the promptness of write operation, it is prevented that cause that the message accounting of final storage is imperfect owing to message accounting process is caused message accounting to lose by first processor not in time.
Accompanying drawing explanation
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 1 provides for background technology;
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 2 provides for the embodiment of the present invention;
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 3 provides for another embodiment of the present invention;
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 4 provides for another embodiment of the present invention;
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 5 provides for another embodiment of the present invention;
The flow chart of the vehicle-mounted WTB message accounting method that Fig. 6 provides for the embodiment of the present invention.
Detailed description of the invention
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 2 provides for the embodiment of the present invention. The embodiment of the present invention is the low and incomplete problem of message accounting for the message accounting storage efficiency of vehicle-mounted WTB message accounting instrument existence in prior art, it is provided that vehicle-mounted WTB message accounting instrument 20 as shown in Figure 2.
As shown in Figure 2, vehicle-mounted WTB message accounting instrument 20 includes: WTB interface 11, WTB decoder 12, first processor 21, high-speed random access memory (Random-AccessMemory is called for short RAM) 23, voltage detecting circuit 25, condenser network 27 and power supply circuits 16; Wherein, described WTB interface 11, described WTB decoder 12 and described first processor 21 are sequentially connected; Described WTB interface 11 for being converted to the level signal that described WTB decoder 12 is capable of identify that by the differential signal in WTB bus 10; Stamp of described message data joining day, for described level signal is resolved to message data, is obtained message accounting by described WTB decoder 12; Described first processor 21 is connected with described high-speed RAM 23, for reading described message accounting from described WTB decoder 12, and is write by described message accounting in described high-speed RAM 23; Described power supply circuits 16 are for powering to described vehicle-mounted WTB message accounting instrument 20; Described voltage detecting circuit 25 is connected with described power supply circuits 16 and described first processor 21 respectively, for detecting the voltage of described power supply circuits 16, when described voltage is lower than threshold value, the first interrupt signal is sent, so that described first processor 21 stops reading and writing described message accounting to described first processor 21; Condenser network 27 is connected with described high-speed RAM 23 and described voltage detecting circuit 25 respectively, for when described voltage detecting circuit 25 detects the voltage of described power supply circuits 16 lower than threshold value, powering to described high-speed RAM 23.
Differential signal in WTB bus 10 is converted to the level signal that described WTB decoder 12 is capable of identify that by described WTB interface 11, level signal is complementary metal oxide semiconductors (CMOS) (ComplementaryMetalOxideSemiconductor, it is called for short CMOS) level signal, this CMOS level signal is specially the WTB signal according to Manchester's code, the WTB signal resolution of Manchester's code is that the 16 system numbers being made up of 0 and 1 are to obtain message data by WTB decoder 12, the message data such as obtained is 01020304, this message data joining day stamp is obtained message accounting by WTB decoder 12, such as before message data 01020304, joining day stamp 2014-09-20-14-30-24:30 forms message accounting 2014-09-20-14-30-24:30, 01, 02, 03, 04.
First processor 21 reads described message accounting from WTB decoder 12, and is write in described high-speed RAM 23 by described message accounting.
Power supply circuits 16 power to vehicle-mounted WTB message accounting instrument 20, voltage detecting circuit 25 adopts hysteresis comparator circuit to detect the voltage of described power supply circuits 16, when described voltage is specially 4.75V lower than threshold value, the first interrupt signal is sent to described first processor 21 and condenser network 27, after first processor 21 receives the first interrupt signal, stop at once reading described message accounting from described WTB decoder 12, and stop writing in described high-speed RAM 23 by described message accounting; Meanwhile, condenser network 27 starts as high-speed RAM 23 continued power after receiving the first interrupt signal, it is prevented that the message accounting in high-speed RAM 23 is lost. The embodiment of the present invention is by the voltage of voltage detecting circuit detection power supply circuits, when voltage is lower than threshold value, first processor stops read-write message accounting, simultaneously condenser network has the high-speed RAM of message accounting to power to storage, it is prevented that due to the unexpected power-off of power supply circuits or voltage is low causes message accounting to lose and cause that the message accounting of final storage is imperfect; Additionally, owing to the writing rate of high-speed RAM is more than the writing rate of Nand-flash memorizer, improve first processor and message accounting is carried out the promptness of write operation, it is prevented that cause that the message accounting of final storage is imperfect owing to message accounting process is caused message accounting to lose by first processor not in time.
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 3 provides for another embodiment of the present invention; As shown in Figure 3, vehicle-mounted WTB message accounting instrument 20 also includes the second processor 22 and solid-state memory 24, described second processor 22 is connected with described high-speed RAM 23 and described solid-state memory 24 respectively, for reading described message accounting from described high-speed RAM 23, and by the described message accounting described solid-state memory of write 24; Described voltage detecting circuit 25 is also connected with described second processor 22, during for detecting that the voltage of described power supply circuits 16 is lower than threshold value, described first interrupt signal is sent, so that described second processor 22 stops reading and writing described message accounting to described second processor 22.
In embodiments of the present invention, first processor 21 and the second processor 22 all adopt the arm processor of low-power consumption and parallel processing message accounting; When voltage detecting circuit 25 detects the voltage of described power supply circuits 16 lower than threshold value, the first interrupt signal is sent to described first processor 21 and described second processor 22, after first processor 21 receives the first interrupt signal, stop at once reading described message accounting from described WTB decoder 12, and stop writing in described high-speed RAM 23 by described message accounting, after second processor 22 receives the first interrupt signal, stop reading described message accounting at once from described high-speed RAM 23, and stop writing in described solid-state memory 24 described message accounting. When the voltage of power supply circuits 16 returns to 4.95V, two processor parallel processing message accountings again, continue the message accounting in high-speed RAM is dumped to solid-state memory, finally complete message accounting is stored in solid-state memory, and this solid-state memory has capacity characteristic big, shock proof.
The embodiment of the present invention reads described message accounting by the second processor from high-speed RAM, and described message accounting is write in described solid-state memory, owing to solid-state memory is bigger than the amount of storage of high-speed RAM, therefore, the amount of storage of message accounting can be improved by solid-state memory.
On the basis of examples detailed above, described first processor 21 is connected with described second processor 22; Described first processor 21 is additionally operable to when the quantity of the message accounting in described high-speed RAM 23 is more than or equal to first threshold, notification signal is sent, so that described second processor 22 reads described message accounting according to described notification signal from described high-speed RAM 23 to described second processor 22; Described second processor 22 writes the log file in described solid-state memory 24 specifically for the described message accounting that will read from described high-speed RAM 23; Described second processor 22 is additionally operable to when the size of described log file is more than or equal to Second Threshold, compresses described log file, sets up new log file in described solid-state memory 24 simultaneously.
When the quantity of the message accounting in described high-speed RAM 23 is more than or equal to first threshold, first processor 21 is by Serial Peripheral Interface (SPI) (SerialPeripheralInterface, it being called for short SPI) bus notifies the second processor 22, second processor 22 reads described message accounting according to notification signal from described high-speed RAM 23, described message accounting is write the log file in described solid-state memory 24, the name of such as log file is called f1, when the size of f1 is specially 50M byte more than or equal to Second Threshold, compress described log file, concrete employing tar program compaction is tar.gz form, the name of the log file after compression is called f1-compression time .tar.gz, in described solid-state memory 24, set up new log file f2 simultaneously.
The embodiment of the present invention is when the quantity of the message accounting in high-speed RAM is more than or equal to first threshold, notification signal is sent to the second processor by first processor, so that the second processor reads message accounting according to notification signal, it is prevented that the second processor reads that message accounting is unsuccessful causes the wasting of resources; By the second processor compressed record file, it is possible to save record space, improve utilization ratio of storage resources.
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 4 provides for another embodiment of the present invention; As shown in Figure 4, vehicle-mounted WTB message accounting instrument 20 also includes RAM moderator 26, described RAM moderator 26 is connected with described first processor 21, described second processor 22 and described high-speed RAM 23 respectively, for controlling described first processor 21 and described second processor 22 access order to described high-speed RAM 23.
When described first processor 21 and described second processor 22 access high-speed RAM 23 simultaneously, RAM moderator 26 gives first processor 21 access priority, and now the second processor 22 carries out bus wait.
The embodiment of the present invention controls first processor and second processor access order to high-speed RAM by RAM moderator, it is possible to avoid the integrity of same message accounting.
The structure chart of the vehicle-mounted WTB message accounting instrument that Fig. 5 provides for another embodiment of the present invention; As it is shown in figure 5, vehicle-mounted WTB message accounting instrument 20 also includes Ethernet interface 29 and recording configuration module 28; Described recording configuration module 28 is connected with described Ethernet interface 29 and described first processor 21 respectively, for by described Ethernet interface 29 download configuration file, described configuration file includes presetting type of message, and send described default type of message to described first processor 21, so that the type of described message accounting that described first processor 21 obtains from described WTB decoder 12 is described default type of message.
Recording configuration module 28 storage has configuration file, it is specifically as follows recording configuration module 28 by too network interface 29 download configuration file, this configuration file includes presetting type of message, this default type of message at least includes data message, controls message, monitors message and error message, default type of message is sent to first processor 21 by recording configuration module 28, and first processor 21 obtains the message accounting corresponding with data message, control message, supervision message or error message according to default type of message from WTB decoder 12.
The default type of message that the embodiment of the present invention is provided according to recording configuration module by first processor, obtains the message accounting identical with presetting type of message from WTB decoder, improves the motility of message accounting.
On the basis of above-described embodiment, described WTB decoder 12 is connected with fifo queue, and described fifo queue is for storing the message accounting that described WTB decoder 12 obtains; Described WTB decoder 12 sends the second interrupt signal to described first processor 21, so that described first processor 21 reads described message accounting according to described second interrupt signal from described fifo queue after being additionally operable to obtain described message accounting.
The message accounting write fifo queue that WTB decoder 12 will obtain, sends the second interrupt signal to first processor 21 simultaneously, and notice first processor 21 reads described message accounting from described fifo queue.
The embodiment of the present invention sends the second interrupt signal by WTB decoder to first processor, to notify that first processor reads described message accounting from fifo queue, avoid first processor and read the unsuccessful wasting of resources caused of message accounting, improve the memory capacity of message accounting simultaneously by fifo queue, high-speed RAM and solid-state memory multi-level storage machine system.
The flow chart of the vehicle-mounted WTB message accounting method that Fig. 6 provides for the embodiment of the present invention. The vehicle-mounted WTB message accounting method that the embodiment of the present invention provides specifically comprises the following steps that
Differential signal in WTB bus is converted to the level signal that WTB decoder is capable of identify that by step S601, WTB interface;
Described level signal is resolved to message data by step S602, described WTB decoder, and stamp of described message data joining day is obtained message accounting;
Step S603, first processor read described message accounting from described WTB decoder, and are write by described message accounting in high-speed RAM;
Step S604, voltage detecting circuit detect the voltage of described power supply circuits, when described voltage is lower than threshold value, sending the first interrupt signal to described first processor, so that described first processor stops reading and writing described message accounting, condenser network powers to described high-speed RAM simultaneously.
In the embodiment that each step of vehicle-mounted WTB message accounting method that the embodiment of the present invention provides is corresponding with Fig. 2, the function of WTB interface, WTB decoder, first processor, voltage detecting circuit and condenser network execution is consistent, namely the vehicle-mounted WTB message accounting instrument that the vehicle-mounted WTB message accounting method that the embodiment of the present invention provides can be provided by above-mentioned Fig. 2 performs, and detailed process repeats no more herein.
The embodiment of the present invention is by the voltage of voltage detecting circuit detection power supply circuits, when voltage is lower than threshold value, first processor stops read-write message accounting, simultaneously condenser network has the high-speed RAM of message accounting to power to storage, it is prevented that due to the unexpected power-off of power supply circuits or voltage is low causes message accounting to lose and cause that the message accounting of final storage is imperfect; Additionally, owing to the writing rate of high-speed RAM is more than the writing rate of Nand-flash memorizer, improve first processor and message accounting is carried out the promptness of write operation, it is prevented that cause that the message accounting of final storage is imperfect owing to message accounting process is caused message accounting to lose by first processor not in time.
On embodiment basis corresponding for Fig. 6, step S603, first processor read described message accounting from described WTB decoder, and after being write by described message accounting in high-speed RAM, also include:
When the quantity of the message accounting in described high-speed RAM is more than or equal to first threshold, described first processor sends notification signal to the second processor, so that described second processor reads described message accounting according to described notification signal from described high-speed RAM;
Described message accounting is write the log file in solid-state memory by described second processor;
When the size of described log file is more than or equal to Second Threshold, described second processor compresses described log file, sets up new log file in described solid-state memory simultaneously.
The vehicle-mounted WTB message accounting instrument that the vehicle-mounted WTB message accounting method that the embodiment of the present invention provides can be provided by above-mentioned Fig. 2 performs, and detailed process repeats no more herein.
The embodiment of the present invention is when the quantity of the message accounting in high-speed RAM is more than or equal to first threshold, notification signal is sent to the second processor by first processor, so that the second processor reads message accounting according to notification signal, it is prevented that the second processor reads that message accounting is unsuccessful causes the wasting of resources; By the second processor compressed record file, it is possible to save record space, improve utilization ratio of storage resources.
On the basis of above-described embodiment, vehicle-mounted WTB message accounting method also includes: when described first processor and described second processor access described high-speed RAM simultaneously, is determined described first processor and described second processor access order to described high-speed RAM by RAM moderator;
When described voltage detecting circuit detects the voltage of described power supply circuits lower than threshold value, send described first interrupt signal to described second processor, so that described second processor stops reading and writing described message accounting;
Recording configuration module sends to described first processor and presets type of message, so that the type of described message accounting that described first processor obtains from described WTB decoder is described default type of message, described default type of message is stored in described recording configuration module from the configuration file that Ethernet interface is downloaded.
The vehicle-mounted WTB message accounting instrument that the vehicle-mounted WTB message accounting method that the embodiment of the present invention provides can be provided by above-mentioned Fig. 3-5 performs, and detailed process repeats no more herein
The embodiment of the present invention controls first processor and second processor access order to high-speed RAM by RAM moderator, it is possible to avoid the integrity of same message accounting; By the default type of message that first processor provides according to recording configuration module, obtain the message accounting identical with presetting type of message from WTB decoder, improve the motility of message accounting.
On embodiment basis corresponding for Fig. 6, described level signal is resolved to message data by step S602, described WTB decoder, after stamp of described message data joining day is obtained message accounting, also includes:
Described message accounting is stored in fifo queue by described WTB decoder;
Described WTB decoder sends the second interrupt signal to described first processor, so that described first processor reads described message accounting according to described second interrupt signal from described fifo queue.
The vehicle-mounted WTB message accounting instrument that the vehicle-mounted WTB message accounting method that the embodiment of the present invention provides can be provided by above-mentioned Fig. 2 performs, and detailed process repeats no more herein.
The embodiment of the present invention sends the second interrupt signal by WTB decoder to first processor, to notify that first processor reads described message accounting from fifo queue, avoid first processor and read the unsuccessful wasting of resources caused of message accounting, improve the memory capacity of message accounting simultaneously by fifo queue, high-speed RAM and solid-state memory multi-level storage machine system.
In sum, the embodiment of the present invention is by the voltage of voltage detecting circuit detection power supply circuits, when voltage is lower than threshold value, first processor stops read-write message accounting, simultaneously condenser network has the high-speed RAM of message accounting to power to storage, it is prevented that due to the unexpected power-off of power supply circuits or voltage is low causes message accounting to lose and cause that the message accounting of final storage is imperfect; Additionally, owing to the writing rate of high-speed RAM is more than the writing rate of Nand-flash memorizer, improve first processor and message accounting is carried out the promptness of write operation, it is prevented that cause that the message accounting of final storage is imperfect owing to message accounting process is caused message accounting to lose by first processor not in time; From high-speed RAM, read described message accounting by the second processor, and described message accounting is write in described solid-state memory, owing to solid-state memory is bigger than the amount of storage of high-speed RAM, therefore, the amount of storage of message accounting can be improved by solid-state memory; When the quantity of the message accounting in high-speed RAM is more than or equal to first threshold, notification signal is sent to the second processor by first processor, so that the second processor reads message accounting according to notification signal, it is prevented that the second processor reads that message accounting is unsuccessful causes the wasting of resources; By the second processor compressed record file, it is possible to save record space, improve utilization ratio of storage resources; First processor and second processor access order to high-speed RAM is controlled, it is possible to avoid the integrity of same message accounting by RAM moderator; By the default type of message that first processor provides according to recording configuration module, obtain the message accounting identical with presetting type of message from WTB decoder, improve the motility of message accounting; The second interrupt signal is sent to first processor by WTB decoder, to notify that first processor reads described message accounting from fifo queue, avoid first processor and read the unsuccessful wasting of resources caused of message accounting, improve the memory capacity of message accounting simultaneously by fifo queue, high-speed RAM and solid-state memory multi-level storage machine system.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, it is possible to realize by another way. Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform. Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE. Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit. Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, it is possible to be stored in a computer read/write memory medium. Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the part steps of method described in each embodiment of the present invention. And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (Read-OnlyMemory, ROM), the various media that can store program code such as random access memory (RandomAccessMemory, RAM), magnetic disc or CD.
Those skilled in the art are it can be understood that arrive, for convenience and simplicity of description, only it is illustrated with the division of above-mentioned each functional module, in practical application, as desired above-mentioned functions distribution can be completed by different functional modules, it is divided into different functional modules, to complete all or part of function described above by the internal structure of device. The specific works process of the device of foregoing description, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit; Although the present invention being described in detail with reference to foregoing embodiments, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein some or all of technical characteristic is carried out equivalent replacement; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a vehicle-mounted WTB message accounting instrument, it is characterised in that including: WTB interface, WTB decoder, first processor, high-speed RAM, voltage detecting circuit, condenser network and power supply circuits; Wherein,
Described WTB interface, described WTB decoder and described first processor are sequentially connected;
Described WTB interface for being converted to the level signal that described WTB decoder is capable of identify that by the differential signal in WTB bus;
Stamp of described message data joining day, for described level signal is resolved to message data, is obtained message accounting by described WTB decoder;
Described first processor is connected with described high-speed RAM, for reading described message accounting from described WTB decoder, and is write by described message accounting in described high-speed RAM;
Described power supply circuits are for powering to described vehicle-mounted WTB message accounting instrument;
Described voltage detecting circuit is connected with described power supply circuits and described first processor respectively, for detecting the voltage of described power supply circuits, when described voltage is lower than threshold value, send the first interrupt signal to described first processor, so that described first processor stops reading and writing described message accounting;
Described condenser network is connected with described high-speed RAM and described voltage detecting circuit respectively, for when described voltage detecting circuit detects the voltage of described power supply circuits lower than threshold value, powering to described high-speed RAM.
2. vehicle-mounted WTB message accounting instrument according to claim 1, it is characterised in that also include: the second processor and solid-state memory; Described second processor is connected with described high-speed RAM and described solid-state memory respectively, for reading described message accounting from described high-speed RAM, and is write by described message accounting in described solid-state memory;
Described voltage detecting circuit is also connected with described second processor, when being used for the voltage detecting described power supply circuits lower than threshold value, sends described first interrupt signal to described second processor, so that described second processor stops reading and writing described message accounting.
3. vehicle-mounted WTB message accounting instrument according to claim 1 and 2, it is characterised in that described first processor is connected with described second processor; Described first processor is additionally operable to when the quantity of the message accounting in described high-speed RAM is more than or equal to first threshold, notification signal is sent, so that described second processor reads described message accounting according to described notification signal from described high-speed RAM to described second processor;
Described second processor writes the log file in described solid-state memory specifically for the described message accounting that will read from described high-speed RAM;
Described second processor is additionally operable to when the size of described log file is more than or equal to Second Threshold, compresses described log file, sets up new log file in described solid-state memory simultaneously.
4. vehicle-mounted WTB message accounting instrument according to claim 3, it is characterised in that also include:
RAM moderator, described RAM moderator is connected with described first processor, described second processor and described high-speed RAM respectively, for controlling described first processor and described second processor access order to described high-speed RAM.
5. vehicle-mounted WTB message accounting instrument according to claim 4, it is characterised in that also include:
Ethernet interface and recording configuration module;
Described recording configuration module is connected with described Ethernet interface and described first processor respectively, for by described Ethernet interface download configuration file, described configuration file includes presetting type of message, and send described default type of message to described first processor, so that the type of described message accounting that described first processor obtains from described WTB decoder is described default type of message.
6. the vehicle-mounted WTB message accounting instrument according to claim 4 or 5, it is characterised in that described WTB decoder is connected with fifo queue, described fifo queue is for storing the message accounting that described WTB decoder obtains;
Described WTB decoder sends the second interrupt signal to described first processor, so that described first processor reads described message accounting according to described second interrupt signal from described fifo queue after being additionally operable to obtain described message accounting.
7. a vehicle-mounted WTB message accounting method, it is characterised in that including:
Differential signal in WTB bus is converted to the level signal that WTB decoder is capable of identify that by WTB interface;
Described level signal is resolved to message data by described WTB decoder, and stamp of described message data joining day is obtained message accounting;
First processor reads described message accounting from described WTB decoder, and is write by described message accounting in high-speed RAM;
Voltage detecting circuit detects the voltage of described power supply circuits, when described voltage is lower than threshold value, sending the first interrupt signal to described first processor, so that described first processor stops reading and writing described message accounting, condenser network powers to described high-speed RAM simultaneously.
8. method according to claim 7, it is characterised in that first processor reads described message accounting from described WTB decoder, and after described message accounting being write in high-speed RAM, also include:
When the quantity of the message accounting in described high-speed RAM is more than or equal to first threshold, described first processor sends notification signal to the second processor, so that described second processor reads described message accounting according to described notification signal from described high-speed RAM;
Described message accounting is write the log file in solid-state memory by described second processor;
When the size of described log file is more than or equal to Second Threshold, described second processor compresses described log file, sets up new log file in described solid-state memory simultaneously.
9. method according to claim 8, it is characterised in that also include:
When described first processor and described second processor access described high-speed RAM simultaneously, determined described first processor and described second processor access order to described high-speed RAM by RAM moderator;
When described voltage detecting circuit detects the voltage of described power supply circuits lower than threshold value, send described first interrupt signal to described second processor, so that described second processor stops reading and writing described message accounting;
Recording configuration module sends to described first processor and presets type of message, so that the type of described message accounting that described first processor obtains from described WTB decoder is described default type of message, described default type of message is stored in described recording configuration module from the configuration file that Ethernet interface is downloaded.
10. the method according to any one of claim 7-9, it is characterised in that described level signal is resolved to message data by described WTB decoder, after stamp of described message data joining day is obtained message accounting, also includes:
Described message accounting is stored in fifo queue by described WTB decoder;
Described WTB decoder sends the second interrupt signal to described first processor, so that described first processor reads described message accounting according to described second interrupt signal from described fifo queue.
CN201410606196.9A 2014-10-30 2014-10-30 Vehicle-mounted WTB message accountings instrument Active CN105631965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410606196.9A CN105631965B (en) 2014-10-30 2014-10-30 Vehicle-mounted WTB message accountings instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410606196.9A CN105631965B (en) 2014-10-30 2014-10-30 Vehicle-mounted WTB message accountings instrument

Publications (2)

Publication Number Publication Date
CN105631965A true CN105631965A (en) 2016-06-01
CN105631965B CN105631965B (en) 2018-03-16

Family

ID=56046845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410606196.9A Active CN105631965B (en) 2014-10-30 2014-10-30 Vehicle-mounted WTB message accountings instrument

Country Status (1)

Country Link
CN (1) CN105631965B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933155A (en) * 2017-04-13 2017-07-07 北京建筑大学 A kind of railcar operation recording device
CN110658743A (en) * 2018-06-29 2020-01-07 中车株洲电力机车研究所有限公司 WTB waveform recorder and recording method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353413A (en) * 1992-03-19 1994-10-04 Aeg Transportation Systems, Inc. Method and apparatus for christening a trainline monitor system
CN1226334A (en) * 1996-06-07 1999-08-18 内部技术公司 Electrically erasable and programmable no-volatile memory protected against power failure
CN1949197A (en) * 2006-11-23 2007-04-18 北京飞天诚信科技有限公司 Portable equipment based on non-volatile memory and method of realizing power failure protection
CN201491038U (en) * 2009-09-11 2010-05-26 中国北车股份有限公司大连电力牵引研发中心 WTB-RS422 gateway equipment
CN101976471A (en) * 2010-09-21 2011-02-16 中国北车股份有限公司大连电力牵引研发中心 MVB data recording unit for locomotives and operating method thereof
CN102231751A (en) * 2011-05-24 2011-11-02 中国北车股份有限公司大连电力牵引研发中心 Wire train bus (WTB) data recorder and working method thereof
CN102325068A (en) * 2011-05-24 2012-01-18 中国北车股份有限公司大连电力牵引研发中心 Portable WTB (Wire Train Bus) data analysis card and working method thereof
CN103631976A (en) * 2013-05-30 2014-03-12 中国科学院电子学研究所 Small multichannel serial data recorder
CN204331848U (en) * 2014-10-30 2015-05-13 北车大连电力牵引研发中心有限公司 Vehicle-mounted WTB message accounting instrument

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353413A (en) * 1992-03-19 1994-10-04 Aeg Transportation Systems, Inc. Method and apparatus for christening a trainline monitor system
CN1226334A (en) * 1996-06-07 1999-08-18 内部技术公司 Electrically erasable and programmable no-volatile memory protected against power failure
CN1949197A (en) * 2006-11-23 2007-04-18 北京飞天诚信科技有限公司 Portable equipment based on non-volatile memory and method of realizing power failure protection
CN201491038U (en) * 2009-09-11 2010-05-26 中国北车股份有限公司大连电力牵引研发中心 WTB-RS422 gateway equipment
CN101976471A (en) * 2010-09-21 2011-02-16 中国北车股份有限公司大连电力牵引研发中心 MVB data recording unit for locomotives and operating method thereof
CN102231751A (en) * 2011-05-24 2011-11-02 中国北车股份有限公司大连电力牵引研发中心 Wire train bus (WTB) data recorder and working method thereof
CN102325068A (en) * 2011-05-24 2012-01-18 中国北车股份有限公司大连电力牵引研发中心 Portable WTB (Wire Train Bus) data analysis card and working method thereof
CN103631976A (en) * 2013-05-30 2014-03-12 中国科学院电子学研究所 Small multichannel serial data recorder
CN204331848U (en) * 2014-10-30 2015-05-13 北车大连电力牵引研发中心有限公司 Vehicle-mounted WTB message accounting instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933155A (en) * 2017-04-13 2017-07-07 北京建筑大学 A kind of railcar operation recording device
CN110658743A (en) * 2018-06-29 2020-01-07 中车株洲电力机车研究所有限公司 WTB waveform recorder and recording method

Also Published As

Publication number Publication date
CN105631965B (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US8650463B2 (en) Solid state drive and method of controlling an error thereof
CN104699413A (en) Data management method, memorizer saving device and memorizer control circuit unit
CN105702300A (en) NAND Flash fault tolerant system based on FPGA (Field Programmable Gate Array)
CN110648696A (en) Power supply apparatus and electronic apparatus including the same
CN102541458A (en) Method for increasing data writing speed of electronic hard disk
CN103955440A (en) Nonvolatile storage equipment and method of carrying out data manipulation therethrough
CN105116975A (en) Computer onboard hard disk and implementation method thereof
CN201828901U (en) Card with memory function
CN105631965A (en) Vehicle-mounted WTB message recorder
CN102915209A (en) Storage control chip, storage equipment and system data writing method
CN204331848U (en) Vehicle-mounted WTB message accounting instrument
CN109521954B (en) Distribution network FTU fixed point file management method and device
CN113535666A (en) Data writing method and device, database system and storage medium
CN101551779B (en) Computer and data storing method
CN102650933A (en) Storage system for network communication recording device of digital substation
CN104933851A (en) Electric meter data collector with infrared upgrade function and upgrade method thereof
CN102129881A (en) Solid-state storage disc device and system suitable for peripheral component interconnect express interface
CN110618891B (en) Solid state disk fault online processing method and solid state disk
CN210776642U (en) Automatic disk splicing device for multiple TF cards
US20140122799A1 (en) Storage device and power saving method thereof
CN105700996A (en) Log output method and apparatus
US10461804B2 (en) Elimination of crosstalk effects in non-volatile storage
CN205028287U (en) Structure based on bulk storage memory is realized to server mainboard
CN218181837U (en) Storage disc and storage device
CN103092730A (en) Information storing and reading 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
CB03 Change of inventor or designer information

Inventor after: Xi Guohua

Inventor after: Du Zhenhuan

Inventor after: Wang Feng

Inventor after: Chen Yufei

Inventor before: Du Zhenhuan

Inventor before: Wang Feng

Inventor before: Chen Yufei

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant