地震前兆观测设备模拟通信软件关键技术研究
详细信息 本馆镜像全文    |  推荐本文 | | 获取馆网全文
摘要
遵循"中国数字地震观测网络技术规程"相关标准,设计了一套基于Java语言的前兆观测设备模拟通信软件。介绍了通信指令原语、数据包格式定义以及模拟通信软件的总体设计,详述了模拟通信软件中的几个关键技术,包括如何同时模拟多个前兆设备,应用观察者设计模式实时更新设备状态信息,使用套接字技术和多线程技术启动或停止模拟设备,通过"心跳"线确认远端Socket是否关闭等。该软件可以模拟大多数"十五"前兆观测设备的通信原语,一方面为台站技术人员以及地震专业学生了解前兆设备的功能、通信指令、以及数据包的数据格式提供了一个模拟环境,有效地提高了教学效果和培训质量,另一方面也为开发前兆设备相关软件提供了模拟支撑环境。
According to"Stipulation on Net Communication for Devices in China Geophysical and Geochemical Observatory Network",a simulative communication system of precursory observation devices based on java programming language is designed.Firstly,the paper introduces the communication primitives,data package format and high-level architecture.Secondly,several key technologies of simulative communication system are argued in detail,such as how to simultaneously simulate multiple precursor equipment,updating devices' status using observer pattern,using socket and multithreading technologies to start/stop simulative device,using"heart"message to judge whether the remote socket is closed or not.The simulative communication system realizes most communication primitives and provides a simulative environment for students to understand the functions,communication primitives and data package format of precursory observation devices,which enhances the teaching effects and training quality,on the other hand it provides a support environment for development of simulation software.
引文
地壳运动监测工程研究中心.2005.中国数字地震观测网络技术规程——地震前兆台网专用设备网络通信[M].北京:地震出版社.
    何案华,赵刚,王军,等.2008.串口前兆仪器的因特网接入方案与配套软件开发[J].地震研究,31(3):279-283.
    卢苇,杨少波.2008.J2EE项目实训——UML及设计模式[M].北京:清华大学出版社.
    倪泰山,阙云彩,李祥,等.2009.基于B/S结构的地震台站综合信息管理系统的设计与实现[J].地震研究,32(1):89-93.
    牛从达,王峰,李倩,等.2005.云南分布式地震观测数据库系统的设计与实现[J].地震研究,28(4):398-402.
    王秀英,周振安,刘爱春.2008.“十五”地震前兆观测设备网络通信规程应用探讨[J].大地测量与地球动力学,28(4):131-135.
    中国地震局.2005.中国地震前兆台网技术规程[M].北京:地震出版社.
    Sun Microsystems.Class Thread[EB/OL].(2003-01-01)[2010-05-22].http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html.
    Sun Microsystems.sendUrgentData[EB/OL].(2003-01-01)[2010-05-22].http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#sendUrgentData(int).

版权所有:© 2023 中国地质图书馆 中国地质调查局地学文献中心