CN101236429B - Universal monitoring system back-end machine control system - Google Patents

Universal monitoring system back-end machine control system Download PDF

Info

Publication number
CN101236429B
CN101236429B CN2008100597854A CN200810059785A CN101236429B CN 101236429 B CN101236429 B CN 101236429B CN 2008100597854 A CN2008100597854 A CN 2008100597854A CN 200810059785 A CN200810059785 A CN 200810059785A CN 101236429 B CN101236429 B CN 101236429B
Authority
CN
China
Prior art keywords
content
collection terminal
fep
frame
surveillance center
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
CN2008100597854A
Other languages
Chinese (zh)
Other versions
CN101236429A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN2008100597854A priority Critical patent/CN101236429B/en
Publication of CN101236429A publication Critical patent/CN101236429A/en
Application granted granted Critical
Publication of CN101236429B publication Critical patent/CN101236429B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a control system for a back end processor of a universal monitoring system, wherein, the back end processor receives running parameters of a server and transmits a corresponding parameter to each acquisition terminal; a front end processor monitors a running state of the acquisition terminal and uploads a state parameter to the back end processor; if FLASH inside the back end processor does not have any configuration information, the back end processor waits for a configuration command from RS232/RS485; if FLASH inside the back end processor has the configuration information, the back end processor waits for the configuration command once again in a predetermined period after each starting, and the back end processor runs according to the inside configuration information after the predetermined period is overtime. The invention realizes a normal data inquiry, sets an output switching value of the acquisition terminal, sets a warning telephone number of the front end processor, sets an upper value and a lower value for a warning parameter of the acquisition terminal, performs a data warning, sets a telephone number for the front end processor, calls a telephone number of a maintainer, sets an input switching state value for the acquisition terminal and sets all parameter configurations for the acquisition terminal. The control system for a back end processor of a universal monitoring system has a good expandability, reduces cost and prevents wastes while improving a packing capability.

Description

