王靜怡
摘要:目前部分高校使用指紋點(diǎn)名系統(tǒng)、人臉識(shí)別系統(tǒng)這類成本較高的考勤系統(tǒng),設(shè)備多且操作煩瑣。該套軟件的主要功能是將學(xué)生端先通過Wi-Fi Direct與教師端連接起來,然后將學(xué)生信息發(fā)送給教師端完成簽到。學(xué)生端與教師端通信通過Socket套接字進(jìn)行,定位方式使用百度定位SDK(軟件開發(fā)工具包)服務(wù),將SQLite數(shù)據(jù)庫中的學(xué)生表的操作封裝成一個(gè)模塊傳給教師端使用。同時(shí)增加多重校驗(yàn)功能,填寫每位同學(xué)的位置信息、填寫每部手機(jī)的MAC地址,使每部手機(jī)只允許一名同學(xué)參與點(diǎn)名。該套軟件實(shí)現(xiàn)了課堂點(diǎn)名的主要功能,并能提高課堂點(diǎn)名的效率與可靠性。
關(guān)鍵詞:課堂點(diǎn)名;Android;Wi-Fi Direct;百度定位;SQLite數(shù)據(jù)庫
中圖分類號(hào):TP311? ? ? 文獻(xiàn)標(biāo)識(shí)碼:A
文章編號(hào):1009-3044(2021)27-0023-05
Abstract: Currently, some colleges and universities use fingerprint attendance systems and face recognition systems which are expensive, and these ways need more equipment and complicated operation. This application aims to achieve the function of students roll call in a class by connecting students smartphones with teachers using Wi-Fi Direct. Then, students send the information which contains the students ID and name to teachers smartphone for roll call. The method of communication between the students smartphone and teachers implemented by Socket. And the location service is implemented using BDLocation SDK (Software Development Kit). Finally, this app packs the student table in the SQLite database into a module and sends it to the teachers smartphone. At the same time, this app supports multiple checking methods, such as filling in each student's location information and requesting the MAC address of each students smartphone, so that each phone only allows one student to participate in the roll call. This app implements the main functions of class roll call and improves the efficiency and reliability of roll call in the class.
Key words: Roll Call; Android; Wi-Fi Direct; Baidu Location; SQLite Database
1 背景
在安卓智能手機(jī)的逐漸普及和移動(dòng)通信技術(shù)的日漸成熟下,手機(jī)點(diǎn)名軟件能夠很好地解決目前高校學(xué)生考勤的漏洞并提高考勤效率[1]。本系統(tǒng)的創(chuàng)新點(diǎn)在于依靠Wi-Fi Direct通信技術(shù)來實(shí)現(xiàn)學(xué)生端和教師端的連接,將百度GPS定位加入應(yīng)用中來判斷學(xué)生端點(diǎn)名時(shí)是否在教室內(nèi),通過填寫每位同學(xué)的位置信息和每部手機(jī)的MAC地址,增加多重校驗(yàn)功能避免代替簽到現(xiàn)象的發(fā)生。采用SQLite數(shù)據(jù)庫管理模塊能保證數(shù)據(jù)不會(huì)輕易丟失,方便教師及時(shí)查看學(xué)生出勤情況。手機(jī)點(diǎn)名軟件是課堂考勤方法的一次創(chuàng)新嘗試,對(duì)高校信息化建設(shè)的實(shí)施具有重要意義。
2 相關(guān)技術(shù)簡(jiǎn)介
2.1 Wi-Fi Direct技術(shù)
Wi-Fi Direct標(biāo)準(zhǔn)是指允許無線網(wǎng)絡(luò)中的設(shè)備無須通過無線路由器即可相互連接。Wi-Fi Direct設(shè)備是支持對(duì)等連接的設(shè)備,這種設(shè)備既支持基礎(chǔ)設(shè)施網(wǎng)絡(luò),也支持P2P連接[2]。Wi-Fi Direct可以支持一對(duì)一直連,也可以實(shí)現(xiàn)多臺(tái)設(shè)備同時(shí)連接,并且不同標(biāo)準(zhǔn)的Wi-Fi設(shè)備之間也可以直接互聯(lián)[3]。
Wi-Fi Direct設(shè)備的特點(diǎn)包括以下幾點(diǎn)[4]:
1)移動(dòng)性與便攜性:Wi-Fi Direct設(shè)備不需要Wi-Fi 路由器或接入點(diǎn),能夠隨時(shí)隨地實(shí)現(xiàn)互相連接。
2)易用性:Wi-Fi Direct設(shè)備發(fā)現(xiàn)(Device Discovery)與服務(wù)發(fā)現(xiàn)(Service Discovery)功能幫助用戶確定可用的設(shè)備與服務(wù),然后建立連接。
3)簡(jiǎn)單而安全的連接:Wi-Fi Direct設(shè)備采用Wi-Fi Protected Setup?,故而簡(jiǎn)化了在設(shè)備之間創(chuàng)建安全連接的過程。用戶可以按下任一設(shè)備上的按鈕,也可以輸入PIN碼(即設(shè)備所顯示的PIN碼),輕松創(chuàng)建安全連接。
2.2 百度地圖Android定位SDK