丁 远. 煤矿安全监控系统多线程双数据 缓存数据处理技术[J]. 煤矿安全, 2021, 52(4): 152-155.
    引用本文: 丁 远. 煤矿安全监控系统多线程双数据 缓存数据处理技术[J]. 煤矿安全, 2021, 52(4): 152-155.
    DING Yuan. Multi-thread double data cache data processing technology for coal mine safety monitoring system[J]. Safety in Coal Mines, 2021, 52(4): 152-155.
    Citation: DING Yuan. Multi-thread double data cache data processing technology for coal mine safety monitoring system[J]. Safety in Coal Mines, 2021, 52(4): 152-155.

    煤矿安全监控系统多线程双数据 缓存数据处理技术

    Multi-thread double data cache data processing technology for coal mine safety monitoring system

    • 摘要: 以煤矿监控系统为平台,监控分站为设计对象,设计了带有多线程安全的双数据缓存技术,传感器数据帧进入队列存放后,监控分站对数据帧逐一进行解析处理后,封装成以太网数据包发送给中心站软件,另外考虑避免饥饿或死锁发生,设计的数据缓存技术加入了多线程安全保护。实际应用证明:该数据缓存队列软件架构清晰,占用内存小,易实现,提升了系统数据处理能力,解决了分站对中心站指令、传感器数据处理不及时、丢失等问题。

       

      Abstract: Taking the coal mine monitoring system as the platform and the monitoring substation as the design object, the dual data cache technology with multi-thread safety is designed. After the sensor data frames are stored in the queue, the monitoring substation analyzes and processes the data frames one by one, and then encapsulates them into Ethernet packets, which are sent to the central station, the data cache technology designed in this paper adds multi-thread safety protection. The practical application shows that the data cache queue software architecture is clear, occupies less memory, and is easy to implement. It improves the data processing ability of the substation, and solves the problems such as the delay and loss of substation instructions to the central station and sensor data.

       

    /

    返回文章
    返回