APP下载

兼容多种通信方式的智能网关软件设计

2014-07-18桂健蔡声镇谢燕辉

现代电子技术 2014年11期

桂健 蔡声镇 谢燕辉

摘 要: 为解决异构测控网络的以太网接入问题,以ARM9处理器S3C2440A和多个功能模块组成硬件平台,在移植嵌入式操作系统Linux和嵌入式数据库SQLite3的基础上,设计了多线程网关服务程序,实现了兼容无线数传、通用串口、WiFi等通信方式的以太网接入。测试结果表明:该网关具有成本低,兼容性强,使用方便等特点。

关键词: 嵌入式操作系统; 网关; ARM9; Linux; SQLite3

中图分类号: TN911?34; TP27 文献标识码: A 文章编号: 1004?373X(2014)11?0007?04

Abstract: In order to solve the problem of Ethernet access in heterogeneous measurement and control network, by taking ARM9 processor S3C2440A and several functional modules to form the hardware platform, a multithread service program for gateway was designed, and Ethernet access compatible with the multiple communication modes such as WSN, universal serial port and WIFI was realized based on transplantion of the embedded operation system Linux and embedded database SQLite3. The test results show that this gateway has the characteristics of low cost, strong compatibility and convenient application.

Keywords: embedded operation system; gateway; ARM9; Linux; SQLite3

0 引 言

在大型分布式测控或监测(以下简称测控)系统中,通常需要根据工程的实际需求,由若干个局部测控网络(以下简称测控网络)构成,每个测控网络分布区域内的现场终端经网关通过Internet与测控中心服务器通信,实现整个系统的集中监测与控制。其中各个测控网络采用的通信技术,往往需要根据实际工程环境、具体的测控对象和运行成本择优确定,有时甚至需要在一个测控网络中采用多种通信方式才能满足用户需求,因此,兼容多种通信方式的网关成为大型测控系统的关键技术之一。本文结合面向集群应用的可再生能源应用工程(如风力发电场、太阳能路灯、集群应用的太阳能中央热水器等)监测与管理系统的实际需求,设计兼容多种通信方式的嵌入式智能网关,实现现场测控终端延伸网络与接入网络的协议转换以及局域与广域的互联,以适应不同测控环境对网关的兼容性需求。

1 嵌入式网关系统设计

网关是整个测控网络中最大的数据汇聚点,用于实现不同网络之间的无缝融合。……

登录APP查看全文