Summary of the invention
In view of this, the present invention provides a kind of abnormality eliminating method and device, there is file corruption exception to solve base station
Or when FLASH damage exception, base station exception cannot be solved the problems, such as automatically.
In order to solve the above technical problems, present invention employs following technical solutions:
A kind of abnormality eliminating method is applied to base station, comprising:
Real-time collecting environmental information, the environmental information include address link information, virtual LAN link information, routing
Link information and file verification information;
Whether the content for judging the address link information in the environmental information that is collected into is blank, and judgement is collected into
Whether the content of the file verification information in environmental information is blank;
The content for judging the address link information in the environmental information being collected into is not blank, and the environment letter being collected into
The content of file verification information in breath is not blank, and whether detection flash memory damages;
It detects the flash memory damage, executes Flash formatization operation;
Far end system is connected to according to the address link information in the environmental information being collected into;
Upgrade request is sent to the far end system;
The data configuration file sent by the far end system, upgrade package and activation is received to request;
It is requested according to the activation, is upgraded using the upgrade package and the data configuration file;
Restarting;
Detect that the flash memory does not damage, according to the file verification infomation detection in the environmental information being collected into
Whether load document is damaged, and the load document is the file that control system operates normally;
It detects the load document damage, jumps to the connection of the address in the environmental information being collected into according to
Information is connected to far end system.
Preferably, the file verification information in the environmental information being collected into according to, whether detection load document
Damage, comprising:
Compare the file verification letter under the file verification information and abnormality processing state under the normal operating condition being collected into
It whether consistent ceases;
Compare the file verification under the file verification information and the abnormality processing state under the normal operating condition
Information is consistent, and load document is not damaged;
Compare the file verification under the file verification information and the abnormality processing state under the normal operating condition
Information is inconsistent, load document damage.
Preferably,
After address link information in the environmental information being collected into according to is connected to far end system, further includes:
False alarm is sent to the far end system;
After the transmission upgrade request to the far end system, further includes:
Judge whether to receive in specified time and success message is received by the upgrade request that the far end system is sent;
Judge not receiving in specified time and success message received by the upgrade request that the far end system is sent,
Again the upgrade request is sent to the far end system;
Return it is described judge whether to receive in specified time received successfully by the upgrade request that the far end system is sent
Message;
It is described to receive data configuration file, upgrade package and the activation request sent by the far end system, comprising:
Successively receive data configuration file, upgrade package and the activation request sent by the far end system;
It is described receive the data configuration file sent by the far end system after, further includes:
Successful data reception configuration file message is sent to the far end system;
It is described receive the upgrade package sent by the far end system after, further includes:
It is sent to the far end system and is properly received upgrade package message;
After the reception is requested by the activation that the far end system is sent, further includes:
It is sent to the far end system and is properly received activation request message.
Preferably, after the reception is sent by the far end system data configuration file, upgrade package and activation request, also
Include:
Whether the file detected in the upgrade package being capable of normal use;
Detect file in the upgrade package can normal use, execute described according to activation request, use institute
State upgrade package and data configuration file upgrading.
A kind of abnormality eliminating method is applied to far end system, comprising:
It is connect with base station;
Receive the upgrade request sent by the base station;
Data configuration file, upgrade package and activation request are sent to the base station.
Preferably,
It is described connect with base station after, further includes:
Receive the false alarm sent by the base station;
It is described receive the upgrade request sent by the base station after, further includes:
Upgrade request is sent in preset time receives success message to the base station;
If not receiving the upgrade request in the base station specified time receives success message, receive by the base station again
The upgrade request sent;
It returns and sends upgrade request reception success message in the preset time to the base station;
The transmission data configuration file, upgrade package and activation are requested to the base station, comprising:
Data configuration file, upgrade package and activation request are successively sent to the base station;
After the transmission data configuration file to the base station, further includes:
Receive the successful data reception configuration file message sent by the base station;
After the transmission upgrade package to the base station, further includes:
Receive the successful reception upgrade package message sent by the base station;
After the transmission activation request to the base station, further includes:
It receives and request message is activated by the successful reception that the base station is sent.
A kind of exception handling device is applied to base station, comprising:
Environmental information unit is collected, is used for real-time collecting environmental information, the environmental information includes address link information, void
Quasi- LAN connection information, routing link information and file verification information;
First judging unit, for judging whether the content of the address link information in the environmental information being collected into is empty
It is white, and judge whether the content of the file verification information in the environmental information being collected into is blank;
Flash memory detection unit, for judging that the address in the environmental information being collected into connects when first judging unit
The content of information is not blank, and the content of the file verification information in the environmental information being collected into is not blank, detects flash memory
Whether damage;
Formatting unit detects the flash memory damage for the flash memory detection unit, executes Flash formatization operation;
Connection unit, the address link information in the environmental information for being collected into according to are connected to far end system;
Upgrade request transmission unit, for sending upgrade request to the far end system;
Receiving unit, for receiving the data configuration file, upgrade package and the activation request that are sent by the far end system;
Upgrade unit is upgraded for being requested according to the activation using the upgrade package and the data configuration file;
Unit is restarted, for restarting;
Load document detection unit, for detecting that the flash memory does not damage when the flash memory detection unit, according to
Whether the file verification infomation detection load document in the environmental information being collected into is damaged, and the load document is control system
The file for normal operation of uniting;
Wherein, the connection unit is also used to the load document detection unit and detects the load document damage, root
Far end system is connected to according to the address link information in the environmental information being collected into.
Preferably, the load document detection unit, comprising:
Comparing unit, for comparing under file verification information and abnormality processing state under the normal operating condition being collected into
File verification information it is whether consistent;
Compare the file verification under the file verification information and the abnormality processing state under the normal operating condition
Information is consistent, and load document is not damaged;
Compare the file verification under the file verification information and the abnormality processing state under the normal operating condition
Information is inconsistent, load document damage.
Preferably,
The receiving unit includes:
Successively receiving unit, for successively receiving the data configuration file sent by the far end system, upgrade package and swashing
Request living;
The exception handling device further include:
First message transmission unit receives the data configuration sent by the far end system for the successively receiving unit
After file, Xiang Suoshu far end system sends successful data reception configuration file message;
Second message transmission unit receives the upgrade package sent by the far end system for the successively receiving unit
Afterwards, Xiang Suoshu far end system, which is sent, is properly received upgrade package message;
Third message sending unit is received for the successively receiving unit and is requested by the activation that the far end system is sent
Afterwards, Xiang Suoshu far end system, which is sent, is properly received activation request message;
False alarm transmission unit, the address connection in the environmental information being collected into according to for the connection unit
After information is connected to far end system, Xiang Suoshu far end system sends false alarm;
Second judgment unit is sentenced after sending upgrade request to the far end system for the upgrade request transmission unit
Whether severed finger receives the upgrade request reception success message sent by the far end system in fixing time;
Wherein, the upgrade request transmission unit is also used to the second judgment unit and judges not connect in specified time
It receives and success message is received by the upgrade request that the far end system is sent, send the liter to the far end system again
Grade request;
The second judgment unit is also used to the upgrade request transmission unit again to described in far end system transmission
After upgrade request, judge the upgrade request reception success message sent by the far end system whether is received in specified time.
Preferably, further includes:
Upgrade package detection unit, the data configuration file sent for receiving unit reception by the far end system,
After upgrade package and activation request, whether the file detected in the upgrade package being capable of normal use;
Wherein, the upgrade unit is also used to the upgrade package detection unit and detects file energy in the upgrade package
Enough normal uses, are requested according to the activation, are upgraded using the upgrade package and the data configuration file.
A kind of exception handling device is applied to far end system, comprising:
Link block, for being connect with base station;
Receiving module, for receiving the upgrade request sent by the base station;
Sending module, for sending data configuration file, upgrade package and activation request to the base station.
Preferably,
The sending module, comprising:
Successively sending module, for successively sending data configuration file, upgrade package and activation request to the base station;
The far end system further include:
First receiving module, after sending data configuration file to the base station for the successively sending module, receive by
The successful data reception configuration file message that the base station is sent;
Second receiving module receives after sending upgrade package to the base station for the successively sending module by the base
Stand send successful reception upgrade package message;
Third receiving module receives after sending activation request to the base station for the successively sending module by described
The successful reception that base station is sent activates request message;
False alarm receiving module after connecting for the link block with base station, receives the mistake sent by the base station
False alarm;
Message transmission module, after receiving the upgrade request sent by the base station for the receiving module, preset time
Interior transmission upgrade request receives success message to the base station;
Wherein, the receiving module, if be also used to not receive in the base station specified time upgrade request receive at
Function message receives the upgrade request retransmitted by the base station;
The message transmission module is also used to the receiving module reception and is asked by the upgrading that the base station retransmits
Upgrade request is sent after asking, in preset time receives success message to the base station.
Compared to the prior art, the invention has the following advantages:
The present invention provides a kind of abnormality eliminating method and device, after base station detects flash memory damage, Flash format is executed
Change operation, far end system is connected to according to the address link information in the environmental information being collected into and sends upgrading to far end system
Request receives the data configuration file sent by far end system, upgrade package and activation and requests;It is requested according to activation, uses upgrading
Packet and data configuration file upgrading, after the completion of upgrading, restart base station, can accomplish when flash memory damages, automatically
It is formatted and updating operation, to solve the problems, such as that flash memory damages;When flash memory does not damage, whether detection load document
Damage is connected to far end system according to the address link information in the environmental information being collected into when detecting load document damage
And upgrade request is sent to far end system, it receives the data configuration file sent by far end system, upgrade package and activation and requests;Root
It requests according to activation, is upgraded using upgrade package and data configuration file, after the completion of upgrading, restart base station, can accomplish
When flash memory does not damage, load document is damaged, updating operation is carried out automatically, to solve the problems, such as that load document is damaged.It is above two
Situation, can accomplish automatically solves the problems, such as base station exception, solve base station in the prior art occur file corruption extremely or
When FLASH damage is abnormal, base station exception cannot be solved the problems, such as automatically.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of abnormality eliminating methods, are applied to base station, referring to Fig.1, comprising:
S101, real-time collecting environmental information;
Wherein, environmental information includes address link information, virtual LAN link information, routing link information and file school
Test information;
Address link information includes: device address, far end system address, address mask, device name and equipment account ID
Deng.
Environmental information collection belongs to intercrossing collection, mainly includes following several parts:
First part: after normal operating condition stable operation for a period of time, address link information, virtual LAN are collected
Link information, routing link information and file verification information;
Second part: file verification information is collected when upgrading under normal operating conditions;
Part III: after connecting under normal operating conditions with far end system, address link information is collected;
Part IV: address link information, the routing connection of virtual LAN link information are collected under abnormality processing state
File verification information under information and acquisition normal condition;
Part V: file verification information is collected under abnormality processing state.
It should be noted that address link information, virtual LAN that first part, second part and Part III are collected
Link information and routing link information can be obtained by Part IV and Part V, mainly in abnormality processing state, energy
Enough it is securely coupled to far end system.
Address link information, virtual LAN link information and the collection mainly guarantor for routing link information of first part
Demonstrate,prove the collection of reliable and normal stability;The collection of the file verification information of first part is to guarantee that current version is reliable
And the version information that is capable of providing normal service collect, prevent task extension from waiting indefinitely abnormal starting, remove trial operation version school
Information is tested, in addition to this, additionally it is possible to necessary data foundation is provided for the verification under abnormality processing state, when needing abnormality processing
When, after base station is connected to far end system, far end system can be notified to obtain which relevant version is restored.
The file verification information of second part provides school when collecting mainly for equipment trial operation under abnormality processing state
Test foundation.
The address link information of Part III is collected when mainly preventing base station from connecting with far end system, and far end system is actively
Change relevant address information and causes base station that can not again connect to far end system.
The information of Part IV and Part V is collected primarily to obtaining first part, second part and Part III
The file verification information of collection, and the file verification information stored with Part IV and Part V is made comparisons, verification load text
Whether part damages.
Whether the content for the address link information in environmental information that S102, judgement are collected into is blank, and judgement is received
Whether the content of the file verification information in the environmental information integrated is as blank;
The content for judging the address link information in the environmental information being collected into is not blank, and the environment letter being collected into
The content of file verification information in breath is not blank, executes S103;
Wherein, the content for judging the address link information in the environmental information being collected into is blank, cannot be normal
It is connected to far end system, so that normal upgrade file can not be downloaded to base station after base station is broken down;When judging to receive
The content of file verification information in the environmental information integrated cannot go whether verification load document is damaged as blank, thus
It cannot judge whether base station file corruption exception occurs.When in the address link information in the environmental information for judging to be collected into
Rong Buwei blank, and the content of the file verification information in the environmental information being collected into is not blank, proves that base station can at this time
It is connected to far end system according to the address link information in the environmental information being collected into, and is able to detect whether load document damages
It is bad, since load document is located in flash memory, should need to detect whether flash memory damages first.
Whether S103, detection flash memory damage;
When detecting flash memory damage, S104 is executed;It detects that flash memory does not damage, executes S110;
It should be noted that when flash memory damages, be placed on load document in flash memory can not normal use, institute
No longer to need to detect whether load document is damaged at this time.
S104, Flash formatization operation is executed;
S105, far end system is connected to according to the address link information in the environmental information being collected into;
Specifically, being connected to far end system according to the address link information being collected under normal condition.Wherein, pass through transmission
Control protocol Transmission Control Protocol is attached.
S106, upgrade request is sent to far end system;
S107, data configuration file, upgrade package and the activation request sent by far end system is received;
It should be noted that by transmitting data configuration file, the upgrade package that file protocol reception is sent by far end system
It is requested with activation.Wherein, transmission file protocol includes but is not limited to File Transfer Protocol File Transfer Protocol.
Optionally, in another embodiment of the present invention, receive the data configuration file sent by far end system, upgrade package and
After activation request, further includes:
Whether the file detected in upgrade package being capable of normal use;Detect file in upgrade package can normal use,
Execute S108.
Specifically, whether being capable of normal use using the file in cyclic redundancy check (CRC) algorithm detection upgrade package.
S108, it is requested according to activation, is upgraded using upgrade package and data configuration file;
Specifically, being requested according to activation, base station is upgraded using upgrade package and data configuration file, base station receives
To after activation request, activation operation is executed to upgrade package and data configuration file, i.e., upgrade package and data configuration file are carried out
The operation such as unpacking, so that upgrade package and data configuration file be made to come into force.It, can be automatic after encountering network interruption in escalation process
Again upgrade.
S109, restarting;
S110, whether damaged according to the file verification infomation detection load document in the environmental information being collected into;It detects
Load document damage, executes S105.
Wherein, load document is the file that control system operates normally.When detecting that load document do not damage, base station is normal
Work, it is no longer necessary to execute S105 and subsequent step, i.e., phenomenon abnormal there is no file corruption exception or FLASH damage.
Specifically, whether detection load document is damaged according to the file verification information in the environmental information being collected into, wrap
It includes:
Compare the file verification letter under the file verification information and abnormality processing state under the normal operating condition being collected into
It whether consistent ceases;
The file verification information compared under normal operating condition is consistent with the file verification information under abnormality processing state,
Load document is not damaged;
The file verification information compared under the file verification information and abnormality processing state under normal operating condition is different
It causes, load document damage.
Compare the file verification information that first part, second part and the Part III of Part IV acquisition are collected, and
The file verification information stored with Part IV and Part V is made comparisons, and it is consistent to compare two file verification information, it was demonstrated that
Load document is not damaged, and it is inconsistent to compare two file verification information, it was demonstrated that load document damage.
Wherein, file verification information is collected to be collected using Message Digest 5 MD5 algorithm.MD5 algorithm is computer
The widely used a kind of hash function in security fields, to provide the integrity protection of message.
It should be noted that base station operates normally at this time, no when detecting that flash memory does not damage and load document is not damaged
Require connect to far end system.
A kind of abnormality eliminating method is present embodiments provided, after base station detects flash memory damage, executes Flash formatization behaviour
Make, is connected to far end system according to the address link information in the environmental information being collected into and sends upgrading to far end system and ask
It asks, receives the data configuration file sent by far end system, upgrade package and activation and request;It is requested according to activation, uses upgrade package
And data configuration file upgrading, after the completion of upgrading, restart base station, can accomplish when flash memory damages, automatically into
Formatting lines and updating operation, to solve the problems, such as that flash memory damages;When flash memory does not damage, whether detection load document is damaged
It is bad, when detecting load document damage, far end system is connected to simultaneously according to the address link information in the environmental information being collected into
Upgrade request is sent to far end system, the data configuration file sent by far end system, upgrade package and activation is received and requests;According to
Activation request, is upgraded using upgrade package and data configuration file, after the completion of upgrading, is restarted base station, can be accomplished dodging
Deposit do not damage, load document damage when, carry out updating operation automatically, come solve the problems, such as load document damage.Above two feelings
Condition, can accomplish automatically solves the problems, such as base station exception, solve base station in the prior art occur file corruption extremely or
When FLASH damage is abnormal, base station exception cannot be solved the problems, such as automatically.
Optionally, it in another embodiment of the present invention, is connected according to the address link information in the environmental information being collected into
To after far end system, further includes:
False alarm is sent to far end system.
After being connected to far end system according to the address link information in the environmental information being collected into, first to far end system
False alarm is sent, then sends upgrade request to far end system.
It should be noted that sending false alarm to far end system, it can be and disposably report, i.e., only sent out to far end system
A false alarm is sent, is also possible to circulation and reports, that is, a timer is set, to after a stipulated time when timer,
The feedback that far end system provides is not received, sends false alarm to far end system again.
Meanwhile to far end system send upgrade request after, further includes:
Judge whether to receive in specified time and success message is received by the upgrade request that far end system is sent;
Judge not receiving in specified time and success message is received by the upgrade request that far end system is sent, again to remote
End system sends upgrade request;
It returns to judge whether to receive in specified time and success message is received by the upgrade request that far end system is sent.
It is received it should be noted that executing and judging whether to receive in specified time by the upgrade request that far end system is sent
This step of success message, mainly judges whether far end system has been properly received the upgrade request of base station transmission.When judging to refer to
It is not received in fixing time and success message is received by the upgrade request that far end system is sent, sent upgrading to far end system again and ask
It asks, hereafter continues to judge whether receive the upgrade request reception success message sent by far end system in specified time.
Furthermore in the present embodiment, the data configuration file sent by far end system, upgrade package and activation is received and is requested, packet
It includes:
Successively receive data configuration file, upgrade package and the activation request sent by far end system;
After receiving the data configuration file sent by far end system, further includes:
Successful data reception configuration file message is sent to far end system;
After receiving the upgrade package sent by far end system, further includes:
It is sent to far end system and is properly received upgrade package message;
After receiving the activation request sent by far end system, further includes:
It is sent to far end system and is properly received activation request message.
It should be noted that requesting after base station receives activation request according to activation, upgrade package and data configuration text are used
Part upgrading.
In the present embodiment, false alarm is sent to far end system, far end system can be made to understand the state of base station in time.When
Judge not receiving in specified time and success message is received by the upgrade request that far end system is sent, is sent out again to far end system
Upgrade request is sent, can guarantee that far end system can timely receive the update request message of base station transmission.In addition, receiving remote
After the data configuration file that end system is sent, successful data reception configuration file message is sent to far end system;It receives by distal end
After the upgrade package that system is sent, is sent to far end system and be properly received upgrade package message;Receive the activation sent by far end system
After request, to far end system send be properly received activation request message, mainly enable far end system understand base station whether at
Function receives data configuration file, upgrade package and the activation request that far end system is sent.
Another embodiment of the present invention provides a kind of abnormality eliminating method, is applied to far end system, wherein far end system
Including but not limited to operation and maintenance center.Referring to Fig. 2, comprising:
S201, it is connect with base station;
Wherein, after base station requests are connected to far end system, far end system is connect with base station.
The upgrade request that S202, reception are sent by base station;
S203, data configuration file, upgrade package and activation request are sent to base station.
It should be noted that send data configuration file, upgrade package and activation request arrive base station, be in order to make base station according to
Activation request, is upgraded using upgrade package and data configuration file, and having solved base station, there are file corruption exceptions or FLASH to damage
When bad abnormal, it can actively solve the problems, such as that damage is abnormal.
In the present embodiment, when file corruption exception occurs in base station or FLASH damage is abnormal, far end system is received by base
After the upgrade request sent of standing, data configuration file, upgrade package and activation request are sent to base station, base station is according to data configuration text
Part, upgrade package and activation request execute updating operation, and then base station is enable to work normally.
Optionally, in another embodiment of the present invention, after being connect with base station, further includes:
Receive the false alarm sent by base station;
After connecting with base station, the false alarm sent by base station is received first, then is received and asked by the upgrading that base station is sent
It asks.
After receiving the false alarm sent by base station, the message of base station one can be fed back to, can not also be made any
Movement.
Meanwhile after receiving the upgrade request sent by base station, further includes:
Upgrade request is sent in preset time receives success message to base station;
If not receiving upgrade request in the specified time of base station receives success message, reception is asked by the upgrading that base station retransmits
It asks;
It returns and sends upgrade request reception success message in preset time to base station.
It is connect it should be noted that sending upgrade request after receiving the upgrade request sent by base station, in preset time
Success message is received to base station, is to enable base station to recognize that far end system is successfully received the upgrading that base station is sent and asks
It asks.If not receiving upgrade request in the specified time of base station receives success message, the upgrade request retransmitted by base station is received, and
Upgrade request is sent within a preset time receives success message to base station.
Furthermore in the present embodiment, data configuration file, upgrade package and activation request are sent to base station, comprising:
Data configuration file, upgrade package and activation request are successively sent to base station;
After sending data configuration file to base station, further includes:
Receive the successful data reception configuration file message sent by base station;
After sending upgrade package to base station, further includes:
Receive the successful reception upgrade package message sent by base station;
After sending activation request to base station, further includes:
It receives and request message is activated by the successful reception that base station is sent.
In the present embodiment, the false alarm sent by base station is received, the operating status of base station can be understood in time.Receive by
Upgrade request is sent after the upgrade request that base station is sent, in preset time receives success message to base station, it is possible to notify that base station is
Through being properly received upgrade request.After sending data configuration file to base station, receives and configured by the successful data reception that base station is sent
File message;After sending upgrade package to base station, the successful reception upgrade package message sent by base station is received;Send activation request extremely
Behind base station, receives and request message is activated by the successful reception that base station is sent.Far end system can be made to understand whether base station successfully connects
Receive data configuration file, upgrade package and activation request.
For the understanding present invention that those skilled in the art is more clearly understood, it is explained now in conjunction with Fig. 3.
The present invention is the practical application based on wind river system framework.The bootload bootloader of wind river system framework reflects
As file does not support virtual LAN VLAN function, but by the long term evolution LTE protocol stack of universal mobile communications technology, drive
It is dynamic to be all integrated into kernel image file with Program Interfaces api interface is widely applied.In bootloader image file
Library and kernel image file part libraries be all by same source code selectivity compiling generate.Kernel image file is stored in sudden strain of a muscle
It deposits in FLASH, therefore has buried the hidden danger that FLASH is unable to normal load.But simple uses bootloader image file again
It is not able to satisfy the needs of actual environment, therefore needs to be transplanted to VLAN in bootloader image file while loading abnormality processing
Library.
Original bootloader image file is mainly made of a few part static libraries with dirverprj, we are available
Compiling source code generate with it is above-mentioned corresponding but include the VLAN of needs library (the integrated master in bootloader image file library
It to be specified by its corresponding compiling option).By the specified load abnormality processing library of modification compiling option, include the corresponding of VLAN
Library.To achieve the purpose that bootloader image file can load VLAN and abnormality processing library.
It should be understood that
1, abnormality processing library is that the processing of System guides file BOOT boot section program is supplied in a manner of static library.
The entrance function of exception handler should be additionally loaded when the program start-up loading of the boot section BOOT, and needed at waiting
Manage result.If result is normal starting, the boot section BOOT program continues normal load follow-up process.It is opened if it is abnormal
It is dynamic, that is, it is in abnormality processing state, then carries out updating operation, and restart base station after the completion of updating operation.
2, in bootloader image file there are random access memory ram function, but the inactive function, work as exception
When processing speed is very slow, RAM is initialized, improves service speed.
The communication process between base station and far end system is described in detail now in conjunction with Fig. 3.
It is not damaged when base station detects flash memory damage or flash memory, load document damage, after being connected to far end system at this time,
Execute following steps.
S301, base station send false alarm to far end system;
S302, base station send upgrade request to far end system;
S303, far end system send upgrade request to base station and receive success message;
S304, upgrade request reception success message whether is had successfully received in the detection specified time of base station, if receiving not successfully
Upgrade request receives success message, returns to S302;
S305, far end system are not received again by the upgrade request of base station transmission, send data configuration text to base station at this time
Part;
S306, base station send successful data reception configuration file message to far end system;
S307, far end system send upgrade package to base station;
S308, base station are sent to far end system is properly received upgrade package message;
S309, far end system send activation request to base station;
S310, base station are sent to far end system is properly received activation request message.
Wherein, it after base station sends upgrade request to far end system, needs far end system to send upgrade request to base station and receives
After success message and far end system send data configuration file, upgrade package and activation request to base station, distal end is successively given in base station
System makes feedback, is to understand whether the communication between base station and far end system is being normally carried out at any time.
In addition, base station can send connection request to far end system, and far end system is being agreed to when base station is connected to far end system
When the connection request, need to verify, such as need to input preset password, if input password it is correct, can succeed and base
Connection of standing cannot be successfully connected if inputting password mistake.Wherein, inputting preset password is a kind of shape verified
Formula can also have other verification modes.
Another embodiment of the present invention provides a kind of exception handling devices, are applied to base station, referring to Fig. 4, comprising:
Environmental information unit 101 is collected, real-time collecting environmental information is used for;
Wherein, environmental information includes address link information, virtual LAN link information, routing link information and file school
Test information;
First judging unit 102, for judge the address link information in the environmental information being collected into content whether be
Blank, and judge whether the content of the file verification information in the environmental information being collected into is blank;
Flash memory detection unit 103, for judging that the address in the environmental information being collected into connects when the first judging unit 102
The content for connecing information is not blank, and the content of the file verification information in the environmental information being collected into is not blank, and detection is dodged
It deposits and whether damages;
Formatting unit 104 detects that flash memory damages for flash memory detection unit 103, executes Flash formatization operation;
Connection unit 105, for being connected to far end system according to the address link information in the environmental information being collected into;
Upgrade request transmission unit 106, for sending upgrade request to far end system;
Receiving unit 107, for receiving the data configuration file, upgrade package and the activation request that are sent by far end system;
Upgrade unit 108 is upgraded for being requested according to activation using upgrade package and data configuration file;
Unit 109 is restarted, for restarting;
Load document detection unit 110, for detecting that flash memory does not damage when flash memory detection unit 103, according to receipts
Whether the file verification infomation detection load document in the environmental information collected is damaged;
Wherein, load document is the file that control system operates normally;
Specifically, load document detection unit 110, comprising:
Comparing unit, for comparing under file verification information and abnormality processing state under the normal operating condition being collected into
File verification information it is whether consistent;
The file verification information compared under normal operating condition is consistent with the file verification information under abnormality processing state,
Load document is not damaged;
The file verification information compared under the file verification information and abnormality processing state under normal operating condition is different
It causes, load document damage.
Wherein, connection unit 105 are also used to load document detection unit 110 and detect that load document is damaged, according to collection
To environmental information in address link information be connected to far end system.
A kind of exception handling device is present embodiments provided to format after flash memory detection unit 103 detects flash memory damage
Unit 104 executes Flash formatization operation, and connection unit 105 is connected according to the address link information in the environmental information being collected into
To far end system, upgrade request transmission unit 106 sends upgrade request to far end system, and receiving unit 107 is received by being distally
Data configuration file, upgrade package and the activation request that system is sent;Upgrade unit 108 is requested according to activation, using upgrade package and
Data configuration file upgrading after the completion of upgrading, restarts unit 109 and restarts base station, can accomplish when flash memory damages,
Automatically it is formatted and updating operation, to solve the problems, such as that flash memory damages;When flash memory does not damage, load document is detected
Unit 110 detects whether load document is damaged, and when detecting load document damage, connection unit 105 is according to the environment being collected into
Address link information in information is connected to far end system, and upgrade request transmission unit 106 sends upgrade request to far end system,
Receiving unit 107 receives the data configuration file sent by far end system, upgrade package and activation and requests;108 basis of upgrade unit
Activation request, is upgraded using upgrade package and data configuration file, after the completion of upgrading, is restarted unit 109 and is restarted base station, energy
Enough accomplish to carry out updating operation automatically when flash memory does not damage, load document is damaged, to solve the problems, such as that load document is damaged.
Above-mentioned two situations can accomplish to solve the problems, such as base station exception automatically, solve base station in the prior art and file corruption occur
When exception or abnormal FLASH damage, base station exception cannot be solved the problems, such as automatically.
It should be noted that the course of work of each unit in the present embodiment, please refers to the corresponding explanation of Fig. 1, herein
It repeats no more.
Optionally, in another embodiment of the present invention, further includes:
Upgrade package detection unit, the data configuration file sent for the reception of receiving unit 107 by far end system, upgrade package
After activation request, whether the file detected in upgrade package being capable of normal use;
Wherein, upgrade unit 108 are also used to upgrade package detection unit and detect that the file in upgrade package can normally make
With, according to activation request, use upgrade package and data configuration file upgrading.
In the present embodiment, upgrade package detection unit receives the data configuration text sent by far end system in receiving unit 107
Part, upgrade package and activation request after, detect upgrade package in file whether can normal use, upgrade package can received
Afterwards, whether the file in time in detection upgrade package being capable of normal use.
It should be noted that the course of work of each unit in the present embodiment please refers to the corresponding explanation of Fig. 1, herein not
It repeats again.
Optionally, in another embodiment of the present invention, referring to Fig. 5, receiving unit 107 includes:
Successively receiving unit 1071, for successively receiving the data configuration file sent by far end system, upgrade package and swashing
Request living;
Exception handling device further include:
First message transmission unit 112 receives the data configuration sent by far end system for successively receiving unit 1071
After file, successful data reception configuration file message is sent to far end system;
Second message transmission unit 113, after receiving the upgrade package sent by far end system for successively receiving unit 1071,
It is sent to far end system and is properly received upgrade package message;
Third message sending unit 114 is received for successively receiving unit 1071 and is requested by the activation that far end system is sent
Afterwards, it is sent to far end system and is properly received activation request message;
False alarm transmission unit 115 connects letter according to the address in the environmental information being collected into for connection unit 105
After breath is connected to far end system, false alarm is sent to far end system;
Second judgment unit 111, after sending upgrade request to far end system for upgrade request transmission unit 106, judgement
Whether received in specified time and success message is received by the upgrade request that far end system is sent;
Wherein, upgrade request transmission unit 106 is also used to second judgment unit 111 and judges not receive in specified time
Success message is received to the upgrade request sent by far end system, sends upgrade request to far end system again;
Second judgment unit 111 is also used to upgrade request transmission unit 106 and sends upgrade request to far end system again
Afterwards, judge whether to receive in specified time and success message is received by the upgrade request that far end system is sent.
In the present embodiment, after successively receiving unit 1071 receives the data configuration file that far end system is sent, first disappears
It ceases transmission unit 112 and sends successful data reception configuration file message to far end system;Successively receiving unit 1071 is received by remote
After the upgrade package that end system is sent, second message transmission unit 113 sends to far end system and is properly received upgrade package message;Successively
After receiving unit 1071 receives the activation request sent by far end system, third message sending unit 114 is sent to far end system
It is properly received activation request message, far end system is mainly enable to understand the number whether base station is properly received far end system transmission
According to configuration file, upgrade package and activation request.In addition, false alarm transmission unit 115 sends false alarm, energy to far end system
Far end system is enough set to understand the operating status of base station in time.Second judgment unit 111 judge not receive in specified time by
The upgrade request that far end system is sent receives success message, and upgrade request transmission unit 106 is sent to far end system again to be upgraded
Request, can be to avoid because some factors influence far end systems such as environment, network receive upgrade request or receive upgrading
After request, base station, which is not properly received, receives this kind of situation of success message by the upgrade request that far end system is sent.
It should be noted that the course of work of each unit in the present embodiment please refers to the corresponding theory of above-described embodiment
Bright, details are not described herein.
A kind of exception handling device is provided in another embodiment of the present invention, is applied to far end system, referring to Fig. 6, packet
It includes:
Link block 201, for being connect with base station;
Receiving module 202, for receiving the upgrade request sent by base station;
Sending module 203, for sending data configuration file, upgrade package and activation request to base station.
In the present embodiment, when file corruption exception occurs in base station or FLASH damage is abnormal, receiving module 202 is received
After the upgrade request sent by base station, sending module 203 sends data configuration file, upgrade package and activation request, base to base station
It stands and updating operation is executed according to data configuration file, upgrade package and activation request, and then base station is enable to work normally.
It should be noted that the course of work of each unit in the present embodiment corresponding explanation referring to figure 2., herein not
It repeats again.
Optionally, in another embodiment of the present invention, reference Fig. 7,
Sending module 203, comprising:
Successively sending module 2031, for successively sending data configuration file, upgrade package and activation request to base station;
Far end system further include:
First receiving module 205 after sending data configuration file to base station for successively sending module 2031, is received by base
Stand send successful data reception configuration file message;
Second receiving module 206, after sending upgrade package to base station for successively sending module 2031, reception is sent by base station
Successful reception upgrade package message;
Third receiving module 207, after sending activation request to base station for successively sending module 2031, reception is sent out by base station
The successful reception activation request message sent;
False alarm receiving module 208 after connecting for link block 201 with base station, receives the mistake sent by base station
Alarm;
Message transmission module 204, after receiving the upgrade request sent by base station for receiving module 202, in preset time
It sends upgrade request and receives success message to base station;
Wherein, receiving module 202 connect if being also used to not receive upgrade request in the specified time of base station receives success message
Receive the upgrade request retransmitted by base station;
Message transmission module 204, after receiving the upgrade request retransmitted by base station for receiving module 202, when presetting
Interior transmission upgrade request receives success message to base station.
In the present embodiment, after successively sending module 2031 sends data configuration file to base station, the first receiving module 205 is connect
Receive the successful data reception configuration file message sent by base station;After successively sending module 2031 sends upgrade package to base station, the
Two receiving modules 206 receive the successful reception upgrade package message sent by base station;Successively sending module 2031 sends activation request
To base station, third receiving module 207, which is received, activates request message by the successful reception that base station is sent.It can make far end system
Whether solution base station is successfully received data configuration file, upgrade package and activation request.In addition, false alarm receiving module 208 connects
The false alarm sent by base station is received, the operating status of base station can be understood in time.Message transmission module 204 is in receiving module
Upgrade request is sent after 202 receive the upgrade request sent by base station, in preset time and receives success message to base station, can be made
Base station understands far end system and is successfully received upgrade request.
It should be noted that the course of work of each unit in the present embodiment please refers to the corresponding theory of above-described embodiment
Bright, details are not described herein.
The foregoing description of the disclosed embodiments can be realized sheet+skilled artisan or using the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.