Summary of the invention
The object of the present invention is to provide a kind of householder method and device thereof of plant maintenance, existing in the time can't landing maintained equipment and carry out positioning problems to solve by long-range telnet, manufacturer or agential engineering maintenance personnel must be in the action and just can deal with problems, and cause the maintenance cost technical problems of high.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions: a kind of standby maintenance device, be used for the maintenance of the network equipment, it is characterized in that, comprise interface unit, be used for communicating with the control interface of maintained equipment; Reading unit is used for by described interface unit to maintained equipment transmitting control commands, regularly the reading system maintenance information; And writing unit, be used for described system maintenance information is write storage medium.
Preferably, also comprise the storage medium connecting interface, be used for external storage medium.Described storage medium connecting interface is a USB (universal serial bus).
Described storage medium is arranged at described standby maintenance device inside.
Preferably, also comprise the storage medium output interface, be used for exporting the system maintenance information that described storage medium is stored.
Preferably, also comprise the unit that removably connects, described storage medium is connected with the said write unit by the unit that removably connects.
Described standby maintenance device is independent of outside the maintained equipment, perhaps is arranged at maintained device interior.
A kind of householder method of plant maintenance is used for the maintenance of the network equipment, sets up the communication link with maintained equipment control interface;
By described communication link to maintained equipment transmitting control commands, reading system maintenance information regularly;
Described system maintenance information is write storage medium.
Preferably, also comprise when described maintained equipment breaks down, selectively transmit the system maintenance information of storing in the storage medium to the attendant.Described storage medium is a movable storage medium.
Above technical scheme in the present invention, owing to be provided with a kind of standby maintenance device, communicates by the interface unit of this device and the control interface of maintained equipment as can be seen; Reading unit passes through described interface unit to maintained equipment transmitting control commands, reading system maintenance information then; And then described system maintenance information sent or directly storage medium posted service engineer to equipment vendors, make them obtain maintained equipment is carried out the required system maintenance information of fault location, and then reach and the same purpose of solution failure problems of being in the action, thereby reduced maintenance cost, also improved the ageing of plant maintenance simultaneously greatly.
The invention also discloses a kind of householder method of plant maintenance, by the communication link of foundation with maintained equipment control interface, pass through this communication link then to maintained equipment transmitting control commands, thereby can read the system maintenance information that control interface is printed, then the maintenance information that reads is stored into storage medium.When catastrophe failures such as maintained equipment generation deadlock itself can't be used telnet, use sends the system maintenance information of storing in the storage medium or directly storage medium is posted the service engineer to equipment vendors, make them obtain maintained equipment is carried out the required system maintenance information of fault location, and then reach and the same purpose of solution failure problems of being in the action, thereby reduced maintenance cost, also improved the ageing of plant maintenance simultaneously greatly.
Embodiment
Many instrument factories commercial city need safeguard that usually at the use scene of maintained equipment, the user can use a hyper terminal to monitor, control its ruuning situation to the equipment of its production and sales.Hyper terminal is used for the equipment operation information that display network Equipment Control mouth prints on the one hand, so that the user monitors in real time to it; The user can control the monitored network equipment by hyper terminal on the other hand.Certainly, the use scene of some equipment is not equipped with hyper terminal yet, but is suitable for the present invention program equally.Below each example structure of standby maintenance device disclosed by the invention is elaborated.
See also Fig. 1, it is a kind of standby maintenance device first example structure schematic diagram disclosed by the invention, for the structure and the operation principle of clearer announcement standby maintenance device of the present invention, also shows relative equipment in the drawings.
In general, maintained equipment 11 links to each other with hyper terminal 14 with standby maintenance device 12 simultaneously, and standby maintenance device 12 also links to each other with the storage medium 13 of outside.Wherein standby maintenance device 12 comprises interface unit 121, reading unit 122, writing unit 123 and storage medium connecting interface 124.
Particularly, maintained equipment 11 links to each other with hyper terminal 14 with standby maintenance device 12 by its CONSOLE mouth (control mouth).The CONSOLE mouth of maintained equipment 11 is drawn by a cable, and described cable has both-end output, and end output connects standby maintenance device 12, and other end output connects hyper terminal 14.Usually some important equipment can be used for the equipment operation information that display network Equipment Control mouth prints, so that the user monitors in real time to it on the one hand using situ configuration that a hyper terminal is arranged; The user can control the monitored network equipment by hyper terminal on the other hand.Standby maintenance device 12 does not influence the use of hyper terminal, and user and engineering maintenance personnel can control for maintained equipment 11 by hyper terminal 14; Simultaneously, hyper terminal 14 have or not the use that does not also influence standby maintenance device 12, therefore do not dispose under the situation of hyper terminal at some equipment, the present invention program stands good.
The CONSOLE mouth of maintained equipment 11 has multiple physical interface form, as RJ45 and DB9 or the like, the interface unit 121 of standby maintenance device 12 need be corresponding with the interface shape of CONSOLE mouth, and both sides observe identical communication protocol, such as VTPs such as VT100, ANSI.When the interface unit 121 of CONSOLE mouth and standby maintenance device 12 communicates by asynchronous serial port, baud rate, data bit, position of rest, check bit sum data flow con-trol etc. can be set.The CONSOLE port communications is unidirectional, and a side sends, and a side receives, and guarantees the correctness of communicating by letter by data bit, position of rest, check digit.The communication means of physical layer is simple, reliable, does not need feedback mechanism.
One end of reading unit 122 links to each other with interface unit 121, is used for by interface unit 121 to maintained equipment 11 transmitting control commands, reading system maintenance information; The other end links to each other with writing unit 123, and the system maintenance information that is used for reading writes storage medium 13.Reading unit 122 and writing unit 123 can be realized by all purpose communication chip, internal memory and flash memory FLASH jointly.Described communication chip has the function of CPU, can working procedure; As long as internal memory can provide the running space of simple program, FLASH is used to store simple executable program.Particularly on FLASH, store TCL script compile device and TCL script on the one hand, store the storage medium read/write procedure on the other hand.Wherein TCL script compile device can move the command lanuage that the TCL script provides, and to maintained equipment 11 transmitting control commands, regularly reads the control mouthful system maintenance information of printing by interface unit 121.Certainly, use other programming languages and corresponding compiler also can finish above-mentioned functions.By operation storage medium read/write procedure, can realize that the system maintenance information that will read writes storage medium 13.
Between storage medium 13 and writing unit 123, also be provided with storage medium connecting interface 124, be used for external storage medium 13.Described storage medium connecting interface 124 can be a general serial equipment USB interface, can external all USB device, so the storage medium in the present embodiment 13 can be the use user's oneself of maintained equipment 11 USB flash disk or portable hard drive.
This shows, when maintained equipment 11 breaks down, Debugging message, warning information or the fault stack information of the output of CONSOLE mouth all can record in the external storage medium 13 by standby maintenance device 12, and these information that are recorded are exactly the foundation of fault location.If maintained equipment 11 crashes or hangs up, the engineering maintenance personnel of maintained equipment 11 can't pass through the Telnet telnet, so, the user just can be sent as the system maintenance information of storage in the storage medium 13 the maintenance engineering personnel or directly storage medium 13 be posted, make the maintenance engineering personnel need not to be in the action, just can be directly to fault location, in time guides user is dealt with problems.In addition, oneself provide, therefore help the confidentiality of information because storage medium 13 can be the use user of maintained equipment 11.For example when the user is secret responsive department, the user can check the information of record in the storage medium 13 earlier before the information in the storage medium 13 is sent to the engineering maintenance personnel, deleted it and thought the content of need to be keep secret, and then send.
See also Fig. 2, it is a kind of standby maintenance device second example structure schematic diagram disclosed by the invention.The standby maintenance device in the present embodiment and the main distinction part of the standby maintenance device among first embodiment are, the storage medium of storage system maintenance information no longer is to be independent of outside the standby maintenance device, can be provided by user oneself, but is arranged at standby maintenance device inside.
Described standby maintenance device 22 comprises interface unit 121, reading unit 122, writing unit 123, unit 224 and internal storage medium 225 removably connect.Interface unit 121 links to each other with the control mouth of maintained equipment 11, carries out data communication; Reading unit 122 is connected between interface unit 121 and the writing unit 123, is used for by interface unit 121 reading the system maintenance information of maintained equipment 11 to maintained equipment 11 transmitting control commands; Writing unit 123 writes internal storage medium 225 with the system maintenance information that reads, and is about to system maintenance information and is stored in the internal storage medium 225; In addition, internal storage medium 225 is connected with writing unit 123 by the unit 224 that removably connects.Because interface unit 121, reading unit 122 and writing unit 123 are identical with described three unit internal structures among first embodiment, thereby repeat no more the internal structure and the operation principle of above-mentioned three unit, only highlight the difference part.
The unit 224 that removably connects is connected between writing unit 123 and the internal storage medium 225, because the storage medium 225 in the present embodiment is arranged at the inside of safeguarding storage device 22, therefore if make this storage medium can from standby maintenance device 22, disassemble when needed, so that the engineering maintenance personnel of equipment are given in mailing, then need to be connected by a dismountable linkage unit 224 between this storage medium 225 and the writing unit 123.The for example described unit 224 that removably connects is a kind of draw-in groove structure connectors, and corresponding storage medium 225 can snap in the described draw-in groove connector, directly storage medium 225 is extracted from draw-in groove when needing.
See also Fig. 3, it is a kind of standby maintenance device the 3rd example structure schematic diagram disclosed by the invention.The standby maintenance device in the present embodiment and the main distinction part of the standby maintenance device among second embodiment are, of no use in the present embodiment to connect the unit that removably connects of storage medium, be that storage medium cannot disassemble from the standby maintenance device, but be connected with a storage medium output interface with it, the system maintenance information of storing in the storage medium can be derived, so that offer the engineering maintenance personnel.
Described standby maintenance device 33 comprises interface unit 121, reading unit 122, writing unit 123, internal storage medium 225 and storage medium output interface 325.Interface unit 121 links to each other with the control mouth of maintained equipment 11, carries out data communication; Reading unit 122 is connected between interface unit 121 and the writing unit 123, is used for by interface unit 121 reading the system maintenance information of maintained equipment 11 to maintained equipment 11 transmitting control commands; Writing unit 123 writes internal storage medium 225 with the system maintenance information that reads, and is about to system maintenance information and is stored in the internal storage medium 225; In addition, internal storage medium 225 also is connected with a storage medium output interface 325, is used for exporting the system maintenance information of storage medium.Because interface unit 121, reading unit 122 and writing unit 123 are identical with described three unit internal structures among first embodiment, thereby repeat no more the internal structure and the operation principle of above-mentioned three unit, only highlight the difference part.
Internal storage medium 225 is connected between writing unit 123 and the storage medium output interface 325, the system maintenance information that reading unit 122 reads by interface unit 121, write in the interior reservoir medium 225 by writing unit 123, storage medium output interface 325 can be Ethernet interface network interface, USB interface or the like, by these interfaces, can when needed the system maintenance information of storing in the internal storage medium 225 be derived.This shows, use the standby maintenance device of structure described in the present embodiment, in the time of can working as maintained device fails, and under the situation that storage medium can't independently take off, by the storage medium output interface that is arranged at standby maintenance device inside, links to each other, the system maintenance information output in time that is stored in the storage medium is sent to the engineering maintenance personnel with storage medium.And then, make the engineering maintenance personnel that are in the strange land to be in the action on the one hand and carry out fault location, reduced maintenance cost; Make also that on the other hand the fault-location problem of maintained equipment is in time solved.
Three embodiment of above-mentioned employing have been described in detail a kind of standby maintenance device disclosed by the invention, though the standby maintenance device described in above-mentioned three embodiment all is arranged at maintained device external, but also described standby maintenance device directly can be arranged in actual applications, the inside of maintained device.At this moment, the control mouth of the interface unit of standby maintenance device and maintained equipment can directly directly communicate by internal data line.
The invention also discloses a kind of householder method of plant maintenance, see also Fig. 4, it is a plant maintenance householder method embodiment schematic flow sheet.
Step 110: set up communication link with maintained equipment control interface.
Suppose that a certain network equipment is as maintained equipment, when it occurs restarting fault, the network equipment normally carries out the Business Processing process on the one hand, and by control mouthful output Debugging message, warning information or fault stack information etc., these system maintenance information are exactly the foundation of fault location on the other hand.Therefore the communication link between foundation and the maintained equipment control interface provides the possibility of obtaining system maintenance information, a promptly most basic step.
Enter step 120 then: by described communication link to maintained equipment transmitting control commands, reading system maintenance information.
Though set up and maintained Equipment Control mouth between communication link, also must by described communication link to maintained equipment transmitting control commands, really reading system maintenance information.Described transmitting control commands can realize that preferably use TCL script compile device and TCL script, the specific implementation preamble had carried out introducing in detail, thereby this place repeats no more by multiple programming language and corresponding compiler.
Step 130: described system maintenance information is write storage medium.
After reading the system maintenance information of maintained equipment, described system maintenance information is write storage medium, promptly get off by storage medium recorded.Described storage medium or transportable, or can derive the system maintenance information of its storage.
Step 140: when maintained equipment breaks down, selectively transmit the system maintenance information of storing in the storage medium to the engineering maintenance personnel.
Need be before the engineering maintenance personnel send system maintenance information or direct mail mobile memory medium in the storage medium, can check the information that writes down in the storage medium earlier, delete it and think the content of need to be keep secret, and then report and give the engineering maintenance personnel, and then played good confidentiality effect.Certainly, if need not to maintain secrecy, also can be directly the system maintenance information of storage be directly sent to the engineering maintenance personnel, they needn't be in the action just can position failure problems, both having saved maintenance cost has to have improved and safeguards timeliness.
More than the householder method and the device thereof of a kind of plant maintenance provided by the present invention is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.