CN104898509A - Industrial control computer monitoring method and system based on secure short message - Google Patents

Industrial control computer monitoring method and system based on secure short message Download PDF

Info

Publication number
CN104898509A
CN104898509A CN201510218744.5A CN201510218744A CN104898509A CN 104898509 A CN104898509 A CN 104898509A CN 201510218744 A CN201510218744 A CN 201510218744A CN 104898509 A CN104898509 A CN 104898509A
Authority
CN
China
Prior art keywords
power
software
industrial computer
short message
industrial control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510218744.5A
Other languages
Chinese (zh)
Other versions
CN104898509B (en
Inventor
薛宏
张标标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Puxiete Technology Co Ltd
Original Assignee
Hangzhou Puxiete Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Puxiete Technology Co Ltd filed Critical Hangzhou Puxiete Technology Co Ltd
Priority to CN201510218744.5A priority Critical patent/CN104898509B/en
Publication of CN104898509A publication Critical patent/CN104898509A/en
Application granted granted Critical
Publication of CN104898509B publication Critical patent/CN104898509B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety

Abstract

The invention relates to an industrial control computer monitoring method and system based on a secure short message. The system is composed of a monitoring apparatus, monitoring software running on an industrial control computer, a remote monitoring center and a short message transceiving module. The monitoring method comprises the following steps: 1), the monitoring apparatus continuously querying a monitoring software set on the industrial control computer so as to detect and obtain the working condition of the industrial control software set and the working condition of the industrial control computer itself; 2), if an abnormal condition is discovered, the monitoring apparatus reporting the abnormal condition to monitoring personnel through the secure short message; and 3), the monitoring personnel, after receiving the condition, remotely sending a processing command to the monitoring apparatus through the secure short message, and the monitoring apparatus cooperating with the monitoring software to carry out fault restoration on the industrial control computer. According to the invention, the system and the method can be used for improving the reliability of the industrial control computer, reducing the fault time of the industrial control computer, timely discovering the fault of the industrial control computer, and remotely starting, restarting and closing the industrial control computer or industrial control application software; and the system and the method can reduce the development maintenance cost of an industrial control computer application system and reduce the development difficulty of the industrial control software and project monitoring risks.

Description

