CN104898509B - A kind of industrial personal computer monitoring method and system based on secure short message - Google Patents

A kind of industrial personal computer monitoring method and system based on secure short message Download PDF

Info

Publication number
CN104898509B
CN104898509B CN201510218744.5A CN201510218744A CN104898509B CN 104898509 B CN104898509 B CN 104898509B CN 201510218744 A CN201510218744 A CN 201510218744A CN 104898509 B CN104898509 B CN 104898509B
Authority
CN
China
Prior art keywords
personal computer
monitoring
industrial personal
software
power
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.)
Expired - Fee Related
Application number
CN201510218744.5A
Other languages
Chinese (zh)
Other versions
CN104898509A (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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of industrial personal computer monitoring method and system based on secure short message, system is made of monitoring software, remote monitoring center and the short message transceiving module run on monitoring device, industrial personal computer;Monitoring method includes:1) the monitoring software set on monitoring device continuous-query industrial personal computer obtains the working condition of industrial control software set working condition and industrial personal computer itself to detect;If 2) find that there are unusual condition, monitoring device to report monitoring personnel by secure short message;3) monitoring personnel remotely sends processing order to monitoring device by secure short message again after receiving situation, and monitoring device coordinates with monitoring software carries out fault restoration to industrial personal computer.The present invention can be used for improving the reliability of industrial personal computer, reduce the fault time of industrial personal computer, find industrial personal computer failure in time, remotely start, restart, closing industrial personal computer or industry control application software;Application of industrial control computer system development maintenance cost can be reduced, reduces industrial control software development difficulty and monitored item purpose risk.

Description

