Content of the invention
In view of this, the present invention provides a kind of abnormality eliminating method and device, file corruption extremely to solve base station
Or it is impossible to automatically solve the problems, such as that base station is abnormal when FLASH damages abnormal.
For solving above-mentioned technical problem, present invention employs following technical scheme:
A kind of abnormality eliminating method, is applied to base station, including:
Real-time collecting environmental information, described environmental information includes address link information, VLAN link information, route
Link information and file verification information;
Whether the content judging the address link information in the environmental information collected is blank, and judge to collect
Whether the content of the file verification information in environmental information is blank;
The content judging the address link information in the environmental information collected is not blank, and the environment letter collected
The content of the file verification information in breath is not blank, and whether detection flash memory damages;
Detect that described flash memory damages, execution Flash formatization operation;
Far end system is connected to according to the address link information in the described environmental information collected;
Send upgrade request to described far end system;
Receive the data configuration file being sent by described far end system, AKU and activation request;
According to described activation request, using described AKU and the upgrading of described data configuration file;
Restart;
Detect that damaging, according to the file verification infomation detection in the described environmental information collected does not occur in described flash memory
Whether load document is damaged, and described load document is the normal file running of control system;
Detect that described load document is damaged, the address jumping in the environmental information collected described in described basis connects
Information is connected to far end system.
Preferably, the file verification information in the environmental information collected described in described basis, whether detection load document
Damage, including:
File verification letter under file verification information and abnormality processing state under the normal operating condition relatively collected
Whether breath is consistent;
Compare the file verification under the file verification information and described abnormality processing state under described normal operating condition
Information is consistent, and load document is not damaged;
Compare the file verification under the file verification information and described abnormality processing state under described normal operating condition
Information is inconsistent, and load document is damaged.
Preferably,
After address link information in the environmental information collected described in described basis is connected to far end system, also include:
Send false alarm to described far end system;
After the described transmission upgrade request to described far end system, also include:
Judge to specify whether to receive in the time and success message is received by the upgrade request that described far end system sends;
Judge to specify not receiving in the time and success message received by the described upgrade request that described far end system sends,
Again send described upgrade request to described far end system;
Return whether to receive in the described judgement specified time and received successfully by the upgrade request that described far end system sends
Message;
Data configuration file, AKU and activation request that described reception is sent by described far end system, including:
Receive the data configuration file being sent by described far end system, AKU and activation request successively;
After the data configuration file that described reception is sent by described far end system, also include:
Send successful data reception configuration file message to described far end system;
After the AKU that described reception is sent by described far end system, also include:
Send to described far end system and be properly received AKU message;
After the activation request that described reception is sent by described far end system, also include:
Send to described far end system and be properly received activation request message.
Preferably, after described reception is sent by described far end system data configuration file, AKU and activation request, also
Including:
Detect whether the file in described AKU can normally use;
Detect that the file in described AKU can normally use, execution is described to ask according to described activation, using institute
State AKU and the upgrading of described data configuration file.
A kind of abnormality eliminating method, is applied to far end system, including:
It is connected with base station;
Receive the upgrade request being sent by described base station;
Send data configuration file, AKU and activation request to described base station.
Preferably,
Described be connected with base station after, also include:
Receive the false alarm being sent by described base station;
After the upgrade request that described reception is sent by described base station, also include:
Send upgrade request in Preset Time and receive success message to described base station;
If described base station is specified does not receive described upgrade request reception success message in the time, receive by described base station again
The described upgrade request sending;
Return and send upgrade request reception success message in described Preset Time to described base station;
Described transmission data configuration file, AKU and activation request extremely described base station, including:
Send data configuration file, AKU and activation request successively to described base station;
Described transmission data configuration file, to described base station, also includes:
Receive the successful data reception configuration file message being sent by described base station;
Described transmission AKU, to described base station, also includes:
Receive and be properly received AKU message by what described base station sent;
Described transmission activates request to described base station, also includes:
Receive and be properly received activation request message by what described base station sent.
A kind of exception handling device, is applied to base station, including:
Collect environmental information unit, for real-time collecting environmental information, described environmental information includes address link information, void
Intend LAN link information, route link information and file verification information;
First judging unit, whether the content for judging the address link information in the environmental information collected is empty
In vain, and judge whether the content of the file verification information in the environmental information collected is blank;
Flash memory detector unit, for judging the connection of the address in the environmental information collected when described first judging unit
The content of information is not blank, and the content of the file verification information in the environmental information collected is not blank, detects flash memory
Whether damage;
For described flash memory detector unit, formatting unit, detects that described flash memory damages, execution Flash formatization operation;
Connection unit, for being connected to far end system according to the address link information in the described environmental information collected;
Upgrade request transmitting element, for sending upgrade request to described far end system;
Receiving unit, for receiving the data configuration file being sent by described far end system, AKU and activation request;
Upgrade unit, for according to described activation request, using described AKU and the upgrading of described data configuration file;
Restart unit, be used for restarting;
Load document detector unit, for detecting that damaging does not occur in described flash memory when described flash memory detector unit, according to
Whether the file verification infomation detection load document in the described environmental information collected is damaged, and described load document is to control system
The normal file running of system;
Wherein, described connection unit, is additionally operable to described load document detector unit and detects that described load document is damaged, root
It is connected to far end system according to the address link information in the described environmental information collected.
Preferably, described load document detector unit, including:
Comparing unit, for comparing under file verification information and abnormality processing state under the normal operating condition collected
File verification information whether consistent;
Compare the file verification under the file verification information and described abnormality processing state under described normal operating condition
Information is consistent, and load document is not damaged;
Compare the file verification under the file verification information and described abnormality processing state under described normal operating condition
Information is inconsistent, and load document is damaged.
Preferably,
Described receiving unit includes:
Receiving unit successively, for receiving the data configuration file being sent by described far end system, AKU successively and swashing
Live and ask;
Described exception handling device also includes:
First message transmitting element, receives, for described receiving unit successively, the data configuration being sent by described far end system
After file, send successful data reception configuration file message to described far end system;
Second message sending unit, receives, for described receiving unit successively, the AKU being sent by described far end system
Afterwards, send to described far end system and be properly received AKU message;
3rd message sending unit, receives for described receiving unit successively and is asked by the activation that described far end system sends
Afterwards, send to described far end system and be properly received activation request message;
False alarm transmitting element, connects according to the address in the described environmental information collected for described connection unit
After information is connected to far end system, send false alarm to described far end system;
Second judging unit, sends after upgrade request to described far end system for described upgrade request transmitting element, sentences
Whether severed finger receives, in fixing time, the upgrade request reception success message being sent by described far end system;
Wherein, described upgrade request transmitting element, is additionally operable to described second judging unit and judges not connecing in the specified time
Receive and success message is received by the described upgrade request that described far end system sends, again send described liter to described far end system
Level request;
Described second judging unit, is additionally operable to described upgrade request transmitting element again described to the transmission of described far end system
After upgrade request, judge to specify in the time, whether to receive the upgrade request reception success message being sent by described far end system.
Preferably, also include:
AKU detector unit, the data configuration file being sent by described far end system for the reception of described receiving unit,
After AKU and activation request, detect whether the file in described AKU can normally use;
Wherein, described upgrade unit, is additionally operable to described AKU detector unit and detects the file energy in described AKU
Enough normal uses, according to described activation request, using described AKU and the upgrading of described data configuration file.
A kind of exception handling device, is applied to far end system, including:
Link block, for being connected with base station;
Receiver module, for receiving the upgrade request being sent by described base station;
Sending module, for sending data configuration file, AKU and activation request to described base station.
Preferably,
Described sending module, including:
Sending module successively, for sending data configuration file, AKU and activation request successively to described base station;
Described far end system also includes:
First receiver module, for described sending module successively send data configuration file to behind described base station, receive by
The successful data reception configuration file message that described base station sends;
Second receiver module, sends AKU to described base station for described sending module successively, receives by described base
Stand send be properly received AKU message;
3rd receiver module, sends activation request to described base station for described sending module successively, receives by described
What base station sent is properly received activation request message;
False alarm receiver module, after being connected with base station for described link block, receives the mistake being sent by described base station
False alarm;
Message transmission module, receives after the upgrade request being sent by described base station for described receiver module, Preset Time
Interior transmission upgrade request receives success message to described base station;
Wherein, described receiver module, if be additionally operable to described base station specify the time in do not receive described upgrade request and receive into
Work(message, receives the described upgrade request being resend by described base station;
Described message transmission module, is additionally operable to described receiver module reception and is asked by the described upgrading that described base station resends
After asking, send upgrade request in Preset Time and receive success message to described base station.
Compared to prior art, the invention has the advantages that:
The invention provides a kind of abnormality eliminating method and device, after base station detects flash memory damage, execute Flash format
Change operation, far end system is connected to and to far end system transmission upgrading according to the address link information in the environmental information collected
Request, receives the data configuration file being sent by far end system, AKU and activation request;According to activation request, using upgrading
Bag and data configuration file upgrading, after the completion of upgrading, restart base station, can accomplish when damaging occurs in flash memory, automatically
Format and updating operation, to solve the problems, such as that flash memory damages;When damaging does not occur in flash memory, whether detection load document
Damage, when detecting load document damage, far end system is connected to according to the address link information in the environmental information collected
And send upgrade request to far end system, receive the data configuration file being sent by far end system, AKU and activation request;Root
According to activation request, using AKU and data configuration file upgrading, after the completion of upgrading, restart base station, can accomplish
When flash memory does not damage, load document is damaged, automatically carry out updating operation, to solve the problems, such as that load document is damaged.Above two
Situation, all can accomplish automatically to solve the problems, such as that base station is abnormal, solve base station in prior art occur file corruption abnormal or
It is impossible to automatically solve the problems, such as that base station is abnormal when FLASH damages abnormal.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of abnormality eliminating method, be applied to base station, with reference to Fig. 1, including:
S101, real-time collecting environmental information;
Wherein, environmental information includes address link information, VLAN link information, route 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 is collected and is belonged to intercrossing collection, mainly includes following several parts:
Part I:After normal operating condition stable operation for a period of time, collect address link information, VLAN
Link information, route link information and file verification information;
Part II:File verification information is collected when upgrading under normal operating conditions;
Part III:After being connected with far end system under normal operating conditions, collect address link information;
Part IV:Collect address link information under abnormality processing state, VLAN link information route connects
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 the address link information of Part I, Part II and Part III collection, VLAN
Link information and route 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.
The collection of the address link information of Part I, VLAN link information and route link information is mainly to be protected
Demonstrate,prove the collection of reliable and normal stability;The collection of the file verification information of Part I is to ensure that current version is reliable
And version information that normal service can be provided collect, prevent task from hanging abnormal startup of waiting indefinitely, remove trial operation version school
Test information, in addition additionally it is possible to provide necessary data foundation for the verification under abnormality processing state, when needing abnormality processing
When, after base station is connected to far end system, the version which correlation far end system obtains can be notified to recover.
The file verification information of Part II be mainly for equipment trial operation under abnormality processing state when provide school
Test foundation.
The address link information of Part III is collected when mainly preventing base station to be connected with far end system, and far end system is actively
Change related address information and lead to base station cannot again connect to far end system.
The information of Part IV and Part V is primarily to obtain Part I, Part II and Part III
The file verification information collected, and make comparisons with the file verification information of Part IV and Part V storage, verification loads literary composition
Whether part damages.
Whether S102, the content of the address link information judging in the environmental information collected are blank, and judge to receive
Whether the content of the file verification information in the environmental information collecting is blank;
The content judging the address link information in the environmental information collected is not blank, and the environment letter collected
The content of the file verification information in breath is not blank, executes S103;
Wherein, the content judging address link information in the environmental information collected is blank, cannot be normal
It is connected to far end system, thus after breaking down in base station, nor download normal upgrade file to base station;When judge receive
Collect to environmental information in the content of file verification information be blank it is impossible to go to verify whether load document is damaged, thus
Can not judge whether base station file corruption abnormal.When in the address link information in the environmental information judging to collect
It is not blank for holding, and the content of the file verification information in the environmental information collected is not blank, now proves that base station can
Far end system is connected to according to the address link information in the environmental information collected, and can detect whether load document damages
Bad, because load document is located in flash memory, should need first to detect whether flash memory damages.
Whether S103, detection flash memory damage;
When detecting flash memory damage, execute S104;Detect that damaging does not occur in flash memory, execute S110;
It should be noted that when damaging occurs in flash memory, being placed on the load document in flash memory nor normal use, institute
To be now no longer necessary to detect whether load document is damaged.
S104, execution Flash formatization operation;
Address link information in the environmental information that S105, basis are collected is connected to far end system;
Specifically, far end system is connected to according to the address link information collected under normal condition.Wherein, by transmission
Control protocol Transmission Control Protocol is attached.
S106, to far end system send upgrade request;
Data configuration file, AKU and activation request that S107, reception are sent by far end system;
It should be noted that by transmitting data configuration file, the AKU that file protocol reception is sent by far end system
With activation request.Wherein, transmission file protocol includes but is not limited to file transfer protocol (FTP) File Transfer Protocol.
Optionally, in another embodiment of the present invention, receive sent by far end system data configuration file, AKU and
After activation request, also include:
Whether the file in detection AKU can normally use;Detect that the file in AKU can normally use,
Execution S108.
Specifically, detect whether the file in AKU can normally use using cyclic redundancy check (CRC) algorithm.
S108, according to activation request, using AKU and data configuration file upgrading;
Specifically, according to activation request, using AKU and data configuration file, is upgraded in base station, base station receives
To after activation request, activation manipulation is executed to AKU data configuration file, AKU data configuration file is carried out
The operation such as unpacking, so that AKU data configuration file comes into force.In escalation process, run in network and have no progeny, can be automatic
Again upgrade.
S109, restart;
Whether the file verification infomation detection load document in the environmental information that S110, basis are collected is damaged;Detect
Load document is damaged, and executes S105.
Wherein, load document is the normal file running of control system.When detecting that load document do not damage, base station is normal
It is no longer necessary to execution S105 and subsequent step, there is not file corruption exception or FLASH damage abnormal phenomenon in work.
Specifically, according to the file verification information in the environmental information collected, whether detection load document is damaged, bag
Include:
File verification letter under file verification information and abnormality processing state under the normal operating condition relatively collected
Whether breath is consistent;
The file verification information comparing under normal operating condition is consistent with the file verification information under abnormality processing state,
Load document is not damaged;
The file verification information comparing under file verification information and abnormality processing state under normal operating condition differs
Cause, load document is damaged.
Compare the file verification information that Part I, Part II and the Part III of Part IV acquisition are collected, and
Make comparisons with the file verification information of Part IV and Part V storage, compare two file verification information consistent it was demonstrated that
Load document is not damaged, and compares that two file verification information is inconsistent it was demonstrated that load document is damaged.
Wherein, collect file verification information to be collected using Message Digest 5 MD5 algorithm.MD5 algorithm is computer
A kind of widely used hash function in security fields, in order to provide the integrity protection of message.
It should be noted that when detecting that flash memory does not damage and load document is not damaged, now base station is normally run, no
Require connect to far end system.
Present embodiments provide a kind of abnormality eliminating method, after base station detects flash memory damage, execution Flash formatization behaviour
Make, according to the address link information in the environmental information collected be connected to far end system and to far end system send upgrading please
Ask, receive the data configuration file being sent by far end system, AKU and activation request;According to activation request, using AKU
And data configuration file upgrading, after the completion of upgrading, restart base station, can accomplish, when damaging occurs in flash memory, automatically to enter
Formatting lines and updating operation, to solve the problems, such as that flash memory damages;When damaging does not occur in flash memory, whether detection load document damages
Bad, when detecting load document damage, far end system is connected to simultaneously according to the address link information in the environmental information collected
Send upgrade request to far end system, receive the data configuration file being sent by far end system, AKU and activation request;According to
Activation request, using AKU and data configuration file upgrading, after the completion of upgrading, restarts base station, can accomplish dodging
Deposit do not damage, load document damage when, automatically carry out updating operation, to solve the problems, such as load document damage.Above two feelings
Condition, all can accomplish automatically to solve the problems, such as that base station is abnormal, solve base station in prior art occur file corruption abnormal or
It is impossible to automatically solve the problems, such as that base station is abnormal when FLASH damages abnormal.
Optionally, in another embodiment of the present invention, connected according to the address link information in the environmental information collected
To after far end system, also include:
Send false alarm to far end system.
After far end system being connected to according to the address link information in the environmental information collected, first to far end system
Send false alarm, then send upgrade request to far end system.
It should be noted that sending false alarm to far end system, can be disposably to report, only sending out to far end system
Send a false alarm or circulation to report, that is, a timer is set, during timer to after a stipulated time,
Do not receive the feedback that far end system provides, send false alarm to far end system again.
Meanwhile, send after upgrade request to far end system, also include:
Judge to specify whether to receive in the time and success message is received by the upgrade request that far end system sends;
Judge to specify and do not receive the upgrade request being sent by far end system in the time and receive success message, again to remote
End system sends upgrade request;
Return to judge to specify whether to receive in the time and success message is received by the upgrade request that far end system sends.
It should be noted that whether execution judges to specify to receive in the time being received by the upgrade request that far end system sends
This step of success message, mainly judges whether far end system has been properly received the upgrade request of base station transmission.When judge refer to
Do not receive in fixing time and success message is received by the upgrade request that far end system sends, again sending upgrading to far end system please
Ask, hereafter continue to judge to specify whether to receive in the time to receive success message by the upgrade request that far end system sends.
In addition, in the present embodiment, the data configuration file being sent by far end system, AKU and activation request, bag are received
Include:
Receive the data configuration file being sent by far end system, AKU and activation request successively;
After receiving the data configuration file being sent by far end system, also include:
Send successful data reception configuration file message to far end system;
After receiving the AKU being sent by far end system, also include:
Send to far end system and be properly received AKU message;
After receiving the activation request being sent by far end system, also include:
Send to far end system and be properly received activation request message.
It should be noted that after base station receives activation request, according to activation request, using AKU and data configuration literary composition
Part is upgraded.
In the present embodiment, send false alarm to far end system, far end system can be made to understand the state of base station in time.When
Judge to specify not receiving in the time and success message is received by the upgrade request that far end system sends, again send out to far end system
Send upgrade request, ensure that far end system can timely receive the update request message of base station transmission.Additionally, receiving remote
After the data configuration file that end system sends, send successful data reception configuration file message to far end system;Receive by far-end
After the AKU that system sends, send to far end system and be properly received AKU message;Receive the activation being sent by far end system
After request, send to far end system and be properly received activation request message, mainly make far end system will appreciate that whether base station becomes
Work(receives data configuration file, AKU and the activation request that far end system sends.
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 maintenance center.Reference Fig. 2, including:
S201 is connected with base station;
Wherein, after base station requests are connected to far end system, far end system is connected with base station.
The upgrade request that S202, reception are sent by base station;
S203, transmission data configuration file, AKU and activation request are to base station.
It should be noted that send data configuration file, AKU and activation request arrive base station, be in order that base station according to
Activation request, using AKU and data configuration file upgrading, has solved base station and there is file corruption exception or FLASH damage
When bad abnormal, can actively solve the problems, such as to damage exception.
In the present embodiment, when file corruption exception in base station or FLASH damages abnormal, far end system receives by base
After the upgrade request sending of standing, send data configuration file, AKU and activation request to base station, base station is according to data configuration literary composition
Part, AKU and activation request execution updating operation, and then enable base station normal work.
Optionally, in another embodiment of the present invention, after being connected with base station, also include:
Receive the false alarm being sent by base station;
After being connected with base station, receive the false alarm being sent by base station first, then receive the upgrading being sent by base station please
Ask.
After receiving the false alarm being sent by base station, base station one message can be fed back to it is also possible to not make any
Action.
Meanwhile, after receiving the upgrade request being sent by base station, also include:
Send upgrade request in Preset Time and receive success message to base station;
If base station is specified does not receive upgrade request reception success message in the time, receiving the upgrading being resend by base station please
Ask;
Return and send upgrade request reception success message in Preset Time to base station.
It should be noted that after receiving the upgrade request being sent by base station, sending upgrade request in Preset Time and connect
Receive success message to base station, be in order that base station will be understood that far end system is successfully received the upgrading of base station transmission please
Ask.If base station is specified does not receive upgrade request reception success message in the time, receive the upgrade request being resend by base station, and
Send upgrade request and receive success message to base station in Preset Time.
In addition in the present embodiment, transmission data configuration file, AKU and activation request to base station, including:
Send data configuration file, AKU and activation request successively to base station;
Send data configuration file to base station, also include:
Receive the successful data reception configuration file message being sent by base station;
Send AKU to base station, also include:
Receive and be properly received AKU message by what base station sent;
Send activation request to base station, also include:
Receive and be properly received activation request message by what base station sent.
In the present embodiment, receive the false alarm being sent by base station, the running status of base station can be understood in time.Receive by
After the upgrade request that base station sends, send upgrade request in Preset Time and receive success message to base station, it is possible to notify that base station is
Through being properly received upgrade request.Send data configuration file to base station, receive and configured by the successful data reception that base station sends
File message;Send AKU to base station, receive and be properly received AKU message by what base station sent;Send activation request extremely
Behind base station, receive and be properly received activation request message by what base station sent.Far end system can be made to understand whether base station successfully connects
Receive data configuration file, AKU and activation request.
The understanding present invention becoming more apparent for those skilled in the art, explains 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 virtual LAN VLAN function do not supported by file, but by the Long Term Evolution LTE protocol stack of universal mobile communications technology, drive
Dynamic and extensive application Program Interfaces api interface has all been integrated in kernel image file.In bootloader image file
The part libraries of storehouse and kernel image file be all that generation is optionally compiled by same source code.Kernel image file leaves sudden strain of a muscle in
Deposit in FLASH, therefore buried the hidden danger that FLASH is unable to normal load.But simple use bootloader image file is again
The needs of actual environment can not be met, therefore need VLAN is transplanted in bootloader image file and load abnormality processing simultaneously
Storehouse.
Original bootloader image file is mainly made up of with dirverprj a few part static libraries, and we can be utilized
Compiling source code generates storehouse (the integrated master in bootloader image file storehouse with the above-mentioned corresponding VLAN still comprising needs
To be specified by its corresponding compiling option).Specified by modification compiling option and load abnormality processing storehouse, comprise the corresponding of VLAN
Storehouse.Thus reaching bootloader image file can load VLAN and the purpose in abnormality processing storehouse.
It should be noted that:
1st, abnormality processing storehouse is to be supplied to System guides file BOOT boot section routine processes in the way of static library.
The entrance function of exception handler should additionally be loaded during the program start-up loading of BOOT boot section, and need at wait
Reason result.If result is normal startup, BOOT boot section program continues normal load follow-up process.Open if abnormal
Dynamic, that is, it is in abnormality processing state, then carries out updating operation, and restart base station after the completion of updating operation.
2nd, there is random access memory ram function in bootloader image file, but this function not actuated, work as exception
When processing speed is very slow, RAM is initialized, improve speed of operation.
Describe in detail the communication process between base station and far end system in conjunction with Fig. 3.
When base station detects that flash memory damages or flash memory does not damage, load document is damaged, after being now connected to far end system,
Execution 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, base station detection specify whether have successfully received upgrade request reception success message in the time, if unsuccessful receive
Upgrade request receives success message, returns S302;
S305, far end system are not received again by the upgrade request of base station transmission, now send data configuration literary composition to base station
Part;
S306, base station send successful data reception configuration file message to far end system;
S307, far end system send AKU to base station;
S308, base station send to far end system and are properly received AKU message;
S309, far end system send activation request to base station;
S310, base station send to far end system and are properly received activation request message.
Wherein, base station sends after upgrade request to far end system, needs far end system to send upgrade request to base station and receives
Success message, and far end system to base station send data configuration file, AKU and activation request after, base station successively give far-end
System makes feedback, is to will appreciate that whether the communication between base station and far end system is being normally carried out at any time.
In addition, when base station is connected to far end system, base station can send connection request to far end system, far end system is being agreed to
During this connection request, need to verify, if desired for inputting password set in advance, if input password is correct, being capable of success and base
Stand connection, if input code error, can not be successfully connected.Wherein, input a kind of shape that password set in advance is checking
Formula, can also have other verification modes.
Another embodiment of the present invention provides a kind of exception handling device, is applied to base station, with reference to Fig. 4, including:
Collect environmental information unit 101, for real-time collecting environmental information;
Wherein, environmental information includes address link information, VLAN link information, route link information and file school
Test information;
First judging unit 102, whether the content for judging the address link information in the environmental information collected be
Blank, and judge whether the content of the file verification information in the environmental information collected is blank;
Flash memory detector unit 103, for judging the address in the environmental information collected even when the first judging unit 102
The content connecing information is not blank, and the content of the file verification information in the environmental information collected is not blank, and detection is dodged
Deposit and whether damage;
For flash memory detector unit 103, formatting unit 104, detects that flash memory damages, execution Flash formatization operation;
Connection unit 105, for being connected to far end system according to the address link information in the environmental information collected;
Upgrade request transmitting element 106, for sending upgrade request to far end system;
Receiving unit 107, for receiving the data configuration file being sent by far end system, AKU and activation request;
Upgrade unit 108, for according to activation request, using AKU and data configuration file upgrading;
Restart unit 109, be used for restarting;
Load document detector unit 110, for detecting that damaging does not occur in flash memory when flash memory detector unit 103, according to receipts
Whether the file verification infomation detection load document in the environmental information collecting is damaged;
Wherein, load document is the normal file running of control system;
Specifically, load document detector unit 110, including:
Comparing unit, for comparing under file verification information and abnormality processing state under the normal operating condition collected
File verification information whether consistent;
The file verification information comparing under normal operating condition is consistent with the file verification information under abnormality processing state,
Load document is not damaged;
The file verification information comparing under file verification information and abnormality processing state under normal operating condition differs
Cause, load document is damaged.
Wherein, connection unit 105, are additionally operable to load document detector 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.
Present embodiments provide a kind of exception handling device, after flash memory detector unit 103 detects flash memory damage, format
Unit 104 execution Flash formatization operation, connection unit 105 connects according to the address link information in the environmental information collected
To far end system, upgrade request transmitting element 106 sends upgrade request to far end system, and receiving unit 107 receives by far-end system
Data configuration file, AKU and activation request that system sends;Upgrade unit 108 according to activation request, using AKU and
Data configuration file is upgraded, and after the completion of upgrading, restarts unit 109 and restarts base station, can accomplish when damaging occurs in flash memory,
Automatically format and updating operation, to solve the problems, such as that flash memory damages;When damaging does not occur in flash memory, load document detects
Whether unit 110 detection load document is damaged, and when detecting load document damage, connection unit 105 is according to the environment collected
Address link information in information is connected to far end system, and upgrade request transmitting element 106 sends upgrade request to far end system,
Receiving unit 107 receives the data configuration file being sent by far end system, AKU and activation request;Upgrade unit 108 basis
Activation request, using AKU and data configuration file upgrading, after the completion of upgrading, restarts unit 109 and restarts base station, energy
Enough accomplish not damage in flash memory, when load document is damaged, automatically carry out updating operation, to solve the problems, such as that load document is damaged.
Above-mentioned two situations, all can accomplish automatically to solve the problems, such as that base station is abnormal, solve base station in prior art and file corruption
It is impossible to automatically solve the problems, such as that base station is abnormal when exception or FLASH damage abnormal.
It should be noted that the work process of the unit in the present embodiment, refer to the corresponding explanation of Fig. 1, here
Repeat no more.
Optionally, in another embodiment of the present invention, also include:
AKU detector unit, receives the data configuration file being sent by far end system, AKU for receiving unit 107
After activation request, whether the file in detection AKU can normally use;
Wherein, upgrade unit 108, being additionally operable to the file that AKU detector unit detects in AKU can normally make
With according to activation request, using AKU and data configuration file upgrading.
In the present embodiment, AKU detector unit receives, in receiving unit 107, the data configuration literary composition being sent by far end system
After part, AKU and activation request, whether the file in detection AKU can normally use, and can receive AKU
Afterwards, whether the file in time detection AKU can normally use.
It should be noted that the work process of the unit in the present embodiment refer to the corresponding explanation of Fig. 1, here is not
Repeat again.
Optionally, in another embodiment of the present invention, with reference to Fig. 5, receiving unit 107 includes:
Receiving unit 1071 successively, for receiving the data configuration file being sent by far end system, AKU successively and swashing
Live and ask;
Exception handling device also includes:
First message transmitting element 112, receives, for receiving unit 1071 successively, the data configuration being sent by far end system
After file, send successful data reception configuration file message to far end system;
Second message sending unit 113, receives after the AKU being sent by far end system for receiving unit 1071 successively,
Send to far end system and be properly received AKU message;
3rd message sending unit 114, receives for receiving unit 1071 successively and is asked by the activation that far end system sends
Afterwards, send to far end system and be properly received activation request message;
False alarm transmitting element 115, connects letter for connection unit 105 according to the address in the environmental information collected
After breath is connected to far end system, send false alarm to far end system;
Second judging unit 111, sends after upgrade request to far end system for upgrade request transmitting element 106, judges
Whether receive in the specified time and success message is received by the upgrade request that far end system sends;
Wherein, upgrade request transmitting element 106, is additionally operable to the second judging unit 111 and judges not receiving in the specified time
Receive success message to the upgrade request being sent by far end system, again send upgrade request to far end system;
Second judging unit 111, is additionally operable to upgrade request transmitting element 106 and again sends upgrade request to far end system
Afterwards, judge to specify whether to receive in the time and success message is received by the upgrade request that far end system sends.
In the present embodiment, after receiving unit 1071 receives the data configuration file of far end system transmission successively, first disappears
Breath transmitting element 112 sends successful data reception configuration file message to far end system;Receiving unit 1071 receives by remote successively
After the AKU that end system sends, the second message sending unit 113 sends to far end system and is properly received AKU message;Successively
After receiving unit 1071 receives the activation request being sent by far end system, the 3rd message sending unit 114 sends to far end system
It is properly received activation request message, mainly make far end system will appreciate that whether base station is properly received the number of far end system transmission
According to configuration file, AKU and activation request.Additionally, false alarm transmitting element 115 sends false alarm, energy to far end system
Far end system is enough made to understand the running status of base station in time.Second judging unit 111 judge specify the time in do not receive by
The upgrade request that far end system sends receives success message, and upgrade request transmitting element 106 sends upgrading to far end system again
Request, can avoid because some factors such as environment, network impact far end system does not receive upgrade request or receives upgrading
After request, base station is not properly received and receives this kind of situation of success message by the upgrade request that far end system sends.
It should be noted that the work process of the unit in the present embodiment refer to the corresponding theory of above-described embodiment
Bright, will not be described here.
Provide a kind of exception handling device in another embodiment of the present invention, be applied to far end system, with reference to Fig. 6, bag
Include:
Link block 201, for being connected with base station;
Receiver module 202, for receiving the upgrade request being sent by base station;
Sending module 203, for sending data configuration file, AKU and activation request to base station.
In the present embodiment, when file corruption exception in base station or FLASH damages abnormal, receiver module 202 receives
After the upgrade request being sent by base station, sending module 203 sends data configuration file, AKU and activation request, base to base station
Stand according to data configuration file, AKU and activation request execution updating operation, and then enable base station normal work.
It should be noted that the work process of the unit in the present embodiment refer to the corresponding explanation of Fig. 2, here is not
Repeat again.
Optionally, in another embodiment of the present invention, with reference to Fig. 7,
Sending module 203, including:
Sending module 2031 successively, for sending data configuration file, AKU and activation request successively to base station;
Far end system also includes:
First receiver module 205, sends data configuration file to base station for sending module 2031 successively, receives by base
Stand send successful data reception configuration file message;
Second receiver module 206, sends AKU to base station for sending module 2031 successively, receives and sent by base station
Be properly received AKU message;
3rd receiver module 207, sends activation request to base station for sending module 2031 successively, receives and sent out by base station
That send is properly received activation request message;
False alarm receiver module 208, after being connected with base station for link block 201, receives the mistake being sent by base station
Alarm;
Message transmission module 204, receives after the upgrade request being sent by base station for receiver module 202, in Preset Time
Send upgrade request and receive success message to base station;
Wherein, receiver module 202, do not receive upgrade request reception success message if being additionally operable to base station and specifying, connect in the time
Receive the upgrade request being resend by base station;
Message transmission module 204, receives after the upgrade request being resend by base station for receiver module 202, when default
Interior transmission upgrade request receives success message to base station.
In the present embodiment, sending module 2031 sends data configuration file to base station successively, and the first receiver module 205 connects
Receive the successful data reception configuration file message being sent by base station;Sending module 2031 sends AKU to base station successively, the
Two receiver modules 206 receive and are properly received AKU message by what base station sent;Sending module 2031 sends activation request successively
To base station, the 3rd receiver module 207 receives and is properly received activation request message by what base station sent.Far end system can be made
Whether solution base station is successfully received data configuration file, AKU and activation request.Additionally, false alarm receiver module 208 connects
Receive the false alarm being sent by base station, the running status of base station can be understood in time.Message transmission module 204 is in receiver module
After 203 receive the upgrade request being sent by base station, send upgrade request in Preset Time and receive success message to base station, can make
Base station understands that far end system is successfully received upgrade request.
It should be noted that the work process of the unit in the present embodiment refer to the corresponding theory of above-described embodiment
Bright, will not be described here.
Described above to the disclosed embodiments, makes basis+skilled artisan be capable of or uses the present invention.
Multiple modifications to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one
The scope the widest causing.