�������������� �� ��������� ������ ������� ����� �
Class Attendance System with Real-time Report via WLAN (CATs)������ ������, ����� ������, �����ก�� ����������, ����� ���ก��, ���� � !��"�*
$���%&�'���ก�������!(�)�*���+����� (IWING) ��(������2�ก���(�����!����
(34��2�ก���2����� �$������ ��!ก���2�����
[email protected], [email protected], {aphirak.j, chaiporn.j, anan.p*}@ku.ac.th
�7�89�� ก������������ ������������������ก������������������ ���� ������!"#$����ก�� %����$�&�'��� ��"��ก��() *%��+!�ก��!���) ���� ������'�� ���",���ก-$ก������������ ��������'�� �������#$������%��*%������ $�&��&�'�-��"���ก��*�$�-,!,ก���.��ก���&-�� ก�������%&'ก-!ก��'����.�ก�.�� ���,��-�-*�ก/�ก0�!�$ก���&.�,ก������������#$���%��#'%��'�"�' ก����1�����ก����������!������������������ก����ก!��,��-�-*�ก/�ก0����������� $�&�&-2�ก����1��������ก����1����� ������&�'�3%���ก,���ก%��!���) ���� ���,������ก����1������ก� ก����"'&. .ก�������������,���&.�'�ก �&' ��ก����"ก�/� �"ก��'���������*%."�3��. $��� ��&-!��#$����ก��4�5��"����1�����-�-*�."����� .����&.�!�-� %�������%��#�����6$�,�����)��7#�$� �4���'��ก��8���$��ก.%�& 6$��"���%��*%�ก��,���� ��'�� ,����#$������-�&(���'��."#'%'�ก�������'*%�������%�� ����"������9��ก�ก����1�������ก� 6$�*�&!���!�ก:�4�("��1����� ��������'�� ����$����'�.ก���������� %��"�������������%��#$���%���&$��1&����&.�!�-� �"��#$� %�ก��,����,���&-�����'�ก������ก���������$�.1ก�.",��%'�ก&%��; ����#$� .ก�������������%�4�,!*%���!���)�."-�-* ������,�����"�� �����"�������'�� ��#���"�3ก*),��ก��ก�����'��''� ��$�.1ก-,��%#$�
Abstract Attending a class is one of efficient studying methods. Besides gaining the knowledge and experiences from an instructor, student is guided to learning concept and how to continuously learn by themselves. A student in a university has freedom to choose interesting courses, manage time schedule, or join various activities. Many students may be distracted from activities or mismanaged themselves from attending classes. The checking for class attendance is a mechanism to convince students to come to class. However, traditional class attendance system by using signup sheet becomes a time consuming task for an instructor. The traditional system is also cannot protect students to sign up for their classmates. In this research, the
Class Attendance System (CATs) has been developed to solve these problems by using RFID technology. CATs can protect students to sign up for others by taking a snapshot. With the web-based system, the management task becomes easy for the instructor and the students can check their status online in real-time. The system has been implemented for various class sizes with both instructors and students satisfaction. The system can also be applied for various conferences or training courses.
�; �; �8< Class Attendance System, RFID, CATs, WLAN
1. �7�; ก��2Tก���U"��"��)+��(���V�ก�����!�U���(�������V�ก��
���'���$����!�U������W!*����!)X��U"����ก��!����X ���(��!%Yก�����U"�V��$����!�U�!*����!)X�$�� 4�����W!�U��������!��+���������!)"��+����X��
�ก��2Tก�����%�''�����Z�()�ก��!*����X!�U� [T"��V��$���� !�U����������4�U"�������'ก��W�����(������ %�4�'ก��3� ��������ก������� � 4���Uก��!�U���� ���X��X�����4�'%�4W�2Tก��WT��4�'�����2Tก����% �� �ก!�U���ก(����!*����X!�U�[T"�\�%ก��� ����������\��!�U��U"�U �ก�34(�'(��ก��!*����ก� 4!%Yก��!�U��''!�]�!� � ���!�)"�!��"�!*��2Tก����4�'���2Tก�� ���!�U��4+���'����4��ก*TX�!�)"��*��ก����ก��ก��!�U����*���!�� �����W! )�ก��������U"!$��4��ก�'�!��+� �U����4��ก*TX���ก��������� 4!*������ก��ก������� ^ �����W! )�ก�U"�42Tก��(�(�������!����ก����ก��X!�U�+������+���U
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
81
*���V�ก� ��"�!$ ��UX���� ก�4�'\�������ก��!*��!�U�*������ �ก2Tก��
(3����������$_��U(���!$]���ก��!*����X!�U��������"V�!���!%Y��"��V�(�_(�'(��+%ก�'ก��2Tก������!��*�����!�U� ���X�����ก��$T"��ก!$)���กก���V�(���!*����ก�'�����ก2Tก��WT�(����V�(�_*��ก��!*����X!�U�ก]()�ก��������'!� �ก����!�U� '���W�'�กV�$�$������ก2Tก������!*��!�U�!ก�ก��� 80% �T��4�U������ก��!*����'
2. 7@A �������B�C���DE<F \�%ก��ก��������'ก��!*��!�U� �V�\�ก��*��)"� �
ก�3U�U"��X!�U�*�! ]ก $�)�ก��![]�)"����X!�U�*��$_�
ก��![]�)"�!*��!�U� !%Y���Uก���U"�4�ก� 4+��!�U�!� ��ก��!�U� !)"����ก�����W!�U�![]�)"�+� ���ก]���ก���$�!ก�%c_$�ก��![]�)"���ก� �ก��ก�X����������V�ก��%�4�� � ก����!�U�*��������ก�'![]�)"� W��!%Yก��![]�)"���ก�'![]�)"��U"�U����)"�!��U��+��ก��ก]�4!%Yก��%�4$��!� �+���4�'$T"� ���W��!%Yก��![]�)"�\�+��!��U������)"� ���$���T������$����!*��!�U�![]�)"��ก�4��!% �� ก��%�4�� � �T�!%Y!�)"��������ก� 4���!� ���ก � 4�%���\����ก�'%����3���!*��!�U� �ก��กUX���������������(��%�4ก�2�$����!�U����'����W�4ก����!�U�*���!��[T"����ก�4�'WT�*�X$�������ก��!*����'
3. � �7@�ก@����� �ก�������!�����3���� �U�4''�U"�V�ก��'��Tก!� �\�
ก����� RFID ����$ �ก$ �� ����$_�!%Yก�����!*��ก�'�4''(�'(��ก��!*����ก !��!(�)"��'��Tก!� ���ก�������ก ��� �U"�U�)"�� ����3d���� FOCUS ��ก'�����+'��U"�V�ก� [4] ����V�$��'������'ก��!*���V���\����'��� RFID (���WU" 125 KHz �V����'' Stand-alone +� �����W�����__�3���+%'��Tก����4''��U\� �����'ก���)�������''���'���� 4�$�����+� ��%ก�3��U������ LCD
�V�ก��!�)"���4''\����� �'' TCP/IP $�)���� RS232 [�t��������ก���V���'�4''%&�'���ก����\��!����X
!(�)"��'��Tก!� ���ก�������ก ��� WK-7 ��ก'����� ICT Smart �V�ก� [5] ��%ก�3������W�V����'' Standalone �����'ก���V���*��'��� RFID �U"�U(���WU" 13.5 MHz � 4 125 KHz +�*TX����ก�'\�� �U"����X�+�� ��%ก�3��V�������4''%&�'���ก�� Linux �����'ก���)�������''���'���� 4�$�����+� ������ LCD *� 3.5 �X� �����'ก��!�)"����� RS232 � 4 TCP/IP ก �������� �U(��� 4!�U� 1.3 M +���U[�t������ก����ก���'����� �����' SDK �V�$��'�$� �ก(����x�[�t������+�!���������ก��
��������� ����3d��Uก'�����$T"�+��ก� !(�)"��'��Tก!� ���ก�� AC-100 ��ก'����� SP-Tech [6] �V����'' Standalone ��%ก�3������W�V����'' Standalone �����'ก���V���*��'��� RFID �U"�U(���WU" 125 KHz !����X �����'ก���)�������''���'���� 4�$�����+� �����'ก��!�)"����� RS232 � 4 TCP/IP �Uก����'[�t������ก����ก������������ �V���'�4''%&�'���ก����\��!����X
�����+�ก]��� � ����3d�����������*�����!%Yก��������''\%��ก��%�4��ก�� �4�V�����ก��ก�'!z��4'�4''%&�'���ก��!��+�\(�[������\�� ����ก��!�)"�����!(�)�*��� ก]�V�ก��!����� $�)���������X���%ก�3�!��"�!���!�)"������'!(�)�*���+����� �ก��กUX����U��(��V�$��������� ���4�'$ ��$�)"'��
4. � ����@�9ก �J8K� (34��������+��V�ก����x��4''!�](�)"�� 4������
�''!� ��������!(�)�*���+����� \���������+��V�ก����x������'��� RFID �'' 125 KHz (���WU"�U"����������W%��'!% U"�!%Y Mifare 13.5 MHz +��������ก�� [3] [T"��V�������ก�'�4''(�'(��\������ก![�������''+����� \��U�4''ก������ �����LCD � 4W����������U"���'����ก��!�](�)"����ก ��� webcam �U�4''��ก����� Web Interface �U"+����ก��ก�'�4''%&�'���ก�� \��4''�U"��x��U
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
82
��(������U"�"V�ก���$T"�$�)"'�� �����W%��'!% U"�$�)�!��"�(��������W (features) +��������ก��
4.1 L J��A������ �4''�4�V�ก��'��Tก$���! * RFID *���������������
ก�''��Tก��� � 4�V�ก������)"�*�����!*������4''!�)"�!%Yก���)��ก�'�����������!%Yก�� �!� ��U"W�ก���� *���� ��ก ����4W�ก��!ก]'����(����V�*����ก![������ [T"��4�V�ก��\�W���*���� +%���![���!����$ �ก���!(�)�*���+�����\����\����!�)"��Uก��!�)"����� (On-line mode) �V��$��������4''�����W������'ก��!*�������+����U��ก website �U"�U�4'' login �$���������� 4(!*���*���� !z��4*���!�� !�)"�%���ก�ก��!%Y������ (privacy) \���X�$�!%Yก���V����''!� ����� (Real-time)
�ก��กUX�4''���(������W�����+��������4+�������W!�)"�����!(�)�*��� (Stand-alone mode) \��4!ก]'*���� '��ก![������� 4�4�V�ก��\�W���*���� �''���\����!�)"��Uก��!�)"�����!(�)�*�������$ ��
�����������������WกV�$(��!� �!��"�!�U�*����� 4������� � 4!� �!*��$���!�U��U"W)����!%Yก��!*��!�U����+����(�������ก��*������� �4''���W�ก��x��$��U(����)$������!�� ก�������'ก�� )�'���%�4�V����*���������� $�)�ก��+����!�U��ก�3Uz�ก!z�$�)�!�]'%��� [T"���_����$�������V�ก��%��'%���Z�*���� +������W�ก����
4.2 ก �ก������J8K� ����
�4''�U"��x�*TX (������%�U" 1) %�4ก�'��� 5 ���$ �ก��UX
4.2.1 �%&ก���%���*� RFID
!%Y�������%ก�3�ก�����'��� RFID �U"�V����U"���(���WU" 125 KHz \��4''�U"��x�*TXV�+%����������$������ ��!ก���2����� �U"�����U'���%�4�V�����U"!%Y RFID �V����U"(���WU"��ก ��� [T"�'����U"����U$���(����V� 64 '�����t������ EM4001 !%Y�''���+������!U�� \��Uก���% ���__���ก(�� RFID !�)"�������+%�����%ก�3�(�'(��
��� ก��!�)"������'' USB \��Uก������W�4ก���V����''%ก�� ��%ก�� ก�����'����U"��'��3�+� \����� ����!%Y*��(�������� LCD � 4!�U����� buzzer
Wireless Router
WebCam
RFIDReader
Display
Display
dB
WebCam
Wireless Router dB
Internet
CATs Server
Mr. DangID: 52051234Engineering
Kasetsart Student ID
WebCam
RFIDReader
Display
CID: ACID: ACID: ACID: A1111----007007007007Mr.DangMr.DangMr.DangMr.Dang
Student
Instructor
Wireless Router dB
�BD7@ 1 ������*���4'' CATs
4.2.2 �%&ก����"'&. .�."�����'*%����#����� !%Y�����(�'(��$ �ก*���4'' �V�$���U"�ก��
%�4�� � '��� � 4������+%���![���!����ก �����!(�)�*���+����� !%Y���ก��(�'(�����*��ก������ � 4ก��W������ �V�ก����x�\������ก![�������''+����� ASUS 500gP [2] �U$���(����V� Flash memory *� 8MByte � 4 RAM *� 32MByte �V�ก������X��4''%&�'���ก���$�����4''�U"��ก�'�����ก![������!�� \��V�ก������X����4''%&�'���ก�� U�ก�� (Linux Distribution) �U"�U*�! ]ก !$��4�V�$��'��%ก�3��''�c�����U"�U�)"���� OpenWRT [1] ��� Kamikaze (kernel 2.6) !)"����ก���+�������W�����ก���+���������*��*����ก![�������U"��ก�'��%ก�3�+� �T��V�ก������X�ก���!(�)�*���+����� IEEE 802.11g *�� TPLink TL-WN321G !%Y���ก��!�)"�����!(�)�*��� \���ก![�������4W�ก��X�(��!%Yก���V����'' Client mode
4.2.3 �%&ก����$� .����&�'6*�*��ก�� ��,�� !%Y���ก������)"����$ ����ก���������V�ก����4
'��� RFID !�)"��4''%�4�� � +���'(��$���! *'���ก]�4�V�ก��(�$�*���� �)"��U"�������ก�'$���! *'���!�)"�V����������������� !�)"�!%Yก��\����'����Uก����4'���+������
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
83
W�ก���� ก������ ��� Serial LCD Module (SLCD16x2) !%Yก������ �'' 16 ��ก�� 2 '���� [T"������W%��'!% U"�!%Yก������ �''���+�
4.2.4 �%&ก������ก:�4 ������,���� !%Y���ก��'��Tก��� \����ก ��� Webcam ��(�W�ก
�U"�U Resolution �U"+����� (320x240 ��) �U"!�)"����������V�ก����4'��� ก ����4�V�ก��'��Tก��� � 4������'��Tก ��$���(����V�*����ก![������!�)"�ก��\�W������+%���![���!����
4.2.5 �%&����)�&��)���,��,ก��*�&!��� .ก���������� %��&�����&.�!�-�
!%Y���ก���V����'' back office �U"��'���*���� �U"+���'ก��\�W�����ก$���%�4�� � $ �ก \���� PHP � 4�UZ�*���� �'' mysql �U"�U*���� ����)"����!*������� �$������ � 4�$��'���RFID �U���ก�� login � 4������'�����ก��!*����������'�_�U��������*���$������ �� ���*�� GUI *���������U"!%Y������������ �����W�V�ก����X�(��!� ��U"!��"�!�U� !� ���� ก��!��"�������� � 4ก����ก����X!�U� [T"��4��กก�ก�'����U"�������������U"�����W�U�����!�U��ก��!*����������'*���� ก��!*��!�U�*���!��!����X
�BD7@ 2 ���W����4''!�](�)"������ 4������ �''!� �
�������!(�)�*���+�����
��%�U" 2 ������W���*���4''�U"��x�*TX %�4ก�'�����(�%�4ก�'$ �ก��X� 5 ������U"+�ก ������ �� � 4��%�U" 3 ���ก��������4''���X!�U�
�BD7@ 3 ก����4'��� �!� �ก��!*��!�U�
4.3 �� A�� ���M������� �4''�U"��x�*TX+��Uก��V�+%��������� !�)"��ก�+*
*��'ก������U"!ก�*TX� �� � 4!)"����ก*���� *�������U"!*�������!%Y��Z�*���� !U ��ก�ก�'Z�*���� *������$������ �� �V��$��4''�Uก������)"�+������W�ก����
����*�!� ��U" ��� ��4''ก]�Uก���V���\���� Network Time Protocol (NTP) !�)"��V�ก����X�(��!� �ก�'![���!����!� �$ �ก*��%�4!�2 � 4+��V�ก����x��� Real-Time Clock !�)"�������ก�3U�U"!%Yก���V����'' Stand-alone �U"+�������W!�)"�����!(�)�*���+�
*���� ��X�$��4�Uก��!*���$��*���� !�)"�(���% ���� \��U"*34�V�ก��\�W����4$������%ก�3���ก![������ ���!(�)�*���+�����[T"������W�V�ก����X�(��ก��!*���$��*��!(�)"��(�'(��UX!%Y�'' Wire Equivalent Privacy (WEP) $�)� WiFi Protected Access (WPA) ���(��������W*��!(�)�*���+������U"�V�ก��!�)"�����+�
�ก��กUX�*34�U"!ก�!$��ก��+tt���' $�)�ก��!�)"����!(�)�*���*�*��� �4''�����W�V�ก��!��"�ก���V������!)"��+�\����\����!�)"��4''+tt�� $�)��4''!(�)�*���ก �'�������+����%ก�� \�+�������Uก����X�(���Uก
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
84
5. ก �79��ก �C��� � �4''�U"��x�*TX+��Uก��V�+%���������ก�'��X!�U�*��
��(������2�ก���(����� !���� (34��2�ก�������� �$������ ��!ก���2����� �����!*�'��!* � 6 ������� 2 ��(ก��2Tก�� ��� 7 $��� \��U*�*�����!*��!�U���ก����ก� ��X!�U�*�! ]ก 15 � 30 ( (����! )�ก%��__���U � 4\�-!�ก) ��X!�U�*�ก �� 60 � 80 ( (����'��(�' %��__���U%� 2 � 4) � 4��X!�U�*��$_� 200 � 250 ( (�����)XZ� %��__���U%� 1) ����������������U"������������%�U" 4
�BD7@ 4 ก����ก������)"�����!�U� � 4ก����X�(��!� �!�U�
������ GUI *��!(�)"��![���!����
�BD7@ 5 ��� snap shot *�����!*��!�U�!�)"��V�ก����4'���
!�)"������V�ก����4'���!�)"�!*����X!�U� ���W����''
snap shot ก]�4W�ก'��Tก� 4���+%%��ก&'!(�)"��![���!���� (�ก�3U�U"�V����'' Online mode) ��������%�U" 5
��%�U" 6 �����������%ก����!�U�*������������� 4( (�!%Y���� 4 �ก�3U�U"�Uก�� )�'������� '����V��� $�)���_$�� �����������������W�V�ก��!��"�ก����!�U�*������+�
����������_ �ก�3� �A� ��ก�� Assign \������ �x� ��ก��*�!�U��(��X��X � 4 �/�������!*��!�U�
�BD7@ 6 ��������%ก��!*��!�U�(�!%Y���� 4 *����� 4(
5.1 ��ก �79�����ก ���� �PQ�� ��กก�����'!� ��ก��!*���V�ก��!�](�)"�*����������
�U"�����V�ก����4'��� W�����%� 4������'����)"�W�ก���� �'������(�4���!� ������U" 4.344±0.92 ����U ���X�V�$��'��X!�U�*� 60 (�4��� !� �����ก��!�](�)"������U"%�4��3 5 ��U \�%ก��ก]�4�Uก ��������U"��!�]�ก��!� �!*��!�U�ก]�����W�V�ก��!�](�)"�+�! � �����������ก]�V�ก������!�](�)"����!� ��U"�� \����%�V�$��'��X!�U�*�ก �� (60-100 () �4''(���U(��������%�4��3 5-8 ��Uก��!� �!��"�!�U� � 4�V�$��'��X!�U�*��$_� (~200 () �4''(���U(��������ก��!�U�%�4��3 15 ��U ��X�UX��กก�����'ก�'��X!�U�*��$_��'����4�U�W�(��!ก�*TX��ก!)"����ก��������$_��4���ก �ก�'!� �!*��!�U� ���X��������3�!��"���%ก�3�!%Y 2 ��!�)"� %����3�W�(�� � � 4�V��$�����!��"�!�U�+����!� �
6. �7��RD �4''!�](�)"������ 4������ �''!� ��������
!(�)�*���+������U"V�!�� +��V�ก�����������+�������U%�4�������� \��U(�3��'����U"��������� (Plug-and-Use) +�������V�ก����X�(���^�U"��%ก�3� �����W���+���X�'��!�3�U" �U� 4+���Uก��!�)"�����!(�)�*���+����� ��%ก�3�!( )"�����+��4�ก ��(�+����� �����WV����ก�''��� RFID *�������U"
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
85
��ก(�U%�4�V��������� �� !%Y�4''�U"%���ก�ก��!�](�)"���ก� \�������'��ก���*34!�](�)"� ���!�U������W!*���*���� ก��!*��!�U�����4'''�_�U!(�)�*���+��������!�]��''!� �����
��X�UX�4''��������WV�+%%�4��ก�����ก�'ก���'������� *�! ]ก-�$_�+� �����WV�+%���!%Y�4''��ก'��� �U"%���ก�ก����ก'�����ก�+� (!�� ��ก��\����) �����W�����)X�U"(�'(�� �U"����ก���)��ก���U���� !�� \��!�U���'� (ก����!�U����� ���%ก(��������������''���) ก��!*���)X�U"(�'(�����ก��!��*����(�� !%Y��
6.1 ���7 �ก �J8K� S� ����ก��%���ก�ก��ก��!�](�)"���ก�\����ก��
W�������X ���(�������2������� $�)������ �4''�V�ก��!%�U�'!�U�'���W����''(���� ^ ���X�*34UX�����x�กV� ����x����*��ก������V��'$��!�)"�!��"�(��������W�ก��������'(���!$�)�*���������� \�W��(��(�����ก�����U"��ก!ก�ก���(���U"กV�$ ก]�4�V�!�)��$��������!%Y��������3����� �V��$� ���4�����ก��������'ก��!�](�)"���ก�+�������U%�4����������ก*TX
7. �ก� �� ��� [1] Openwrt Project [Online]. Available: http://www.openwrt.org
[2] ASUSTeK Computer Inc., Multi-Functional Wireless Router: WL-500gP V2 [online]. Available: http://usa.asus.com/product.aspx?P_ID=jTcQKIRXgNPLo54b
[3] MIFARE [Online]. Available: http://en.wikipedia.org/MIFARE
[4] FOCUS 125 KHz. RFID Time Attendance w/ Camera, '�����+'��U"�V�ก� [Online]. Available: http://www.binary.co.th
[5] WK-7 Card Access Control & Time Attendance, '����� +�[U�U������ �V�ก� [Online]. Available: http://www.ictsmart.com/
[6] AC-100, '����� ������ ���X�� !�(\\ �U �V�ก� [Online]. Available: http://www.sptech.co.th
© ECTI-CARD 2010, May’10, Pattaya, Thailand. ISBN: 978-974-8242-54-5
86