The back-end machine control system of universal monitoring system
Technical field
The present invention relates to the Control Software of supervisory system, especially a kind of control system of backend machine.
Background technology
Along with the continuous development of information society, supervisory system also more and more is subjected to the welcome of producer.In the existing supervisory system technology, the poor expandability of backend machine, FEP and collection terminal.FEP equipment and backend machine equipment all adopt hardware device to realize, when cost height, hard PLC need to improve capacity packing when the production scale expansion of enterprise, can only adopt more jumbo hard PLC control system, corresponding the scrapping of original so hard PLC certainly will be caused a large amount of wastes.
Summary of the invention
For the poor expandability of the collection terminal that overcomes existing supervisory system, cost height, the deficiency of waste resource when improving capacity packing, the invention provides that a kind of extensibility is good, the back-end machine control system of the universal monitoring system that reduces cost, avoid waste when improving capacity packing.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of back-end machine control system of universal monitoring system, the operational factor of described backend machine reception server is given relevant parameters each collection terminal again; FEP is monitored the running status of collection terminal, and state parameter is uploaded to described backend machine;
If the inner FLASH of backend machine does not have configuration information, wait for configuration order from the RS485 that is connected with primary controller; Backend machine is replied ack signal after correctly being disposed; After receiving error configurations, reply the NAK signal;
If backend machine inside FLASH has configuration information, wait in the Preset Time behind then each the startup reconfiguring order, above behind the Preset Time, according to the configuration information work of inside;
The deploy content of the inner FLASH of backend machine is defined as: configuration parameter version number, circuit number, alarm telephone number, FEP number, FEP are numbered 1, are dialed the telephone number of this FEP,, FEP numbering n and the telephone number of dialing this FEP;
The RS485 half-duplex is passed through in the transmission of data, the multi-computer communication mode, and primary controller is as main frame, and backend machine is as slave; Each frame newspaper sends the back wait receiving end that finishes and replys ACK/NAK, if ACK then sends the message success; If NAK then retransmits; Transmitting terminal was in the multi-computer communication mode again after transmission finished;
Initiatively initiate communication by primary controller, backend machine responses, and adopts the mode of question-response; Data transmission frames comprises order numbering, circuit number, FEP numbering, collection terminal number and data content;
When normal data is inquired about, Surveillance center's terminal backward sends the data acquisition frame, when the single collection terminal under a certain circuit of collection, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number and effective collection terminal address in described data content; When all collection terminals under a certain circuit of collection, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number and content are broadcast address; During all collection terminals under gathering a certain circuit, under all FEP, then specify effective circuit number, FEP numbering, collection terminal number, content are broadcast address; When gathering the data of all devices, then circuit number, FEP numbering, collection terminal number and content all are 0xFF; Backend machine returns a frame, content is the data message newspaper of each collection terminal, comprises collection terminal address, input digit switching value alarm sign, 8 input digit switching values, 8 the digital control amounts of output, analog quantity alarm sign, the effective number of analog quantity and each analog values;
When collection terminal output digital switch quantity was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is: collection terminal address, output digital switch quantity significance bit, put 1 register and put 0 register, and be saved in collection terminal; The frame that backend machine returns to Surveillance center, content are the sign of collection terminal address and success or failure;
When FEP alarm telephone number was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is 4 alarm telephone numbers; Backend machine returns a frame, and content is successfully or the sign of failing;
When the collection terminal alarm parameter being set being worth up and down, Surveillance center's terminal backward sends the parameter configuration frame, and content is the value up and down of collection terminal address, the effective number of analog quantity and each analog quantity; Backend machine returns frame to Surveillance center, and content is the sign of collection terminal address and success or failure; When carrying out the data alarm, Surveillance center's terminal backward sends the alarm frame, and backend machine returns frame to Surveillance center, and content comprises collection terminal address and success or failure sign;
When the FEP telephone number was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is the FEP telephone number, and backend machine returns Surveillance center's one frame, and content is failure, success or request mark;
When dialing maintenance personal's telephone number, Surveillance center's terminal backward sends the parameter configuration frame, and content is telephone number number and each maintenance personal's telephone number; Backend machine returns Surveillance center's one frame, and content is successfully or the sign of failing;
When collection terminal input switch quantity of state was set, Surveillance center is the terminal transmit frame backward, and content is collection terminal address, input digit switching value effective port position and input digit switching value normal value; Backend machine returns frame to Surveillance center, and content is collection terminal address and success or failure sign; When the whole parameter configuration of collection terminal is set, Surveillance center's terminal backward sends the parameter configuration frame, and content is configuration parameter version number, circuit number, FEP numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity state normal value, output digital switch quantity significance bit, the effective number of analog quantity port and each analog quantity alarm upper lower limit value; Backend machine returns frame to Surveillance center, and content is collection terminal address and success or failure sign.
Technical conceive of the present invention is: one that utilizes that the popularity of telecommunication telephone Internet resources develops based on the wired telephone network universal monitoring system.The collection terminal of project has good expandability, and realizes by embedded software between the equipment.
Under the current situation that does not have a public standard, designed robust and stable network management platform and FEP equipment and backend machine devices communicating agreement, particularly the alarming control system reliability is very high, can do with strongly disturbing ability.Native system has complete functional module: comprise user management module, and database management module, parameter is provided with module, parameter query module, warning processing module, digital coding processing module etc.; Perfect management function: Topology Management and network monitoring, configuration management and configuration statistical study, alarm monitoring and fault management, Report Server Management and self-defined report, operational administrative, regularly taking turn, system's self-management, safety management etc.
Backend machine is the core of whole packaging production line.The operational factor of backend machine reception server is given relevant parameters each collection terminal again.On the other hand, FEP is also monitored the running status of collection terminal, and state parameter is uploaded to backend machine.In the operational process, backend machine is issued collection terminal according to the testing result of execution unit according to the certain time sequence steering order, thereby makes the The whole control system coordinated operation.
Beneficial effect of the present invention mainly shows: extensibility is good, reduce cost, avoid waste when improving capacity packing.
Description of drawings
Fig. 1 is an initialization task process flow diagram of the present invention.
Fig. 2 is a clock mission flow diagram of the present invention.
Fig. 3 is of the present invention and FEP communication task process flow diagram.
Fig. 4 is of the present invention and backend machine communication task process flow diagram.
Fig. 5 is that serial ports of the present invention interrupts subfunction.
Fig. 6 is that byte of the present invention sends function.
Fig. 7 is a byte receiver function of the present invention.
Fig. 8 grabs subfunction for RS485 bus of the present invention.
Fig. 9 is a reception data mode transition diagram of the present invention.
Figure 10 is that RS485 of the present invention sends the packet function.
Figure 11 is a dislodging machine pattern diagram of the present invention.
Figure 12 is a phone module initialization function synoptic diagram of the present invention.
Figure 13 is that ring of the present invention detects the interrupt function synoptic diagram.
Figure 14 reads DTMF function synoptic diagram for interruption of the present invention.
Figure 15 is a transmission dtmf signal function synoptic diagram of the present invention.
Figure 16 is transmission of the present invention and reception DTMF byte function synoptic diagram.
Figure 17 is a dtmf dialing function synoptic diagram of the present invention.
Figure 18 is that DTMF message communication of the present invention sends the function synoptic diagram.
Figure 19 is a DTMF communications reception function synoptic diagram of the present invention
Figure 20 is the subfunction that reads of configuration file of the present invention.
Figure 21 is a RS485 transmitting-receiving switching function of the present invention.
Figure 22 is a correctness of checking configuration file of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is further described.
With reference to Fig. 1~Figure 22, a kind of back-end machine control system of universal monitoring system, backend machine are the cores of whole packaging production line.The operational factor of backend machine reception server is given relevant parameters each collection terminal again.On the other hand, FEP is also monitored the running status of collection terminal, and state parameter is uploaded to backend machine.In the operational process, backend machine is issued collection terminal according to the testing result of execution unit according to the certain time sequence steering order, thereby makes the The whole control system coordinated operation.
If the inner FLASH of backend machine does not have configuration information, then wait for configuration order from the RS485 that is connected with primary controller always.The mode of serial ports is different when being defined in parameter configuration and communicating by letter with collection terminal.Being " 57600bps, N, 8,1 " during parameter configuration, is the multi-computer communication mode when communicating by letter with backend machine, " 57600bps, M/S, 9,1 ".Configuration order is " 10,02, length (1 byte), 0C (order), deploy content, CRC, 10,03 ".Backend machine is replied ack signal after correctly being disposed; After receiving error configurations, reply the NAK signal; Overtime is 5s.After the correct configuration, reset and restart.
If the inner FLASH of backend machine has configuration information, wait in the time of the 10s behind then each the startup reconfiguring order.Surpass after the 10s, according to the configuration information work of inside.
If the backend machine operate as normal also can dispose by primary controller, handle according to communication protocol this moment.
The deploy content of the inner FLASH of backend machine is defined as: configuration parameter version number (2 bytes, reservation), circuit number (1 byte), alarm telephone number (4 * 4 byte), FEP number (1 byte), FEP are numbered 1 (1 byte), are dialed the telephone number (4 byte) of this FEP,, FEP is numbered n (1 byte), is dialed the telephone number (4 byte) of this FEP.
Digital switch quantity: the on off state of collection terminal (as the voltage alarm of equipment) comprises input digit switching value and output digital switch quantity.The alarm of digital switch quantity is brought in judgement by collection, and FEP sends.Analog quantity: collection terminal is gathered and analog to digital conversion some analog quantity of equipment, and scope is 0x00~0xFF.Collection terminal is differentiated analog quantity whether in reasonable range, and alarm being sent by FEP.Success be designated 0x01; Failure be designated 0xFF; Request be designated 0x55.
Agreement: PC and collection terminal both sides know the digital switch quantity of knowing collection terminal, the number of analog quantity, and the corresponding relation of each amount and actual physics implication.The address of each collection terminal is come unique definite by circuit number+FEP numbering+collection terminal address.The KG7 that puts in order of switching value ... KG0 (byte representation); The An0 that puts in order of analog quantity ... An7.Each analog quantity is with a byte representation.Circuit number, FEP numbering, collection terminal address number are 1~32, and 0xFF is a broadcast address.
The transmission of data is by RS485 half-duplex, multi-computer communication mode.Primary controller is as main frame, and backend machine is as slave.Each frame message, first byte are that (SM2=1 TB8=1), is that (SM2=0 TB8=0), sends the back wait receiving end that finishes and replys ACK/NAK message content to slave addresses then.If ACK then sends the message success; If NAK then retransmits, retransmit maximum 3 times; If in 0.5s, do not receive and reply, then send failure, do not retransmit.Transmitting terminal was in the multi-computer communication mode again after transmission finished.After sending successfully, then wait for replying of receiving end, the stand-by period is the longest to be 0.5s.It was 0 (several machine cycle) that the RS485 half-duplex switches to the accepting state time from transmit status, switched to the longest 0.1s of being of transmit status time from accepting state, to guarantee correct reception.
Initiatively initiate communication by primary controller, slave responses, and adopts the mode of question-response.Data transmission link is set up the protocol data frame beginning flag and is taken 2 bytes, is 0x1002; End mark takies 2 bytes, is 0x1003; The insertion byte is 0x10; Single frames is 0, and multiframe is 1; Frame type takies 4bit: 1. 1000 are the alarm data frame; 2. 0100 is the data acquisition frame; 3. 0010 is the parameter configuration frame.If DLE occurs between DLE+STX and the DLE+ETX in the frame data, then replace, to solve the DLE conflict with DLE+DLE.The verification of communication frame is adopted: check code=0x100-removes the form of adding up of beginning flag and end mark and (adding up and=0 of check code+data).
Data transmission frames comprises order numbering, circuit number, FEP numbering, collection terminal number and content.If the order that PC sends is invalid, " content " then returned in the frame is " failure ".
When normal data was inquired about, Surveillance center's terminal backward sent the data acquisition frame that order is numbered 0x01.The span of circuit number, FEP numbering, collection terminal number and collection terminal address is 1~32, and broadcast address is 0xFF.When gathering the following single collection terminal of a certain circuit, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number be 0x01 and in content effective collection terminal address; When all collection terminals under a certain circuit of collection, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number and content are broadcast address; During all collection terminals under gathering a certain circuit, under all FEP, then specify effective circuit number, FEP numbering, collection terminal number, content are broadcast address; When gathering the data of all devices, then circuit number, FEP numbering, collection terminal number and content all are 0xFF.Other data combination is invalid.Content: collection terminal address or broadcast address.Backend machine returns the frame of an order numbering position 0x81, content is the data message newspaper of each collection terminal, comprises collection terminal address, input digit switching value alarm sign, 8 input digit switching values, 8 the digital control amounts of output, analog quantity alarm sign, the effective number of analog quantity and each analog values.This frame returns is the data of all (perhaps single) collection terminals under a certain circuit+a certain FEP, and " collection terminal number " returned is actual acquisition end number under this FEP.For broadcast address, then to split into multiframe.For example, if the PC order is the data of all collection terminals under a certain circuit of collection, the frame number that then returns equals the number of this circuit lower front end machine, and each FEP returns a frame.
When collection terminal output digital switch quantity was set, Surveillance center's terminal backward sent the parameter configuration frame that order is numbered 0x02, and content is: collection terminal address, output digital switch quantity significance bit, put 1 register and put 0 register, and be saved in collection terminal.Backend machine is numbered the frame of 0x82 to Surveillance center's return command, and content is the sign of collection terminal address and success or failure.
When FEP alarm telephone number was set, Surveillance center's terminal backward sent the parameter configuration frame that order is numbered 0x03, and content is 4 alarm telephone numbers.Backend machine returns the frame that an order is numbered 0x83, and content is successfully or the sign of failing.
When the collection terminal alarm parameter being set being worth up and down, Surveillance center's terminal backward sends the parameter configuration frame that order is numbered 0x04, and content is the value up and down of collection terminal address, the effective number of analog quantity and each analog quantity.Backend machine is numbered the frame of 0x84 to Surveillance center's return command, and content is the sign of collection terminal address and success or failure.
When carrying out the data alarm, Surveillance center's terminal backward sends the alarm frame that order is numbered 0x85, alarm type is 0x01 for the FEP failure identification, collection terminal is lost and is designated 0x02, the newly-increased 0x04 that is designated of collection terminal, collection terminal data alarm identifier is 0x08, and the collection terminal failure identification is 0x10.Explanation to alarm type 1: if FEP breaks down, then PC sends any command message to this FEP, and FEP all less than reaction, then judges that by PC FEP breaks down.For 0x08 and 0x04, alarm content is the collection terminal address, alarm type, and the switching value alarm identifier, 8 switching values, 8 controlled quentity controlled variables, the effective number of analog quantity is simulated two alarm identifiers, each analog value and alarm circuit address.For the other types content is the collection terminal address, alarm type, collection terminal address and alarm circuit address.Backend machine is numbered the frame of 0x05 to Surveillance center's return command, and content comprises collection terminal address and success or failure sign.
When the FEP telephone number is set, Surveillance center's terminal backward sends the parameter configuration frame that order is numbered 0x06, content is the FEP telephone number, and backend machine returns the frame that Surveillance center's one order is numbered 0x86, and content is failure, success or request mark.
When dialing maintenance personal's telephone number, Surveillance center's terminal backward sends the parameter configuration frame that order is numbered 0x07, and content is telephone number number and each maintenance personal's telephone number.Backend machine returns the frame that Surveillance center's one order is numbered 0x87, and content is successfully or the sign of failing.
When collection terminal input switch quantity of state was set, Surveillance center's terminal backward sent the frame that order is numbered 0x09, and content is collection terminal address, input digit switching value effective port position and input digit switching value normal value.Backend machine is numbered the frame of 0x89 to Surveillance center's return command, and content is collection terminal address and success or failure sign.
When the whole parameter configuration of collection terminal is set, Surveillance center's terminal backward sends the parameter configuration frame that order is numbered 0x0a, and content is configuration parameter version number, circuit number, FEP numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity state normal value, output digital switch quantity significance bit, the effective number of analog quantity port and each analog quantity alarm upper lower limit value.Backend machine is to the frame of the return command numbering position 0x8A of Surveillance center, and collection terminal address, content position and success or failure identify.
In Fig. 1, when initialization task, the DTMF module initialization discharges the mailbox control, creates the clock task, creates and the FEP communication task, deletes initialization task at last.In Fig. 2, when Led flicker clock task begins, refresh house dog configuration data pilot lamp and extinguish, and clock counter is initialized as 0.The configuration data led status changes then, if there is not configuration data, time-delay 0.1s, time counter increases by 10, after refresh house dog.In Fig. 3, when beginning with the FEP communication task, at first the initialization serial ports is the multi-computer communication mode, reads configuration file.If configuration file is effective, then create and the backend machine communication task.Check whether telephone wire connects normal, if incorrect, phone pilot lamp quickflashing then, otherwise wait for and receive the master control order.Whether viewing command operates this unit, if then handle the order to the operation of this unit, and response data packet is put into the transmission data buffer and the return data bag arrives master control generating; If not, then check the contact telephone number that whether has this unit, if there is no, the packet that then generates the response failure is put into and is sent data buffer and return data bag to master control; If exist, then be connected with FEP, transfer data to FEP after the successful connection; If connect unsuccessful or the transmission error in data, then generate the packet of response failure and put into the transmission buffer zone, the return data bag is to master control.If send successfully, then start the protection timer, successfully be connected to the loopback message of FEP, and the loopback message is put into the transmission buffer zone, the return data bag is to master control.In Fig. 4, whether when communicating task with the rear end master control, checking has packet to receive, if having then receive packet, handle packet; If not then check whether have packet to send, to check whether RS485 communication bus resource is occupied, if having, then check and seize whether success of bus, if bus does not have occupied or seizes the bus success, then allow packet to send, send datagram.
In Fig. 5, when entering the serial ports interruption, open serial communication data pilot lamp, judge whether to receive and interrupt, if not interruption, the clear to send interrupt flag bit extinguishes hit indicator; If interrupt, read the data in the receiving register, judge whether it is this machine address, if this machine address is then removed the multi-computer communication zone bit and allowed the reception data, close hit indicator; If not this machine address, then receive the data to data buffer area, check whether set data communications task sign, if set then extinguish hit indicator, if not set, the then concurrent carry information of set sign.
In Fig. 6, when calling byte transmission function, at first send byte data and put into transmitter register, to close to send and interrupt enabling, pending datas such as inquiry send zone bit set, zone bit zero clearing after data send and finish.In Fig. 7, when calling the byte receiver function, switch 485 buses to accepting state, whether inquiry surpasses is checked number of times, if surpass, then receives data failure and returns; Whether if do not surpass, then checking has data, if there are not data, then notifies other tasks, and this task is being waited for the reception data, continues to check behind the time-delay 20ms; If there are data, then read reception data buffer, return after becoming then.
In Fig. 8, when calling the RS485 bus and seize function, check and whether receive the signal that sends data with the Master Communications mission requirements, if have, check then whether the RS485 bus communicates by letter busyly, if busy, then random delay 10~1280ms continues after the time to check, if be not in busy state, then return signal amount notice can send data with the Master Communications task.
In Figure 10, when calling RS485 transmission packet function, at first reiving/transmitting state is converted to transmit status, extracts the collection terminal address, calculation check and framing message receive the other side's answer signal then, if the other side's no response or requirement are retransmitted, then resend, otherwise data are successfully returned.In Figure 11, when on-hook, zero clearing Ring-down count device allows counter to interrupt, and closes the telephone communication pilot lamp; When off-hook, zero clearing Ring-down count device cuts out counter and interrupts, and opens the telephone communication pilot lamp.In Figure 12, when calling phone module initialization function, at first on-hook, initialization 9170 chips, initialization 9200 chips are closed DTMF at last and are received and the pilot lamp of communicating by letter.In Figure 13, when entering the ring interruption, the Ring-down count device adds 1, whether checks counter greater than 40, and sending signal is the CommWithBackend task, and counter clear 0 also cuts out ring and interrupts.In Figure 14, when calling when interrupting reading the DTMF function, enter interruption, remove the external interrupt sign, close and interrupt three beats of time-delay, read dtmf signal and open interruption, check that whether the data buffer is full, if full, then abandons the reception data; If not full, then write the data buffer.In Figure 15, when calling when sending the dtmf signal function, the clock signal 10ms that draws high and delay time closes interruption, and sheet selects dtmf signal to send chip, and dtmf signal is sent in the displacement of simulation clocking, the simulation clocking, and dtmf signal is sent in displacement.Interrupt opening, time-delay 100ms sheet selects the 20ms that closes and delay time, and interrupts at last withdrawing from.
In Figure 16, when calling transmission DTMF byte function, close the DTMF accepting state, open the DTMF transmit status, send the low 4bit of byte, send the high 4bit of byte.When receiving DTMF byte function, 5s maximum duration restriction circulation is also checked the data buffer data, reads low 4bit data, and the data buffer area data are checked in 5s maximum duration restriction circulation once more, read high 4bit data.In Figure 17, when calling the dtmf dialing function, at first close the DTMF accepting state, open the DTMF transmit status, off-hook time-delay 1s, the low 4bit of telephone number is formulated in allocation, time-delay 250ms, the high 4bit of the telephone number that allocation is formulated, 5s waits for the communication counterpart answer signal, shows dial-up success or failure.
In Figure 20, when collection terminal reads configuration file, at first read the data of designated sector, whether judgment data has zone bit.If not then read failure, if read correctly, read check byte, check whether the CRC check is correct, and the CRC check mistake is then returned and read failure, if read correctly, then reading of data is to configuration file and return configuration file and read success.In Figure 21, when writing configuration file, read configuration file, write the data effective marker, calculate the CRC data check, and write data in designated sector, if write success, then return success sign, otherwise return failure flags.In Figure 22, check and if read the master configuration file success, then back up master configuration file, otherwise read secondary configuration file when whether configuration file is correct, use secondary configuration file to upgrade master configuration file.Read master configuration file once more, judge whether data address is effective in the master configuration file, judge whether digital simulation amount number is effective in the configuration file, judge the bound of analog quantity in the configuration file,, otherwise return failure if effectively then return success.

