摘要
随着智能电网的普及,低压集中抄表系统已成为主流的电力计量方式,针对目前自动测试平台和待测抄表系统耦合性高、测试平台适应面窄、抄表系统功能升级后兼容性差的问题,利用了半实物仿真的思路,最终开发了一种基于嵌入式控制软件的通用化、自动化测试平台;平台将硬件待测单元与测试平台分离,通过统一的工装协议与客户端软件对接,在保留真实抄表环境下的传输时延和电磁干扰的同时,降低各模块之间的耦合性;通过引入模块化的脚本测试技术,实现测试数据和预期数据的回归对比,扩大了测试用例的覆盖面,提高了测试效率和准确度;另外,平台创新性地使用了组合基本测试块生成新测试脚本的方式,避免了相同测试功能的重复开发,缩短了抄表系统功能升级后,测试平台的开发周期,提高测试平台的普适性;测试结果表明:在同等条件下,对比人工测试,自动化测试平台的准确度提升40%,测试效率提升75%。
With the popularization of smart grid,the low-voltage centralized meter reading system has become the mainstream way of power measurement.Aiming at the problems of high coupling between the automatic test platform and the meter reading system under test,narrow adaptability of the test platform,poor compatibility of meter reading system after the function update,by using the idea of hardware-in-the-loop simulation,a generalized and automated test platform with embedded control software is proposed in this paper.The hardware unit that needs to be tested is separated from the test platform,and connects with the client software by means of a unified tooling protocol,which reduces the coupling between the modules while retaining the transmission delay and electromagnetic interference in the real meter reading scenario.The modular script testing technology is introduced to realize the regression comparison of test data and expected data,enlarges the coverage of test cases,and improves the test efficiency and accuracy.In addition,in order to avoid the repetitive work for the same test function during the system upgrade,the platform generates new test scripts by grouping basic test blocks together.After upgrading the function of meter reading system,this innovation can shorten the development cycle and improve the universality of the test platform.Compared with manual test,the test results show that the accuracy of the platform is improved by 40%,and the test efficiency is improved by 75%.
作者
刘宏伟
LIU Hongwei(Baoji Branch,Shaanxi Transportation Holding Group Co.,Ltd.,Baoji 721013,China)
出处
《计算机测量与控制》
2022年第12期51-57,63,共8页
Computer Measurement &Control
关键词
智能电网
低压集中抄表系统
自动化测试
半实物仿真
测试脚本
smart grid
low voltage centralized reading system
automated testing
hardware in loop simulation
test scripts