Summary of the invention
Goal of the invention: for above-mentioned prior art, the implementation method of the detection in real time of a kind of Multimedia Classrooms and integrated manager control system is provided, can meet under the condition of multi-media classroom unit control, by client terminal, realize the centralized management that each classroom projector brightness detects.
Technical scheme: a kind of Multimedia Classrooms detects and integrated manager control system in real time, comprises campus network, connects respectively server, the client of described campus network 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 that connects described system host, and described projector pick-up unit is for detection of the bulb brightness information of projector and be uploaded in described server; Described client can read by campus network the bulb brightness information of each classroom projector and move 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 for when closing all optical compensation functions, obtains the pictorial information of the standard white screen image that is projected on curtain and standard black screen image and transfers to micro-control unit through described fifo chip; Described micro-control unit, for reading after the picture light intensity measurement xb of standard white screen image and the picture light intensity measurement xa of standard black screen image, calculates the bulb brightness value yc when front projector according to following formula:
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 records by illumination instrument while being described camera sensed luminance degree of reaching saturation value, the Ra light intensity measurement that to be characteristic image generator projection standard black screen image obtain by camera to time on screen, the La screen light intensity value that to be characteristic image generator projection standard black screen image record by illumination instrument to time on screen, the Rb light intensity measurement that to be characteristic image generator projection standard white screen image obtain by camera to time on screen, the Lb screen light intensity value that to be characteristic image generator projection standard white screen image record by illumination instrument to time on screen, yl is the last measured value of this projector bulb brightness value.
Further, described projector pick-up unit also wraps the serial ports that connects projector and described micro-control unit, described micro-control unit reads bulb tb service time of projector, after filter screen ts service time and projector temperature T of projector by this serial ports, in conjunction with the bulb brightness value yc when front projector, carry out projector calculating in serviceable life and export projector status signal to described system host, described system host uploads onto the server projector status signal; The calculating in serviceable life of described projector comprises the steps:
Step 1), projector temperature is judged: if 50 ℃ of described projector temperature T > jump to step (2); If described projector temperature T≤50 ℃, jump to step (3);
Step 2), filter screen is judged service time: if described filter screen ts service time > 500h, filter screen signal is cleaned in output; If described filter screen ts≤500h service time, jumps to step (3);
Step 3), the brightness of projector bulb is judged: if described current projector bulb brightness value yc < 150lux jumps to step 4); If described current projector bulb brightness value yc >=150lux, exports projector and normally uses signal;
Step 4), the bulb of projector is judged service time: if described bulb tb service time < 1000h, outgoing inspection projection screen or cleaning projector light path signal; If described bulb tb >=1500h service time, exports the signal that more changes the bulb.
Further, described system host comprises microprocessor and connects described microprocessor sound card, network interface card, FLASH, audio frequency and video switching controls 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, described audio detection module is sent to described microprocessor after detecting for the testing audio that provides according to described sound card the volume that multi-media classroom sound system sounds, and described microprocessor is according to this volume judgement sound system duty and upload onto the server by system host.
Further, described audio frequency and video switching controls module comprises the VGA testing circuit that goes offline, the described VGA testing circuit that goes offline comprises the ADC sample circuit on the output interface that is arranged on projector, be used for follow the tracks of detecting VGA output signal and whether exist VGA 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 for detection of the running status of consumer; Described precision current pick-up unit comprises precision current transformer, precise rectification circuit and filtering circuit, described precision current transformer is for gathering after the working current of consumer, after processing by precise rectification circuit rectification, filtering circuit filtering successively, obtain for judging the average current value sampled signal of the on off state of 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 that one for the 10MHz high-speed serial bus to described system host by the multi-media classroom image transmission of described image capture module Real-time Collection.
Further, described expansion module also comprises the Centralized Controller of controlling multi-media classroom daylight lamp, fan and air-conditioning start and stop.
Further, described expansion module also comprises electric curtain controller, for detecting when projector pick-up unit when front projector brightness automatic closed curtain during lower than 150lux.
Beneficial effect: the present invention discloses that a kind of Multimedia Classrooms detects in real time and the implementation method of integrated manager control system comprises two broad aspect contents: be that the start and stop of all electrical appliances of single multi-media classroom are controlled in real time and the working order of all electrical appliances detected to collection related data in good time and then phase acquisition information exchange is crossed to Ethernet and be sent in time main control server on the one hand; Main control server on the other hand by powerful Ethernet platform by all multi-media classrooms in whole school district the in good time operation information of useful device comprehensively analyze centralized stores, audio-visual education programme administrator just specifies, logging in the working order that background manage software just can all electricity consumption situations of each multi-media classroom of real time inspection, just can accurately be located timely maintenance if any fault.Background manage software in such scheme also has ERP system function in addition, and managerial personnel log in after this system by checking that relevant form information just can understand the working order of all Media Classroom electrical appliances in whole school district.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 further represent the practical application of Internet of Things Based Intelligent Control.
Most central control systems containing current sense function adopt bridge circuit and optocoupler to realize more at present, as the number of the applying for a patent patent that is 201210577673.4, adopt exactly this scheme, this circuit in fact defect is fairly obvious, it can only realize the logic output that has or not circuit, threshold value need to regulate with resistance, and the switching current threshold value of the electrical appliance of different brands and classification is different, limited the replacing behavior of subscriber equipment, this circuit and antijamming capability are also very poor simultaneously, 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 control system in real time, built-in intelligent power module, adopt isolated precision current transformer, coordinate precision rectifying and Lu Bao circuit, can greatly suppress undesired signal, and the electric current that detects consumer strong and weak (precision can reach mA rank) that can be linear, core board samples to obtain electric current (power) data of multimedia equipment by high-precision ADC, rather than simple logical value.
Curtain Electric Machine Control wherein; adopt the relay cascade of two single-pole double-throw (SPDT)s; after trigger on Dang Yi road; another road will inevitably be closed; can there is not the rising of curtain motor and the situation that power supply triggers simultaneously that declines; built-in intelligent power module detects electric current and just can know curtain whether in motion in addition, after current stabilization being detected, disconnects and can show that curtain liter stops or falls and stop.
Embodiment
Below in conjunction with accompanying drawing, the present invention is done further and explained.
Multimedia Classrooms detects and an integrated manager control system in real time, as shown in Figure 3, by campus network, the system host formation that connects respectively server, the client of campus network and be arranged on multi-media classroom.As shown in Figure 2, system host consists 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 32 high speeds, 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.The FLASH of a built-in 64/128M (SPI) chip with FatFS file system storing audio files also on core board.Base plate is the expansion of core board function, comprises the audio frequency and video switching controls module, peripheral hardware supply module, bus circuit and the peripheral hardware control driving circuit that connect core board.Wherein peripheral hardware control driving circuit comprises that desktop computer switch drive interface, control panel drive interface, card reader to control and drive interface.Wherein each multi-media classroom is comprised of a system host and accessory, and an independently IP address need to be distributed in each classroom, and system host is connected in campus network.In campus network, need to dispose a station server, the system host in this server requirement and each classroom is realized network interworking.System host can be uploaded a real-time status to server every 1 second, server process also stores detected state information into server.Client is realized the multimedia equipment in target classroom is carried out to realtime monitoring and control by access services device.
As shown in Figure 4, peripheral hardware multimedia equipment that can connected system main frame comprises desktop computer, notebook, HDMI equipment, control panel, sound equipment, curtain, display and projector.Client can log in by any PC in campus network, access services device, concentrated malfunction demonstration, multimedia equipment Long-distance Control, the equipment of realizing classroom multimedia equipment are used status information, equipment control to safeguard, image scene collection, the functions such as monitoring and speech talkback.
Expansion module comprises projector pick-up unit, this projector pick-up unit is for detection of the bulb brightness information of projector and in uploading onto the server, projector pick-up unit also connects projector by serial ports simultaneously, by this serial ports, read bulb tb service time of projector, after filter screen ts service time and projector temperature T of projector, in conjunction with the bulb brightness value yc when front projector, carry out projector calculating in serviceable life and export projector status signal to system host, system host uploads onto the server projector status signal, thereby can read classroom projector bulb monochrome information and projector overall operation status information in client.
Projector pick-up unit comprises CCD/CMOS camera, fifo chip and micro-control unit.Wherein: camera is for when closing all optical compensation functions, obtain the pictorial information of the standard white screen image that is projected on curtain and standard black screen image and transfer to micro-control unit through fifo chip; Micro-control unit, for reading after the picture light intensity measurement xb of standard white screen image and the picture light intensity measurement xa of standard black screen image, calculates the bulb brightness value yc when front projector according to following formula:
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 records by illumination instrument while being camera sensed luminance degree of reaching saturation value, the Ra light intensity measurement that to be characteristic image generator projection standard black screen image obtain by camera to time on screen, the La screen light intensity value that to be characteristic image generator projection standard black screen image record by illumination instrument to time on screen, the Rb light intensity measurement that to be characteristic image generator projection standard white screen image obtain by camera to time on screen, the Lb screen light intensity value that to be characteristic image generator projection standard white screen image record by illumination instrument to time on screen, yl is the last measured value of this projector bulb brightness value.
Utilize to calculate filter screen ts service time and the projector temperature T that obtain when the bulb brightness value yc of front projector and bulb tb service time of projector, projector, carry out projector calculating in serviceable life, comprise the steps:
Step 1), projector temperature is judged: if 50 ℃ of projector temperature T > jump to step (2); If projector temperature T≤50 ℃, jump to step (3);
Step 2), filter screen is judged service time: if filter screen ts service time > is 500h, filter screen signal is cleaned in output; If filter screen ts≤500h service time, jumps to step (3);
Step 3), the brightness of projector bulb is judged: if current projector bulb brightness value yc < 150lux jumps to step 4); If current projector bulb brightness value yc >=150lux, exports projector and normally uses signal;
Step 4), judge bulb service time of projector: if bulb tb service time < is 1000h, outgoing inspection projection screen or clean projector light path signal; If bulb tb >=1500h service time, exports the signal that more changes the bulb.
As shown in Figure 5, audio frequency and video commutation circuit is designed to three to be entered two and goes out, and wherein three tunnel signalling channels are divided and connected desktop computer VGA signal, notebook VGA signal, HDMI input signal; Video output is replicated and is exported to desktop computer display and projector by computing follow circuit; In addition audio frequency and video switching controls module comprises the VGA testing circuit that goes offline, and audio frequency and video commutation circuit tetra-tunnel input channels are all used to input test signal, and this VGA testing circuit that goes offline comprises the ADC sample circuit on the output interface that is arranged on projector; Under the effect of control signal, core board carries out the ADC sampling of built-in VGA test signal, in order to follow the tracks of, detect VGA output signal and whether exist VGA to go offline and lack the circuit of look abnormal, 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, audio detection module is sent to microprocessor after detecting for the testing audio providing according to sound card the volume that multi-media classroom sound system sounds.Microprocessor is according to this volume judgement sound system duty; When the volume detecting is greater than the normal working signal of output sound acoustic system of background sound 20dB, and upload 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 is supported two bus expansions, 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 is supported 8 ID address device expansions (ID=[8..16]).Wherein, private bus comprises a 10MHz high-speed serial bus that arrives core board for image capture module transmitting image information, and control bus is the special-purpose 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 with integrated manager control system separates online device id and not online device id, a polling cycle is divided into two parts: 1. to online equipment successively poll several times (as 128 times), 2. the not online ID of the poll next one, 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 is received to reply, it is directly moved into online ID group, so not abundant bus bandwidth of the mechanism maximized utilization of energy, improve the polling efficiency of bus.
As shown in Figure 8, in peripheral hardware supply module, be provided with precision current pick-up unit, 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 control system backstage, and daemon software is using the data that collect as the important evidence of passing judgment on electrical appliance work shape.
Peripheral hardware supply module comprises the precision current pick-up unit for detection of the running status of consumer.This precision current pick-up unit comprises precision current transformer, precise rectification circuit and filtering circuit; Precision current transformer is for gathering after the working current of consumer, after processing by precise rectification circuit rectification, filtering circuit filtering successively, obtain for judging the average current value sampled signal of the on off state of described consumer, this average current value sampled signal by system host by detection information to server; Client judges by the current data bonding apparatus running current data that collect whether consumer normally works.
As shown in Figure 9, peripheral hardware supply module comprises projection screen control circuit, and this projection screen control circuit comprises two single-pole double-throw (SPDT) relays, precision current transformer, precise rectification circuit, the filtering circuit that two relay drive circuits, cascade connect.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 the first single-pole double-throw (SPDT) relay, the normally opened contact of the first single-pole double-throw (SPDT) relay connects the rising control end of projection screen motor, the normally opened contact of the second single-pole double-throw (SPDT) relay connects the decline control end of projection screen motor, and the normally closed electric shock of the first single-pole double-throw (SPDT) relay connects the moving contact of the second single-pole double-throw (SPDT) relay; Two single-pole double-throw (SPDT) relays connect respectively a relay drive circuit, 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 that is input to first, second relay drive circuit is during for " 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 and steering logic of the screen start and stop state collecting, bonding apparatus running current data judge whether consumer normally works, and can judge that screen is to close or normal down state simultaneously.
Most central control systems containing current sense function adopt bridge circuit and optocoupler to realize more at present, as the patent No. patent that is 201210577673.4, adopt exactly this scheme, this circuit in fact defect is fairly obvious, it can only realize the logic output that has or not circuit, threshold value need to regulate with resistance, and the switching current threshold value of the electrical appliance of different brands and classification is different, limited the replacing behavior of subscriber equipment, this circuit and antijamming capability are also very poor simultaneously, 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 detecting 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, each self check periodicity extraction data of system application are done the average current value that result after secondary complementary filter is current consumer, there is very strong antijamming capability.
Multi-media classroom of the present invention detects and integrated manager control system in real time; on hardware, adopt modularized circuit design; different modules has all been 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 be recovered normal work.
Multi-media classroom detect in real time with integrated manager control system in system host program adopted RTOS operating system, as shown in figure 10, software is divided into four layers, respectively: 1. hardware layer; 2. drive layer, realize hardware adaptor initialization, hardware adaptor state reads, self check, data transmit-receive etc.; 3. inner nuclear layer, inner nuclear layer is mainly comprised of the kernel providing with source code form and BSP support package; 4. application layer.Wherein application layer comprises following APP: 1. configuring application program, by the parameter cortex of node in 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.) by network or Console interface to goal systems main frame or bus node, in order to detect the quality of whole system; 3. control desk application program, for resolving control and the test instruction of the input of Console interface; 4. upgrade applications, the program upgrade to arbitrary node in system host and bus by network or Console Interface realization; 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 control system in real time, by expansion bus, articulates Centralized Controller, and this Centralized Controller comprises lighting control module, electric curtain controller, humiture detection module; Can realize the control to other electrical appliances in classroom, 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 and system host loses while being connected, system host can be reported to the police because of overtime, and Centralized Controller is got back to default setting, by electric switch hand switch as shown in figure 11, control.When projector pick-up unit detects projector brightness lower than 150lux, the automatic closed curtain of electric curtain controller.
Multi-media classroom of the present invention detects and integrated manager control system in real time, has adopted state machine design, and system is divided into: 1. shutdown mode, also claims pattern after class, equipment Close All; 2. idle pulley is only given desktop computer, projector's extensive interface power supply on the basis of shutdown mode under this pattern; 3. executive system initiating sequence, this pattern is added some points and starts for multimedia equipment sequential, and can detect one by one the quality of multimedia equipment; 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 check sequence, this state is specifically designed to and produces high-contrast signal, for image detection module collection and calculate the brightness value data of projector, and projection bulb and filter screen service time; 6. carry out power-down sequence, this state is for closing and measuring ability to chronologically multimedia equipment sequential.
Multi-media classroom of the present invention detects and integrated manager control system in real time, network enabled remote upgrade function, method is intrasystem each node of network energy transparent access, upgrade file is pressed to fixed size subpackage, then these bags are all passed through to node, after node harvests, carry out bootloader and realize upgrading, so multi-media classroom of the present invention detects with integrated manager control system and can realize system host in real time, image detection module, audio detection module, program upgrade etc. all node modules, the network operation of while back-up system host file system, the long-range built-in sound bank file of altering system main frame of changing.Greatly facilitate the upgrading of hardware and software 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 Bootloader district and working procedure district are only divided in the FLASH space of common IAP upgrading.Firmware upgrade implementation method comprises the steps:
Step 1), host computer is 2 by upgrade file 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; The integer that wherein n is 1~8;
Step 2), each AKU that during upgrading, the local firmware program employing breakpoint transmission agreement reception host computer of main frame or each node sends also deposits stand-by program district separately in, specifically comprises the steps:
Step 2.1), application program receives after any one AKU, carries out the judgement of AKU version number: if the upgrade file version number receiving jump to steps 2.2 different from current working procedure version), if version number is identical, do not upgrade;
Step 2.2), determine whether breakpoint transmission bag: the AKU receiving if current and the AKU version number receiving in historical upgrading task, upgrade file overall budget number, the total CRC check of upgrade file are identical, and this AKU receiving is breakpoint transmission bag and jumps to step 2.3); If different be new upgrading task, upgrade file version number, upgrade file overall budget number, the total CRC check information of upgrade file in new historical upgrading task more, and start to ask for upgrade file first bag of new liter level task;
Step 2.3), by the upgrading task of record, to host computer, ask for the AKU of expectation; If receive, the AKU of expectation jumps to step 2.4), if not being expectation AKU, the AKU of receiving do not continue to host computer request expectation AKU;
Step 2.4), the AKU receiving is write in FLASH stand-by program district by AKU sequence number; Wherein after often writing an AKU, read this AKU in from stand-by program district, to judge, write whether success: if unsuccessful again to this AKU of host computer request; If successful jump to step 2.5);
Step 2.5), carry out AKU and receive judgement: if receive, to host computer, send the information of having upgraded and jump to described step 3), the inwhole complete receptions of AKU continue to host requests expectation AKU;
After receiving all AKU, in upgrading label area, generate upgrading task flagging, described upgrading task flagging comprises the byte number of upgrade file version number, upgrade file overall budget number, the total CRC check of upgrade file and the every bag of upgrade file;
Step 3), by main frame or each node reset being carried out to the Bootloader of starting outfit, described Bootloader reads after the upgrading task flagging of its upgrading label area, judge whether described stand-by program district exists upgrade file: if exist upgrade file to jump to step 4), if do not exist upgrade file to jump to step 8);
Step 4), by CRC check, judge that whether upgrade file is effective: if upgrade file effectively jumps to step 5); If the invalid step 8 that jumps to of upgrade file);
Step 5), jump to step 6 after wiping the file in described main frame Huo Ge node operator district), if occur, wipe and extremely jump to step 3);
Step 6), jump to step 7 after the AKU in described stand-by program district is write to described local runtime program area), if occur, write and extremely jump to step 3);
Step 7), jump to step 8 after wiping the upgrading task flagging of the label area of upgrading in described main frame or each node), if occur, wipe and extremely jump 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 node configuration operation program environment complete upgrading.
Multi-media classroom of the present invention detects and integrated manager control system in real time, can expand support voice intercommunication function, and method is: 1. voice adopt ADPCM compressed encoding; 2. by intercommunication signaling, set up point-to-point, or point-to-multipoint; 3. the VoP that needs transmission or accept is first 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.