A kind of industrial personal computer monitoring method and system based on secure short message
Technical field
The present invention relates to security technology area, more particularly to a kind of industrial personal computer monitoring method based on secure short message and it is System.
Background technology
For the operation WINDOWS for being used to monitor or the industrial personal computer of general UNIX operating system guarded for nobody, work Actual motion is an industrial control software set on control machine, i.e., one or more operate on industrial personal computer performs answering for industry control task Use software.Any one industrial control software failure can all influence being normally carried out for industry control task.
Because application software defect, electromagnetic interference, too high or too low environment temperature and running temperature, it may appear that industry control System in case of system halt or the phenomenon of industry control application software endless loop after one section of uncertain time of running software.Although software and hardware is abundant Test can mitigate this phenomenon, but can not avoid completely.Factual survey shows, even very careful exploitation is simultaneously The software realized after test, the frequency for the fault state such as software endless loop or equipment crash occur be not also low.And once nobody Industrial personal computer crash is guarded, can be caused the accident or economic loss.And the unique method solved the problems, such as is exactly live reset of sending someone, Therefore cause the monitoring blank of long period, also labor intensive financial resources, increase the operation expense of system.Engineering practice table It is bright, when generally occurring within problem, solved the problems, such as long as restarting system.Currently existing scheme is using WatchDog Timer Solve the problems, such as, it is specific as follows:As soon as a regular time is set, it is multiple after WatchDog Timer timing to setting time (spilling) Position equipment;, being capable of timing reset WatchDog Timer so that WatchDog Timer can not overflow in normal work;When When equipment operation irregularity, it is impossible to or have little time reset WatchDog Timer, then WatchDog Timer overflow and thus Homing device so that equipment or software restarting.
Theoretically, the software that this scheme is run in equipment reasonably arranges the opportunity for resetting timer instruction When have no problem, but actual industrial is practice have shown that this is not easy thing:First, in order to reach good effect Sufficiently experiment and careful debugging are needed to determine reset code (code for resetting WatchDog Timer) in software or system In position, this can cause software development difficulty increase, progress elongate;Secondly, arrange that reset code in software can be destroyed The structuring of software, thus it is difficult in maintenance;Finally, due to actually running environment multifarious and can not possibly be thoroughly complete Each details of full test software, even if software is absorbed in endless loop WatchDog Timer and may also obtain on time in some cases Reset, therefore cannot be it is anticipated that contemplating reset system.Therefore, this scheme is also defective.
In addition, the power supply of common WatchDog Timer is same power supply with monitored system, usual industrial personal computer will Carry WatchDog Timer.Cause the situation of failure in the abnormal conditions (such as short interruptions or unexpected fluctuation) of some power supplys Under, the power supply of house dog in itself also can short interruptions or fluctuation, cause house dog to be reset, lose preconfigured information (ratio Reset such as whether allowing to overflow, overflow the time and whether allow calendar scheduling), cause monitoring function entirely ineffective.Finally, when During failure, for those users for reporting the even several days monitoring devices for reporting a data for several times on the one, also only exist Equipment fault can be pinpointed the problems after a period of time occurs by uploading data outage phenomenon, and cannot be pinpointed the problems in time, Cause to monitor blank and because unknown losses and accident caused by cannot solving a problem promptly.
The content of the invention
The present invention is to overcome above-mentioned shortcoming, and it is an object of the present invention to provide a kind of industrial personal computer monitoring side based on secure short message Method, the data monitored by monitoring personnel device for monitoring processing reach monitoring purpose to control the working status of industrial personal computer, Industrial personal computer reliability can be improved, reduces industrial personal computer fault time, ensures industrial personal computer normal operation.
Another object of the present invention is to provide a kind of industrial personal computer monitoring system based on secure short message, including short message receiving-transmitting mould Block, monitoring device and the industrial personal computer with monitoring software, greatly reduce the development cost and difficulty of application of industrial control computer software, together When ensured industrial personal computer normal operation again.
The present invention is to reach above-mentioned purpose by the following technical programs:A kind of industrial personal computer monitoring side based on secure short message Method, includes the following steps:
(1) monitoring software on monitoring device continuous-query industrial personal computer is to obtain industrial control software set working condition and industry control The working condition of machine itself;
(2) if finding that there are unusual condition, monitoring device to report monitoring personnel by short message;
(3) monitoring personnel remotely sends processing order to monitoring device, monitoring dress by secure short message again after receiving situation Same monitoring software is put to coordinate to industrial personal computer progress fault restoration.
Preferably, the method for step (1) the detection industrial control software set working condition includes the following steps:
1) pressure test is carried out to each software of industrial control software set in advance, obtains the CPU usage of each software And EMS memory occupation amount normal range (NR) and be supplied to monitoring software;
2) when industrial personal computer software assembly works, monitoring software obtains in industrial control software set that each is soft by OS API The CPU usage and EMS memory occupation amount of part;
3) monitoring software contrasts step 1) with step 2) as a result, obtaining whether there is software work in industrial control software set It is abnormal.
Preferably, the CPU usage and EMS memory occupation amount of each software of the step 1) are carried in the form of configuration file Supplying monitoring software, configuration file are ASCII character text.
Preferably, the method for step (1) the detection industrial personal computer working condition includes the following steps:
I) monitoring device active timing and monitoring software carry out serial communication, conclude industry control if continuous response no three times Machine crashes or failure;Conclude that industrial personal computer is normal if all obtaining responding;Industrial personal computer exception is concluded if obtaining part and responding;
Ii) monitoring device timing inquiry industrial personal computer power situation, concludes industrial personal computer if supply voltage is less than given threshold Abnormity of power supply.
Preferably, the secure short message communications protocol form is divided into order messaging format and answer short message form, shape Formula is as follows:
Order messaging format:[command information character string] # internal sequence # access passwords
Answer short message form:[response message character string] # internal sequences #.
Include inquiry operation preferably, the step (3) carries out industrial personal computer fault restoration and perform operation;Inquiry behaviour Definite failure cause is acted on, operation is performed and is used to repair failure.
Preferably, needing to first carry out safety verification during the execution operating procedure, safety verification needs monitoring personnel to carry For sequence number, access password and short-message verification.
A kind of industrial personal computer monitoring system based on secure short message, including:Monitoring center, short message transceiving module, monitoring device, Industrial personal computer with monitoring software;Monitoring center is connected with short message transceiving module;Short message transceiving module wirelessly connects with monitoring device Connect;Monitoring device is connected with the industrial personal computer with monitoring software by serial ports.
Preferably, the monitoring device includes:Monitor board, 9 pin D types male plugs, gsm module, power management plate, electricity Pond, relay, power measurement module, power input socket, power output socket, bottom plate, shell;Power input socket respectively with Power management plate, power measurement module, power output socket, relay connection;Monitor board is public with gsm module, 9 pin D types respectively Plug, relay, power measurement module connection;Power management plate is connected with battery;Power management plate is monitor board and gsm module Power supply;Monitor board, 9 pin D types male plugs, gsm module, power management plate, battery, relay, power measurement module, power input Socket, power output socket are fixed on bottom plate by bolt and nut;Bottom plate is fixed on outer by mounting hole and bolt, stud Inside shell.
Preferably, the monitor board includes MCU circuits, power supply stabilization circuit, power connector, relay driving electricity Road, wire connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connector, pcb boards;MCU circuits It is connected respectively with UART connector, two RS232 level shifting circuits, LED, relay drive circuit, power supply stabilization circuits;Two A RS232 level shifting circuits are connected with two RS232 sockets respectively;Power supply stabilization circuit respectively with power connector, relay Device drive circuit connects;Relay drive circuit is connected with wire connection terminal;MCU circuits, power supply stabilization circuit, power connector, Relay drive circuit, wire connection terminal, LED, two RS232 level shifting circuits, two RS232 sockets, UART connectors are solid It is scheduled on pcb board.
Preferably, the power management plate includes external power input socket, monitor board power connector, SMS module electricity Source 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 supply connects Device is connected with battery charger, automatic switch-over circuit, voltage stabilizing shunt circuit respectively;SMS module power connector and voltage stabilizing point Road circuit connection;External power input socket, monitor board power connector, SMS module power connector, power supply adaptor, battery Charging circuit, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit are fixed on pcb board.
Preferably, the short message transceiving module is mobile phone or short message transceiver.
The beneficial effects of the present invention are:(1) present invention can be used for improving the reliability of industrial personal computer, reduce industrial personal computer Fault time, find industrial personal computer failure, remotely start, restart, closing industrial personal computer or industry control application software in time;(2) using this The monitoring system of invention, can reduce application of industrial control computer system development maintenance cost, reduce industrial control software development difficulty and monitoring The risk of project.
Brief description of the drawings
Fig. 1 is industrial personal computer monitoring system general principles schematic diagram of the present invention;
Fig. 2 is the catenation principle schematic diagram of monitoring device and industrial personal computer of the present invention with monitoring device;
Fig. 3 is monitoring device structure chart of the present invention;
Fig. 4 is monitor board structure chart of the present invention;
Fig. 5 is the hardened composition of power management of the present invention;
Fig. 6 is monitoring device embedded software data flow diagram of the present invention;
Fig. 7 is monitoring software data flow diagram of the present invention.
Embodiment
With reference to specific embodiment, the present invention is described further, but protection scope of the present invention is not limited in This:
Embodiment:The present invention by whether crash to industrial personal computer power, industrial personal computer and industrial personal computer on industry control application journey Ordered sets working condition carries out remote monitoring to realize goal of the invention;Monitoring to industrial personal computer power is by taken at regular intervals power supply Parameter is realized;And industrial personal computer whether crash it is soft to the monitoring specially designed installed on industrial personal computer by periodically sending querying command Part is realized.Judge the working condition of application of industrial control computer collection of programs it is normal whether be to be based on following principle:
The CPU usage and EMS memory occupation amount consumed during one application software normal work is respectively in fixed scope Fluctuation, the time and the difference and application software difference in functionality of the amount of ram of consuming that various processing perform when this is running software The CPU time of occupancy and normal phenomenon caused by amount of ram difference.And when software anomaly, for example there is memory overflow, software The problems such as peripheral hardware accidentally malfunctions, running software is abnormal caused by endless loop caused by BUG or exterior strong jamming, can cause CPU There is exception in occupancy or EMS memory occupation amount, thus exceed normal range (NR).The limit test of long period is carried out to software, i.e., Run with maximum conditions, and the CPU usage for the task manager monitoring software for passing through operating system and EMS memory occupation amount Change, it is possible to obtain its normal range of operation.
Based on described above, with reference to the actual state of application of industrial control computer, the present invention proposes monitoring method and realizes this side The system of method:
A kind of industrial personal computer monitoring method based on secure short message, includes the following steps:
1, monitoring device constantly inquires about the monitoring software on industrial personal computer, obtains industrial control software collection working condition and industrial personal computer The working condition of itself.
2, monitoring device reports monitoring personnel by secure short message if finding to have exception.
3, monitoring personnel remotely sends commands to monitoring device by secure short message, monitoring device with monitoring software coordinate into Row remote failure reparation.
In step 1, the method for detecting industrial control software set operation irregularity:
1, pressure test is carried out to each software of industrial control software set in advance, its CPU usage is obtained and memory accounts for The normal range (NR) of dosage, and monitoring software is supplied in the form of configuration file.
2, when industrial control software set works, monitoring software is obtained each in monitored industrial control software set by OS API The CPU usage and EMS memory occupation amount of a industrial control software.
3, CPU usage that monitoring software obtains step 2 and EMS memory occupation amount with the normal range (NR) in configuration file into Row compares, so that whether draw in industrial control software set has software work exception.
The method for detecting industrial personal computer exception in step 1:
1, monitoring device active timing is exactly to inquire about by serial communication, its Content of communciation with the monitoring software on industrial personal computer The working status of industrial control software set.If continuous 3 times communicate the response for not obtaining monitoring software, it is dead to be judged as industrial personal computer Machine or failure;If being responded, as long as but have in responding the working status of software abnormal, then think industrial personal computer exception.
2, the power status of industrial personal computer is inquired about in timing, if supply voltage is less than the threshold value of setting, then it is assumed that industrial personal computer power down, It is judged as industrial personal computer power exception.
Above-mentioned two situations are all treated extremely as industrial personal computer.
In step 2, without using safety measure when sending warning message.
In step 3, the remote failure reparation to industrial personal computer includes inquiry operation and performs operation.
In step 3, inquiry operation is used for determining failure cause.For inquiry operation, it is not necessary to measure safe to use. Inquiry includes the working condition of inquiry industrial personal computer some software or the working condition of industrial control software set.For industrial control software collection For the working condition inquiry of conjunction, as long as a running software exception, whole industrial control software set operation irregularity is considered as.Inquiry The power status of inquiry industrial personal computer is further included, power status includes supply voltage, source current and power factor;Operation is performed to use To repair failure.Performing operation includes:Start one or all industrial control softwares;Stop one or all industrial control softwares;Restart One or all industrial control softwares;Industrial personal computer restarts.
In step 3, for perform operation for, in order to prevent industrial personal computer by incoherent people's will outside or malice manipulate, Take safety measure.Safety measure is as follows:Monitoring device is before use, internal prestore 16 letter or number The inside ID of ASCII character composition represents the device (being different from can be from the product ID that device appearance is seen), 6 access mouths Make and manager's cell-phone number, they store after encrypting, and are non-volatile;External tool cannot read these information, Need to write again to change after can only wiping during modification.The operational order that manager performs must provide internal sequence number, access Password and short message is from the corresponding mobile phone of cell-phone number stored, then can just be approved by monitoring device;If do not provide Or the internal sequence number and password provided, with the inconsistent of storage, monitoring device ignores that the short message order;In addition, monitoring After device receives operational order and approves the order, a short message for confirming to perform can be sent to the phone number to prestore, only This short message for confirming to perform obtains agreeing to the reply (in a manner of short message) performed, and performing operation just can really obtain monitoring dress Perform with putting.
A kind of industrial personal computer monitoring system based on secure short message, as shown in Figure 1, the owner by one or more industrial personal computers Or the monitoring software composition run on administrator's (monitoring center), short message transceiving device, monitoring device and industrial personal computer.
Manager's (monitoring center) of one or more industrial personal computers is responsible for ensureing normal operation and the remote failure of industrial personal computer Exclude.
Short message transceiving device is based on mobile communication technology, for receiving and dispatching short message.Manager is received with short message transceiving device and reported Warn short message and send failover operation instruction.
SMS communication protocol format provides as follows:
Order messaging format:[command information character string] # internal sequence # access passwords
Answer short message form:[response message character string] # internal sequences #
Command information character string and corresponding response message character string are as shown in table 1 below:
Table 1
Upper table explanation:
1) { dbase }:With foregoing monitoring software order.
2) { power supply status }:If external power supply is powered, for " y "
3) { result }:Form is (external power supply state) (magnitude of voltage) (current value) (power factor).If not external electrical Source powers, then there was only (external power supply state) field, back field is not present.
(external power supply state) explanation of field:It is " Y " character if external power supply is normal;Otherwise it is " N " character.
(magnitude of voltage) VSXXXX.XXAC [AC/DC], such as:V+0012.51DC and V00231.18AC represent direct current respectively 12.51V or alternating voltage virtual value are 231.18V.
(current value) ISXXXX.XX [AC/DC], such as:I+0002.21DC and I00001.13AC, represents direct current respectively 2.21A or alternating current virtual value are 1.13A.
(power factor) [FXX.XXXX], such as:F01.0000 or F0.6521, expression power factor are 1 (i.e. DC load) Or 0.6521 (AC load).
The complete result example of DC power supply:SYV+0012.51DCI+0002.21DCF01.0000, represents that industrial personal computer is worked as Preceding power supply status is:External power supply is powered, DC voltage 12.51V, DC current 2.21A, power factor 1.0000.
The complete result example of AC power:SYV00231.18ACI00001.13ACF00.6521, represents that industrial personal computer is worked as Preceding power supply status is:External power supply is powered, alternating voltage 231.18V, alternating current 1.13A, power factor 0.6521.
The result example of external power supply failure:SN.
4) for operational order in upper table, it is necessary to confirm, i.e.,:After administrator receives response, it is necessary to respond " OK ", Ran Houjian Control device can just perform order;If responding " NO " or in 3 minutes without response, monitoring device ignores the order;For looking into Order is ask to require without confirmation.
Alarming short message form:[warning message character string] # internal sequences #
Warning message character string is as shown in table 2 below:
Table 2
The monitoring device is by monitor board, 9 pin D types male plugs, gsm module, power management plate, battery, relay, list Phase power measurement module, power input socket, power output socket, aluminum alloy bottom plate, silicon steel shell composition, such as Fig. 2, Fig. 3 institute Show.Fig. 2 is when using and the connection mode of industrial personal computer.
9 pin D types male plugs are connected by conducting wire with a RS232 interface circuit of monitor board.When in use, it passes through mark Quasi- serial interface cable is connected to the monitoring serial port of industrial personal computer.Monitor board, gsm module, power management plate, battery, relay, single-phase work( Rate measurement module, power input socket, power output socket are all fixed on aluminum alloy bottom plate by bolt and nut, aluminium alloy Bottom plate is fixed on silicon steel enclosure by mounting hole and bolt, stud again.Silicon steel shell has very good electromagnetic screen Effect is covered, improves the EMC abilities of monitoring device.
Monitor board is as shown in figure 4, including MCU circuits, 2 RS232 level shifting circuits, 23 line RS232 connectors, 1 A three lines UART connector, 1 red LED, relay drive circuit, relay terminal, power connector and power supply are steady Volt circuit and the PCB for installing these components.
The work of MCU circuit control devices on monitor board;2 UART interfaces of MCU pass through 2 RS232 level conversions Two RS232 sockets are connected to after circuit:RS232 sockets -1 and RS232 socket -2, the two sockets all draw including 3 signals Foot:Respectively TXD, RXD of RS232 level and public earth signal;RS232 level shifting circuits are by MAX232 electrical level transferring chips And peripheral capacitance composition;RS232 sockets -1 are used for 9 pin D type male plugs being connected on shell;RS232-2 sockets are used to connect To gsm module;Another UART interface of MCU is connected to 3 line UART connectors, this connector is used to connect exterior single-phase power survey Module is measured, to obtain the power consumption parameter of industrial personal computer, this connector includes 3 signal pins:TXD, RXD and logic are public Ground.These pin levels are TTL compatible level.
Red LED is connected to an I/O port of MCU, with 500 milliseconds of frequency scintillation, instruction prison in the device course of work Control the operation conditions of device.
Relay drive circuit is made of bipolarity triode 9014D and current-limiting resistance, is connected to 2 end relay wiring ends Son, this wire connection terminal are used for connecting the coil of relay.Relay drive circuit is connected to power supply stabilization circuit, is driven Power supply.
Power connector is 3 pins, and spacing is the ordinary connector of 2.54mm, for connecting power management plate.Its 2 power supplies Pin is connected to power supply stabilization circuit on monitor board, and the latter decouples the power supply from power connector, filters, voltage stabilizing MCU circuits and relay drive circuit are respectively supplied to after branch.
Another pin connection in power connector provides level signal, and whether instruction device is supplied by reserve battery Electricity, the pin are directly connected to an I/O port of MCU chip in MCU circuits.
MCU circuits are made of MCU and reset circuit, pierce circuit, wherein one embedded software of operation, control are whole The work of device.MCU can be selected with 3 or more UART interfaces, watchdog circuit, no less than 32K FLASH and 2K RAM MCU.It is preferred that the LPC2365 chips of NXP productions, the CPU of the chip is 32 bit processors of ARM7TDMI-S, has 256KB FLSH and 32KB SRAM, there is DMA, VIC, 4 UART, WatchDog Timer, RTC and battery back RAM, 10/100M ether Net MAC, multiple timers, PWM module, SPI, I2S, IIC, SSP, 10 ADC, 10 DAC, high speed GPIO etc. enrich outer If there are sufficient resources to realize the function that the present invention needs, and can upgrade as needed.
Encryption is stored with the embedded software for controlling this device in FLASH inside MCU, and encryption embedded software can pass through FLASH programming tools are realized, are well known to those skilled in the art.
FLASH is stored with preset administrator's mobile phone or monitoring center SMS module cell-phone number, preset administrator mouthful inside MCU Make, unique ID (sign coding).These information are consolidated using general FLASH programming tools encryption write-in MCU inside FLASH's Determine address.
Gsm module is used for receiving and dispatching short message, for a technical grade mobile communication module for supporting three line RS232 interfaces to access.
Single-phase power measurement module measures the power consumption parameter of industrial personal computer:Voltage, electric current, power factor.It is preferred that electronic type list Phase power measurement module, and 3 line UART interfaces need to be carried and be used to export measurement result.
Relay circuit is preferably normally closed relay.2 relays that the coil terminals of relay are linked to control panel drive Dynamic lead-out terminal, therefore controlled and be turned on or off.
Input socket can be general DC B NC sockets or AC socket as the case may be;It is connected by feed cable It is connected to external dc or alternating electromotive force network.Accessory power outlet is equipped with according to the corresponding socket of industrial personal computer power cable plug, therefore The service cable of industrial personal computer can be caused to be inserted directly into.
The positive pole of input socket and accessory power outlet exchanges fire line terminal and is connected respectively to two of relay and touches Point, other both threads, i.e. power cathode or exchange center line and protection ground wire terminal are directly interconnected by " fly line ".
When relay disconnects, positive pole or exchange firewire are disconnected with power supply, therefore industrial personal computer loses power supply;Relay During closure, positive pole or the exchange same power on of firewire, industrial personal computer obtain power supply.By first powering off, 1 minute is delayed again Power on, it is possible to complete to reset the action of industrial personal computer.The benefit so designed is:1, it is easy to use and integrated, because work Control machine can not do any change (without opening industrial personal computer and drawing its reset pin);2, what first power down re-powered again cold opens Flowing mode can more thoroughly reset industrial personal computer, more preferable than the effect of thermal starting.3, even if monitoring device damages, also it is very easy to dimension Shield:Industrial personal computer simply directly can be inserted into power outlet and worked on by maintenance personnel, then repair or replace again monitoring dress Put.
Because using normally closed relay, after the power supply power-fail recovery that monitoring device and industrial personal computer share, industry control Machine can automatically continue work, without user intervention;Importantly, even if because have a power failure causes monitoring device electric for a long time The problem of pond exhausts electricity, and industrial personal computer is unable to automatic start after will not there is power supply normally.
Selection of Battery capacity is exported for 1700mAH, 4.2V or the lithium battery of similar specification.Device offer is spare for this for battery Power supply, prevents unexpected power down from losing the contact of same distance supervisor and thus cannot send warning message;Since battery can prop up Hold monitoring device to work on after power supply loses a period of time, so can continue to supervise in a period of time after industrial personal computer power down Depending on the power conditions and response message search of industrial personal computer.Battery is wired to the battery connector of power management plate.
Power management plate includes external power input socket, monitor board power connector, SMS module power connector, power supply Adaptation module, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit and these components are installed PCB, as shown in Figure 5.
External power input socket is used to be connected to power adaptation module, and external power is transformed to direct current 5V by the latter;Power supply is fitted Battery charger and automatic switch-over circuit are connected to module;Battery charger is used to charge to battery, is connected to electricity Pond connector;Battery connector is used to connect lithium ion battery, while is connected to automatic switch-over circuit;Automatic switch-over circuit is defeated One of the two-way voltage bigger entered automatically switches to voltage stabilizing shunt circuit;Voltage stabilizing shunt circuit carries out the voltage being switched in It is divided into 2 tunnels after voltage stabilizing, is sent to monitoring power connector and SMS module power connector respectively;Automatic switch-over circuit exports one Status signal, indicates whether that the output voltage of power adaptation module is more than cell voltage, on the one hand this signal is connected to battery Charging circuit, controls whether to charge to battery:Charge if the output voltage of power adaptation module is more than cell voltage to battery, Otherwise battery charger is forbidden to charge battery;On the other hand, this signal is sent to monitoring power connector, and and then is sent to Monitor board, indicates whether that external circuit voltage exists:If the output voltage of power adaptation module is more than cell voltage, external power is deposited Otherwise it is being not present.
SMS module power connector is the ordinary connector of 2 pin 2.54mm pin spacing, for connecting SMS module Power input terminal, power supply is provided for SMS module.
Monitoring power connector is the ordinary connector of 3 pin 2.54mm pin spacing, wherein 2 are voltage output pin, Another is level signal, indicates whether that external power exists;This connector is used for monitor board, and working power and dispatch from foreign news agency are provided for it The information that source whether there is.
Power adaptation module preferably exports the technical grade AC-DC or DC-DC module of 5V DC voltages.If industrial personal computer is by direct current Power voltage supply, then using DC-DC module;If industrial personal computer is directly powered using electricity network, using AC-DC module.
The charger circuit that charging circuit IC is preferably formed with LTC4059A chips and peripheral cell, and automatic switch-over circuit It is preferred that the switching circuit of LTC4413 chips and peripheral cell composition.
Relay circuit is made of normally closed relay, drive circuit.Drive circuit drives relay coil so that relay 2 contacts be turned on or off.An I/O port of MCU, is connected to relay drive circuit, therefore can control the 2 of relay A contact is turned on or off.High level is defaulted as in view of MCU I/O ports after reset, so design relay drive circuit is low Level acts, i.e.,:If I/O port is high level, normally closed relay continues to close, with same condition when not powering on;If I/O port is low electricity Flat, then relay contact disconnects.Accordingly even when monitoring device unexpected reset will not cause the actuating of relay, industrial personal computer is influenced.
Fig. 6 is the data flow diagram of monitoring device embedded software logic function.The UART interface that the software passes through MCU Order (these orders are as described in preceding monitoring software part) was sent every one minute to the monitoring software on industrial personal computer to inquire about quilt The working status of the industry control application software of monitoring, if abnormal just preset to supervisor by the relevant information of short message sending Phone number;If continuous 3 orders for being sent to monitoring software on industrial personal computer do not receive response, judge that industrial personal computer is dead Machine, then sends the warning message phone number preset to supervisor.The software is while listening for being connected to another UART of MCU Gsm module on interface, and perform respective action according to short message order is received.In addition, seeing inside software design patterns MCU Door dog timer time-out time is 2 minutes, and then resetting house dog in appropriate place ensures normal operation.Because embedded for this Software code amount is small, and logic is simple, and the addition of the timing reset instruction of house dog does not interfere with the development difficulty of software.Finally, The software is detecting external power supply by reading the external power supply status pin level from power management plate every 1 minute Automatically warning message is sent after power down to administrator or monitoring server.
Monitoring software is installed on industrial personal computer, and a process as industrial personal computer is run.There are two functions:1, for obtaining The working condition of industry control application software and feed back to monitoring device;2, start or stop application of industrial control computer software.Each supervised The industrial personal computer of control is required for installing a set of monitoring software, and provides with the monitored corresponding configuration file of software.Configuration File defines the CPU usage of each software of industrial control software set and the normal range (NR) and serial ports of EMS memory occupation amount are led to Interrogate parameter configuration.Monitoring software operates in the highest running priority level of industrial personal computer operating system, is transported automatically after industrial personal computer startup OK, and continue to monitor a serial ports for being connected to monitoring device, be carried out when receiving the order of serial ports and pass through serial ports Feedback result is to monitoring device.
Fig. 7 is monitoring software data flow diagram, it is by calling the relevant API of OS processes to obtain spent by monitored software CPU usage, EMS memory occupation amount, and contrasted with CPU usage during software normal operation and EMS memory occupation amount scope, therefore It can interpolate that whether application software is abnormal;It also can be by calling the opening of OS process correlation API control softwares, stopping or again Open.
Monitoring software is matched somebody with somebody according to the serial port setting such as baud rate, check bit, data bit and port numbers as defined in its configuration file The serial ports is put, this serial ports is connected with monitoring device.Then monitoring software monitors the serial ports, so as to timely receive prison Control device issues its order, and carries out parsing execution to it
Monitoring software must operate at highest running priority level, this ensures that it can make an immediate response and carrys out the life of self-monitoring device Order.
The configuration file of monitoring software is an ASCII character text, it is specified that following project, passes through simple text Editing machine can be edited.Including herein below:
1) serial port, baud rate, data bit, check bit, the stop position of monitoring device are connected.
2) be monitored the title of software, CPU usage maximum, CPU usage minimum value, EMS memory occupation amount maximum, Memory usage minimum value.This can have a plurality of, you can to monitor multiple softwares.
The order that monitoring software is supported includes:Inquiry, start, close, reset command, and order and its response are all ASCII Code character string.Monitoring software order such as table 3:
Table 3
The monitoring software command specification of table 3:
1) { dbase }:It is ASCII coded strings to inquire about or the name character string of the software of start and stop.Software Title can be a certain specific software, or " ALL ".Then refer to if " ALL " and all softwares as defined in configuration file are operated.
2) { state }:The field is the whether normal information of work of software.For ascii character " Y " or " N "
For single software, if being " Y " character normally;Otherwise it is " N " character, if the software is not deposited in configuration file It is being then " N ".It is obtained by whether normal:Monitoring software call operation system API obtains some or multiple is supervised Control the CPU usage and EMS memory occupation amount of application software, then with the corresponding informance of configuration file mutually compared with acquisition.For Software as defined in " ALL " i.e. all configuration files, is " N " character as long as monitoring software finds there is a running software exception; Only all softwares all normal operations are " Y " character.
3){CRC}:For 16 CRC checks, for ensuring that communication data is errorless.To be removed in order or response character string Binary number --- 16 system of -2 byte that other outer all bytes of crc field are calculated according to multinomial x16+x12+x5+1 The 4 byte ASCII character character strings that number is converted into.Transmission order, first sends the corresponding ASCII character of upper byte, retransmits low level Corresponding two ASCII characters of byte.
In use, connect this device according to the mode of connection shown in Fig. 1, it is possible to mobile phone or the PC with gsm module Machine, which sends short message, to be carried out remote reboot industrial personal computer and inquires about its working condition.
1) monitoring device is connected to a PC, is opened power supply, using special FLASH programming tools, is cryptographically write Administrator's mobile phone or monitoring center SMS module cell-phone number, preset administrator password, unique ID (sign coding) to monitoring dress Put the FLASH. of the MCU of inside
2) serial ports that the RS232 connectors of monitoring device pass through 232 cable connection of standard to industrial personal computer.
3) power connector is connected to industrial personal computer power input.
4) external power supply is connected to monitoring device.
5) monitoring software is installed to industrial personal computer, modification monitoring configuration file, to meet the monitoring requirement of user.
6) industrial control software is started
Thus can be by SMS come remote inquiry industrial control software job information, closing industrial control software, operation work Control software, restart industrial control software and restart industrial personal computer.
When being monitored to multiple industrial personal computers, to the industrial personal computer of remote monitoring in need repeat to the prison of single industrial personal computer Control setting method.
The technical principle for being the specific embodiment of the present invention and being used above, if conception under this invention institute The change of work, during the spirit that its caused function is still covered without departing from specification and attached drawing, should belong to the present invention's Protection domain.

