Summary of the invention
The object of the invention is to, for the problems referred to above, propose a kind of campus attendance checking system based on wireless sensor network, to realize wiring convenience, networking flexibility and the good advantage of movability.
For achieving the above object, the technical solution used in the present invention is: a kind of campus attendance checking system based on wireless sensor network, comprise a plurality of work attendances region that is placed in respectively campus, be used for a plurality of data acquisition equipments that gather the attendance data in corresponding work attendance region and corresponding attendance data is uploaded to work attendance master system, for receiving the corresponding attendance data that described a plurality of data acquisition equipment uploads the work attendance master system of processing, and the network topology structure of wireless sensor setting based on ZigBee technology, corresponding with a plurality of work attendances region, and for the distributed mesh network node communicating between described a plurality of data acquisition equipments and work attendance master system.
Further, described distributed mesh network node, comprise and be arranged on corresponding work attendance point, and for the attendance data of corresponding work attendance point data acquisition equipment collection being forwarded to the attendance data acquisition node of router node, be arranged on the work attendance region being formed by a plurality of critical work attendance points, and for the attendance data secondary that a plurality of attendance datas collection point from critical setting is forwarded, be forwarded to the router node of network coordinator node, and be arranged between a plurality of router nodes and work attendance master system, and for the attendance data that a plurality of router nodes are forwarded, be forwarded to the network coordinator node of work attendance master system for three times.
Further, described work attendance point, comprises teaching building and/or office building and/or library.
Further, the wireless sensor network being formed by described network coordinator node, router node and attendance data acquisition node, comprises wireless communication module; It is core parts that described wireless communication module be take ZigBee wireless singlechip family chip CC2430.
Further, described network coordinator node, comprise CC2430 wireless communication module, and the Anneta module being connected with described CC2430 wireless communication module respectively, power module, simple and easy input key module, LED display module and PC serial interface module form; Described network coordinator node is mainly used in collecting the data of sending from attendance data acquisition node or router node, and is uploaded to work attendance master system and processes.
Further, described router node, comprises CC2430 wireless communication module, and the Anneta module being connected with described CC2430 wireless communication module respectively, power module, simple and easy input key module, LED display module and PC serial interface module form; Described router node is mainly used in collecting the data of sending from attendance data acquisition node, and forwarding sends network coordinator node to.
Further, described attendance data acquisition node, comprise CC2430 wireless communication module, the Anneta module being connected with described CC2430 wireless communication module respectively, power module, simple and easy input key module, LED display module, attendance data pick-up transducers equipment and relevant interface the electric circuit constitute; Described attendance data acquisition node is mainly used in gathering attendance data by fingerprint capturer and RFID radio-frequency (RF) Reader, and data are uploaded to router node or network coordinator node in time.
Further, described data acquisition equipment, comprises the fingerprint capturer and the RFID radio-frequency (RF) Reader that are equipped with; Corresponding attendance data acquisition node is by fingerprint capturer and RFID radio-frequency (RF) Reader, reading the attendance data obtaining, by wireless sensor network, send, by router node or network coordinator node, receive data, and be uploaded to work attendance master system and process.
Further, described work attendance master system, comprises the upper PC of work attendance; The work attendance information obtaining by attendance data acquisition node, is uploaded to the upper PC of work attendance by wireless sensor network, completes analysis and processing to each attendance data acquisition node data in wireless network;
The upper PC of described work attendance, for completing the collection of attendance data and arrangement, and manages the user profile of different rights, finally according to work attendance rule, attendance data is analyzed and is processed, and forms relevant form.
The campus attendance checking system based on wireless sensor network of various embodiments of the present invention, owing to comprising a plurality of work attendances region that is placed in respectively campus, be used for a plurality of data acquisition equipments that gather the attendance data in corresponding work attendance region and corresponding attendance data is uploaded to work attendance master system, for receiving the corresponding attendance data that a plurality of data acquisition equipments upload the work attendance master system of processing, and the network topology structure of wireless sensor setting based on ZigBee technology, corresponding with a plurality of work attendances region, and for the distributed mesh network node communicating between a plurality of data acquisition equipments and work attendance master system, can take CC2430 chip as core, in conjunction with fingerprint identification technology, RFID REID and wireless communication technology, realize the functions such as real-time typing, multipoint acquisition and wireless transmission to work attendance field data, thereby can overcome difficult wiring in prior art, networking is dumb and the defect of poor mobility, to realize, wiring is convenient, networking flexibility and the good advantage of movability.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
For traditional campus attendance checking system, there is the shortcomings such as wired layout difficulty and poor mobility, according to the embodiment of the present invention, as shown in Fig. 1-Fig. 6, a kind of campus attendance checking system based on wireless sensor network is provided, has been specially a kind of ZigBee of take wireless sensor network technology as basic campus attendance checking system.Be somebody's turn to do the campus attendance checking system based on wireless sensor network, take CC2430 chip as core, combine fingerprint identification technology, RFID REID and wireless communication technology, realized the functions such as real-time typing, multipoint acquisition and wireless transmission to work attendance field data.Be somebody's turn to do the campus attendance checking system based on wireless sensor network, fully in conjunction with ZigBee technology of wireless sensing network, fingerprint identification technology and RFID REID; After tested, campus attendance checking system that should be based on wireless sensor network, have networking flexibility, movability strong, the advantages such as simple and favorable expandability are installed, can meet the requirement of enterprises and institutions' work attendance monitoring, have broad application prospects.
The campus attendance checking system based on wireless sensor network of the present embodiment, requirement is carried out identification and attendance record to teachers, students, administrative personnel and workers, student's attendance and teacher whereabouts of going to work of attending class are registered, therefore the places such as the teaching building in campus, office building and library need to be divided into some work attendances region, settle respectively data acquisition equipment, and by data acquisition equipment, teachers and students are carried out attendance record and data are sent to work attendance master system (as work attendance master system 1).According to the form of the network topology structure of wireless sensor based on ZigBee technology and feature
[4]campus attendance checking system adopts reticulate texture (distributed frame), network node is divided into three types: network coordinator node (as network coordinator node 2), router node are (as router node 3, corresponding with work attendance region) and attendance data acquisition node (as attendance data acquisition node 4, can be corresponding with teaching building, office building and library etc.).The general structure of campus attendance checking system as shown in Figure 1.
The campus attendance checking system based on wireless sensor network of the present embodiment, hardware design is described as follows:
(1) the design of the wireless communication module hardware circuit of the campus attendance checking system based on wireless sensor network:
Wireless communication module is as one of wireless sensor network core component, and the type selecting of its main chip and the design of hardware circuit are of crucial importance to whole Radio Network System performance impact.The novel concept ZigBee of a new generation wireless singlechip family chip CC2430 that the embodiment of the present invention selects YouTI company to release, it is SOC ZigBee product on a sheet that really meets IEEE802.15.4 standard.CC2430 is except comprising RF transceiver, also 8 of integrated enhanced industrial standard 8051 microcontroller kernels, the Flash internal memory of 32/64/128KB, the RAM of 8KB, and contain ADC, DMA, house dog etc.CC2430 can be operated in 2.4GHz frequency range, adopting low voltage power supply and power consumption very low (is 27mA while receiving data, while sending data, be 25mA), have in short-term prolong, network capacity is large, short-range radio frequency transmission system cost is low, power consumption is little, be suitable for battery and power for a long time, there is the features [5] such as hardware encipher, safe and reliable, networking flexibility, survivability be strong.Therefore, select CC2430 as the wireless communication module acp chip of network coordinator node, router node and attendance data acquisition node, by best performance and the work efficiency of performance whole system.
(2) the design of the wireless sensor network node hardware circuit of the campus attendance checking system based on wireless sensor network:
The wireless communication module that wireless sensor network node be take based on CC2430 chip is core, expands the hardware platform that relevant hardware circuit forms wireless sensor network.The wireless sensor network node of the embodiment of the present invention is divided into three kinds of network coordinator node, router node and attendance data acquisition nodes according to function, its hardware circuit core all adopts CC2430 wireless communication module, designs different peripheral hardware circuit according to different nodal functions simultaneously.
In the attendance checking system of campus, the major function of network coordination node is to collect the data of sending from attendance data acquisition node or router node, and be uploaded to work attendance master system and process, therefore the type node is comprised of CC2430 wireless communication module, Anneta module, power module, simple and easy input key module, LED display module and PC serial interface module, as shown in Figure 3 1. the and 2. part of structural drawing.Router node major function is to collect the data of sending from attendance data acquisition node, and forwarding sends network coordinator node to, therefore the type node is comprised of CC2430 wireless communication module, Anneta module, power module, simple and easy input key module and LED display module, as shown in Figure 3 the 1. part of structural drawing.Attendance data acquisition node major function is to gather attendance data by fingerprint capturer and RFID radio-frequency (RF) Reader, and data are uploaded to router node or network coordinator node in time, therefore the type node is by CC2430 wireless communication module, Anneta module, power module, simple and easy input key module and LED display module, and attendance data pick-up transducers equipment and relevant interface the electric circuit constitute, as shown in Figure 3 1., the 2. and 3. part of structural drawing.
The campus attendance checking system based on wireless sensor network of above-described embodiment, Software for Design is described as follows:
(1) the design of wireless sensor network node software
In the campus attendance checking system based on wireless sensor network of above-described embodiment the present embodiment, wireless sensor network node is by practical application and function, can be divided into network coordinator node, attendance data acquisition node and router node three types, these node softwares all need to carry out initialization operation when powering on operation, and then according to the function operation relative program of different nodes.For network coordinator node, first should create network, allow router node or attendance data acquisition node to add this wireless network, then receive from the data of next node layer and be uploaded to host computer.For router or attendance data acquisition node, after discovering network, application adds network, and then router node receives from the data of attendance data acquisition node and is uploaded to network coordinator node; Attendance data acquisition node, by Time Attendance Device image data, is sent to router or network coordinator node.Wireless network node Software for Design flow process as shown in Figure 4.
(2) the design of work attendance master system
The work attendance information obtaining by attendance data acquisition node, by wireless sensor network, be uploaded to the upper PC of work attendance, according to the functional requirement of campus attendance checking system, design work attendance master system software, completes analysis and processing to each attendance data acquisition node data in wireless network.Work attendance master system completes the collection of attendance data and arrangement, and the user profile of different rights is managed, and finally according to work attendance rule, attendance data is analyzed and is processed, and forms relevant form.Be illustrated in figure 5 work attendance master system software architecture diagram.
The campus attendance checking system based on wireless sensor network of above-described embodiment, experimental verification is described as follows:
(1) wireless sensor network program operation
Use ZigBee technology CC2430 is programmed and operate, first network coordinator node enrolled to code-group establishing network:
void?ZDO_CreateNet(unsigned?char?log_Mod,devInitial_Modes_t?Initial_Mode,unsigned?char?beginOrder,unsigned?char?mainframeOrder)
{devStatus=DEY_COOL_STARTING;
ret_zg=NAME_NetworkFormedRequest(zg_ConfigPingID,zg_DefaultAlleywayList,
zg_DefaultBeginingScanDuration,beginOrder,mainframeOrder,zg_false);
……};
Router node or attendance data acquisition node are enrolled to code, make node can add wireless network:
void?ZDO_ConnectNet(unsigned?char?log_Mod,devInitial_Modes_t?Initial_Mode,unsigned?char?beginOrder,unsigned?char?mainframeOrder)
{devStatus=DEY_NXK_DISC;
ret_zg=NAME_NetworkDiscoedRequest(zg_DefaultAlleywayList,zg_DefaultBeginin?gScanDuration);
……}
Complete the networking of wireless sensor network, and complete router node and attendance data acquisition node adds network.Attendance data acquisition node is by fingerprint capturer and RFID radio-frequency (RF) Reader, reading the attendance data obtaining, by wireless sensor network, send, by router node or network coordinator node, receive data, and be uploaded to work attendance master system and process:
void?zb_HandedAskEvent(unsigned?int?incident)
{unsigned?char?f_Data[2];
if(incident&ZG_STARTING_EVT)
{zg_BeginRequest();}
if(incident&ZG_REPORTING_TEMP_EVT)
{f_Data[0]=f_RECORD_REPORT;
f_Data[1]=zg_App_ReadRecord();
zg_SendRecordRequest(0xFFFE,SENSOR_READ_Com_ID,2,f_Data,0,ZG_RED_REQUEST,0);
ask_start_timerTx(zg_TaskedID,ZG_REPORTING_TEMP_EVT,zg_TempRecordPeriod);}
if(incident&ZG_FINDING_COLLECT_EVT)
{//Searched?and?binded?to?a?right?zg_device
zg_Bind_to_Device(TRUE,SENSOR_READ_Com_ID,(unsigned?char*)NULL);}
……}
(2) realize at attendance checking system interface
The campus attendance checking system based on wireless sensor network of the embodiment of the present invention, attendance checking system interface is used Visual Basic language compilation to complete, host computer attendance checking system can be collected attendance data, carries out work attendance typing and inquiry, can also work attendance related data be modified and be gathered.By attendance checking system interface, can conveniently to attendance data, manage, according to work attendance rule, to data analysis and processing, form relevant form.Attendance checking system interface schematic diagram as shown in Figure 6.
Through the installment and debugging of system, the campus attendance checking system based on wireless sensor network of the various embodiments described above of the present invention, has realized intellectuality, networking and informationization to student and the collection of faculty and staff's attendance data.System is utilized advantage and the feature of ZigBee technology of new generation, built campus wireless sensor network, expanded the coverage rate of attendance data collection point, and make that wireless network is set up flexibly, layout is simple, movability is strong, favorable expandability, improved the reliability of network service and reduced networking hardware cost, having met the functional requirement of campus attendance checking system.Therefore, the Design of Wireless Sensor Network scheme in the embodiment of the present invention, has larger practical reference value in enterprises and institutions' work attendance monitoring field.
[list of references]
[1] Chen Kan. the design of campus attendance checking system and realization [J]. computer cd software and application, 2013, (2).
[2] Pan Wei, yellow east. the radio sensing network research [J] based on ZigBee technology. computer technology and development, 2008,18 (9).
[3] Li Shancang, Zhang Kewang. wireless sensor network principle and application [M]. Beijing: China Machine Press, 2008.
[4] Wang Haitao. the cluster algorithm summary [J] in radio sensing network. the sensor world, 2011, (4).
[5] Gao Shouwei, Wu Can sun .ZigBee engineering practice study course: the wireless sensor network solution [M] based on CC2430/31. Beijing: publishing house of BJ University of Aeronautics & Astronautics, 2009.
Finally it should be noted that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.