Summary of the invention
Goal of the invention: for above-mentioned prior art, a kind of Multimedia Classrooms is provided to detect the implementation method with integrated manager Ore-controlling Role in real time, under the condition meeting the control of multi-media classroom unit, the centralized management of each classroom projector brightness detection can be realized by client terminal.
Technical scheme: a kind of Multimedia Classrooms detects and integrated manager Ore-controlling Role in real time, comprises campus network, connects the server of described campus network, client respectively and is arranged in each multi-media classroom for controlling the system host of multimedia equipment; Each multi-media classroom also comprises the projector pick-up unit connecting described system host, and described projector pick-up unit is for detecting the bulb brightness information of projector and being uploaded in described server; Described client can be read the bulb brightness information of each classroom projector by campus network and be run with control multimedia equipment by the running status of campus network reading media equipment from server.
Further, described projector pick-up unit comprises CCD/CMOS camera, fifo chip and micro control unit; Wherein:
Described camera is used for when closing all optical compensation functions, obtains the pictorial information of standard white screen image and the standard black screen image be projected on curtain and transfers to micro control unit through described fifo chip; Described micro control unit, for after the picture light intensity measurement xa of the picture light intensity measurement xb and standard black screen image that read standard white screen image, obtains the bulb brightness value yc of current projector according to following formulae discovery:
Wherein, in advance the characteristic image generator of a known luminaire light intensity is projected on screen as calibrating signal, the light intensity value that Rf is recorded by illumination instrument when being described camera sensed luminance degree of reaching saturation value, the light intensity measurement that Ra is obtained by camera when being on characteristic image generator projection standard black screen image to screen, the screen light intensity values that La is recorded by illumination instrument when being on characteristic image generator projection standard black screen image to screen, the light intensity measurement that Rb is obtained by camera when being on characteristic image generator projection standard white screen image to screen, the screen light intensity values that Lb is recorded by illumination instrument when being on characteristic image generator projection standard white screen image to screen, yl is the last measured value of this projector bulb brightness value.
Further, described projector pick-up unit also wraps the serial ports connecting projector and described micro control unit, after described micro control unit reads bulb tb service time of projector, filter screen ts service time of projector and projector temperature T by this serial ports, bulb brightness value yc in conjunction with current projector carries out projector calculating in serviceable life and exports projector status signal to described system host, and projector status signal uploads onto the server by described system host; The calculating in serviceable life of described projector comprises the steps:
Step 1), projector temperature judges: if described projector temperature T > 50 DEG C, then jump to step (2); If described projector temperature T≤50 DEG C, then jump to step (3);
Step 2), filter screen judges service time: if described filter screen ts service time > 500h, then export cleaning filter screen signal; If described filter screen ts≤500h service time, then jump to step (3);
Step 3), projector bulb brightness judges: if described current projector bulb brightness value yc < 150lux, then jump to step 4); If described current projector bulb brightness value yc >=150lux, then export projector and normally use signal;
Step 4), the bulb of projector judges service time: if described bulb tb service time < 1000h, then outgoing inspection projection screen or cleaning projector optical path signal; If described bulb tb >=1500h service time, then export the signal that more changes the bulb.
Further, described system host comprises microprocessor and connects the sound card of described microprocessor, network interface card, FLASH, audio frequency and video switching control module, peripheral hardware supply module, bus circuit, peripheral hardware control driving circuit and expansion module; Wherein: described sound card is for generation of testing audio; Described expansion module comprises audio detection module, the testing audio that described audio detection module is used for providing according to described sound card is sent to described microprocessor after detecting the volume that multi-media classroom sound system sounds, and described microprocessor is judged sound system duty according to this volume and uploaded onto the server by system host.
Further, described audio frequency and video switch control module and comprise VGA and to go offline testing circuit, the described VGA testing circuit that goes offline comprises the ADC sample circuit be arranged on the output interface of projector, whether be used for tracing detection VGA output signal exists VGA and to go offline and RGB lacks the circuit abnormal conditions of look, and by system host by Detection Information to server.
Further, described peripheral hardware supply module comprises the precision current pick-up unit of the running status for detecting consumer; Described precision current pick-up unit comprises precision current transformer, precise rectification circuit and filtering circuit, described precision current transformer for gather consumer working current after, successively by after precise rectification circuit rectification, filtering circuit filtering process, obtain the average current value sampled signal of the on off state for judging described consumer, described average current value sampled signal by system host by Detection Information to server.
Further, described expansion module comprises image capture module, and described bus circuit comprises one for the multi-media classroom image information of described image capture module Real-time Collection being transferred to the 10MHz high-speed serial bus of described system host.
Further, described expansion module also comprises the Centralized Controller controlling multi-media classroom daylight lamp, fan and air-conditioning start and stop.
Further, described expansion module also comprises electric curtain controller, for detecting that when projector pick-up unit current projector brightness closes curtain automatically lower than during 150lux.
Beneficial effect: the present invention discloses a kind of Multimedia Classrooms and detects in real time and comprise two broad aspect contents with the implementation method of integrated manager Ore-controlling Role: be control in real time the start and stop of all electrical appliances of single multi-media classroom and detect the working order of all electrical appliances in good time to gather related data and then phase acquisition information is sent to main control server in time by Ethernet on the one hand; On the other hand main control server by powerful Ethernet platform by all for whole school district multi-media classrooms the in good time operation information of useful device comprehensively analyze centralized stores, audio-visual education programme keeper only need log in background manage software just can the working order of all electricity consumption situations of each multi-media classroom of real time inspection, just can accurately locate timely maintenance if any fault.Background manage software in addition in such scheme also has ERP system function, by checking that relevant form information just can understand the working order of all Media Classroom electrical appliances in whole school district after managerial personnel log in this system.Feature of the present invention is the in good time detection to multi-media classroom electrical appliance working order, and the relevant information of electrical appliance is fed back to managerial personnel in real time accurately, managerial personnel can process dependent failure the very first time, and this is only efficient audio-visual education programme management truly.Adopt this programme can represent the practical application of Internet of Things Based Intelligent Control further.
Current majority realizes containing central control system many employings bridge circuit of current sense function and optocoupler, if the number of applying for a patent is the patent of 201210577673.4, adopt this scheme exactly, this circuit in fact defect is fairly obvious, it can only realize exporting with or without the logic of circuit, threshold value needs to regulate with resistance, and the switching current threshold value of the electrical appliance of different brands and classification is different, limit the replacing behavior of subscriber equipment, simultaneously this circuit and antijamming capability is also very poor, once there be the interference currents such as surge to pass through, the logic of the scheme meeting output error of bridge circuit and optocoupler.And multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time, built-in Smart Power Module, adopt isolated precision current transformer, coordinate precision rectifying and Lu Bao circuit, greatly can suppress undesired signal, and the electric current power (precision can reach mA rank) detecting consumer that can be linear, core board is sampled by high-precision ADC with electric current (power) data obtaining multimedia equipment, instead of simple logical value.
Wherein curtain Electric Machine Control; adopt the relay cascade of two single-pole double-throw (SPDT)s; after a road is triggered; another road will inevitably be closed; the rising of curtain motor and the situation of powering simultaneously and triggering that declines can not be there is; Smart Power Module built-in in addition detects that whether electric current just can know curtain in motion, disconnects and can show that curtain liter stops or fall to stop after current stabilization being detected.
Embodiment
Below in conjunction with accompanying drawing the present invention done and further explain.
A kind of Multimedia Classrooms detects and integrated manager Ore-controlling Role in real time, as shown in Figure 3, by campus network, connects the server of campus network, client respectively and is arranged on the system host formation of multi-media classroom.As shown in Figure 2, system host is made up of core board, base plate and expansion module, and expansion module connects core board by bus circuit.The microprocessor of core board adopts ARM (Cortex-M3) chip of one piece of 32 high speed, also comprises the sound card chip, the network card chip that connect ARM chip.Network interface card is completed by built-in TCP/IP chip, and in order to realize Internet Transmission, this network card chip is connected to microcontroller by SRAM interface.Sound card built-in chip type MP3 codec, for completing speech play and ADPCM sound-recording function, this sound card chip is connected to microcontroller by SPI serial line interface.On core board also built-in one piece of 64/128M FLASH (SPI) chip and with FatFS file system storing audio files.Base plate is the expansion of core board function, comprises the audio frequency and video connecting core board and switches control module, peripheral hardware supply module, bus circuit and peripheral hardware control driving circuit.Wherein peripheral hardware control driving circuit comprises desktop computer switch drive interface, control panel driving interface, card reader control driving interface.Wherein each multi-media classroom is made up of a system host and accessory, and each classroom needs distribution one independently IP address, and is connected in campus network by system host.Campus network domestic demand will dispose a station server, and the system host in this server requirement and each classroom realizes network interworking.System host can upload a real-time status to server every 1 second, detected state information is also stored into server by server process.Client realizes carrying out realtime monitoring and control to the multimedia equipment in target classroom by access services device.
As shown in Figure 4, the peripheral hardware multimedia equipment of connected system main frame desktop computer, notebook, HDMI equipment, control panel, sound equipment, curtain, display and projector can be comprised.Client can log in by any PC in campus network, access services device, realize the concentrated malfunction display of classroom multimedia equipment, multimedia equipment Long-distance Control, equipment use status information, equipment control maintenance, image scene collection, the functions such as monitoring and speech talkback.
Expansion module comprises projector pick-up unit, this projector pick-up unit for detect projector bulb brightness information and in uploading onto the server, projector pick-up unit also connects projector by serial ports simultaneously, bulb tb service time of projector is read by this serial ports, after filter screen ts service time of projector and projector temperature T, bulb brightness value yc in conjunction with current projector carries out projector calculating in serviceable life and exports projector status signal to system host, projector status signal uploads onto the server by system host, thus classroom projector bulb brightness information and projector overall operation status information can be read in client.
Projector pick-up unit comprises CCD/CMOS camera, fifo chip and micro control unit.Wherein: camera is used for when closing all optical compensation functions, obtain the pictorial information of standard white screen image and the standard black screen image be projected on curtain and transfer to micro control unit through fifo chip; Micro control unit, for after the picture light intensity measurement xa of the picture light intensity measurement xb and standard black screen image that read standard white screen image, obtains the bulb brightness value yc of current projector according to following formulae discovery:
Wherein, in advance the characteristic image generator of a known luminaire light intensity is projected on screen as calibrating signal, the light intensity value that Rf is recorded by illumination instrument when being camera sensed luminance degree of reaching saturation value, the light intensity measurement that Ra is obtained by camera when being on characteristic image generator projection standard black screen image to screen, the screen light intensity values that La is recorded by illumination instrument when being on characteristic image generator projection standard black screen image to screen, the light intensity measurement that Rb is obtained by camera when being on characteristic image generator projection standard white screen image to screen, the screen light intensity values that Lb is recorded by illumination instrument when being on characteristic image generator projection standard white screen image to screen, yl is the last measured value of this projector bulb brightness value.
Utilize the bulb brightness value yc and bulb tb service time of projector, filter screen ts service time of projector and projector temperature T that calculate and obtain current projector, carry out projector calculating in serviceable life, comprise the steps:
Step 1), projector temperature judges: if projector temperature T > 50 DEG C, then jump to step (2); If projector temperature T≤50 DEG C, then jump to step (3);
Step 2), filter screen judges service time: if filter screen ts service time > is 500h, then export cleaning filter screen signal; If filter screen ts≤500h service time, then jump to step (3);
Step 3), projector bulb brightness judges: if current projector bulb brightness value yc < is 150lux, then jump to step 4); If current projector bulb brightness value yc >=150lux, then export projector and normally use signal;
Step 4), the bulb of projector judges service time: if bulb tb service time < is 1000h, then outgoing inspection projection screen or cleaning projector optical path signal; If bulb tb >=1500h service time, then export the signal that more changes the bulb.
As shown in Figure 5, audio frequency and video commutation circuit is designed to three and enters two and go out, and wherein three tunnel signalling channels are divided and connected desktop computer VGA signal, notebook VGA signal, HDMI input signal; Video frequency output is replicated by computing follow circuit and exports to desktop computer display and projector; In addition audio frequency and video switch control module and comprise VGA and to go offline testing circuit, and the 4th tunnel input channel of audio frequency and video commutation circuit is all used to input test signal, and this VGA testing circuit that goes offline comprises the ADC sample circuit be arranged on the output interface of projector; Under the effect of control signal, core board carries out the ADC sampling of built-in VGA test signal, whether there is VGA to go offline and to lack the circuit of look abnormal in order to tracing detection VGA output signal, and by system host by Detection Information to server.
Expansion module also comprises audio detection module.Utilize sound card on core board to produce testing audio, the testing audio that audio detection module is used for providing according to sound card is sent to microprocessor after detecting the volume that multi-media classroom sound system sounds.Microprocessor judges sound system duty according to this volume; When the volume detected is greater than the background sound 20dB then normal working signal of output sound acoustic system, and uploaded onto the server by system host.
Expansion module also comprises the image capture module of the multi-media classroom image information of Real-time Collection.As shown in Figure 6 and Figure 7, system host supports two bus extension, and one is private bus, and it supports 8 ID address device, and wherein the ID address of image capture module is 1, and audio detection module takies 4 ID addresses, is respectively 2,3,4,5.Other 3 in order to expansion equipment.Another be general extension bus in order to expand greater functionality equipment, same general extension bus supports 8 ID address device expansion (ID=[8..16]).Wherein, private bus comprises one for the 10MHz high-speed serial bus of image capture module transmitting image information to core board, and control bus is the special peripheral bus of 1MHz.
Article two, bus all adopts device polling mechanism access expanding node, be different from common polling mechanism successively, multi-media classroom of the present invention detects in real time separates online device id and not online device id with integrated manager Ore-controlling Role, a polling cycle is divided into two parts: 1. to online equipment successively poll several times (as 128 times), 2. the ID that poll is next not online, if the online ID equipment dont answer of registering for 5 times continuous, is moved into not online ID group, if the equipment of poll receives response, it is directly moved into online ID group, the bus bandwidth that so maximized utilization of mechanism energy is not abundant, improve the polling efficiency of bus.
As shown in Figure 8, precision current pick-up unit is provided with in peripheral hardware supply module, this device can detect the working current data of electrical appliance when different working modes, equipment is automatically preserved the data that detect and is uploaded to integrated manager Ore-controlling Role backstage, daemon software using the data that collect as the important evidence passing judgment on electrical appliance work shape.
Peripheral hardware supply module comprises the precision current pick-up unit of the running status for detecting consumer.This precision current pick-up unit comprises precision current transformer, precise rectification circuit and filtering circuit; Precision current transformer for gather consumer working current after, successively by after precise rectification circuit rectification, filtering circuit filtering process, obtain the average current value sampled signal of the on off state for judging described consumer, this average current value sampled signal by system host by Detection Information to server; Client by the current data bonding apparatus running current data that collect to judge whether consumer normally works.
As shown in Figure 9, peripheral hardware supply module comprises projection screen control circuit, this projection screen control circuit comprises two relay drive circuits, cascade connects two single-pole double-throw relay, precision current transformer, precise rectification circuit, filtering circuits.One end of precision current transformer primary coil connects outside 220V power supply, the other end of primary coil connects the moving contact of level first single-pole double-throw relay, the normally opened contact of the first single-pole double-throw relay connects the rising control end of projection screen motor, the normally opened contact of the second single-pole double-throw relay connects the decline control end of projection screen motor, the moving contact of normally closed electric shock connection second single-pole double-throw relay of the first single-pole double-throw relay; Two single-pole double-throw relay connect a relay drive circuit respectively, and the input end of two relay drive circuits is connected to core board logical signal output terminal; Precision current transformer secondary coil is connected successively after precise rectification circuit, filtering circuit and is connected described core board input end of analog signal, the current value sampled signal of output screen start and stop state.When the logical signal being input to first, second relay drive circuit is " 00 ", projection screen motor receives shutdown signal and is failure to actuate; When logical signal is " 01 ", Electric Machine Control projection screen declines; When logical signal is " 10 " or " 11 ", Electric Machine Control projection screen rises.This steering logic signal and curtain work average current value sampled signal upload onto the server, client is by after the current data of screen start and stop state that collects and steering logic, bonding apparatus running current data judge whether consumer normally works, and can judge that screen is closed or normal down state simultaneously.
Current majority realizes containing central control system many employings bridge circuit of current sense function and optocoupler, if the patent No. is the patent of 201210577673.4, adopt this scheme exactly, this circuit in fact defect is fairly obvious, it can only realize exporting with or without the logic of circuit, threshold value needs to regulate with resistance, and the switching current threshold value of the electrical appliance of different brands and classification is different, limit the replacing behavior of subscriber equipment, simultaneously this circuit and antijamming capability is also very poor, once there be the interference currents such as surge to pass through, the logic of the scheme meeting output error of bridge circuit and optocoupler.ON-OFF control circuit as shown in Figure 8 and Figure 9 and projection screen control circuit, use precision current transformer as forceful electric power current sensing device, after accurate operation amplifier and filtering circuit, there is fixed linear relation in the sampled value of core board collection and the current average of electrical appliance, the microcontroller of core board adopts DMA pattern to carry out ADC sampling, in real time sampled value is updated to internal SRAM, result after system application each self-inspection periodicity extraction data do secondary complementary filter is the average current value of current power equipment, there is very strong antijamming capability.
Multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time; hardware adopt modularized circuit design; different modules has all done recoverable current-limiting protection measure; once user carries out faulty operation to certain interface; this module will be closed because of overcurrent; can not affect the work of other modules, when malfunction contact, module can recover normal work.
Multi-media classroom detects in real time and have employed RTOS operating system with system host program in integrated manager Ore-controlling Role, and as shown in Figure 10, software is divided into four layers, respectively: 1. hardware layer; 2. drive layer, realize hardware adaptor initialization, the reading of hardware adaptor state, self-inspection, data transmit-receive etc.; 3. inner nuclear layer, inner nuclear layer is primarily of the kernel provided with source code form and BSP support package composition; 4. application layer.Wherein application layer comprises following APP: 1. configuring application program, by the parameter cortex of node on network or Console interface completion system main frame or bus; 2. webmaster application program, carries out connecting test and running state monitoring (bus/network packet loss, working time, number of resets etc.), in order to detect the quality of whole system by network or Console interface to goal systems main frame or bus node; 3. control desk application program, for resolving control and the test instruction of the input of Console interface; 4. upgrade applications, by network or Console Interface realization to the program upgrade of arbitrary node on system host and bus; 5. system service program, completes the control enclosure measuring ability of whole system.
As shown in figure 15, multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time, mounts Centralized Controller by expansion bus, and this Centralized Controller comprises lighting control module, electric curtain controller, Temperature and Humidity module; The control to other electrical appliances in classroom can be realized, as electrically driven curtain, daylight lamp, air-conditioning, fan lamp.Steering logic is determined by system host, and interactive with the server/customer end on network, when Centralized Controller is unexpected to lose with system host be connected time, system host can be reported to the police because of overtime, and Centralized Controller gets back to default setting, controlled by electric switch hand switch as shown in figure 11.When projector pick-up unit detects projector brightness lower than 150lux, electric curtain controller is closed curtain automatically.
Multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time, and have employed state machine design, system is divided into: 1. shutdown mode, also claims pattern after class, equipment Close All; 2. idle pulley, only on the basis of shutdown mode, give desktop computer under this pattern, projector's extensive interface is powered; 3. executive system initiating sequence, this pattern is used for multimedia equipment sequential and adds some points and start, and can detect the quality of multimedia equipment one by one; 4. duty, also deserves to be called class pattern, and multimedia equipment required under this pattern is in start duty, and system can detect some state of multimedia equipment in real time, as real-time current value, and microphone, curtain, the state of projection; 5. executive system self-inspection sequence, this state is specifically designed to and produces high-contrast signal, calculates the luminance data of projector for image detection module collection, and projection bulb and filter screen service time; 6. perform power-down sequence, this state is used for closing and measuring ability to multimedia equipment sequential chronologically.
Multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time, network enabled remote upgrade function, method is network energy transparent access each node intrasystem, by upgrade file by fixed size subpackage, then these bags all to be passed through node, after node harvests, perform bootloader and realize upgrading, can realize system host with integrated manager Ore-controlling Role so multi-media classroom of the present invention detects in real time, image detection module, audio detection module, etc. the program upgrade of all node modules, the network operation of back-up system host file system simultaneously, long-rangely change the built-in sound bank file of altering system main frame.The upgrading of hardware and software is greatly facilitated to upgrade, and diversity and customization.The FLASH branch of main frame and each node includes Bootloader district, working procedure district, stand-by program district, upgrading label area and data parameters district; And the FLASH space of common IAP upgrading only divides Bootloader district and working procedure district.Firmware upgrade implementation method comprises the steps:
Step 1), upgrade file is 2 by host computer by size
nbyte is divided into some AKU, and each AKU also comprises upgrade file version number, upgrade file overall budget number, the total CRC check of upgrade file and current AKU sequence number; Wherein n is the integer of 1 ~ 8;
Step 2), each AKU that during upgrading, the local firmware program of main frame or each node adopts breakpoint transmission agreement reception host computer to send also stored in respective stand-by program district, specifically comprises the steps:
Step 2.1), after application program receives any one AKU, carry out the judgement of AKU version number: if the upgrade file version number received is different from current operation program version, jump to step 2.2), if version number is identical, do not upgrade;
Step 2.2), determine whether breakpoint transmission bag: if the AKU be currently received and the AKU version number received in history upgrading task, upgrade file overall budget number, the total CRC check of upgrade file are identical, then this AKU received is breakpoint transmission bag and jumps to step 2.3); If difference, be new upgrading task, then the upgrade file version number more in new historical upgrading task, upgrade file overall budget number, the total CRC check information of upgrade file, and the upgrade file first starting to ask for new liter level task wraps;
Step 2.3), ask for the AKU of expectation to host computer by the upgrading task recorded; If receive the AKU of expectation, jump to step 2.4), if the AKU received is not expect AKU, continue to expect AKU to host computer request;
Step 2.4), the AKU received is write in FLASH stand-by program district by AKU sequence number; Wherein after often writing an AKU, in from stand-by program district, read this AKU, to judge that whether write is successful: if unsuccessful, again to this AKU of host computer request; If success, jumps to step 2.5);
Step 2.5), carry out AKU and receive judgement: if receive, send upgrading to host computer and complete information and jump to described step 3), the inwhole complete reception of AKU then continues to expect AKU to host requests;
After receiving all AKU, generate upgrading task flagging in upgrading label area, described upgrading task flagging comprises the byte number that upgrade file version number, upgrade file overall budget number, the total CRC check of upgrade file and upgrade file often wrap;
Step 3), by carrying out the Bootloader of starting outfit to main frame or each node reset, after described Bootloader reads the upgrading task flagging of its upgrading label area, judge whether described stand-by program district exists upgrade file: if there is upgrade file, jump to step 4), if there is not upgrade file, jump to step 8);
Step 4), judge that whether upgrade file is effective by CRC check: if upgrade file effectively, jumps to step 5); If upgrade file is invalid, jump to step 8);
Step 5), jump to step 6 after wiping the file in described main frame or each node operator district), if occur, erasing is abnormal, jumps to step 3);
Step 6), jump to step 7 after the AKU in described stand-by program district is write described local runtime program area), if occur, write is abnormal, jumps to step 3);
Step 7), jump to step 8 after wiping in described main frame or each node the upgrading task flagging of label area of upgrading), if occur, erasing is abnormal, jumps to step 3);
Step 8), whether effectively detect described working procedure district target program: if effectively, jump to step 9), if invalid, after time delay, jump to step 3), delay time can be set as 100 ~ 500ms;
Step 9), described main frame or each Joint Enterprise working procedure environment complete upgrading.
Multi-media classroom of the present invention detects and integrated manager Ore-controlling Role in real time, easily extensible support voice intercommunication function, and method is: 1. voice adopt ADPCM compressed encoding; 2. set up point-to-point by intercommunication signaling, or point-to-multipoint; 3. the VoP sending or accept is needed first to put into the FIFO buffering of cast; 4. changeable for listening or saying state by the button of seeking help of host computer control panel, realize quasi-duplex speech talkback.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.