王靜怡



摘要:目前部分高校使用指紋點名系統、人臉識別系統這類成本較高的考勤系統,設備多且操作煩瑣。該套軟件的主要功能是將學生端先通過Wi-Fi Direct與教師端連接起來,然后將學生信息發送給教師端完成簽到。學生端與教師端通信通過Socket套接字進行,定位方式使用百度定位SDK(軟件開發工具包)服務,將SQLite數據庫中的學生表的操作封裝成一個模塊傳給教師端使用。同時增加多重校驗功能,填寫每位同學的位置信息、填寫每部手機的MAC地址,使每部手機只允許一名同學參與點名。該套軟件實現了課堂點名的主要功能,并能提高課堂點名的效率與可靠性。
關鍵詞:課堂點名;Android;Wi-Fi Direct;百度定位;SQLite數據庫
中圖分類號:TP311? ? ? 文獻標識碼:A
文章編號: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 背景
在安卓智能手機的逐漸普及和移動通信技術的日漸成熟下,手機點名軟件能夠很好地解決目前高校學生考勤的漏洞并提高考勤效率[1]。本系統的創新點在于依靠Wi-Fi Direct通信技術來實現學生端和教師端的連接,將百度GPS定位加入應用中來判斷學生端點名時是否在教室內,通過填寫每位同學的位置信息和每部手機的MAC地址,增加多重校驗功能避免代替簽到現象的發生。采用SQLite數據庫管理模塊能保證數據不會輕易丟失,方便教師及時查看學生出勤情況。手機點名軟件是課堂考勤方法的一次創新嘗試,對高校信息化建設的實施具有重要意義。
2 相關技術簡介
2.1 Wi-Fi Direct技術
Wi-Fi Direct標準是指允許無線網絡中的設備無須通過無線路由器即可相互連接。Wi-Fi Direct設備是支持對等連接的設備,這種設備既支持基礎設施網絡,也支持P2P連接[2]。Wi-Fi Direct可以支持一對一直連,也可以實現多臺設備同時連接,并且不同標準的Wi-Fi設備之間也可以直接互聯[3]。
Wi-Fi Direct設備的特點包括以下幾點[4]:
1)移動性與便攜性:Wi-Fi Direct設備不需要Wi-Fi 路由器或接入點,能夠隨時隨地實現互相連接。
2)易用性:Wi-Fi Direct設備發現(Device Discovery)與服務發現(Service Discovery)功能幫助用戶確定可用的設備與服務,然后建立連接。
3)簡單而安全的連接:Wi-Fi Direct設備采用Wi-Fi Protected Setup?,故而簡化了在設備之間創建安全連接的過程。用戶可以按下任一設備上的按鈕,也可以輸入PIN碼(即設備所顯示的PIN碼),輕松創建安全連接。
2.2 百度地圖Android定位SDK