Claims (1)

1. the back-end machine control system of a universal monitoring system is characterized in that: the operational factor of described backend machine reception server, again relevant parameters is given each collection terminal; FEP is monitored the running status of collection terminal, and state parameter is uploaded to described backend machine;
If the inner FLASH of backend machine does not have configuration information, wait for configuration order from the RS485 that is connected with primary controller; Backend machine is replied ack signal after correctly being disposed; After receiving error configurations, reply the NAK signal;
If backend machine inside FLASH has configuration information, wait in the Preset Time behind then each the startup reconfiguring order, above behind the Preset Time, according to the configuration information work of inside; The deploy content of the inner FLASH of backend machine is defined as: configuration parameter version number, circuit number, alarm telephone number, FEP number, FEP are numbered 1, are dialed the telephone number of this FEP, FEP numbering n and the telephone number of dialing this FEP;
The RS485 half-duplex is passed through in the transmission of data, the multi-computer communication mode, and primary controller is as main frame, and backend machine is as slave; Each frame newspaper sends the back wait receiving end that finishes and replys ACK/NAK, if ACK then sends the message success; If NAK then retransmits; Transmitting terminal was in the multi-computer communication mode again after transmission finished;
Initiatively initiate communication by primary controller, backend machine responses, and adopts the mode of question-response; Data transmission frames comprises order numbering, circuit number, FEP numbering, collection terminal number and data content;
When normal data is inquired about, Surveillance center's terminal backward sends the data acquisition frame, when the single collection terminal under a certain circuit of collection, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number and effective collection terminal address in described data content; When all collection terminals under a certain circuit of collection, a certain FEP, then specify effective circuit number, FEP numbering, collection terminal number and content are broadcast address; During all collection terminals under gathering a certain circuit, under all FEP, then specify effective circuit number, FEP numbering, collection terminal number, content are broadcast address; When gathering the data of all devices, then circuit number, FEP numbering, collection terminal number and content all are OxFF; Backend machine returns a frame, content is the data message newspaper of each collection terminal, comprises collection terminal address, input digit switching value alarm sign, 8 input digit switching values, 8 the digital control amounts of output, analog quantity alarm sign, the effective number of analog quantity and each analog values;
When collection terminal output digital switch quantity was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is: collection terminal address, output digital switch quantity significance bit, put 1 register and put 0 register, and be saved in collection terminal; The frame that backend machine returns to Surveillance center, content are the sign of collection terminal address and success or failure;
When FEP alarm telephone number was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is 4 alarm telephone numbers; Backend machine returns a frame, and content is successfully or the sign of failing;
When the collection terminal alarm parameter being set being worth up and down, Surveillance center's terminal backward sends the parameter configuration frame, and content is the value up and down of collection terminal address, the effective number of analog quantity and each analog quantity; Backend machine returns frame to Surveillance center, and content is the sign of collection terminal address and success or failure; When carrying out the data alarm, Surveillance center's terminal backward sends the alarm frame, and backend machine returns frame to Surveillance center, and content comprises collection terminal address and success or failure sign;
When the FEP telephone number was set, Surveillance center's terminal backward sent the parameter configuration frame, and content is the FEP telephone number, and backend machine returns Surveillance center's one frame, and content is failure, success or request mark;
When dialing maintenance personal's telephone number, Surveillance center's terminal backward sends the parameter configuration frame, and content is telephone number number and each maintenance personal's telephone number; Backend machine returns Surveillance center's one frame, and content is successfully or the sign of failing;
When collection terminal input switch quantity of state was set, Surveillance center is the terminal transmit frame backward, and content is collection terminal address, input digit switching value effective port position and input digit switching value normal value; Backend machine returns frame to Surveillance center, and content is collection terminal address and success or failure sign; When the whole parameter configuration of collection terminal is set, Surveillance center's terminal backward sends the parameter configuration frame, and content is configuration parameter version number, circuit number, FEP numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity state normal value, output digital switch quantity significance bit, the effective number of analog quantity port and each analog quantity alarm upper lower limit value; Backend machine returns frame to Surveillance center, and content is collection terminal address and success or failure sign.
CN2008100597854A 2008-02-27 2008-02-27 Universal monitoring system back-end machine control system Expired - Fee Related CN101236429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100597854A CN101236429B (en) 2008-02-27 2008-02-27 Universal monitoring system back-end machine control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100597854A CN101236429B (en) 2008-02-27 2008-02-27 Universal monitoring system back-end machine control system

