嵌入式数据库是近些年才兴起的一项新的数据库技术,它以目前成熟的数据库技术为基础,针对嵌入式设备的具体特点,实现对移动设备和嵌入式设备上数据的存储、组织和管理。传统的数据库系统一般都是运行在大型的计算机设备上,包括主机系统和各种各样的服务器,随着计算设备的日益小型化,数据库的小型化也日益迫切。与大型计算机设备相比,这些小型的计算设备内存较小,硬盘也较少,因此简单地将原来的大型数据库移植到小型设备上效果并不好,必须依据这些设备的特点专门设计数据库系统。
系统采用Linux操作系统的理由是降低智能手机的生产成本。Linux开发起来最大的特点是从根本上开放源代码,因此能够大大降低成本。Linux操作系统也存有一些缺点。在Linux的平台上进行开发,业界需要更强大的软件。设计能力,安全性、实时性能、电源管理都是Linux智能手机操作的天然缺陷。本项 目采 用奇趣科技专为基于Linux移动设备设计的Qt软件作为应用平台开发基础,Qt软件具备高度可移植性与可裁减性,适应不同的硬件条件和使用需求。本智能手机硬件开发平台选用ARM公司的ARM9高性能嵌入式处理器,最高主频可达624MHz,支持无线多媒体指令集扩展(WirelessMMX )
本论文将重点论述作者所做的工作。主要包括两个方面:第一,服务器端模块设计;第二,客户端模块设计。在客户端设计部分,首先介绍了智能手机中数据库需求,然后介绍了系统库所采用的嵌入式数据库SQLITE,包括SQLITE的数据库操作,数据管理方式,数据存储方式和所使用的系统。随后介绍SQLITE的系统结构,提供的函数接口和DB的环境配置。重点介绍了SQLITE在此项目平台的移植,SQLITE在采集系统中的所实现的各种功能,介绍了和应用程序的交互数据库以及核心数据结构。在服务器模块部分,详细介绍了用户可以操作的各种功能的实现,指出用户图形界面在此模块中的实现,核心部分是介绍此模块所使用的几项关键技术,内部进程通信机制,事件过滤技术,多语言机制,调试机制。最后部分通过测试说明采用SQLITE做为底层数据库,Qta平台作为嵌入式GUI的数据采集系统能够达到功能和性能上的要求。
Embedded Database is a new technology of data management rising in recent years. Based on mature database technology and special embedded device, It implements the data's storage, organization and management on mobile devices and embedded devices.
Traditionally,database systems run on large-scale computer equipment including host computer systems and all kinds of servers. As the computer equipment go smaller and smaller, the database's miniaturization is urgently. Compared with large-scale computers, these small-scale computers, these small-scale computational units are characterized by smack memory and minor hardware even they have no hardware such as hand-held devices and intelligent household electronics. So, it is not feasible to just transplant large-scale database to small-scale devices. We must specially designed
databases ystems to fit for the sedevices' characters.
The reason to use Linux OS is to reduce the cost. The most important character of Linux OS is the source code is opened, so using Linux could reduce the cost greatly. But there are still some defects:It needs more effective software in order to develop on the platform of Linux. In addition to that, the design ability, security,real-time performance and battery management are drawbacks of mobile phone that using Linux.
The application platform is Qt which is especially developed for Linux mobile phones by Trolltech Company. Qt is easy to be migrated and cutted to adapt to various hardware and acquirement. The high-performance CPU is ARM9 which could reach 624MHz and supports Wireless MMX.ARM supports enhanced performance of multimedia with lower clock speed.
The projectis completed by a group,and this dissertation will put emphasis on my atribute to this project. It includes two components: the server module and the client module. In the first component, the requirement is introduced at the beginning, and then SQLITE including its operation, data management, data storage and the required OS is researched, after that, the system architecture and the environment of SQLITE is introduced. The most important parts of this component are the migration to our platform, the functions it has implemented and the key structure of this library. In the second component, the relationship between the SQLITE and the application procedures is introduced,
and then the functions that could be operated by users are researched, after that, the implementation of GUI in this module is presented, and finally, several key mechanisms are introduced, such as the communication between processes, the filter, the multi-language and the debug technology.
5所做的工作主要有:
1、分析无线数据传输业务现状,构建GPRS数据传输平台。研究并分析GPRS无线网络的实现原理及组网方式。
2、分析移动终端的功能要求,构建移动终端硬件平台。研究分析嵌入式系统的发展现状,设计开发了集成嵌入式ARM处理器、LCD触摸显示屏、CF卡以及GPRS移动通信模块的嵌入式移动信息查询系统。
3、分析终端的软件功能,进行软件设计。研究嵌入式操作系统及其应用软件的特点,设计了以uClinux为操作系统的终端软件应用系统。系统的应用程序开发主要包括PPP脚本拨号、socket网络编程、ucgui用户图形界面、sqlite嵌入式数据库。
4、分析系统在水利工程方面应用的特点,设计服务器端应用程序,与移动终端进行联调,组建移动水利信息查询系统。系统成功实现了信息查询功能,同时具有比较完善的用户图形界面。
目前,计算机监控系统在各个领域获得了广泛的应用。在工业领域,随着现代工业生产向大型、复杂、连续和综合化方向发展,对监测控制的姿求越来越高。在远程环境在线监控领域,目前我国己经投入使用的监控系统在长期使用的稳定性、健壮性、可扩展性、快速接入能力和使用费用等方面存在较大缺陷,急需进一步改进。