A kind of industrial computer method for supervising based on secure short message and system
Technical field
The present invention relates to security technology area, particularly relate to a kind of industrial computer method for supervising based on secure short message and system.
Background technology
For the industrial computer for the operation WINDOWS that monitors or general UNIX operating system that nobody guards, on industrial computer, actual motion is an industrial control software set, namely one or morely operates in application software industrial computer performing industry control task.Any one industrial control software fault all can affect normally carrying out of industry control task.
Because application software defect, electromagnetic interference (EMI), too high or too low environment temperature and running temperature, there will be the phenomenon that industrial control software runs system in case of system halt or the endless loop of industry control application software after one section of uncertain time.Although the abundant test of software and hardware can alleviate this phenomenon, can not avoid completely.Factual survey shows, even very careful exploitation and test after realize software, occur that the frequency of the fault state such as software endless loop or equipment deadlock is not low yet.And once nobody guards industrial computer and crashes, can cause the accident or economic loss.And unique way of dealing with problems scene of sending someone exactly resets, therefore cause the monitoring of long period blank, also labor intensive financial resources, increase the operation expense of system.Engineering practice shows, when usually going wrong, just can deal with problems as long as restart system.Existing scheme be use WatchDog Timer solve problem, specific as follows: to set a regular time, when after WatchDog Timer timing to setting-up time (spilling) with regard to homing device; At normal operation, can timing reset WatchDog Timer, WatchDog Timer can not be overflowed; When equipment operation irregularity time, reset WatchDog Timer or can not be had little time, so WatchDog Timer overflows also thus homing device, make equipment or software restarting.
Theoretically, no problem when the software that this scheme is run on equipment reasonably arranges the opportunity of reset timer instruction, but actual industrial practice shows that this is not easy thing: first, need test fully and careful debugging to determine reset code (code of the reset WatchDog Timer) position in software or system to reach good effect, this can cause software development difficulty to strengthen, and progress is elongated; Secondly, layout reset code in software can destroy the structuring of software, thus difficult in maintenance; Finally, due in fact running environment vary and can not each details of Complete test software thoroughly, even if software is absorbed in endless loop WatchDog Timer and also may be resetted in some cases on time, therefore can not according to expection imagination resetting system.Therefore, this scheme also defectiveness.
In addition, the power supply of common WatchDog Timer is same power supply with monitored system, and usual industrial computer will carry WatchDog Timer.When abnormal conditions (as short interruptions or the unexpected fluctuation) causing trouble of some power supply, the power supply of house dog itself also can short interruptions or fluctuation, house dog is caused to be reset, lose pre-configured information (such as whether allowing overflow reset, spilling time and whether allow calendar scheduling), cause monitoring function complete failure.Finally, when a failure occurs, the user even reporting the watch-dog of a secondary data for several times for several days is reported on the 1st for those, also only can be pinpointed the problems by uploading data disruption after a period of time occurs in equipment failure, and can not Timeliness coverage problem, cause monitoring blank and because the unknown losses and accident that cause can not be solved a problem promptly.
Summary of the invention
The present invention overcomes above-mentioned weak point, object is to provide a kind of industrial computer method for supervising based on secure short message, the duty that the data of being monitored by monitor staff's device for monitoring processing control industrial computer reaches monitoring object, industrial computer reliability can be improved, reduce industrial computer fault-time, ensure that industrial computer normally runs.
Another object of the present invention is to provide a kind of industrial computer supervisory system based on secure short message, comprise short message transceiving module, supervising device and the industrial computer with monitoring software, greatly reduce cost of development and the difficulty of application of industrial control computer software, ensured that again industrial computer normally runs simultaneously.
The present invention achieves the above object by the following technical programs: a kind of industrial computer method for supervising based on secure short message, comprises the steps:
(1) monitoring software on supervising device continuous-query industrial computer is to obtain the working condition of industrial control software set working condition and industrial computer self;
(2) if find to there is unusual condition, supervising device reports monitor staff by note;
(3) monitor staff to receive after situation again by the long-range transmission processing order of secure short message to supervising device, supervising device coordinates with monitoring software and carries out fault restoration to industrial computer.
As preferably, the method that described step (1) detects industrial control software set working condition comprises the steps:
1) in advance pressure test is carried out to each software of industrial control software set, obtain the CPU usage of each software and the normal range of EMS memory occupation amount and be supplied to monitoring software;
2) when industrial computer software assembly works, monitoring software obtains CPU usage and the EMS memory occupation amount of each software in industrial control software set by OS API;
3) monitoring software contrast step 1) with step 2) result, obtain whether existing in industrial control software set software work abnormal.
As preferably, described step 1) each software CPU usage and EMS memory occupation amount be supplied to monitoring software with configuration file form, configuration file is ASCII character text.
As preferably, the method that described step (1) detects industrial computer working condition comprises the steps:
I) supervising device initiatively regularly carries out serial communication with monitoring software, if continuous three times are not responded, concludes that industrial computer crashes or fault; Respond if all obtain, conclude that industrial computer is normal; If obtain part to respond, conclude that industrial computer is abnormal;
Ii) supervising device timing inquiry industrial personal computer power situation, if supply voltage is lower than setting threshold value, concludes that industrial personal computer power is abnormal.
As preferably, described secure short message communications protocol form is divided into order messaging format and answer short message form, and form is as follows:
Order messaging format: [command information character string] # internal sequence # access password
Answer short message form: [response message character string] # internal sequence #.
As preferably, described step (3) is carried out fault restoration to industrial computer and is comprised query manipulation and executable operations; Query manipulation is used for determining failure cause, and executable operations is for repairing fault.
As preferably, need during described executable operations step first to perform safety verification, safety verification needs monitor staff to provide sequence number, access password and short-message verification.
Based on an industrial computer supervisory system for secure short message, comprising: Surveillance center, short message transceiving module, supervising device, industrial computer with monitoring software; Surveillance center is connected with short message transceiving module; Short message transceiving module and supervising device wireless connections; Supervising device is connected by serial ports with the industrial computer with monitoring software.
As preferably, described supervising device comprises: monitor board, 9 pin D type public plugs, gsm module, power management plate, battery, relay, power measurement module, power input socket, power output socket, base plate, shell; Power input socket is connected with power management plate, power measurement module, power output socket, relay respectively; Monitor board is connected with gsm module, 9 pin D type public plugs, relay, power measurement module respectively; Power management plate is connected with battery; Power management plate is that monitor board and gsm module are powered; Monitor board, 9 pin D type public plugs, gsm module, power management plate, battery, relay, power measurement module, power input socket, power output socket are fixed on base plate by bolt and nut; Base plate is fixed on enclosure by fixed orifice and bolt, stud.
As preferably, described monitor board comprises MCU circuit, power supply stabilization circuit, power connector, relay drive circuit, connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connector, pcb boards; MCU circuit is connected with UART connector, two RS232 level shifting circuits, LED, relay drive circuit, power supply stabilization circuits respectively; Two RS232 level shifting circuits are connected with two RS232 sockets respectively; Power supply stabilization circuit is connected with power connector, relay drive circuit respectively; Relay drive circuit is connected with connection terminal; MCU circuit, power supply stabilization circuit, power connector, relay drive circuit, connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connectors are fixed on pcb board.
As preferably, described power management plate comprises external power input socket, monitor board power connector, SMS module power connector, power supply adaptor, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit and pcb board; External power input socket is connected with power supply adaptor; Power supply adaptor is connected with battery charger, automatic switch-over circuit respectively; Battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit are connected to each other successively; Monitor board power connector is connected with battery charger, automatic switch-over circuit, voltage stabilizing shunt circuit respectively; SMS module power connector is connected with voltage stabilizing shunt circuit; External power input socket, monitor board power connector, SMS module power connector, power supply adaptor, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit are fixed on pcb board.
As preferably, described short message transceiving module is mobile phone or short message transceiver.
Beneficial effect of the present invention is: (1) the present invention may be used for improving industrial computer reliability, reduce industrial computer fault-time, Timeliness coverage industrial computer fault, remote activation, restart, close industrial computer or industry control application software; (2) adopt supervisory system of the present invention, application of industrial control computer system development maintenance cost can be reduced, reduce industrial control software development difficulty and monitored item object risk.
Accompanying drawing explanation
Fig. 1 is industrial computer supervisory system general principles schematic diagram of the present invention;
Fig. 2 is supervising device of the present invention and the industrial computer catenation principle schematic diagram with supervising device;
Fig. 3 is supervising device structural drawing of the present invention;
Fig. 4 is monitor board structural drawing of the present invention;
Fig. 5 is that power management of the present invention hardens composition;
Fig. 6 is supervising device embedded software data flow diagram of the present invention;
Fig. 7 is monitoring software data flow diagram of the present invention.
Embodiment
Below in conjunction with specific embodiment, the present invention is described further, but protection scope of the present invention is not limited in this:
Embodiment: whether the present invention is by crash to industrial personal computer power, industrial computer and industrial control program set working condition on industrial computer is carried out remote monitoring and realized goal of the invention; Realized by taken at regular intervals power parameter to the monitoring of industrial personal computer power; And whether industrial computer crashes and to realize to the custom-designed monitoring software that industrial computer is installed by regularly sending querying command.Judge that the whether normal of the working condition of application of industrial control computer collection of programs is based on following principle:
The CPU usage that an application software consumes when normally working and EMS memory occupation amount fluctuate respectively in fixing scope, the CPU time normal phenomenon that cause different from amount of ram that when this is running software, time of various processing execution and the difference of amount of ram expended and application software difference in functionality take.And when software anomaly, such as there is memory overflow, endless loop that software BUG causes or the problem such as the peripheral hardware that outside strong jamming causes accidentally is made mistakes, running software is abnormal, CPU usage or EMS memory occupation amount can be caused to occur abnormal, thus exceed normal range.Software is carried out to the limit test of long period, namely run with maximum conditions, and pass through the CPU usage of task manager monitoring software and the change of EMS memory occupation amount of operating system, just can obtain its normal range of operation.
Based on above-mentioned explanation, in conjunction with the actual state of application of industrial control computer, the present invention proposes method for supervising and the system realizing the method:
Based on an industrial computer method for supervising for secure short message, comprise the steps:
1, the monitoring software on industrial computer constantly inquired about by supervising device, obtains the working condition of industrial control software collection working condition and industrial computer itself.
2, if find that there is abnormal, supervising device reports monitor staff by secure short message.
3, monitor staff is by the long-range transmission order of secure short message to supervising device, and supervising device carries out remote failure reparation with monitoring software cooperation.
In step 1, the method for industrial control software set operation irregularity is detected:
1, in advance pressure test is carried out to each software of industrial control software set, obtain the normal range of its CPU usage and EMS memory occupation amount, and be supplied to monitoring software with the form of configuration file.
2, when industrial control software set works, monitoring software obtains CPU usage and the EMS memory occupation amount of each industrial control software in monitored industrial control software set by OS API.
3, the CPU usage that monitoring software obtains step 2 and EMS memory occupation amount compare with the normal range in configuration file, thus show in industrial control software set that whether to have software work abnormal.
Detect the method for industrial computer exception in step 1:
1, initiatively timing is with the monitoring software on industrial computer by serial communication for supervising device, and its Content of communciation is exactly the duty of inquiry industrial control software set.If continuous 3 communications do not obtain the response of monitoring software, be just judged as that industrial computer crashes or fault; If responded, as long as but in responding, have the duty of a software abnormal, so think that industrial computer is abnormal.
2, the power status of timing inquiry industrial computer, if supply voltage is lower than the threshold value of setting, then thinks and industrial computer power down is judged as that industrial personal computer power is abnormal.
Above-mentioned two situations are all treated as industrial computer is abnormal.
In step 2, not use safety measure during transmission warning message.
In step 3, query manipulation and executable operations are comprised to the remote failure reparation of industrial computer.
In step 3, query manipulation is used for determining failure cause.For query manipulation, do not need use safety measure.Inquiry comprises the working condition of the some software of inquiry industrial computer or the working condition of industrial control software set.Working condition for industrial control software set is inquired about, as long as running software is abnormal, just thinks whole industrial control software set operation irregularity.Inquiry also comprises the power status of inquiry industrial computer, and power status comprises supply voltage, source current and power factor; Executable operations is used for repairing fault.Executable operations comprises: start one or all industrial control softwares; Stop one or all industrial control softwares; Restart one or all industrial control softwares; Industrial computer restarts.
In step 3, for executable operations, in order to prevent industrial computer outer or malice manipulation by incoherent people's will, take safety practice.Safety practice is as follows: before supervising device uses, the inside ID that inside prestores the ASCII character composition of 16 letter or numbers represents this device (being different from the product ID can seen from device appearance), 6 access passwords and supvr's cell-phone number, they store after encryption, are non-volatile; External tool can not read these information, need amendment time can only wipe after again write revise.The operational order that supvr performs must provide internal sequence number, access password and note from mobile phone corresponding to stored cell-phone number, then just can be approved by supervising device; If the internal sequence do not provided or provide number and password are inconsistent with what store, supervising device will ignore this note order; In addition, after supervising device receives operational order and approves this order, a note confirming to perform can be sent to the phone number prestored, the note performed obtains the reply (mode with note) agreeing to perform to only have this to confirm, executable operations just can perform with really obtaining supervising device.
Based on an industrial computer supervisory system for secure short message, as shown in Figure 1, be made up of the monitoring software that the owner of one or more industrial computer or keeper (Surveillance center), short message transceiving device, supervising device and industrial computer run.
The supvr (Surveillance center) of one or more industrial computer is responsible for ensureing that the normal operation of industrial computer and remote failure are got rid of.
Short message transceiving device based on mobile communication technology, for receiving and dispatching note.Supvr receives alarming short message with short message transceiving device and sends failover operation instruction.
SMS communication protocol format provides as follows:
Order messaging format: [command information character string] # internal sequence # access password
Answer short message form: [response message character string] # internal sequence #
Command information character string and corresponding response message character string as shown in table 1 below:
Table 1
Upper table illustrates:
1) { dbase }: with aforementioned monitoring software order.
2) { power supply status }: if external power source, be then " y "
3) { result }: form is (external power source state) (magnitude of voltage) (current value) (power factor).If not external power source, then only have (external power source state) field, back field does not exist.
(external power source state) explanation of field: if external power source is normal, be " Y " character; Otherwise be " N " character.
(magnitude of voltage) VSXXXX.XXAC [AC/DC], as: V+0012.51DC and V00231.18AC represents that direct current 12.51V or alternating voltage effective value are 231.18V. respectively
(current value) ISXXXX.XX [AC/DC], as: I+0002.21DC and I00001.13AC, represents that direct current 2.21A or alternating current effective value are 1.13A. respectively
(power factor) [FXX.XXXX], as: F01.0000 or F0.6521, represents that power factor is 1 (i.e. DC load) or 0.6521 (AC load).
The result example that direct supply is complete: SYV+0012.51DCI+0002.21DCF01.0000, represents that the current power supply status of industrial computer is: external power source, DC voltage 12.51V, DC current 2.21A, power factor is 1.0000.
The result example that AC power is complete: SYV00231.18ACI00001.13ACF00.6521, represents that the current power supply status of industrial computer is: external power source, alternating voltage 231.18V, alternating current 1.13A, power factor is 0.6521.
The result example that external power source lost efficacy: SN.
4) for operational order in upper table, need to confirm, that is:, after keeper receives response, must respond " OK ", then supervising device just meeting fill order; If respond " NO " or nothing response in 3 minutes, then this order ignored by supervising device; For querying command without confirmation requirement.
Alarming short message form: [warning message character string] # internal sequence #
Warning message character string is as shown in table 2 below:
Table 2
Described supervising device is made up of monitor board, 9 pin D type public plugs, gsm module, power management plate, battery, relay, single-phase power measurement module, power input socket, power output socket, aluminum alloy bottom plate, silicon steel shell, as shown in Figure 2 and Figure 3.Fig. 2 is when using and the connected mode of industrial computer.
9 pin D type public plugs are connected by the RS232 interface circuit of wire with monitor board.When deployed, it is connected to the monitoring serial port of industrial computer by standard serial port cable.Monitor board, gsm module, power management plate, battery, relay, single-phase power measurement module, power input socket, power output socket are all fixed on aluminum alloy bottom plate by bolt and nut, and aluminum alloy bottom plate is fixed on silicon steel enclosure by fixed orifice and bolt, stud again.Silicon steel shell has very good effectiveness, improves the EMC ability of supervising device.
Monitor board as shown in Figure 4, comprises MCU circuit, 2 RS232 level shifting circuits, 23 line RS232 connectors, 1 three line UART connectors, 1 red LED, relay drive circuit, relay terminal, power connector and power supply stabilization circuits and installs the PCB of these assemblies.
The work of the MCU circuit control device on monitor board; 2 UART interface of MCU are by being connected to two RS232 sockets after 2 RS232 level shifting circuits: RS232 socket-1 and RS232 socket-2, and these two sockets all comprise 3 signal pins: TXD, the RXD and the signal publicly that are respectively RS232 level; RS232 level shifting circuit is made up of MAX232 level transferring chip and peripheral electric capacity; RS232 socket-1 is for being connected to 9 pin D type public plugs on shell; RS232-2 socket is used for being connected to gsm module; Another UART interface of MCU is connected to 3 line UART connectors, and this connector is for connecting outside single-phase power measurement module, and to obtain the power consumption parameter of industrial computer, this connector comprises 3 signal pins: TXD, RXD and logic are publicly.These pin level are TTL compatible level.
Red LED is connected to an I/O port of MCU, with the frequency scintillation of 500 milliseconds in the device course of work, and the operation conditions of instruction supervising device.
Relay drive circuit is made up of bipolarity triode 9014D and current-limiting resistance, is connected to 2 end relay terminal, and this connection terminal is used for connecting the coil of relay.Relay drive circuit is connected to power supply stabilization circuit, obtains driving power.
Power connector is 3 pins, and spacing is the ordinary connector of 2.54mm, for connecting power management plate.Its 2 energization pins are connected to power supply stabilization circuit on monitor board, and the latter is supplied to MCU circuit and relay drive circuit after carrying out decoupling, filtering, voltage stabilizing along separate routes to the power supply from power connector respectively.
Another one pin in power connector connects provides level signal, and whether indicating device is powered by reserve battery, and this pin is directly connected to an I/O port of MCU chip in MCU circuit.
MCU circuit is made up of MCU and reset circuit, pierce circuit, wherein runs an embedded software, controls the work of whole device.MCU can select with 3 or more UART interface, watchdog circuit, be no less than the MCU of 32K FLASH and 2K RAM.The LPC2365 chip that preferred NXP produces, the CPU of this chip is ARM7TDMI-S 32 bit processor, there is 256KB FLSH and 32KB SRAM, there is the peripheral hardware that DMA, VIC, 4 UART, WatchDog Timer, RTC and battery back RAM, 10/100M ethernet macs, multiple timer, PWM module, SPI, I2S, IIC, SSP, 10 ADC, 10 DAC, high speed GPIO etc. are abundant, there is sufficient resources to realize the function of the present invention's needs, and can upgrade as required.
In the inner FLASH of MCU, cryptographic storage has the embedded software controlling this device, and encryption embedded software can be realized by FLASH programming tool, by those skilled in the art are known.
The inner FLASH of MCU stores preset keeper's mobile phone or Surveillance center's SMS module cell-phone number, preset administrator password, unique ID (indicating coding).These information adopt the fixed address of the general inner FLASH of FLASH programming tool encryption write MCU.
Gsm module is used for receiving and dispatching note, is a technical grade mobile communication module supporting three line RS232 interface accessings.
Single-phase power measurement module measures the power consumption parameter of industrial computer: voltage, electric current, power factor.Preferred electron formula single-phase power measurement module, and need with 3 line UART interface for exporting measurement result.
Relay circuit is preferably normally closed relay.The coil terminals of relay is linked to 2 relay driver output terminals of control panel, therefore controlled and be turned on or off.
Input socket as the case may be, can be general DC B NC socket or AC socket; It is connected to external dc or alternating electromotive force network by feed cable.The socket that accessory power outlet is corresponding according to industrial personal computer power cable plug is equipped with, and the service cable of industrial computer therefore can be made directly to insert.
The positive source of input socket and accessory power outlet or exchange two contacts that fire line terminal is connected respectively to relay, other two lines, i.e. power cathode or exchange center line and protecting field line terminals directly by " fly line " interconnection.
When relay disconnects, positive source or interchange live wire disconnect with power supply, and therefore industrial computer loses power supply; During relay closes, positive source or interchange live wire are connected with power supply, and industrial computer obtains power supply.By first turning off power supply, time delay switches on power for 1 minute again, just can complete the action of reset industrial computer.The benefit of such design is: 1, easy to use and integrated, because industrial computer can not do any variation (need not open industrial computer and draw its reset pin); 2, the cold start-up mode that first power down re-powers again can more thoroughly reset industrial computer, than the better effects if of warm start.3, even if supervising device damages, be also very easy to safeguard: maintainer directly can be inserted into supply socket industrial computer simply and work on, and then repair or change supervising device.
Because what adopt is normally closed relay, so after the power supply power-fail that supervising device and industrial computer share recovers, industrial computer can work on automatically, and does not need user intervention; The more important thing is, even if because long-time power failure causes supervising device running down of battery electricity, after also there will not be power supply normal, industrial computer can not automatically actuated problem.
Selection of Battery capacity is the lithium battery of 1700mAH, 4.2V output or similar specification.Battery for this reason device provides standby power supply, prevents unexpected power down from losing the contact of same distance supervisor and thus can not send warning message; Because battery can support that supervising device works on a period of time after power supply loses, so the power conditions and the response message search that monitor industrial computer can be continued after industrial computer power down in a period of time.Battery is wired to the battery connector of power management plate.
Power management plate comprises external power input socket, monitor board power connector, SMS module power connector, power adaptation module, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit and installs the PCB of these parts, as shown in Figure 5.
External power input socket is used for being connected to power adaptation module, and the latter is transformed to direct current 5V external power; Power adaptation module is connected to battery charger and automatic switch-over circuit; Battery charger is used for, to battery charging, being connected to battery connector; Battery connector, for connecting lithium ion battery, is connected to automatic switch-over circuit simultaneously; Automatic switch-over circuit automatically switches to voltage stabilizing shunt circuit larger for the two-way voltage of input one; Voltage stabilizing shunt circuit is divided into 2 tunnels to switching after the voltage of coming in carries out voltage stabilizing, delivers to monitoring power supply connector and SMS module power connector respectively; Automatic switch-over circuit exports a status signal, indicate whether that the output voltage of power adaptation module is greater than cell voltage, this signal is connected to battery charger on the one hand, control whether to charge to battery: if the output voltage of power adaptation module is greater than cell voltage, to battery charging, otherwise forbid that battery charger charges to battery; On the other hand, this signal delivers to monitoring power supply connector, and and then deliver to monitor board, indicate whether that external circuit voltage exists: if the output voltage of power adaptation module is greater than cell voltage, then external power exists, otherwise does not exist.
SMS module power connector is the ordinary connector of 2 pin 2.54mm pin-pitch, is used for connecting the power input terminal of SMS module, for SMS module provides power supply.
Monitoring power supply connector is the ordinary connector of 3 pin 2.54mm pin-pitch, and wherein 2 is voltage output pin, and another is level signal, indicates whether that external power exists; This connector is used for monitor board, is the information whether it provides working power and external power to exist.
Power adaptation module preferably exports technical grade AC-DC or the DC-DC module of 5V DC voltage.If industrial computer is by DC-voltage supply, then adopt DC-DC module; If industrial computer directly uses electricity network to power, then adopt AC-DC module.
Charging circuit IC is preferably with the charger circuit that LTC4059A chip and peripheral cell form, and the commutation circuit of the preferred LTC4413 chip of automatic switch-over circuit and peripheral cell composition.
Relay circuit is made up of normally closed relay, driving circuit.Driving circuit drives relay coil, and 2 of relay contacts are turned on or off.An I/O port of MCU, is connected to relay drive circuit, therefore, it is possible to 2 of pilot relay contacts are turned on or off.Consider that after resetting, MCU I/O port is defaulted as high level, so design relay drive circuit is low level action, if that is: I/O port is high level, normally closed relay continues closed, with same state when not powering on; If I/O port is low level, then relay contact disconnects.Even if supervising device unexpected reset also can not cause the actuating of relay like this, affect industrial computer.
Fig. 6 is the data flow diagram of supervising device embedded software logic function.This software sent every one minute monitored industry control application software is inquired about in order (these orders are as described in front monitoring software part) duty to the monitoring software on industrial computer by the UART interface of MCU, if having abnormal information of being just correlated with by short message sending to the preset phone number of supervisor; Send to for 3 times if continuous the order of monitoring software on industrial computer not receive response, then judge that industrial computer crashes, so send warning message to the preset phone number of supervisor.The gsm module be connected in MCU another one UART interface monitored by this software simultaneously, and performs respective action according to receiving note order.In addition, the WatchDog Timer time-out time of this software design patterns MCU inside is 2 minutes, then resets house dog in suitable place and ensures normal operation.Because embedded software code amount is little for this reason, logic is simple, the timing reset instruction of house dog add the development difficulty that can not affect software.Finally, this software, by reading the external power source status pin level from power management plate every 1 minute, automatically sends warning message to keeper or monitoring server after external power source power down being detected.
Monitoring software is arranged on industrial computer, and a process as industrial computer is run.There are two functions: 1, for obtaining the working condition of industry control application software and feeding back to supervising device; 2, start or stop application of industrial control computer software.Each monitored industrial computer needs to install a set of monitoring software, and provides with the corresponding configuration file of monitored software.Configuration file defines the CPU usage of each software of industrial control software set and the normal range of EMS memory occupation amount and serial communication parameter configuration.Monitoring software operates in the highest running priority level of industrial computer operating system, automatically run after industrial computer starts, and continue the serial ports that monitoring one is connected to supervising device, when receiving the order of serial ports with regard to execution and by serial ports feedback result to supervising device.
Fig. 7 is monitoring software data flow diagram, it obtains CPU usage, the EMS memory occupation amount spent by monitored software by the API calling OS process and be correlated with, and CPU usage when normally running with software and EMS memory occupation weight range contrast, therefore, it is possible to judge whether application software exception occurs; It to be also correlated with opening, stop or restarting of API control software design by calling OS process.
The serial port setting such as the baud rate that monitoring software specifies according to its configuration file, check bit, data bit and port numbers configure this serial ports, and this serial ports is connected with supervising device.Then monitoring software monitors this serial ports, thus can receive the order that it is issued by supervising device in time, and carries out parsing execution to it
Monitoring software must operate at the highest running priority level, and this ensures that it can make an immediate response the order of self-monitoring device.
The configuration file of monitoring software is an ASCII character text, defines following project, just can be edited by simple text editor.Comprise following content:
1) serial ports number, baud rate, data bit, check bit, the position of rest of supervising device is connected.
2) title, CPU usage maximal value, CPU usage minimum value, EMS memory occupation amount maximal value, the memory usage minimum value of monitored software.This can have many, namely can monitor multiple software.
The order of monitoring software support comprises: inquiry, startup, closedown, reset command, and order and response thereof are all ASCII character character string.Monitoring software order is as table 3:
Table 3
The monitoring software command specification of table 3:
1) { dbase }: for inquiring about or the name character string of software of start and stop, be ASCII coded string.Dbase can be a certain concrete software, or " ALL ".If " ALL " then refers to operate all softwares of configuration file regulation.
2) { state }: this field is the whether normal information of work of software.For ascii character " Y " or " N ".
For single software, if normally, it is " Y " character; Otherwise be " N " character, if this software does not exist in configuration file, be " N " then.Whether normal is obtain like this: monitoring software call operation system API obtains CPU usage and the EMS memory occupation amount of some or multiple monitored application software, then compares mutually acquisition with the corresponding informance of configuration file.For the software that " ALL " i.e. all configuration files specify, as long as monitoring software finds that there is a running software extremely, be " N " character; Only having all software all normally to run is " Y " character.
3) { CRC}: be 16 CRC check, is used for guaranteeing that communication data is errorless.For removing binary number---the 4 byte ASCII character character strings that-2 byte 16 system number conversions become that crc field other all bytes outer calculate according to polynomial expression x16+x12+x5+1 in order or response character string.Sending order, first sends ASCII character corresponding to upper byte, then sends two ASCII character corresponding to low byte.
During use, connect this device according to the mode of connection shown in Fig. 1, just can mobile phone or with gsm module PC send note carry out remote reboot industrial computer and inquire about its working condition.
1) supervising device is connected to a PC, opening power, use special FLASH programming tool, cryptographically write the FLASH. of keeper's mobile phone or Surveillance center's SMS module cell-phone number, preset administrator password, unique ID (indicating coding) to the MCU of supervising device inside
2) the RS232 connector of supervising device is connected to a serial ports of industrial computer by standard 232 cable.
3) power connector is connected to industrial personal computer power input.
4) external power source is connected to supervising device.
5) install monitoring software to industrial computer, amendment monitoring configuration file, to meet the monitoring requirement of user.
6) industrial control software is started
So just can carry out remote inquiry industrial control software job information, close industrial control software, run industrial control software, restart industrial control software and restart industrial computer by SMS.
When monitoring multiple industrial computer, to all monitoring setting methods needing the industrial computer of remote monitoring to repeat single industrial computer.
The know-why being specific embodiments of the invention and using described in above, if the change done according to conception of the present invention, its function produced do not exceed that instructions and accompanying drawing contain yet spiritual time, must protection scope of the present invention be belonged to.

