A kind of Intelligent fresh air system and remote batch automatic software update method thereof
Technical field
The present invention relates to communication base station technical field, particularly, relate to a kind of Intelligent fresh air system and remote batch automatic software update method thereof.
Background technology
" energy-saving and emission-reduction " are the important contents that China carries out green energy conservation at present, and in mobile communication carrier, because base station number is huge, the year base station power consumption of three large operators reaches more than 10,000,000,000 yuan.Therefore, for operator, reduce electric cost expenditure, be not still reduced to this expenditure, increase extra earning, the positive effect that more promising society contributes.
At present, widely use Intelligent fresh air system in operator, this system, by blower fan system, sends the cold wind of base station outdoor to base station, and gets rid of outside station by original for base station hot gas, thus reaches the effect maintaining base station indoor temperature.By the control panel of Intelligent fresh air system, air-conditioning original in base station and breeze fan/air-out blower fan interlock can be got up, by operating in the intelligent logical of the program on control panel, the use of blower fan can be increased, thus reduce the use of air-conditioning.Comparatively speaking, the energy consumption of blower fan only has 1/1 to five/10th of air conditioning energy consumption, can greatly reduce power consumption, thus reach the object of energy-saving and emission-reduction.
Above-mentioned intelligent fresh air control system, the control panel adopted includes the embedded board running intelligent fresh air logic control program, and controls the electrical connection interface of blower fan and air-conditioning.Embedded board comprises hardware and software part.Software section comprises again to run an operating system and the corresponding application program developed on an operating system, is realized the on off state of Based Intelligent Control blower fan and air-conditioning, thus reach energy-conservation object by developing application.
Although Software Industry has a set of very ripe mechanism to make, a software is stable, performance high, cannot ensure the software disposed be exactly completely normally, inerrancy, " software upgrading " that this has just occurred occurring in Software Industry word.The problem left over that " software upgrading " occurs in version before referring to and solving in the software of redaction and New function, new features may be added.
Same, the software developed in Xingfeng capsule system cannot ensure its complete no problem, once go wrong, just must deal with problems, and upgrade software.But the software upgrading of Intelligent fresh air system is obviously different from other software upgrade process, because Intelligent fresh air system is arranged on inside of base station, and the base station of each operator is generally widely distributed, base station location is difficult to location and finds, if upgrade in the scene of entering the station, obviously can expend larger human and material resources, and inefficiency do not possess exploitativeness.Meanwhile, once there is more serious control problem, in the base station of so extensively distribution, must cause and cannot carry out field software upgrading in time, thus injure the operation security of base station.
Realizing in process of the present invention, inventor finds at least to exist in prior art that field upgrade efficiency is low, cost is high, reliability is low and affect the defects such as base station operation security.
Summary of the invention
The object of the invention is to, for the problems referred to above, propose a kind of Intelligent fresh air system, to realize that remote upgrade efficiency is high, cost is low, reliability is high and the advantage of base station operation security can be ensured.
Another object of the present invention is to, propose a kind of remote batch automatic software updates method of Intelligent fresh air system.
For achieving the above object, the technical solution used in the present invention is: a kind of Intelligent fresh air system, comprise intelligent fresh air controller, the air-conditioning be connected with described intelligent fresh air controller respectively, air intake blower fan, air-out blower fan, intelligent electric meter and indoor and/or outdoor temperature sensor, and the wireless transport module be connected with described intelligent fresh air controller successively and server.
Further, described intelligent fresh air controller, mainly comprise the multiple electric interfaces for being connected with air-conditioning, air intake blower fan, air-out blower fan, intelligent electric meter, wireless transport module and indoor and/or outdoor temperature sensor respectively, and for running the embedded board of intelligent fresh air logic control program; Described multiple electric interfaces, is connected with intelligent fresh air controller respectively.
Further, described embedded board, comprises hardware components, and is embedded in the software section in described hardware components.
Further, described hardware components, comprises CPU arithmetic element, and the flash external memory storage, RAM internal storage and the UART serial ports that are connected with described CPU arithmetic element respectively;
Described software section, comprises and is embedded in described flash external memory storage and RAM internal storage and controls built-in Linux operating system and the new wind logic control program of lower operation for CPU arithmetic element and monitor ROMPaq.
Meanwhile, another technical scheme that the present invention adopts is: a kind of remote batch automatic software update method based on above-described Intelligent fresh air system, mainly comprises:
(1) the form becoming the (SuSE) Linux OS of embedded board to identify software to be upgraded and/or program compaction, the compressed package obtained is committed to server, the maximum number of byte that server once can transmit according to wireless transport module, this compressed package is cut into n part message data, n is natural number; After every part of message data, add the check code of two bytes, to solve the problem that in wireless transmission process, whether data division is disturbed, this check code adopts CRC algorithm to generate;
(2) select multiple website to be upgraded, server sends upgrade command respectively to each website to be upgraded; The filename comprising the new wind logical control program of redaction in this upgrade command, the message number cut into and upgrade command;
(3) whether the code snippet in new wind logic control program intelligent fresh air controller run, make regular check on and have upgrade command to assign; When being checked through upgrade command and having assigned, new wind logic control program has entered software upgrading state:
According to the filename of this upgrade command being resolved to the new wind logical control program of the server end redaction obtained and the message number cut into, send the order of application downloading data bag to server end; The order of this application downloading data bag, comprises the filename of redaction new wind logical control program and needs the file obtaining the new wind logical control program of redaction to belong to which message;
(4) server termination is according to the order of the application downloading data bag received, and the message of request is sent to the embedded board of corresponding intelligent fresh air controller, this embedded board becomes a complete compressed package by downloading all depacketize obtained, containing a monitoring ROMPaq in embedded board, judge whether in the flash external memory storage that new AKU downloads on embedded board for timing, monitoring ROMPaq is once find that there is new AKU existence, then by calling the order that decompresses, this complete compressed package is decompressed, obtain the ROMPaq of the new wind logical control program of redaction, monitor ROMPaq to kill the new wind logic control program that running in process and switch to the new wind logical control program of redaction and run simultaneously.
Further, step (3) in, also comprise:
When intelligent fresh air controller be not checked through upgrade command assign time, this is upgraded unsuccessfully.
Further, step (4) in, also comprise:
When corresponding embedded board can successful switch run to the new wind logical control program of redaction time, the version number of new for this redaction wind logical control program will be reported to server end by wireless transport module by redaction new wind logical control program automatically.
Further, step (4) in, also comprise:
When server end receives the message of the version number including the new wind logical control program of redaction, according to the version number in this message that parsing obtains, when confirming that this version number is the version number of the new wind logical control program of this redaction used of upgrading, sending one to corresponding embedded board and confirming order; This confirmation order comprises a field, and the confirmation that this field uniquely indicates this this escalation process of new edition upgrade software upgrades successfully order;
When corresponding embedded board receive corresponding confirm to upgrade successfully order time, new wind logic control program confirms file by generating one in the flash external memory storage of embedded board, when monitor ROMPaq this file detected and successfully resolved time, monitoring ROMPaq can delete the new wind logical control program of legacy version in flash external memory storage, restart Intelligent fresh air system, Intelligent fresh air system will make the new wind logical control program of redaction run after restarting automatically; So far, this end of upgrading, upgrades successfully.
Further, step (4) in, also comprise:
If corresponding embedded board switches to the successful operation of the new wind logical control program of redaction, but monitoring ROMPaq does not still receive server end and sends and really accept one's fate when making in preset duration T time, then think that unconfirmed this of server end upgrades successfully, monitoring ROMPaq will delete the new wind logical control program of redaction downloaded, and restart Intelligent fresh air system, Intelligent fresh air system will return back to the new wind logical control program of original legacy version and run after restarting, so far, this escalation process terminates, and upgrades unsuccessfully.
Further, step (4) in, also comprise:
If the ROMPaq of the new wind logical control program of redaction after corresponding embedded board decompresses is made mistakes, the new wind logical control program of this redaction is caused to run; So, this embedded board switches to the operation failure of the new wind logical control program of redaction, monitoring ROMPaq will delete the ROMPaq of the newly downloaded new wind logical control program of redaction, and returns to the new wind logical control program of original legacy version and run.
The Intelligent fresh air system of various embodiments of the present invention and remote batch automatic software update method thereof, because this system comprises intelligent fresh air controller, the air-conditioning be connected with intelligent fresh air controller respectively, air intake blower fan, air-out blower fan, intelligent electric meter and indoor and/or outdoor temperature sensor, and the wireless transport module be connected with intelligent fresh air controller successively and server; Can long-range convenience, complete auto-update in batches, reliably.Upgraded by the automation remote of software, greatly reduce expense and the cost of software upgrading; Thus can to overcome in prior art that field upgrade efficiency is low, cost is high, reliability is low and affect the defect of base station operation security, to realize that remote upgrade efficiency is high, cost is low, reliability is high and the advantage of base station operation security can be ensured.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from description, or understand by implementing the present invention.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for description, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the operation principle schematic diagram of Intelligent fresh air system;
Fig. 2 is the schematic flow sheet of the remote batch automatic software update method of Intelligent fresh air system.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
system embodiment
For the great drawback existed in existing software upgrade process, according to the embodiment of the present invention, provide a kind of Intelligent fresh air system, the application software on the embedded board in this Intelligent fresh air system, safe, effective, stable, reliable.
As shown in Figure 1, the Intelligent fresh air system of the present embodiment, comprise intelligent fresh air controller, the air-conditioning be connected with intelligent fresh air controller respectively, air intake blower fan, air-out blower fan, intelligent electric meter and indoor and/or outdoor temperature sensor, and the wireless transport module be connected with intelligent fresh air controller successively and server.
Wherein, this intelligent fresh air controller, mainly comprise the multiple electric interfaces for being connected with air-conditioning, air intake blower fan, air-out blower fan, intelligent electric meter, wireless transport module and indoor and/or outdoor temperature sensor respectively, and for running the embedded board of intelligent fresh air logic control program; Multiple electric interfaces, is connected with intelligent fresh air controller respectively.Embedded board, comprises hardware components, and is embedded in the software section in hardware components; Hardware components, comprises CPU arithmetic element, and the flash external memory storage, RAM internal storage and the UART serial ports that are connected with CPU arithmetic element respectively; Software section, comprises and is embedded in flash external memory storage and RAM internal storage and controls the built-in Linux operating system of lower operation and new wind logic control program for CPU arithmetic element.
The Intelligent fresh air system of above-described embodiment, mainly includes following part:
(1) the air intake blower fan that can utilize outdoor natural wind is installed; (2) the air-out blower fan can getting rid of base station heat is installed; (3) radio transmission apparatus is installed; (4) server is equipped with; (5) the Centralized Controller of coordinated signals blower fan and base station air conditioner is installed; (6) the Temperature Humidity Sensor gathering indoor temperature and outdoor temperature is installed; (7) the intelligent electric meter gathering base station electricity consumption is installed.
Relative to traditional VMC, the Intelligent fresh air system of above-described embodiment, add wireless transport module, for transmitting the indoor and outdoor humiture and ammeter power consumption that intelligent fresh air controller collects, wireless transport module can be used for the instruction of reception server simultaneously.Intelligent fresh air controller module is so a kind of unit: it includes the electric interfaces be connected with modules, and comprise the various components and parts making controller work, certainly, most important, also comprise the embedded board that is run intelligent fresh air logic control program, this embedded board includes following main hardware components: flash external memory storage, CPU arithmetic element, RAM internal storage, UART serial ports, and comprise following software section, operation has built-in Linux operating system, and the new wind logic control program operated in this system, a minimum embedded system is jointly formed by above-mentioned hardware and software part, native system (i.e. minimum embedded system) is also the core of whole intelligent fresh air controller.
embodiment of the method
The remote batch automatic software update method of the Intelligent fresh air system of the present embodiment, based on the Intelligent fresh air system shown in Fig. 1, by wireless transport module, make to connect between intelligent fresh air controller and server, the ability that server and transport module possess duplex, up-downgoing communicates simultaneously.The software upgrading process of the remote batch automatic software update method of this Intelligent fresh air system, see Fig. 2, its step of updating is as follows:
Step 100: get out software program to be upgraded, and compress, the (SuSE) Linux OS identifiable design that compressed format can adopt embedded board on any intelligent fresh air controller, the form that can decompress, such as tar form, zip form etc., perform step 101;
Step 101: compressed package is committed to server, it is natural number that server carries out cutting into n(n according to the maximum number of byte that wireless transport module once can transmit) part, the check code of two bytes is added after each little message data, for solving the problem that in wireless transmission process, whether data division is disturbed, check code adopts CRC algorithm to generate, and performs step 102;
Step 102: select website to be upgraded, server prepares to implement remote software upgrade, performs step 103;
Step 103: server sends upgrade command respectively to website to be upgraded, and upgrade command comprises the filename of upgrading, the message number cut into, upgrade command, performs step 104;
Step 104: whether have code snippet to make regular check in the new wind logic control program that intelligent fresh air controller runs has upgrade command to assign, if so, then performs step 105; Otherwise, go to step the upgrading status of fail of 111, namely; If intelligent fresh air controller does not receive upgrade command, then this upgrades unsuccessfully;
Step 105: assign if be checked through upgrade command, then new wind logic control program enters software upgrading state, according to the filename of the new wind logical control program of the redaction of the server end parsed and the message number that cuts into, send the order of application downloading data bag to server end, order comprises the filename of the new wind logical control program of redaction, obtains which message of new edition plate software document, the message of request then according to the download request received, is sent to corresponding embedded board after receiving this order by server, embedded board has been downloaded all messages and has been assembled into a complete compressed package, containing a monitoring ROMPaq in embedded board, judge whether in the flash external memory storage that new AKU downloads on embedded board for timing, monitoring ROMPaq is once find that there is new AKU existence, then carry out downloading the decompression of compressed package by calling the order that decompresses, obtain up-to-date program, simultaneously monitoring module program kills the new wind logic control program that running in process and prepares to be switched to the new wind logical control program of redaction and runs, perform step 106,
Step 106: embedded board downloads the success of complete compressed package, the monitoring ROMPaq of remote equipment (i.e. embedded board) will make new wind logic control program switch to the new wind logical control program operation of redaction, judge that whether this switching is successful, if so, then perform step 107; Otherwise, perform step 112;
Step 107: if can run to the new wind logic control program of redaction by successful switch, then the version number of this software can be reported to server end by wireless transport module by redaction new wind logic control program automatically; Server receives the message including software version number that corresponding embedded board sends, by parsing the version number in message, server is confirmed to be the version number of the software that this upgrades, then server sends a confirmation order, this order comprises a field, and uniquely indicating is that confirmation in software upgrade process upgrades successfully order; Perform step 108;
Step 108: judge whether remote equipment receives server and send order of really accepting one's fate, and if so, then performs step 109; Otherwise, perform step 113;
Step 109: if equipment receives confirmation that step 107 server sends when upgrading successfully order, new wind logic control program confirms file by generating one in the flash external memory storage of embedded board, when monitoring ROMPaq detects this file, and successfully resolved, then monitoring ROMPaq can delete flash external memory storage Central Plains the new wind logic control program of legacy version, use the new wind logic control program of redaction, restart Intelligent fresh air system, and Intelligent fresh air system will use the new wind logical control program of redaction after restarting automatically, run redaction new wind logical control program program, so far, software upgrading terminates (going to step 110), upgrade successfully,
Step 112: go wrong if step 106 separates the program extruded, and cause new procedures to run, so software exchange runs unsuccessfully, then delete newly downloaded software program file, and return to original new wind logical control program operation, so can ensure, even if the new procedures downloaded goes wrong, also old program can be used to continue to run, thus, software upgrading failure (going to step 111) of this process;
Step 113: if the software exchange success of step 106, the monitoring ROMPaq of remote equipment judges whether timing T arrives, if monitoring ROMPaq waits for T time, still do not receive server really to accept one's fate order, then think that server is unconfirmed and upgrade successfully, monitoring ROMPaq can delete the new wind logical control program of redaction of download, and restart Intelligent fresh air system, and return back to the new wind logic control program operation of legacy version, and since then, the software upgrading failure of this process; That is: whether the stand-by period exceedes preset duration T time, if so, then performs step 112; Otherwise, continue to wait in step 113.
The Intelligent fresh air system of the various embodiments described above of the present invention and remote batch automatic software update method thereof, compared with prior art, at least can reach following beneficial effect:
Existing traditional Intelligent fresh air system software upgrading, need adopt the mode of field upgrade, needs to expend larger human and material resources, effect is low, do not possess exploitativeness; The Intelligent fresh air system proposed by the present invention and remote batch automatic software update method thereof, can long-range convenience, complete auto-update in batches, reliably.Upgraded by the automation remote of software, greatly reduce expense and the cost of software upgrading.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.