为了辅助xDSL Modem开发人员做好固件程序的测试工作,提出了一个通用的二进制数据流翻译方案。它能够根据某个协议标准将Modem产生的二进制数据流转换成人们容易理解的形式,从而帮助开发人员快速判定Modem中的固件程序是否符合那个协议标准。同时,为了保证翻译程序不受协议版本变动的影响,将协议标准的内容以协议规则的形式存于外部文件。不同于现有的描述方式,提出了一个灵活且完备的协议规则描述方式,指出了协议规则应具备的10个属性。最后,实现了一个原型系统,并以国际通信联盟标准事业部的G.994.1协议标准为例验证了该翻译方案的有效性。
To facilitate testing of firmware of xDSL Modem for developers, a generalized translation approach of binary data flow is proposed. This approach can translate binary data flow generated by Modem into easy understanding format according to some protocol standard, so that the developers can quickly determine whether or not that firmware complies with these standards. Meanwhile, for assuring that translation program is not influenced by the version changes of proto-col standard, the content of protocol standard is stored at an external file in protocol rule format. Distinguishing with the existing method, a flexible and completed description method of protocol rules is designed. Finally, a prototype is imple-mented and G.994.1 protocol standard is used as an example to validate the effectiveness of the approach.