Claims (12)

1., based on an industrial computer method for supervising for secure short message, it is characterized in that comprising the steps:
(1) the monitoring software set on supervising device continuous-query industrial computer obtains the working condition of industrial control software set working condition and industrial computer self to detect;
(2) if find to there is unusual condition, supervising device reports monitor staff by secure short message;
(3) monitor staff to receive after situation again by the long-range transmission processing order of secure short message to supervising device, supervising device coordinates with monitoring software and carries out fault restoration to industrial computer.
2. a kind of industrial computer method for supervising based on secure short message according to claim 1, is characterized in that: the method that described step (1) detects industrial control software set working condition comprises the steps:
1) in advance pressure test is carried out to each software of industrial control software set, obtain the CPU usage of each software and the normal range of EMS memory occupation amount and be supplied to monitoring software;
2) when industrial computer software assembly works, monitoring software obtains CPU usage and the EMS memory occupation amount of each software in industrial control software set by OS API;
3) monitoring software contrast step 1) with step 2) result, obtain whether existing in industrial control software set software work abnormal.
3. a kind of industrial computer method for supervising based on secure short message according to claim 2, it is characterized in that: described step 1) each software CPU usage and EMS memory occupation amount be supplied to monitoring software with configuration file form, configuration file is ASCII character text.
4. a kind of industrial computer method for supervising based on secure short message according to claim 1, is characterized in that: the method that described step (1) detects industrial computer working condition comprises the steps:
I) supervising device initiatively regularly carries out serial communication with monitoring software, if continuous three times are not responded, concludes that industrial computer crashes or fault; Respond if all obtain, conclude that industrial computer is normal; If obtain part to respond, conclude that industrial computer is abnormal;
Ii) supervising device timing inquiry industrial personal computer power situation, if supply voltage is lower than setting threshold value, concludes that industrial personal computer power is abnormal.
5. a kind of industrial computer method for supervising based on secure short message according to claim 1, is characterized in that: described secure short message communications protocol form is divided into order messaging format and answer short message form, and form is as follows:
Order messaging format: [command information character string] # internal sequence # access password
Answer short message form: [response message character string] # internal sequence #.
6. a kind of industrial computer method for supervising based on secure short message according to claim 1, is characterized in that: described step (3) is carried out fault restoration to industrial computer and comprised query manipulation and executable operations; Query manipulation is used for determining failure cause, and executable operations is for repairing fault.
7. a kind of industrial computer method for supervising based on secure short message according to claim 1 or 6, it is characterized in that: need during described executable operations step first to perform safety verification, safety verification needs monitor staff to provide sequence number, access password and short-message verification.
8. application is as claimed in claim 1 based on a supervisory system for the industrial computer method for supervising of secure short message, it is characterized in that comprising: Surveillance center, short message transceiving module, supervising device, industrial computer with monitoring software; Surveillance center is connected with short message transceiving module; Short message transceiving module and supervising device wireless connections; Supervising device is connected by serial ports with the industrial computer with monitoring software.
9. supervisory system according to claim 8, is characterized in that: described supervising device comprises: monitor board, 9 pin D type public plugs, gsm module, power management plate, battery, relay, power measurement module, power input socket, power output socket, base plate, shell; Power input socket is connected with power management plate, power measurement module, power output socket, relay respectively; Monitor board is connected with gsm module, 9 pin D type public plugs, relay, power measurement module respectively; Power management plate is connected with battery; Power management plate is that monitor board and gsm module are powered; Monitor board, 9 pin D type public plugs, gsm module, power management plate, battery, relay, power measurement module, power input socket, power output socket are fixed on base plate by bolt and nut; Base plate is fixed on enclosure by fixed orifice and bolt, stud.
10. supervisory system according to claim 9, is characterized in that: described monitor board comprises MCU circuit, power supply stabilization circuit, power connector, relay drive circuit, connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connector, pcb boards; MCU circuit is connected with UART connector, two RS232 level shifting circuits, LED, relay drive circuit, power supply stabilization circuits respectively; Two RS232 level shifting circuits are connected with two RS232 sockets respectively; Power supply stabilization circuit is connected with power connector, relay drive circuit respectively; Relay drive circuit is connected with connection terminal; MCU circuit, power supply stabilization circuit, power connector, relay drive circuit, connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connectors are fixed on pcb board.
11. supervisory systems according to claim 9, is characterized in that: described power management plate comprises external power input socket, monitor board power connector, SMS module power connector, power supply adaptor, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit and pcb board; External power input socket is connected with power supply adaptor; Power supply adaptor is connected with battery charger, automatic switch-over circuit respectively; Battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit are connected to each other successively; Monitor board power connector is connected with battery charger, automatic switch-over circuit, voltage stabilizing shunt circuit respectively; SMS module power connector is connected with voltage stabilizing shunt circuit; External power input socket, monitor board power connector, SMS module power connector, power supply adaptor, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit are fixed on pcb board.
12. supervisory systems according to claim 8, is characterized in that: described short message transceiving module is mobile phone or short message transceiver.
CN201510218744.5A 2015-04-30 2015-04-30 A kind of industrial personal computer monitoring method and system based on secure short message Expired - Fee Related CN104898509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510218744.5A CN104898509B (en) 2015-04-30 2015-04-30 A kind of industrial personal computer monitoring method and system based on secure short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510218744.5A CN104898509B (en) 2015-04-30 2015-04-30 A kind of industrial personal computer monitoring method and system based on secure short message

