Seat, library real-time management system
Technical field
The present invention relates to a kind of signal detection technique, particularly a kind of library seat real-time management system.
Background technology
In recent years, along with the continuous expansion of colleges and universities' enrollment scale, social competition is growing more intense, and increasing student constantly pours into library and carries out " charging " in order to deal with all kinds of examinations or autonomous learning, to improve the competitive power of oneself or to enrich self knowledge.Library, in order to coordinate better the teaching of school, improves reader's service, is faced with the pressure from each side, and especially student accounts for seat, becomes the hang-up of libraries of the universities.Other resources in library have all realized computer management substantially at present, only account for a resource and still rest on the labor management stage.Although keeper can suitably clear up no one but occupied seat, the automatic student of part still can a people account for many, needs the classmate at seat but can seek without seat simultaneously, and this seriously causes the waste of limited resources.If want, by education student, to improve student's moral attainment, and carry out supervision and management, such mode is quite passive and helpless.Therefore utilize modern management means, realize the management of seat resources computer network, the seat in library is carried out to rational allocation, thereby the utilization factor of raising seat resources is only the key that solves a problem that accounts for.Now, domestic many colleges and universities have set up AiOCC system, and have realized interconnected with library automation system.Control to a certain extent the situation of robbing seat, but cannot fundamentally solve a problem that accounts for.
At present application of field of detecting more be infrared ray sensor.Infrared ray sensor is the sensor that utilizes ultrared physical property to measure, any material, as long as itself has certain temperature (higher than absolute zero), and can infrared radiation.Infrared sensor is to utilize physical influence that infrared radiation and matter interaction present to survey the sensor of infrared radiation, and infrared ray sensor measurement is a kind of non-contact measurement, has highly sensitively, responds the advantages such as fast.It is all used widely in a lot of fields, only introduce its principle of work below as an example of human body pyroelectricity infrared sensor example: general human body has constant body temperature, generally at 37 degree, so can send the infrared ray of specific wavelength 10 about μ m, passive type infrared probe carries out work by surveying the infrared ray about 10 μ m of human-body emitting.The infrared ray of 10 μ m left and right of human-body emitting gathers on infrared induction source after strengthening by Fei Nier optical filter.Infrared induction source adopts pyroelectricity element conventionally, and this element will lose charge balance receiving when human infrared radiation temperature changes, and outwards discharges electric charge, and electric subsequent conditioning circuit can produce alerting signal after check is processed.
Existing libraries of the universities seat Management System has the system being made up of infrared paster, infrared remote receiver, computing machine and display.Its embodiment is: on the chair in each shop, establish an infrared paster, the signal of infrared paster is connected with infrared remote receiver, and the signal of infrared remote receiver is connected to terminal computer and display screen.And each chair is provided with temporarily from button with temporarily from display lamp, if press when reader leaves temporarily from button, close from display lamp time delay 15 minutes (can set arbitrarily) temporarily, if just in 15 minutes reader return to continue to use.Whether system is utilized by infrared paster induction seat, and controls according to this display lamp and display screen.Although this system can be managed seating systems to a certain extent effectively, exist the defects such as service condition that cannot real-time query seat, strange land.
Summary of the invention
The present invention be directed to the problem that present libraries of the universities seat Management System cannot real-time query seat, a kind of library seat real-time management system has been proposed, utilize infrared ray sensor to survey on seat whether have people, if have, information has been shown as people after single-chip microcomputer is processed, otherwise is exactly idle or is retained.This device gathers seat personal information by infrared sensor, utilizes the functions such as chip microcontroller signals collecting, processing, transmission, and seat information more than real-time empty is programmed by software and hardware, is presented in the electronic display in library.Thereby make classmates understand in real time the vacant situation in study hall seat, realize the automatic management to seat, library, library's study hall, reading room etc. are served for classmates better.
Technical scheme of the present invention is: a kind of library seat real-time management system, system comprises seat signal acquisition module, data processing module, data transmission module, seat information release module, seat selection module successively, and seat is selected module output to return seat signal acquisition module and formed closed-loop system.
Described seat signal acquisition module is controlled infrared switch ES18-D03NK by single chip computer AT 89C51 and is formed, an infrared switch ES18-D03NK is placed at each seat, connected mode is: the signal output part s of ES18-D03NK connects on first input pin of AT89C51 by SIGNAL-IN port, then receives on the second input pin after anti-phase by a phase inverter.
Described data processing module receives after the information that each infrared switch sends at single-chip microcomputer, data processing module changes into information the data of 8 and preserves, data transmission module is uploaded to central single-chip microcomputer by above-mentioned the data obtained by the serial ports unit of single-chip microcomputer, seating state, estimated time of departure and reservation situation that central authorities' single-chip microcomputer obtains are set up a dynamic data base, and data transmission module send seat information release module to show data message by wireless transmission method.
Described seat selection module by the startup of swiping the card, comprises selection, reserved, reservation seat on doorway, library.
Beneficial effect of the present invention is: library of the present invention seat real-time management system, realize the automatic management to seat, library, and make classmates understand in real time the vacant situation in study hall seat, select fast required seat.
Accompanying drawing explanation
Fig. 1 is seat, library of the present invention real-time management system structural representation;
Fig. 2 is infrared sensor signals collecting meaning schematic diagram in library of the present invention seat real-time management system.
Embodiment
Seat, library real-time management system structural representation as shown in Figure 1, system comprises seat signal acquisition module, data processing module, data transmission module, seat information release module, seat selection module successively, and seat is selected module output to return seat signal acquisition module and formed closed-loop system.
Signal acquisition module is controlled infrared switch ES18-D03NK by single chip computer AT 89C51 and is formed.The signal output part of infrared switch is exported TTL high level under normal conditions, in the time having detected human infrared radiation and exist, export rIfIlL low level, and its VDD-to-VSS is also compatible 1TrL level.The model of this infrared switch is: ES18-D03NK feature: 1. detect in distance: 0-30cm adjustable.2. once-through type NPN often opens (NO); 3. three lines; 4. operating voltage: DC10-36V; The column type diffuse reflection of ⑤M18 garden.Its technical indicator is as follows:
A) rated operational voltage (ripple peak value≤l5%): DC10V~30 V 4-10 %, AC 24 V~240 V 4-10%;
B) working current (transistor/controllable silicon/relay): 100 mA;
C) response time: 2.5 ms;
D) detect object: translucent body, opaque body;
E) voltage drop (transistor/controllable silicon/relay): <2 V;
F) current sinking: below 20 mA;
G) differential apart from t≤15%;
H) polarity protection (short-circuit protection): have;
I) working environment illumination: incandescent lamp (sensitive surface illumination) is <3 000 Lx, sunshine (sensitive surface illumination) is <10 000 Lx;
J) operating ambient temperature t mono-25qC~50 cc.
Inductive layer: the infrared inductor (infrared switch) at corresponding each seat, as shown in Figure 2 infrared sensor signals collecting meaning schematic diagram.
Infrared induction: nothing-> has transmitting " to have " signal to system processor; Have->, without exciting internal timer, exceedes limiting time, and transmitting " nothing " signal is to processor.
Infrared switch is controlled by single chip computer AT 89C51.Reset circuit of SCM adopts presses key level reset mode, realizes by reset terminal resistance and electric capacity and VCC are connected.The suitable crystal oscillator with 12 MHz of resistance, capacitance parameter of selecting, can guarantee that reset signal high level lasting time is greater than 2 machine cycles.The design's crystal oscillating circuit adopts 12 MHz crystal oscillators.The signal output part s of infrared switch ES18-D03NK connects on the INT0 pin of AT89C51 by SIGNAL-IN port, then receives on INT1 pin after anti-phase by a phase inverter.
There is people by detecting on seat, sensor output high level, otherwise output low level, single-chip microcomputer can receive as signal.
Data processing module receives after the information that each infrared switch sends at single-chip microcomputer, and single-chip microcomputer changes into information the data of 8 and preserves, and waits to be transmitted.
Data transmission module is uploaded to central single-chip microcomputer by above-mentioned the data obtained by the serial ports unit of single-chip microcomputer.The seating state obtaining, estimated time of departure and reservation situation are set up to a dynamic data base.By processing, the information content is shown in the electronic display of hall, library by wireless transmission method, information is uploaded network simultaneously, realizes function of remote query.
Information issuing module, in order vividly to show intuitively room for individual study seating state information and current operation seat bit position and state, has adopted the Flash graphic animations interface display mode based on dynamic queries.Presentation Function module is made up of shift register 74HC164 and common anode utmost point charactron LG501 1BSR.74HC164 is unidirectional 8 bit shift register, can realize serial input, parallel output.Wherein serial data input end is pressed logic and operation rule input signal, and the serial input of the 1st 74HC164 terminates to the RXD end of AT8 serial data input end 9C51, and the serial input of the 2nd 74HC164 terminates on the QH of the 1st 74HC164.CLK (pin 8) is input end of clock, and the CLK of two 74HC164 receives on the TXD of AT89C51.And set up a database, the information collecting is collected, set up a webpage simultaneously, library's seat information is published in webpage, upgrade at set intervals, to facilitate classmate to understand in real time library's seat information by network anywhere.
Automatic carry module by the behaviour in service of swiping the card and checking seat at electronical display frequently, and is independently selected vacant seat on room for individual study doorway.Consider that student has the actual demand at seat away from keyboard, seat is divided into just in use (and estimated time of departure), temporary transient reservation, idle three state.For temporarily stored seat, default retains the time limit (as 30 minutes), overtime if seat retains, system automatic drawing back seat, and seating state is set to idle condition.If seat is all by use, by checking that seat situation service time is swiped the card or login reservation on the net, once there is toilet to distribute by subscription time order, if just be overtimely considered as abandoning reservation, directly take turns to next bit.And swipe the card while entering library student, need to select to estimate to use the seat time (can select uncertain), can allow like this student more efficiently arrange the time.Subsequently student's scheduled time is reached to central single-chip microcomputer, so that information is issued.