Claims (11)

1. a kind of industrial personal computer monitoring method based on secure short message, it is characterised in that include the following steps:
(1) the monitoring software set on monitoring device continuous-query industrial personal computer with detect obtain industrial control software set working condition and The working condition of industrial personal computer itself;
Wherein, the monitoring device includes:Monitor board, 9 pin D types male plugs, gsm module, power management plate, battery, relay Device, power measurement module, power input socket, power output socket, bottom plate, shell;Power input socket respectively with power supply pipe Manage plate, power measurement module, power output socket, relay connection;Monitor board respectively with gsm module, 9 pin D types male plugs, after Electric appliance, power measurement module connection;Power management plate is connected with battery;Power management plate is powered for monitor board and gsm module;Prison Control plate, 9 pin D types male plugs, gsm module, power management plate, battery, relay, power measurement module, power input socket, electricity Source accessory power outlet is fixed on bottom plate by bolt and nut;Bottom plate is fixed inside the housing by mounting hole and bolt, stud;
(2) if finding that there are unusual condition, monitoring device to report monitoring personnel by secure short message;
(3) monitoring personnel receives that remotely to send processing order after situation by secure short message again same to monitoring device, monitoring device Monitoring software coordinates carries out fault restoration to industrial personal computer.
A kind of 2. industrial personal computer monitoring method based on secure short message according to claim 1, it is characterised in that:The step (1) method for detecting industrial control software set working condition includes the following steps:
1) pressure test is carried out to each software of industrial control software set in advance, obtains the CPU usage of each software and interior Deposit the normal range (NR) of occupancy and be supplied to monitoring software;
2) when industrial personal computer software assembly works, monitoring software obtains each software in industrial control software set by OS API CPU usage and EMS memory occupation amount;
3) monitoring software contrasts step 1) with step 2) as a result, obtaining different with the presence or absence of software work in industrial control software set Often.
A kind of 3. industrial personal computer monitoring method based on secure short message according to claim 2, it is characterised in that:The step 1) CPU usage of each software and EMS memory occupation amount are supplied to monitoring software in the form of configuration file, and configuration file is ASCII character text.
A kind of 4. industrial personal computer monitoring method based on secure short message according to claim 1, it is characterised in that:The step (1) method for detecting industrial personal computer working condition includes the following steps:
I) monitoring device active timing and monitoring software carry out serial communication, conclude that industrial personal computer is dead if continuous response no three times Machine or failure;Conclude that industrial personal computer is normal if all obtaining responding;Industrial personal computer exception is concluded if obtaining part and responding;
Ii) monitoring device timing inquiry industrial personal computer power situation, concludes industrial personal computer power if supply voltage is less than given threshold It is abnormal.
A kind of 5. industrial personal computer monitoring method based on secure short message according to claim 1, it is characterised in that:The peace Full SMS communication protocol format 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 passwords
Answer short message form:[response message character string] # internal sequences #.
A kind of 6. industrial personal computer monitoring method based on secure short message according to claim 1, it is characterised in that:The step (3) fault restoration is carried out to industrial personal computer includes inquiry operation and performs operation;Inquiry operation is used to determine failure cause, performs behaviour Act on reparation failure.
A kind of 7. industrial personal computer monitoring method based on secure short message according to claim 6, it is characterised in that:The execution Need to first carry out safety verification during operating procedure, safety verification needs monitoring personnel offer sequence number, access password and short message to test Card.
8. a kind of monitoring system for applying the industrial personal computer monitoring method based on secure short message as claimed in claim 1, its feature It is to include:Monitoring center, short message transceiving module, monitoring device, the industrial personal computer with monitoring software;Monitoring center is received with short message Send out module connection;Short message transceiving module and monitoring device wireless connection;Monitoring device passes through with the industrial personal computer with monitoring software Serial ports connects.
9. monitoring system according to claim 8, it is characterised in that:The monitor board includes MCU circuits, power supply voltage stabilizing electricity Road, power connector, relay drive circuit, wire connection terminal, LED, two RS232 level shifting circuits, two RS232 are inserted Seat, UART connector, pcb board;MCU circuits respectively with UART connector, two RS232 level shifting circuits, LED, relays Drive circuit, power supply stabilization circuit connection;Two RS232 level shifting circuits are connected with two RS232 sockets respectively;Power supply is steady Volt circuit is connected with power connector, relay drive circuit respectively;Relay drive circuit is connected with wire connection terminal;MCU electricity Road, power supply stabilization circuit, power connector, relay drive circuit, wire connection terminal, LED, two RS232 level shifting circuits, Two RS232 sockets, UART connectors are fixed on pcb board.
10. monitoring system according to claim 8, it is characterised in that:The power management plate includes external power input and inserts Seat, monitor board power connector, SMS module power connector, power supply adaptor, battery charger, battery connector, from Dynamic switching circuit, voltage stabilizing shunt circuit and pcb board;External power input socket is connected with power supply adaptor;Power supply adaptor is distinguished It is connected with battery charger, automatic switch-over circuit;Battery charger, battery connector, automatic switch-over circuit, voltage stabilizing branch Circuit is connected to each other successively;Monitor board power connector respectively with battery charger, automatic switch-over circuit, voltage stabilizing shunt circuit Connection;SMS module power connector is connected with voltage stabilizing shunt circuit;It is external power input socket, monitor board power connector, short Believe modular power source connector, power supply adaptor, battery charger, battery connector, automatic switch-over circuit, voltage stabilizing shunt circuit It is fixed on pcb board.
11. monitoring system according to claim 8, it is characterised in that:The short message transceiving module is received for mobile phone or short message Send out equipment.
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 CN104898509A (en) 2015-09-09
CN104898509B true 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)

