Design and Implementation of Indicator Testing System for Cab Integrated Radio Communication Equipment Based on STM32
摘要
The Cab Integrated Radio Communication Equipment (CIR) is a core on-board wireless dispatch device relying on the Global System for Mobile Communications-Railway (GSM-R) network, which undertakes critical functions such as train dispatch voice communication, train number information transmission, dispatch command reception, and tail wind pressure monitoring. Abnormalities in CIR’s power indicators (e.g., voltage fluctuations, under-voltage/over-voltage) or internal communication failures (e.g., frame loss, signal attenuation) may lead to catastrophic consequences, including interrupted voice communication, missed scheduling commands, and even threats to train operation safety. To address the limitations of traditional manual testing methods (e.g., low efficiency, poor real-time performance, millivolt-level error), this study proposes a CIR indicator testing system with STM32 as the core processor. First, the system analyzes the power supply interface (nominal output: 13.5 V, 12 V, 5 V) and internal communication protocol (compliant with TB/T 3528-2019) of CIR. The hardware layer uses the STM32F103C8T6 microcontroller to collect multi-channel power voltage via a 12-bit Analog-to-Digital Converter (ADC), with a sampling accuracy of 0.806 mV (derived from 3.3 V reference voltage and 212 quantization levels). The collected data is uploaded to the upper computer via RS485 serial communication (baud rate: 115200 bps, CRC16 check). The upper computer, developed based on Visual Studio 2010 (C# WinForms), realizes functions such as real-time graphical display of voltage curves (via ZedGraph control), communication frame parsing, test report generation (PDF format), and user permission management. Field verification shows that the system achieves continuous synchronous collection of 6 power channels, reduces single-device testing time from 30 min (traditional method) to 5 min, and improves fault detection rate by 50% (detecting hidden power module faults missed by manual testing). It effectively reduces operational workload and provides technical support for preventive maintenance of CIR equipment.