Publications (2)

Publication Number Publication Date
CN104898509A true CN104898509A (en) 2015-09-09
CN104898509B CN104898509B (en) 2018-04-27

Family

ID=54031227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510218744.5A Expired - Fee Related CN104898509B (en) 2015-04-30 2015-04-30 A kind of industrial personal computer monitoring method and system based on secure short message

Country Status (1)

Country Link
CN (1) CN104898509B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106961528A (en) * 2017-02-10 2017-07-18 国网浙江台州市黄岩区供电公司 Wireless collection device remote reboot method
CN107748555A (en) * 2016-09-12 2018-03-02 研祥智能科技股份有限公司 Industrial computer remote monitoring and fault diagnosis system
CN108255646A (en) * 2018-01-17 2018-07-06 重庆大学 A kind of self-healing method of industrial control program failure based on heartbeat detection
CN110850852A (en) * 2019-12-05 2020-02-28 成都天玙兴科技有限公司 Industrial control equipment fault notification system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005321A1 (en) * 2006-06-29 2008-01-03 Lin Ma Monitoring and Managing Distributed Devices
CN101980175A (en) * 2010-10-22 2011-02-23 中国科学院软件研究所 Open services gateway initiative (OSGi)-based software component monitoring method and system
CN102497292A (en) * 2011-11-30 2012-06-13 中国科学院微电子研究所 Computer cluster monitoring method and system thereof
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
CN103166773A (en) * 2011-12-09 2013-06-19 国家电网公司 Method and system for monitoring operation state of server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005321A1 (en) * 2006-06-29 2008-01-03 Lin Ma Monitoring and Managing Distributed Devices
CN101980175A (en) * 2010-10-22 2011-02-23 中国科学院软件研究所 Open services gateway initiative (OSGi)-based software component monitoring method and system
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
CN102497292A (en) * 2011-11-30 2012-06-13 中国科学院微电子研究所 Computer cluster monitoring method and system thereof
CN103166773A (en) * 2011-12-09 2013-06-19 国家电网公司 Method and system for monitoring operation state of server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748555A (en) * 2016-09-12 2018-03-02 研祥智能科技股份有限公司 Industrial computer remote monitoring and fault diagnosis system
CN106961528A (en) * 2017-02-10 2017-07-18 国网浙江台州市黄岩区供电公司 Wireless collection device remote reboot method
CN108255646A (en) * 2018-01-17 2018-07-06 重庆大学 A kind of self-healing method of industrial control program failure based on heartbeat detection
CN108255646B (en) * 2018-01-17 2022-02-01 重庆大学 Industrial control application program fault self-recovery method based on heartbeat detection
CN110850852A (en) * 2019-12-05 2020-02-28 成都天玙兴科技有限公司 Industrial control equipment fault notification system and method