Families Citing this family (4)

* 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
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 中国科学院微电子研究所 Method and system for monitoring computer cluster
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098260A (en) * 2006-06-29 2008-01-02 国际商业机器公司 Distributed equipment monitor management method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 中国科学院微电子研究所 Method and system for monitoring computer cluster
CN103166773A (en) * 2011-12-09 2013-06-19 国家电网公司 Method and system for monitoring operation state of server

Also Published As

Publication number Publication date
CN104898509A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104898509B (en) A kind of industrial personal computer monitoring method and system based on secure short message
US20170155246A1 (en) Effectuating energization and reactivation of particular circuits through rules-based smart nodes
JPH086677A (en) Apparatus and method for operation of power situation of remote device
CN102185895A (en) Cross-platform remote control method and system of UPSs (uninterruptible power supply)
CN112866054A (en) Battery replacement cabinet monitoring method and system, battery replacement cabinet and storage medium
CN103227813A (en) Automatic long-distance updating system and method for family Internet of Things system
CN103857072A (en) Home gateway device based on zigbee and wifi networks
CN102087511A (en) Method for executing remote monitoring of electronic system by utilizing power supply
CN101136500B (en) Management monitoring method for intelligent UPS power supply
CN105095142A (en) System and method for controlling expander card
CN104268041A (en) Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display
CN206596028U (en) Operation condition of server supervising device
CN203012816U (en) GPRS (General Packet Radio Service)-based wireless door control management system
CN203232270U (en) Automatic restart system of electrical energy collection terminal of transformer station
CN111741089B (en) Intelligent safety operation management and control system and method based on industrial Internet of things
CN104484753A (en) Server asset information tracing method
CN109743206B (en) Dongle based on EtherCAT and use method thereof
CN107845930A (en) Intelligent control socket based on power line broadband carrier technology
CN105339990A (en) Controlling power provided to an automated banking system
CN209767579U (en) Safety protection integrated machine of electric power monitoring system
CN104283936A (en) Terminal system for remote monitoring of electric car
CN211236889U (en) Circuit for configuring computer BIOS parameters by utilizing single chip microcomputer
CN106608566A (en) Remote monitoring equipment for remotely monitoring elevator
CN111042198A (en) Low-power consumption simple and easy general type cable well lid monitoring devices
CN109774535B (en) Computer remote control method for charging electric vehicle by charging station

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