Summary of the invention
The technical matters of the solution that the present invention will solve is to avoid above-mentioned the deficiencies in the prior art part, and provide a kind of Student Attendance System based on IC-card and gsm communication mode, this system adopts communication, while having avoided existing attendance checking system to arrange Time Attendance Device, need to lay the trouble of circuit, can add up certain student late within a term, the situation of cutting classes, facilitate the form master and the head of a family to find in time student's problem, can also add up all students to school situation, if there is too much student, be late or cut classes, can automatically send information, facilitate school to make corresponding measure.
The technical scheme that the present invention solve the technical problem employing is: design a kind of Student Attendance System based on IC student card and gsm communication, for student is carried out to work attendance, and send note to Student monitoring people, the form master and the departments in charge of school affairs, student's attendance is pointed out;
Described system comprises: by many work attendance nodes around work attendance server be stored in the LAN (Local Area Network) that the work attendance information management upper computer software on the microcomputer of backstage forms; Respectively between this work attendance node and described work attendance server, by 433MHz superhet mode, communicate, by each work attendance node settling signal relaying in the middle of occupying, amplified, communication protocol adopts a bunch tree Routing Protocol, and upper computer software carries out data communication by the serial line interface on the microcomputer of backstage with described work attendance server; Wherein:
Described each work attendance node adopts radio frequency discrimination RFID method to carry out work attendance to student, comprise the second microprocessor, radio frequency identification module, 433MHz the second superhet mode communication module and the second man-machine interface, be used for accepting the work attendance of described IC student card and swipe the card, and the student number information of reading is sent to work attendance server;
Described work attendance server is father's work attendance node, comprises first microprocessor, 433MHz the first superhet mode communication module, semiconductor memory, global radio communication for service gsm module and the first man-machine interface; Described first microprocessor is the core processing equipment of work attendance server, is responsible for attendance data analysis, and drives and control peripherals; The first superhet communication module is responsible for the transmission of attendance data between each work attendance node and work attendance server; Described gsm module is not for sending the note prompting in school to the student form master and guardian.
Described work attendance information management upper computer software comprises: student information management module, work attendance time management module, attendance management module, the administration module of asking for leave, work attendance statistics administration module, attendance data preserve module and attendance data is derived module.
The present invention also provides a kind of student attendance method based on IC student card and gsm communication, for student being carried out to work attendance and passing through message release work attendance information; Comprise the steps:
A, work attendance information management upper computer software is installed on the microcomputer of backstage, and by the serial ports of backstage microcomputer, backstage microcomputer is connected with work attendance server;
B, around each work attendance node of work attendance Servers installed, by many work attendance nodes around work attendance server be stored in work attendance information management upper computer software on the microcomputer of backstage and form LAN (Local Area Network);
C, within the work attendance time, student holds IC student card at work attendance node and carries out work attendance and swipe the card? if so, work attendance node sends to work attendance server by the student number information of reading, and continues execution step D, if not, skips steps D, performs step E;
D, work attendance server record the work attendance information of preserving this life are " normally ", and skips steps E, F, G, perform step H;
Do E, student ask for leave?, if so, continue execution step F, if not, skips steps F, performs step G;
F, work attendance server record the work attendance information of preserving this life are " not to school, asking for leave ", and skips steps G, perform step H;
G, work attendance server record the work attendance information of preserving this life are " not to school, not asking for leave ", and send note and remind Student monitoring people and the form master;
H, work attendance server statistical history every day record, to not sending and do not remind to the too much note of school number of times to the too much student's of school number of times the form master and the head of a family in historical record, work attendance server statistics every day does not arrive the number in school, if it is too much that do not arrive school number the same day, department of work attendance server Hui Gei school control does not send the too much note of school number and reminds, and work attendance server simulates student to the arrival rate λ of the number Poisson distribution stochastic process in school according to student to the attendance data in school;
I, end.
Further, described each work attendance node adopts radio frequency discrimination RFID method to carry out work attendance to student, comprise the second microprocessor, radio frequency identification module, 433MHz the second superhet mode communication module and the second man-machine interface, be used for accepting the work attendance of described IC student card and swipe the card, and the student number information of reading is sent to work attendance server.
Further, described work attendance server is father's work attendance node, comprises first microprocessor, 433MHz the first superhet mode communication module, semiconductor memory, global radio communication for service gsm module and the first man-machine interface; Described first microprocessor is the core processing equipment of work attendance server, is responsible for attendance data analysis, and drives and control peripherals; The first superhet communication module is responsible for the transmission of attendance data between each work attendance node and work attendance server; Described gsm module is not for sending the note prompting in school to the student form master and guardian.
Further, described work attendance information management upper computer software comprises: student information management module, work attendance time management module, attendance management module, the administration module of asking for leave, work attendance statistics administration module, attendance data preserve module and attendance data is derived module.
Further, the second microprocessor that described each work attendance node comprises is AVR single-chip microcomputer.
Further, the first microprocessor model that described work attendance server comprises is the LPC2214 of the arm processor of PHILIPS company.
Compared with prior art, the beneficial effect that the present invention is based on the student attendance method and system of IC-card and gsm communication mode is:
1, work attendance server is crossed GSM by the work attendance information exchange after processing and is sent to parents of student, the form master and school student administrative authority, convenient and swift;
2, between attendance recorder and work attendance server, adopt 433MHz radio communication, without laying again circuit;
3, work attendance server has the SMS notification form master and the head of a family's function, also has the function that work attendance information was asked for leave, and added up, printed in processing in advance simultaneously, facilitates student attendance management.
Embodiment
Below in conjunction with accompanying drawing, content of the present invention is described in further detail.
As shown in Figures 1 to 5, a kind of student attendance method based on IC student card and gsm communication of the present invention, for carrying out work attendance and passing through message release work attendance information to student; Comprise the steps:
A, work attendance information management upper computer software 330 is installed on backstage microcomputer 300, and by the serial ports of backstage microcomputer 300, backstage microcomputer 300 is connected with work attendance server 100;
B, around work attendance server 100, each work attendance node 200 is set, many work attendance nodes 200 are formed to LAN (Local Area Network) around work attendance server 100 and the work attendance information management upper computer software 330 that is stored on backstage microcomputer 300;
C, within the work attendance time, student holds IC student card at work attendance node 200 and carries out work attendance and swipe the card? if so, work attendance node 200 sends to work attendance server 100 by the student number information of reading, continue execution step D, if not, skips steps D, performs step E;
The work attendance information that D, work attendance server 100 recorded and preserved this life is " normally ", and skips steps E, F, G, performs step H;
Do E, student ask for leave?, if so, continue execution step F, if not, skips steps F, performs step G;
The work attendance information that F, work attendance server 100 recorded and preserved this life is " not to school, asking for leave ", and skips steps G, execution step H;
The work attendance information that G, work attendance server 100 recorded and preserved this life is " not to school, not asking for leave ", and sends note and remind Student monitoring people and the form master;
H, work attendance server statistical history record 100 every day, to not sending and do not remind to the too much note of school number of times to the too much student's of school number of times the form master and the head of a family in historical record, work attendance server statistics 100 every day does not arrive the number in school, if it is too much that do not arrive school number the same day, department of work attendance server 100Hui Gei school control does not send the too much note of school number and reminds, and work attendance server 100 simulates student to the arrival rate λ of the number Poisson distribution stochastic process in school according to student to the attendance data in school;
I, end.
Again as shown in Figure 1, a kind of Student Attendance System based on IC student card and gsm communication, for student is carried out to work attendance, and sends note to Student monitoring people, the form master and the departments in charge of school affairs, and student's attendance is pointed out;
Described system comprises: by many work attendance nodes 200 around work attendance server 100 be stored in the LAN (Local Area Network) that the work attendance information management upper computer software 330 on backstage microcomputer 300 forms; Respectively between this work attendance node 200 and described work attendance server 100, by 433MHz superhet mode, communicate, by each work attendance node 200 settling signal relayings in the middle of occupying, amplified, communication protocol adopts a bunch tree Routing Protocol, and upper computer software 330 carries out data communication by the serial line interface 310 on backstage microcomputer 300 with described work attendance server 100; Described work attendance information management upper computer software 330 comprises: student information management module, work attendance time management module, attendance management module, the administration module of asking for leave, work attendance statistics administration module, attendance data preserve module and attendance data is derived module.
As shown in Figures 2 and 3, described each work attendance node 200 adopts radio frequency discrimination RFID method to carry out work attendance to student, comprise the second microprocessor 210, radio frequency identification module 220,433MHz the second superhet mode communication module 230 and the second man-machine interface 240, being used for accepting the work attendance of described IC student card swipes the card, and the student number information of reading is sent to work attendance server 100, described the second microprocessor 210 is AVR single-chip microcomputers.
As shown in Figure 4, described work attendance server 100 is father's work attendance node, comprises first microprocessor 110,433MHz the first superhet mode communication module 130, semiconductor memory 120, global radio communication for service gsm module 140 and the first man-machine interface 150; Described first microprocessor 110 models are LPC2214 of the arm processor of PHILIPS company, and it is the core processing equipment of work attendance server 100, are responsible for attendance data analysis, and drive and control peripherals; The first superhet communication module 130 is responsible for the transmission of attendance data between each work attendance node 300 and work attendance server 100; Described gsm module 140 is reminded to the note in school for not sending to the student form master and guardian.Described work attendance server can be preserved the attendance data of 20 weeks, the form master can check this class of attendance data by work attendance information management software at any time, the leader of school can check each class's attendance data by work attendance information management software, and attendance data is shown with histogram form.School sign is accomplished on work attendance hurdle corresponding to student number that described work attendance server can send over work attendance node, to the student attendance hurdle in school, does not do and does not identify to school.To not arriving the student in school, by GSM, do not send and do not remind to the note in school to afterwards at school the student form master and guardian.If student asks for leave in advance, the form master is by send note on work attendance server, gives this student the sign of asking for leave, and work attendance server is not no longer done the note prompting in school toward this student's the form master and guardian.Work attendance server statistical history every day record, to not sending and do not remind to the too much note of school number of times to the too much student's of school number of times the form master and the head of a family in historical record.Work attendance server statistics every day does not arrive the number in school, and too much if do not arrive school number the same day, department of work attendance server Hui Gei school control sends not to the too much prompting of school number.Work attendance server simulates student to the arrival rate λ of the number Poisson distribution stochastic process in school according to student to the attendance data in school, facilitates school in case of emergency to predict that student is to school situation.
A kind of student attendance method based on IC student card and gsm communication of the present invention, the concrete steps that comprise are as follows:
Work attendance information management upper computer software is installed on the microcomputer of backstage, by backstage microcomputer serial ports, is connected work attendance server.Student information management module by work attendance information management upper computer software imports the diligent student information that needs checking to work attendance server, by the work attendance time management module definition work attendance time of work attendance information management upper computer software.
On school doorway, place work attendance node, as work attendance nodal distance work attendance server surpasses 500 meters, centre needs to place work attendance node, makes distance between work attendance node and between work attendance node and server be less than 500 meters.
Student swipes the card at work attendance node, carries out work attendance, and work attendance node sends to work attendance server attendance data with student number form, as student does not arrive school on time, and do not ask for leave, system log (SYSLOG) is " not to school ", and send SMS Tip toward the head of a family and form master's mobile phone; As student asks for leave, the form master need send note to work attendance server, and form is qj+ student number, such as qj1200007.
Statistic work attendance information as certain student, does not arrive school number of times too much within a period of time, and work attendance server can send reminding short message to the form master.Within on the same day, it is too much that student does not arrive school number, and work attendance server Hui Xiang school administrator sends reminding short message.The form master can check class's attendance record by the work attendance statistics administration module of work attendance information management upper computer software at any time.All classes work attendance situation is checked by the work attendance statistics administration module of work attendance information management upper computer software by school administrator, and attendance data is shown with histogram form.
The invention solves the mode that current school adopts artificial work attendance, can make the form master and the head of a family understand in time student to school and the situation of leaving school.Adopt communication, while having avoided arranging Time Attendance Device, need to again lay the trouble of circuit.There is certain student of statistics late situation of cutting classes within a term, facilitate the form master and the head of a family to find in time student's problem.Also there are all students of statistics to school situation, if there is too much classmate, be late or cut classes, can automatically send information, facilitate school to make corresponding measure.
Student Attendance System of the present invention comprises the work attendance information management upper computer software on work attendance node, work attendance server and PC.Work attendance node is distributed in school doorway, adopts RFID mode to swipe the card and carry out work attendance for student, work attendance node receives student swipe the card after immediately card using information, by wireless mode, report work attendance server.Work attendance server is preserved the processor of 32 of student informations, attendance data, use attendance data is processed, and communicate by gsm communication mode and parents of student, the form master and school student administrative authority, issue work attendance information also has in advance the function of asking for leave, add up, print work attendance information simultaneously.Between work attendance node and work attendance server, adopt 433MHz radio communication.Work attendance information host computer management software on PC can be opened the excel file of preserving student's essential information, by serial ports toward the essential information that issues and delete student on work attendance server, derivation is stored in essential information and the attendance data of the student on work attendance server, and writing student number information on student's IC-card, it specifically comprises following functional module.
1, student information management module
On work attendance server, store student's student number, name, form master's phone, guardian's phone.On student's IC-card, store student's student number;
Newly-increased student information: new academic year, behavior unit door knob student's student number, name, form master's phone, guardian's phone are kept in an excel form.Student information host computer management software on PC reads this excel, then the student's essential information reading is issued on student attendance server by serial ports;
Delete student information: by serial ports, PC is connected with work attendance server, on host computer management software on PC, click " deletion student information " button, then input will be deleted student's student number, click " determining " button and can delete this student's essential information, the liquid crystal display on the server of work attendance simultaneously shows that this student number is deleted.
2, work attendance time management module
Can define festivals or holidays and class period by school.By serial ports, PC is connected with work attendance server, work attendance information host computer management software definition festivals or holidays and class period on PC, is then issued on work attendance server, and is stored in the storage chip of work attendance server.
3, attendance management module
On student's IC-card, store student's student number, when student brushes IC-card on work attendance node, work attendance node reports student's student number on work attendance server, and work attendance server identifies the sign of making school in hurdle this student.After class period, work attendance server can travel through all students that are stored in work attendance server, see that whether having been done school identifies, if do not have identified, this student is identified as not to school, work attendance server is not made in hurdle and not being identified to school in sign, and the while is toward automatically sending student on student's guardian and form master's mobile phone also not to the reminding short message in school.
4, the administration module of asking for leave
If student asks for leave in advance to the form master, the form master sends a note that content is learnt well for student by note toward work attendance server, work attendance server is compared by the form master's number that sends the phone number of note and be stored on work attendance server, be confirmed to be the form master,, the sign of asking for leave on student attendance hurdle corresponding to student number on short message content, no longer this student's the head of a family and the form master are sent to the reminding short message that does not arrive school.
5, work attendance statistics administration module
Work attendance server can regularly travel through the historical record of student attendance every day, once certain student has not surpassed certain number of times to the historical record in school, work attendance server can automatic transmission note remind student not too much to school number of times to Student monitoring people and the form master.Work attendance server was added up when middle school student's attendance one day, if it is too much not arrive school number on the same day, work attendance server can send note automatically to department of school control, reminds department of school control this date not arrive school number too much.Student meets to school number Poisson distribution stochastic process P{N (t)=k} that arrival rate is λ, N (t) represents that to t constantly, student arrives school number, and λ is student's arrival rate, work attendance server is the account of the history to school according to student, simulates arrival rate λ.
6, attendance data is preserved module
Because halves student is no more than 20 weeks to the school time, so for cost-saving as much as possible, the attendance data of work attendance servers' layout storage is the attendance data of 20 weeks.Attendance data within 20 weeks can be kept on storage chip automatically, and storage format is as follows:
Student number |
Date |
Whether cut classes |
Form master's phone |
? |
? |
? |
? |
7, attendance data is derived module
By serial ports, PC is connected with work attendance server, clicks " derivation attendance data " button on the work attendance information host computer management software on PC, attendance data can be derived and be kept in the excel of appointment on PC from work attendance server.
Work attendance node and work attendance server networking mode: convenient for student attendance, near school doorway, a plurality of work attendance nodes and a work attendance server distribute.Work attendance node and work attendance server carry out radio communication by 433MHz superhet mode, as shown in Figure 1.If work attendance node and work attendance server are at a distance of too far away, signal can weaken relatively, unobstructed in order to guarantee to communicate by letter.Work attendance node in the middle of work attendance node and work attendance server adopt carries out relaying, between adopt a bunch tree Routing Protocol, work attendance server is final father node.Arthmetic statement is as follows: when certain work attendance node need to send data, data are issued to the father's work attendance node of oneself, father's work attendance node continues to transmit to father's work attendance node, until work attendance server.Work attendance node and work attendance server adopt number of clusters Routing Protocol, the realization of software algorithm: in the data D sending between work attendance node, have a frame data D (0) to comprise the work attendance address of node that sends these data.When work attendance node, A receives after data, by Frame D (0), judge whether the address of sending node B is greater than the address of this work attendance node A, if be greater than the address of this work attendance node A, think work attendance node A than work attendance Node B near work attendance server, the Frame D (0) that carries work attendance node address in work attendance node A Update Table D, makes Frame D (0) for the address of work attendance node A, then sends data D; If the address of sending node B is less than the address of this work attendance node A, think work attendance node A than work attendance Node B away from work attendance server, work attendance node A, does not send the data D receiving.
The embodiment of work attendance node: work attendance node is comprised of AVR single-chip microcomputer, RFID module, 433MHz superhet communication module, man-machine interface, as shown in Figure 2.Man-machine interface is comprised of 1602 liquid crystal displays and button.RFID module, collection student's card using information, by student's ID card, reads student's student number information.After RFID module has read student's student number information, be presented on 1602 liquid crystal displays, by 433MHz superhet communication module, the student number of swiping the card reported to work attendance server simultaneously.AVR single-chip microcomputer and RFID module connecting circuit are as shown in Figure 3.
The embodiment of work attendance server: work attendance server is comprised of arm processor LPC2214,433MHz superhet communication module, storage chip, gsm module, the man-machine interface of PHILIPS company.
Arm processor LPC2214 is the core processor of work attendance server, is responsible for analysis, driving and the control peripherals of attendance data.
433MHz superhet communication module is responsible for the transmission of attendance data between work attendance node and work attendance server.
Storage chip is responsible for a student information and work attendance information forms a database, carries out store and management, and storage reaches the attendance data in a term.
Gsm module: GSM is global system for mobile communications, can be used for carrying out mobile phone or short message receiving-transmitting.The present invention uses serial port drive gsm module, uses the AT instruction of standard to control gsm module transmission note.
Man-machine interface is comprised of reset key and 12864 liquid crystal displays.Reset key is responsible for core processor, 433MHz superhet communication module, gsm module in work attendance server to reset, but the data of storage chip continue to have.12864 liquid crystal displays show the duty of work attendance server, such as work attendance, printing.