City rail transit automatic fare collection (AFC) system is a heterogeneous hierarchical system, which integrates both information management and equipment monitoring in applications, where there are massive data interactions and usages. The traditional binary encoding/decoding messages approach of the system brings about too many programming codes that further cause poor readability. The paper studies and applies external data representation ( XDR) technology to realize a encoding/decoding method for interactive data across heterogeneous platforms in AFC system. In addition, taking the equipment control parameter table as example, the paper describes in detail its implementation steps in Java and C programming environments.%城市轨道交通自动售检票(AFC)系统是一个异构分层系统,在应用中集信息管理与设备监控于一体,存有大量的数据交互与使用.针对该系统二进制编、解码消息带来程序代码量大和可读性差的传统做法,研究和应用外部数据描述(XDR)技术实现AFC系统中跨异构平台的交互数据的编、解码方法,并以设备控制参数表为例,详细描述了在Java和C编程环境中的实现步骤.
展开▼