SUMMERY OF THE UTILITY MODEL
In order to solve the problem that current axle temperature alarm can not carry out networking function and detect, the utility model discloses to the various model axle temperature monitoring alarm of present use, designed a passenger train axle newspaper networking test bench based on STM32 through the mode of single chip microcomputer simulation temperature data. The test bed can be simultaneously connected with 20 shaft alarm control displays, the efficiency of detecting and overhauling shaft alarm products is greatly improved, the function of networking communication of a shaft temperature alarm system is realized, the temperature measurement condition and the temperature rise alarm function of the shaft temperature alarm can be intensively observed, the performance of the shaft alarm equipment can be detected on line by the system, and the solid guarantee is provided for the transportation safety of a railway passenger car.
The utility model aims at realizing through the following technical scheme:
the utility model provides a passenger train axle newspaper networking test bench based on STM32, includes host computer, treater 1, treater 2, axle temperature alarm, wherein:
the shaft temperature alarm comprises a controller (MCU) A and a controller (MCU) B;
the upper computer sends the binary system carriage order number, the axle position number and the axle temperature data to the processor 1 through the serial port;
the processor 1 converts binary carriage order number, axle number and axle temperature data into analog temperature values and uploads the analog temperature values to a controller (MCU) A;
the controller (MCU) A transmits the simulation temperature value to the controller (MCU) B;
an ST7540 chip in the controller (MCU) B modulates the analog temperature value, so that the shaft temperature data is changed into a power line carrier signal and is transmitted to a bus of a network;
the processor 2 acquires data in the networking bus through an ST7540 chip in a drive controller (MCU) B, demodulates the data and uploads the data to an upper computer for processing.
Compared with the prior art, the utility model has the advantages of as follows:
1. the utility model discloses a test bench has broken the traditional way that utilizes the sensor to carry out the temperature measurement to the passenger train bearing and then the performance of counter report carries out the detection again, directly through the host computer effective information (carriage in the same direction as the position number, the axle position number, temperature information) utilize RS485 communication protocol to transmit to treater 1, treater 1 is after that through controller (MCU) A in the single bus agreement with information transmission such as temperature of simulation to the counter of axle, controller (MCU) B in the counter of axle realizes axle temperature alarm networking function through driving power carrier chip, treater 2 then to the bus on transmit data and with the data acquisition to the host computer on the bus, thereby through data storage and processing such as the axle temperature to returning, judge whether the axle report is in normal operating condition.
2. The utility model discloses a test bench carries out the communication of networking through the axle temperature alarm equipment with the passenger train, can directly detect passenger train axle temperature alarm system networking communication function, concentrate temperature measurement situation and the temperature rise alarming function who surveys the axle temperature alarm, and can insert 20 axle newspaper control display simultaneously, in the unified transmission to the host computer with the axle temperature data of passenger train, the measurement personnel carries out the analysis through the data to every axle temperature alarm, can judge the wholeness ability of axle temperature alarm, ensure the reliability of every axle temperature alarm, for driving safety provides important guarantee.
Detailed Description
The technical solution of the present invention is further described below with reference to the accompanying drawings, but not limited thereto, and all modifications or equivalent replacements of the technical solution of the present invention are included in the protection scope of the present invention without departing from the spirit and scope of the technical solution of the present invention.
The existing shaft temperature alarm detector in service for train operation is a dual-controller embedded device. As shown in fig. 1, a controller (MCU) a collects temperature data of each axis, and a controller (MCU) B performs data interaction with a power carrier chip ST7540, uploads the data to a power carrier bus, and performs data interaction with other devices.
According to the actual conditions of above-mentioned axle newspaper equipment networking operation, the utility model designs a can report the test bench of each function index under the equipment networking state at the axle, according to (indisputable gross transport [2015]29 number) file requirement, the axle newspaper equipment that the test bench can insert is not more than 20, so the test bench interface number of design is 20. The functions to be realized by the test bed are as follows:
(1) automatically identifying whether the carriage sequence number on the shaft newspaper is a duplicate number;
(2) when one axial alarm device gives an alarm, all the axial alarm devices connected to the network give an alarm and display an alarm device source;
(3) after the alarm equipment is silenced, the alarm equipment still gives an alarm to prompt, but the alarm sound of other alarm equipment is eliminated;
(5) if the two shaft alarm devices alarm at the same time, the networking shaft alarm devices display two alarm sources alternately.
(6) The working time of a recorder of the online journal report device is not less than 30 minutes, data can be downloaded through the memory card, and the data recording interval time is 10 minutes.
According to above function, the utility model discloses the scheme block diagram that the test bench designed is shown in fig. 2, the test bench passes through the host computer and sends binary system carriage in proper order number, axle position number, these data of axle temperature to treater 1 through the serial ports, treater 1 becomes data such as binary system axle temperature simulation temperature value, upload to controller (MCU) A of reporting to the equipment on the axle, along with controller (MCU) A transmits these data to controller (MCU) B, modulate data through the ST7540 chip in the controller (MCU) B, make axle temperature data become the electric power carrier signal and send to on the bus of network deployment; the processor 2 acquires the data in the networking bus by driving the ST7540 chip, demodulates the data, and uploads the data to the upper computer for corresponding processing.
The utility model discloses in, test bench mainboard main circuit has power module, MCU module, data upload module, communication module, wherein:
a power supply module: according to the power supply requirement of the train axle signal, the required power supply of the utility model mainly comprises DC-48V, DC-10V, DC-5V. The DC-48V supplies power for 20 sets of axial telegraph equipment, the DC-10V supplies power for the ST7540 power carrier module, and the DC-5V supplies power for the mainboard. In order to reduce the design volume of the main board and meet the requirement of a locomotive power supply, the power supply of the main board directly adopts a journal system power supply module. In addition, the mainboard singlechip chip DC-3.3V is DC-5V and is obtained by converting the chip 1117-3.3V, and a circuit diagram is shown in figure 3.
A controller (MCU) module: the module comprises an STM32F103R8T6 and an auxiliary circuit thereof, and the processor has rich resources and can execute a plurality of operations in parallel, thereby meeting the design requirement. The utility model discloses in adopt dual-core control system, the dual-core system design that uses alone can not realize with axle temperature alarm direct communication between alarm, the dual-core system design that this module adopted has accomplished the communication between axle temperature alarm and the host computer, by the temperature data of controller (MCU) A direct transmission axle temperature alarm, controller (MCU) B realizes normal communication between the alarm of axle temperature through driving power line carrier chip, realizes axle temperature alarm networking function. The circuit diagram of the MCU module is shown in FIG. 4.
The data uploading module: the data line that communication between treater and the axle temperature alarm needs is up to 180 ways, only leans on single treater can't realize, for saving interface resource and design cost, the utility model discloses a design single controller (MCU) control 74HC138 and the cascaded circuit of SN245, realized 29 ways of IO mouth to uploading of 180 axle position temperature analog data. The specific implementation principle is shown in fig. 5. (a) In the figure, the T/R _ UA end is connected with an IO port in a controller (MCU) A, the controller (MCU) controls A, B, C input state to determine output state, and an output pin is connected with an OE transmission direction selection end of SN245 in the figure (c). (b) In the figure, an OE _ UA end is connected with an IO port in a controller (MCU) A, the MCU controls A, B, C input states to determine output states, and an output pin is connected with an enable end OE of SN245 in the figure (c).
A communication module: the communication model of the test bed is shown in fig. 6, an RS485 communication protocol is adopted by the upper computer and the processor 1, the axial report device and the upper computer are communicated in a power carrier FSK modulation mode, and data interaction forms a loop. The upper computer transmits a control instruction to the processor 1 through an RS485 communication mode, and the processor 1 transmits temperature simulation data to each appointed axial report device according to the specific instruction and a control protocol of the data uploading module; the processor 2 demodulates the analog data signal on the power carrier bus through the ST7540 chip, and the demodulated data is transmitted to the upper computer.
The utility model discloses a singlechip STM32F103R8T6 is selected for use to the test bench and is the main control chip, accomplishes the information interaction between axle temperature alarm and host computer, host computer and the treater through Keil MDK software programming to the realization detects the performance of axle temperature alarm. FIG. 7 is a flow chart of the software design of the test bench. The effective information to be transmitted in the flow chart is three: the train comprises a train order number (1-20), an axle number (1-9) and temperature information (0-125). The type of the shaft report equipment needs to be judged before data is sent, different transmission modes are needed when the shaft report equipment with different types transmits data, and CRC (cyclic redundancy check) is needed to be carried out on the data when the data is sent, so that the integrity of the transmitted data is ensured. The processor 2 is mainly responsible for acquiring data on the bus and transmitting data onto the bus. After the parameters are initialized, if the serial port is judged to be in a receiving state, the received data is stored in a receiving buffer area, if not, CRC (cyclic redundancy check) is needed to be carried out on the data, then the serial port is enabled to transmit, and the data is transmitted to an FSK power carrier bus.
In addition, the test bed uses Visual Studio software to develop upper computer software. The upper computer realizes simple communication and control on the lower computer mainboard through an RS485 communication protocol, stores and processes received data, and completes functions of detecting records, reporting forms, inquiring records, performing statistical analysis on data, printing reports and the like.
Example (b):
the axle temperature alarm device, the processor 1, the processor 2 and the upper computer are connected together to realize the axle alarm networking, and whether the performance of the axle temperature alarm is in a normal state is detected. Since the maximum train consists of no more than 20 passengers, the maximum number of accessible control displays is no more than 20. After the upper computer sends data to the processor, the test bed feeds the data sent by the upper computer back to the upper computer so as to detect whether the shaft newspaper equipment is in a normal working state or not. The return data is as follows (the numbers shown are all 16-ary numbers):
FF FF FD FE 01 86 36 79 15 19 B5 B5 B5 B5 B5 B5 B5 B5 00 FF EE B8 FF FF FF FD FE 02 64 45 36 75 B5 20 B5 B5 B5 B5 B5 B5 B5 00 FF DE B8 EF FF FF FD FE 03 3A 45 30 19 B5 B5 21 B5 B5 B5 B5 B5 B5 00 FF C5 B8 7F FF FF FD FE 04 B9 60 80 58 B5 B5 B5 22 B5 B5 B5 B5 B5 00 FF 04 F0 ED FF FF FD FE 05 E7 41 10 36 B5 B5 B5 B5 23 B5 B5 B5 B5 00 FF DB E8 FF FF FF FD FE 06 E7 37 54 37 60 B5 B5 B5 B5 B5 B5 B5 B5 A0 FF 98 F0 FF
from the above returned data, the following can be obtained:
the shaft temperature of the No. 1 shaft position of the No. 1 carriage is 23 ℃, which shows that the shaft reporting equipment has no alarm and no noise.
The shaft temperature of the No. 2 shaft position of the No. 2 carriage is 32 degrees, which indicates that the shaft reporting equipment has no alarm and no noise.
The shaft temperature of the No. 3 shaft position of the No. 3 carriage is 33 degrees, which indicates that the shaft reporting equipment has no alarm and no noise.
The shaft temperature of the No. 4 shaft position of the No. 4 carriage is 34 degrees, which indicates that the shaft reporting equipment has no alarm and no noise.
The shaft temperature of the No. 5 shaft position of the No. 5 carriage is 35 degrees, which indicates that the shaft reporting equipment has no alarm and no noise.
The shaft temperature of the No. 1 shaft position of the No. 6 carriage is 90 degrees, which indicates that the shaft alarm equipment has alarm and no noise reduction.
The appearance of the data also shows that the 5 shaft temperature alarm devices have normal performance and no abnormal condition occurs.