摘要
针对传统C/S模式存在的不足,结合粮情测控系统的实际应用,提出了一种基于AJAX(asynchronous JavaScript and XML)技术和B/S模型的远程测控终端的设计方案;同时,开发了基于CGI,Boa和SQLite的WebServer应用程序并移植到嵌入式平台中,设计了一种高效的嵌入式Web信息交互系统。此系统在与客户端首次连接时向客户端发送JavaScript脚本,从而在客户端建立AJAX引擎,调用文本目标模型(DOM)的API实现网页的局部快速刷新,提高了粮情测控系统中嵌入式Web服务器的响应效率,有效地解决了异构系统之间信息共享的难题。
Aiming at the shortage of traditional C/S model,combining with practical application of grain monitoring and control system,a remote monitoring solutions based on AJAX(asynchronous JavaScript and XML) and B/S patterns was proposed,a Web Server application based on CGI,Boa and SQLite was developed and ported to embedded platform,a highly efficient embedded Web interactive system was designed to improve the application functions and response speed of the Web server,in the system,the JavaScript code is sent to the client at the first connection to set up the AJAX engine to obtain the asynchronous message from the server through the callback function and completes local fast refreshing of the Web page by calling the application programming interface(API) of the document object model(DOM).It solves the problem of sharing information between heterogeneous systems effectively.
出处
《农机化研究》
北大核心
2011年第7期181-185,共5页
Journal of Agricultural Mechanization Research
基金
国家"十一五"科技支撑计划项目(2008BADA8B04)