Also Published As

Publication number Publication date
CN104898509B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
JP3686443B2 (en) Device and method for manipulating the power status of a remote device
CN104898509A (en) Industrial control computer monitoring method and system based on secure short message
CN105680566B (en) The rebooting device and method for restarting of fault wave recording device based on dispatch data net
CN103857072A (en) Home gateway device based on zigbee and wifi networks
CN103227813A (en) Automatic long-distance updating system and method for family Internet of Things system
CN205453782U (en) Network equipment state remote monitoring device
CN210578917U (en) Video monitoring front-end intelligent operation and maintenance box
CN103546332A (en) Server monitoring method and system
CN211123204U (en) Intelligent online monitoring management system
CN108933685A (en) A kind of the monitoring maintaining method and system of Intelligent hardware product
CN111309129B (en) Remote resetting method and system for automatic startup failure of well site data acquisition unit
CN109743206B (en) Dongle based on EtherCAT and use method thereof
CN101895414A (en) System and method for power off protection of server
CN104461841A (en) Working state monitoring method and device
CN111082999B (en) Self-inductance self-rescue PDU of network equipment and self-inductance self-rescue method thereof
CN210490900U (en) Self-induction self-rescue PDU (Power distribution Unit) of network equipment
CN109835787B (en) Remote monitoring device and method for elevator faults
CN203289457U (en) System controlling power-on/off of computer via network
CN102546719B (en) A kind of network remote control system, method and Node station
CN220606088U (en) Data acquisition device
CN111487901A (en) Remote control system and control method for ocean data buoy power supply
CN105785973B (en) One kind is from maintenance control system
CN103269274A (en) Network-controlled computer startup and shutdown system
CN211236889U (en) Circuit for configuring computer BIOS parameters by utilizing single chip microcomputer
CN204290488U (en) A kind of Electric Power Automation Equipment remote monitoring and fault treating apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180427

Termination date: 20190430

CF01 Termination of patent right due to non-payment of annual fee