李利東
摘 要: 針對當(dāng)前考試系統(tǒng)集成性不好、數(shù)據(jù)吞吐和系統(tǒng)響應(yīng)性能較差等問題,提出基于多平臺跨區(qū)域網(wǎng)絡(luò)環(huán)境的考試系統(tǒng)設(shè)計方法。系統(tǒng)采用PCI總線技術(shù)進(jìn)行多平臺環(huán)境下的考試信息傳輸和資源調(diào)度,采用多通道串口技術(shù)進(jìn)行網(wǎng)絡(luò)輸入輸出接口設(shè)計,在跨區(qū)域的網(wǎng)絡(luò)考試進(jìn)程中提供全雙工的通信機(jī)制,在CCS 2.20開發(fā)平臺下實現(xiàn)考試系統(tǒng)的軟件開發(fā)設(shè)計。系統(tǒng)測試結(jié)果表明,該系統(tǒng)能提高考試的信息調(diào)度能力,吞吐量較大,系統(tǒng)的響應(yīng)時間較短,考試系統(tǒng)具有較高的運行可靠性。
關(guān)鍵詞: 多平臺; 跨區(qū)域考試系統(tǒng); 總線技術(shù); 軟件開發(fā)
中圖分類號: TN911?34; TP319 文獻(xiàn)標(biāo)識碼: A 文章編號: 1004?373X(2017)16?0044?03
Abstract: Aiming at the problems of poor integration, poor data throughput and poor response performance of the current test system, an examination system design method based on multi?platform cross regional network environment is proposed in this paper. The PCI bus technology is used system to perform the exam information transmission and resource scheduling in multi?platform environment. The multi?channel serial technology is adopted to design network input and output interfaces to provide full duplex communication mechanism in the process of the cross regional network exam, and realize design and development of the exam system software in CCS 2.20 development platform. The system test results show that the system can improve the information scheduling ability, increase the throughput and shorten the system response time. The exam system has high operating reliability.
Keywords: multi?platform; cross region examination system; bus technology; software development
0 引 言
隨著網(wǎng)絡(luò)信息技術(shù)的發(fā)展,越來越多的課程考試和資格考試通過上機(jī)考試的方式完成,研究多功能集成智能化的考試系統(tǒng),實現(xiàn)跨區(qū)域網(wǎng)絡(luò)聯(lián)機(jī)考試,在提高教學(xué)和考試效率方面具有重要意義。當(dāng)前的考試系統(tǒng)主要是建立在單線程的物聯(lián)網(wǎng)環(huán)境中,隨著考試規(guī)模和系統(tǒng)復(fù)雜度的增強(qiáng),在考試過程中容易出現(xiàn)系統(tǒng)終端和響應(yīng)較慢等問題,且不能滿足PC和移動終端等多平臺的跨區(qū)域考試需求。對此,本文提出基于多平臺的跨區(qū)域考試系統(tǒng)設(shè)計與應(yīng)用方案,研究的考試系統(tǒng)能實現(xiàn)移動終端和PC機(jī)等不同環(huán)境下的考試要求,且能實現(xiàn)大規(guī)模資源的考試題庫調(diào)度和信息傳輸,具有較好的實用價值。
1 系統(tǒng)軟件開發(fā)實現(xiàn)
1.1 考試系統(tǒng)的應(yīng)用程序開發(fā)流程
開發(fā)基于多平臺的跨區(qū)域考試系統(tǒng),使用了Visual DSP++的Simulator構(gòu)建交叉編譯環(huán)境[1],系統(tǒng)軟件在DSP硬件資源上運行,考試系統(tǒng)主要由物聯(lián)網(wǎng)進(jìn)行進(jìn)程管理,定義Blackfin的存儲器確定變量和數(shù)組,用高級語言編寫考試系統(tǒng)的應(yīng)用程序[2],以生成可執(zhí)行文件。在明確了跨區(qū)域考試系統(tǒng)的應(yīng)用軟件的功能和性能要求后,進(jìn)行應(yīng)用程序開發(fā)設(shè)計,開發(fā)流程如圖1所示。
結(jié)合圖1分析本文設(shè)計的基于多平臺的跨區(qū)域考試系統(tǒng)的應(yīng)用程序包括代碼生成、文件結(jié)構(gòu)管理、工程文件生成、系統(tǒng)交叉編譯、考試平臺調(diào)試、網(wǎng)絡(luò)調(diào)試、應(yīng)用程序調(diào)試,轉(zhuǎn)換成目標(biāo)文件,生成可執(zhí)行文件。在Windows 窗口下直接運行主程序,按照代碼開發(fā)流程進(jìn)行軟件設(shè)計,用于C語言開發(fā)考試系統(tǒng)的驅(qū)動程序,使用兩個可選的通信協(xié)議執(zhí)行幀同步控制,完成命令的發(fā)送,轉(zhuǎn)換成合適的數(shù)據(jù)結(jié)構(gòu)格式后,用戶管理層讀取HP E1562E實際完成的數(shù)據(jù)記錄量,在LabWindows/CVI中建立HP E1562E傳輸序列,降低數(shù)據(jù)智能交換的時間[3]。通過節(jié)點脈沖直接控制考試系統(tǒng)的時序邏輯控制器,轉(zhuǎn)換成合適的數(shù)據(jù)結(jié)構(gòu)格式,轉(zhuǎn)換表描述見表1。
1.2 考試系統(tǒng)的題庫資源調(diào)度核心算法
根據(jù)上述描述的考試系統(tǒng)的應(yīng)用程序開發(fā)流程總體設(shè)計規(guī)劃,需要進(jìn)行考試系統(tǒng)的題庫資源調(diào)度設(shè)計,假設(shè)跨區(qū)域考試信息在考試題庫數(shù)據(jù)庫分布的資源信息流模型描述為[y=y1,y2,…,yNT],題庫資源的均衡分布狀態(tài)特征滿足[ηn∈Ωη,n=1,2,…,N,]在考試系統(tǒng)的數(shù)據(jù)采集和收發(fā)中,通過A/D采樣得到考試資源信息流的特征分布向量模型,結(jié)合考試系統(tǒng)的題庫資源調(diào)度算法進(jìn)行偽代碼設(shè)計,得到系統(tǒng)的核心算法編程代碼為:
WHILE grt[i].PhrAsevfgrfe EXgrST{
Word = getvgjyrsffde (Text[i]);
//取出考試系統(tǒng)中的題庫信息endprint