基于Echarts的地铁屏蔽门数据监控系统的实现
2018-09-29杨娇陈强王加宾梁鉴如周玲
杨娇 陈强 王加宾 梁鉴如 周玲
摘 要:针对地铁屏蔽门状态监控问题,以上海申通地铁2号线屏蔽门控制系统为研究对象,设计了基于Echarts的可视化地铁屏蔽门数据体系监控系统。整个系统分为8个子模块,实时显示、状态量显示、模拟量时序图、预警、历史报警、历史记录、设置、回放。实时显示模块,通过继电器传回的状态值,动态模拟地铁屏蔽门的开关状态,在状态量显示模块和模拟量时序图模块,采用了Echarts可视化技术,分别通过时序图和折线图的形式展示,开门继电器和门锁闭继电器的状态信息和电压电流值,通过滑动条查询不同时间段对应的信息,通过折线图的波动情况可以知道屏蔽门的运行状态,达到实时更新,实时监控的作用。并将回传的信息保存在数据库中,方便以后查询。
关键词:Echarts; Ajax; 可视化; JSON; 监控; MySQL; STM32F103
Abstract: Aiming at the status monitoring of metro shield door, a visual monitoring system of metro shield door data system based on Echarts is designed based on the control system of Shanghai Shentong Metro Line 2 shield door. The whole system is divided into 8 submodules, which are real-time display, state display, analog sequence diagram, early warning, historical alarm, history record, setting and playback. The real-time display module dynamically simulates the switching state of the shield door through relays. In the state display module and the analog sequence diagram module, the Echarts visualization technology is adopted, respectively through the sequential diagram and broken line diagram form. The status information, voltage and current value of the subway platform door open relay and door lock relay are displayed, and the corresponding information of different time period is inquired through sliding bar. Through the fluctuation of the broken line diagram, the running state of the shield door can be known, and the function of real-time updating and real-time monitoring can be achieved. The returned information is saved in the database for convenient inquiry later. After the implementation of the system, the system is deployed.
Key words: Echarts; Ajax; visualization; JSON; monitoring; MySQL; STM32F103
引言
随着城市轨道交通的快速发展,城市地铁的数量和线路都在不断增加,轨道交通的安全问题也变得尤为重要,这就要求能够实现对于地铁屏蔽门数据的实时监控,防止问题的出现[1]。上海地铁2号线作为市区轨道交通的骨干线路之一,由于信号与屏蔽门联动功能的使用,屏蔽门的故障次数也在不断增加。例如:车门与屏蔽门开关不联动,屏蔽门意外打开或者没有跟随车门的打开而改变状态,车门延时打开等问题。面对控制屏蔽门工作状态的继电器传回到后台众多的数据,地铁站的运维人员很难从一堆数据中找到有用的信息,判断故障所在的地方,此时图形显示和动态模拟门的状态就体现出了優势[2]。……
