煤矿井下总线设备低带宽差分升级技术研究OA
Research on low-bandwidth differential upgrade technology for underground coal mine bus devices
针对煤矿井下总线设备传统离线升级方法存在的停机时间长、人工依赖度高及效率低等问题,提出了一种煤矿井下总线设备低带宽差分升级方法.该方法基于差分压缩算法与分站协同控制,通过优化差分包生成机制与多级校验策略,实现了多设备并发高效升级.升级框架采用了bsdiff差分算法与LZMA(Lempel-Ziv-Markov chain-Algorithm,LZMA)压缩算法协同工作机制,上位机配置软件通过识别设备版本与类型信息,从程序库匹配新旧版本源码,利用bsdiff算法提取差异信息(相同、偏移及新增代码段),生成初始差分包后经LZMA压缩算法二次压缩,形成轻量化升级包,添加头部信息后生成最终的差分升级包.设计了多设备协同升级架构,分站为各总线设备分配独立存储空间,并通过数据混合传输架构和资源调度优化模型实现了升级数据与常规通信数据的动态带宽分配和优先级调度.总线设备接收数据后,将升级包暂存至APP2 存储区,基于头部元数据执行循环冗余校验(Cyclic Redundancy Check,CRC)与消息摘要算法 5(Message-Digest Algorithm 5,MD5)双重校验,验证通过后启动解压流程,并利用bsdiff算法结合APP1 区现存程序重构新版本至APP3 区.Bootloader通过内存拷贝将升级程序迁移至APP1 主运行区,二次执行MD5 校验确保数据一致性后完成版本切换.试验结果表明,升级方法支持RS485、CAN等多种总线环境下的并发升级,单设备升级耗时较传统方法减少 65%以上,差分包体积压缩率超 68.2%,显著提升了煤矿井下总线设备升级的效率与可靠性.
To address issues such as prolonged downtime,high reliance on manual intervention,and low efficiency associated with traditional offline upgrade methods for underground coal mine bus devices,a low-bandwidth differential upgrade method for coal mine bus devices is proposed.This method,based on differential compression algorithms and substation collaborative control,optim-izes differential package generation mechanisms and multi-level verification strategies to achieve efficient concurrent upgrades across multiple devices.The upgrade framework adopts a collaborative working mechanism combining the bsdiff differential al-gorithm and the Lempel-Ziv-Markov chain-Algorithm(LZMA).The host configuration software identifies device version and type information,matches old and new version source codes from the program library,uses the bsdiff algorithm to extract differential in-formation(identical,offset,and new code segments),and generates an initial differential package.This package is then secondarily compressed via the LZMA compression algorithm to form a lightweight upgrade package,which,after adding header information,becomes the final differential upgrade package.A multi-device collaborative upgrade architecture is designed,in which the substa-tion allocates independent storage space for each bus device.Through a data hybrid transmission architecture and a resource schedul-ing optimization model,dynamic bandwidth allocation and priority scheduling between upgrade data and regular communication data are achieved.Upon receiving data,the bus device temporarily stores the upgrade package in the APP2 storage area.Based on the header metadata,dual verification is performed using the cyclic redundancy check(CRC)and message-digest algorithm 5(MD5).After successful verification,the decompression process is initiated,and the bsdiff algorithm is used to reconstruct the new version in the APP3 area by combining it with the existing program in the APP1 area.The Bootloader migrates the upgrade program to the APP1 main execution area via memory copy.After a second MD5 verification ensures data consistency,the version switch is com-pleted.Experimental results show that the upgrade method supports concurrent upgrades across various bus environments such as RS485 and CAN.Compared with traditional methods,the upgrade time for a single device is reduced by over 65%,and the differen-tial package compression rate exceeds 68.2%,significantly enhancing the efficiency and reliability of underground coal mine bus device upgrades.
胡宇
中煤科工集团重庆研究院有限公司,重庆 400039||煤矿灾害防控全国重点实验室,重庆 400037
矿业与冶金
总线设备差分升级低带宽数据混合传输动态优先级调度
bus devicesdifferential upgradelow-bandwidthhybrid data transmissiondynamic priority scheduling
《煤矿安全》 2026 (3)
237-243,7
天地科技股份有限公司重点资助项目(2024-TD-ZD013-05)中煤科工集团重庆研究院有限公司自立重点资助项目(2025ZDYF02)
评论