Publications (2)

Publication Number Publication Date
CN101236429A CN101236429A (en) 2008-08-06
CN101236429B true CN101236429B (en) 2010-06-02

Family

ID=39920091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100597854A Expired - Fee Related CN101236429B (en) 2008-02-27 2008-02-27 Universal monitoring system back-end machine control system

Country Status (1)

Country Link
CN (1) CN101236429B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853022A (en) * 2010-05-31 2010-10-06 上海沪工汽车电器有限公司 Method for manufacturing and detecting automobile relay
CN102064980A (en) * 2010-12-16 2011-05-18 中兴通讯股份有限公司 Method and device for realizing batch management of monitoring front end and control on monitoring front end
CN107942785A (en) * 2017-11-15 2018-04-20 常州天正工业发展股份有限公司 A kind of production equipment data capture method and device
CN112637248B (en) * 2021-03-09 2021-05-18 厚普清洁能源股份有限公司 Ship-end and shore-end equipment communication processing method for LNG filling wharf boat

Also Published As

Publication number Publication date
CN101236429A (en) 2008-08-06

Similar Documents

Publication Publication Date Title
CN102354175B (en) Remote I/O (input/output) control system of Modbus fieldbus DI-16-route monitor
EP0050451B1 (en) Alarm data concentration and gathering system
CN201608740U (en) Embedded fire incident data transmission device
CN101236429B (en) Universal monitoring system back-end machine control system
CN104317255A (en) Internet-of-things-based intelligent household control system
CN101576742A (en) Remote monitoring and fault diagnosing system for numerical control slitter and method for realizing same
CN104242463A (en) GPRS (general packet radio service) based remote power monitoring system and monitoring method
CN203416283U (en) Fire-fighting information remote transmission system based on real-time operation system
CN107572328A (en) The device and method of the monitoring and management of elevator
CN100593764C (en) Universal monitoring system interface control system
CN103530997A (en) Fire alarm control system and control method thereof
CN110519727A (en) Data processing method and CGW based on central gateway CGW
CN101241366A (en) Front-end machine control system for universal monitoring system
CN101241360A (en) Universal monitoring system collection end control system
CN100366013C (en) Accident power-off remote transmitting alarming system and alarming method thereof
CN101267425A (en) Inter-board interface communication protocol for dynamic environment distributed monitoring system
US4488002A (en) Line control of switched network data sets
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN101175125B (en) Front end machine device of monitoring system
CN208076997U (en) A kind of equipment high in the clouds monitoring management system
CN207908884U (en) Intelligent domestic control device with power-off protection function
CN103357134B (en) The automatic management and control of intelligent fire interface interrupt and emergency processing method
CN211208368U (en) Circuit breaker
CN2911823Y (en) Host and sub-device of remote smart controlled/monitored alarmer
CN101231519B (en) Back-end machine apparatus for monitoring system

Legal Events

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

Granted publication date: 20100602

Termination date: 20130227