CN111579115A - Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer - Google Patents

Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer Download PDF

Info

Publication number
CN111579115A
CN111579115A CN202010430481.5A CN202010430481A CN111579115A CN 111579115 A CN111579115 A CN 111579115A CN 202010430481 A CN202010430481 A CN 202010430481A CN 111579115 A CN111579115 A CN 111579115A
Authority
CN
China
Prior art keywords
data
optical fiber
early warning
frame
byte
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.)
Pending
Application number
CN202010430481.5A
Other languages
Chinese (zh)
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.)
XI'AN HEQI OPTO-ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
XI'AN HEQI OPTO-ELECTRONIC 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 XI'AN HEQI OPTO-ELECTRONIC TECHNOLOGY CO LTD filed Critical XI'AN HEQI OPTO-ELECTRONIC TECHNOLOGY CO LTD
Priority to CN202010430481.5A priority Critical patent/CN111579115A/en
Publication of CN111579115A publication Critical patent/CN111579115A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K11/00Measuring temperature based upon physical or chemical changes not covered by groups G01K3/00, G01K5/00, G01K7/00 or G01K9/00
    • G01K11/32Measuring temperature based upon physical or chemical changes not covered by groups G01K3/00, G01K5/00, G01K7/00 or G01K9/00 using changes in transmittance, scattering or luminescence in optical fibres
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K1/00Details of thermometers not specially adapted for particular types of thermometer
    • G01K1/02Means for indicating or recording specially adapted for thermometers
    • G01K1/024Means for indicating or recording specially adapted for thermometers for remote indication

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Temperature Or Quantity Of Heat (AREA)

Abstract

The invention relates to the field of temperature measurement, in particular to a temperature data acquisition and early warning system and method based on a fluorescence optical fiber thermometer. The system comprises a data acquisition module, a data analysis module, a data display module and an early warning module. The data acquisition module is used for sending a command to the fluorescence optical fiber thermometer in a serial port communication or TCP/IP communication mode and receiving temperature data fed back by the fluorescence optical fiber thermometer; the data analysis module is used for analyzing the temperature data to form target data; the data display module comprises a real-time display unit and a longitudinal/transverse analysis display unit; the real-time display unit is used for displaying a chart and a vector diagram of target data in real time; the longitudinal/transverse analysis display unit is used for storing the target data, longitudinally analyzing and displaying the stored historical target data and transversely analyzing and displaying the stored associated equipment target data; the early warning module is used for analyzing the target data and carrying out early warning according to the analysis result.

Description

Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer
Technical Field
The invention relates to the field of temperature measurement, in particular to a temperature data acquisition and early warning system and method based on a fluorescence optical fiber thermometer.
Background
The fluorescent optical fiber thermometers can measure a large amount of temperature data every day, and the change rule of the temperature data can reflect the operation state trend of industrial equipment from some aspects. Therefore, the abnormal temperature data is collected, analyzed and captured, and the method plays a vital role in guaranteeing the safety of the measured equipment.
At present, the temperature data acquisition of the fluorescence optical fiber thermometers is mainly realized through serial port communication, the number of the thermometers linked by each serial port is limited, and secondly, a target data display mode mainly takes a chart and a curve as main modes, so that the mode is not beneficial to quickly and accurately positioning the position where the abnormity occurs, and the prevention and control efficiency is greatly reduced.
Disclosure of Invention
The invention aims to solve the problems that in the prior art, the temperature data of fluorescent optical fiber thermometers are acquired through serial port communication, the number of the thermometers linked with each serial port is limited, and target data is not displayed visually, and provides a temperature data acquisition and early warning system and method based on the fluorescent optical fiber thermometers.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a temperature data acquisition and early warning system based on a fluorescence optical fiber thermodetector is characterized in that:
the system comprises a data acquisition module, a data analysis module, a data display module and an early warning module;
the data acquisition module is used for sending a command to the fluorescent optical fiber thermometer in a serial port communication or TCP/IP communication mode and receiving temperature data fed back by the fluorescent optical fiber thermometer;
the data analysis module is used for analyzing the temperature data to form target data;
the data display module comprises a real-time display unit and a longitudinal/transverse analysis display unit;
the real-time display unit is used for displaying a chart and a vector diagram of target data in real time;
the longitudinal/transverse analysis display unit is used for storing target data, longitudinally analyzing and displaying the stored historical target data and transversely analyzing and displaying the stored associated equipment target data;
the early warning module is used for analyzing the target data and giving early warning according to the analysis result.
Further, the vector diagram is a vector diagram in an svg format;
the early warning mode comprises a voice prompt, a data flicker prompt and an interface pop-up frame prompt.
A temperature data acquisition and early warning method based on a fluorescence optical fiber thermometer is characterized by comprising the following steps:
step 1, initializing the temperature data acquisition and early warning system based on the fluorescence optical fiber thermometer, wherein the initialization comprises selecting an interface standard specification and a bus standard specification of serial port communication, setting a data signal transmission parameter of the serial port communication, setting a data signal transmission parameter of TCP/IP communication, setting the frequency of sending a sending frame, and setting an early warning mode when abnormal data occurs;
step 2, respectively accessing a plurality of fluorescent optical fiber thermometers to the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometers in the step 1 in a serial port communication and/or TCP/IP communication mode;
step 3, respectively sending frames to the plurality of fluorescent optical fiber thermometers through the data acquisition module according to the frequency set in the step 1, and receiving frames fed back by the plurality of fluorescent optical fiber thermometers;
step 4, decomposing and analyzing the received frame through a data analysis module to form target data;
step 5, displaying real-time graphs and vector diagrams of the target data through a real-time display unit of the data display module, storing the target data through a longitudinal/transverse analysis display unit of the data display module, performing longitudinal analysis display on the stored historical target data, and performing transverse analysis display on the stored associated equipment target data;
meanwhile, the target data is analyzed through the early warning module, and early warning is carried out according to the analysis result.
Further, the data signal transmission parameters of the serial communication in the step 1 include a serial number, a data bit, a stop bit, a baud rate and a check bit;
the data signal transmission parameters of the TCP/IP communication comprise a port number bound by the host and an IP address communicated with the host;
the early warning mode comprises a voice prompt, a data flicker prompt and an interface pop-up frame prompt.
Further, in the step 2, after the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer successfully receives a request of one client through a TCP/IP communication mode each time, the IP address of the client is stored; after disconnecting a client each time, deleting the IP address of the client from the storage list; each client supports a maximum of 255 connected fluorescence fiber thermometers.
Further, the frame structure of the frame sent in step 3 includes 8 bytes, where the 1 st byte is a target address, that is, an address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for reading the order; the 3 rd byte and the 4 th byte are target registers, namely storage addresses of temperature data in the fluorescent optical fiber thermometer; the 5 th byte and the 6 th byte are the number of data to be read, namely the number of channels; the 7 th byte and the 8 th byte are CRC check codes used for performing CRC check on the 1 st byte to the 6 th byte;
the frame structure of the received frame comprises N bytes, wherein the 1 st byte is a target address, namely an address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for responding to the reading command of the sending frame; the 3 rd byte is the data length of the received frame, namely the byte number M of the data from the byte to the front of the CRC check code, wherein M is a multiple of 4, every four bytes in the M bytes are sequentially used as a group, the first two bytes in each group are the temperature value of one channel, and the last two bytes are the PD value and the UV value of the channel respectively and are used for judging the accuracy of the temperature value; the N-1 th byte and the N-th byte are CRC check codes and are used for performing CRC check on the 1 st byte to the N-2 th byte;
the sending frame and the receiving frame both adopt 16-system codes;
the data acquisition module comprises a first timer for acquiring data in a serial port communication mode and a second timer for acquiring data in a TCP/IP communication mode;
the first timer extracts address codes and channel number information of the fluorescence optical fiber thermometers which are communicated through the serial port, a sending frame is formed according to a frame structure of the sending frame, the sending frame is sent to the fluorescence optical fiber thermometers through the serial port communication mode, and a receiving frame fed back by the fluorescence optical fiber thermometers according to the content of the sending frame is received;
and the second timer acquires the address code and channel number information of the fluorescent optical fiber thermometer corresponding to the IP address by adopting a multithreading technology according to the IP address stored in the step 2, forms a sending frame according to the frame structure of the sending frame, sends the sending frame to the fluorescent optical fiber thermometer in a TCP/IP communication mode, and receives a receiving frame fed back by the fluorescent optical fiber thermometer according to the content of the sending frame.
Further, the step 4 is specifically implemented according to the following steps:
step 4.1, intercepting the last two bytes of the received frame through a data analysis module, namely CRC check codes, and then performing CRC check on the 1 st byte to the N-2 th byte, comparing whether the two check codes are the same or not, and if the two check codes are the same, indicating that the verification is passed;
step 4.2, after the verification is passed, extracting the 1 st byte of the received frame through a data analysis module, namely the address code of the fluorescent optical fiber thermometer, and matching corresponding thermometer information including an ID number, a thermometer name, a channel number and a threshold range of each channel from prestored fluorescent optical fiber thermometer parameters according to the address code;
4.3, extracting a 3 rd byte of a received frame through a data analysis module, intercepting M bytes after the byte according to a value M of the 3 rd byte, sequentially taking every four bytes as a group, converting a 16-system into a 10-system after the first byte and the second byte in each group are combined, and dividing the value by 10 to obtain a temperature value of a channel, converting a 16-system into the 10-system for obtaining a PD value of the channel, and converting a 16-system into the 10-system for obtaining a UV value of the channel; and (4) completely analyzing all the M bytes to obtain all channel data of the fluorescence optical fiber thermometer, wherein the channel data and the thermometer information obtained in the step (4.2) jointly form target data.
Further, the real-time graph display of the target data in the step 5 specifically includes:
firstly, traversing all prestored fluorescent optical fiber thermometer parameters through a real-time display unit of a data display module to generate a corresponding number of temperature data display frames, wherein the title of each display frame is the name of the fluorescent optical fiber thermometer corresponding to the display frame, the module ID of each display frame is an ID splicing appointed character of the fluorescent optical fiber thermometer, a status bar is arranged below the title and used for displaying high-temperature early warning, low-temperature early warning and fault status, a group of tables are arranged below the status bar, the number of cells of the tables is equal to the number of channels of the fluorescent optical fiber thermometer, each cell displays the temperature value of the corresponding channel, and the initial value of each cell is 'NA';
secondly, decomposing target data through a real-time display unit of a data display module, extracting an ID number of the fluorescence optical fiber thermometer, matching the ID number with an ID number of a display frame, and finding the display frame corresponding to the target data; and extracting the temperature value of each channel, assigning the temperature value to the corresponding display frame cell, and finishing the real-time display of the temperature value.
Further, the vector diagram in the step 5 is a vector diagram in svg format, and the real-time vector diagram display of the target data is specifically as follows:
firstly, drawing an svg format file and acquiring a source code;
secondly, extracting text labels to be filled with temperature data from all text labels of the source codes of the svg format files, analyzing initial text contents of the text labels, extracting text contents representing an ID number of the thermodetector, a channel number of the thermodetector and the ID number of the text labels, creating a two-dimensional array, and putting the extracted text contents representing the ID number of the thermodetector, the channel number of the thermodetector and the ID number of the text labels into the two-dimensional array;
traversing the two-dimensional array, and uniformly setting the display content of the text labels to be 0.0;
and fourthly, decomposing the target data through a real-time display unit of the data display module, extracting the ID number of the fluorescence optical fiber thermometer and the channel number of the fluorescence optical fiber thermometer, matching the text content representing the ID number of the thermometer in the two-dimensional array with the ID number of the fluorescence optical fiber thermometer decomposed from the target data, and matching the text content representing the channel number of the thermometer in the two-dimensional array with the channel number of the fluorescence optical fiber thermometer decomposed from the target data, and assigning the temperature value of the target data on the text label if the text content and the channel number are equal to each other, thereby finishing the real-time display of the temperature value.
Further, the analyzing the target data by the early warning module in the step 5, and the early warning according to the analysis result specifically includes:
comparing target data with a stored threshold range of each channel of the fluorescent optical fiber thermodetector through an early warning module, wherein the threshold range comprises an upper limit and a lower limit, if the temperature value exceeds the upper limit, displaying high-temperature early warning on a display frame status bar of a data display module, if the temperature value is lower than the lower limit, displaying low-temperature early warning on the display frame status bar of the data display module, and if the temperature value is a fault signal, displaying a fault state on the display frame status bar of the data display module;
judging whether the temperature value is abnormal or not through an early warning module, and if so, carrying out data flicker prompting on a vector diagram of a data display module;
whether the temperature value is abnormal or not is judged through the early warning module, if the temperature value is abnormal, interface pop-up frame prompting is carried out, and sound prompting is sent out.
The invention has the beneficial effects that:
(1) the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer stably acquires the temperature value measured by the fluorescent optical fiber thermometer in a serial port communication and/or TCP/IP communication mode, and increases the number of devices of the fluorescent optical fiber thermometer which can be connected by the system;
(2) the system can not only display the temperature value in real time, longitudinally analyze and display the stored historical target data, transversely analyze and display the stored associated equipment target data, vividly display the temperature of the actual equipment temperature measuring point corresponding to each channel of all thermometers through a vector diagram, and early warn through sound prompt, data flicker prompt and interface pop-up frame prompt, is more visual and effective, and ensures that reliable safety guarantee is provided;
(3) the method for acquiring and early warning the temperature data by the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometers can acquire the temperature data of a plurality of fluorescent optical fiber thermometers simultaneously, and can analyze, display and early warn, so that the result is accurate, visual and efficient.
Drawings
FIG. 1 is a block diagram of a temperature data acquisition and early warning system based on a fluorescent fiber thermometer according to the present invention.
Detailed Description
In order to make the objects, advantages and features of the present invention clearer, the temperature data collecting and early warning system and method based on the fluorescence optical fiber thermometer according to the present invention will be further described in detail with reference to the following embodiments.
As shown in fig. 1, the temperature data acquisition and early warning system based on a fluorescence optical fiber thermometer provided by the invention comprises a data acquisition module, a data analysis module, a data display module and an early warning module.
The data acquisition module is used for sending a command to the fluorescence optical fiber thermometer in a serial port communication or TCP/IP communication mode and receiving temperature data fed back by the fluorescence optical fiber thermometer.
The data analysis module is used for analyzing the temperature data to form target data.
The data display module comprises a real-time display unit and a longitudinal/transverse analysis display unit, the real-time display unit is used for displaying real-time graphs and vector diagrams of target data, the longitudinal/transverse analysis display unit is used for storing the target data, longitudinally analyzing and displaying stored historical target data, and transversely analyzing and displaying stored associated equipment target data. Wherein, the vector diagram is in an svg format.
The early warning module is used for analyzing the target data and carrying out early warning according to the analysis result. The early warning modes comprise voice prompt, data flicker prompt and interface pop-up frame prompt.
The invention provides a temperature data acquisition and early warning method based on a fluorescent optical fiber thermometer, which is implemented according to the following steps:
the method comprises the following steps of 1, carrying out initialization setting on the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer, including selecting an interface standard specification and a bus standard specification of serial port communication, setting a data signal transmission parameter of the serial port communication, setting a data signal transmission parameter of TCP/IP communication, setting the frequency of sending a sending frame, and setting an early warning mode when abnormal data occurs.
The data signal transmission parameters of serial port communication comprise a serial port number, a data bit, a stop bit, a baud rate and a check bit; the data signal transmission parameters of TCP/IP communication comprise port numbers bound by the host and IP addresses communicated with the host; the early warning modes comprise voice prompt, data flicker prompt and interface pop-up frame prompt.
In addition, database backup parameters can be set, including the automatic backup time interval of database data, the backup content of database data, the storage address of database backup files, and the mode of restoring backup data to the database.
And 2, respectively accessing the plurality of fluorescent optical fiber thermometers to the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometers in the step 1 in a serial port communication and/or TCP/IP communication mode, and establishing serial port communication in an MODBUS _ RTU protocol format based on an RS-485 serial interface and/or network communication based on a TCP/IP transmission protocol to form a networking system.
The temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer successfully receives a request of a client every time in a TCP/IP communication mode, stores the IP address of the client into a global Socket list, and deletes the IP address of the client from the global Socket list every time the client is disconnected; each client may be connected to 1 to 255 fluorescent fiber optic thermometers.
And 3, respectively sending frames to the multiple fluorescence optical fiber thermometers through the data acquisition module according to the frequency set in the step 1, and receiving frames fed back by the multiple fluorescence optical fiber thermometers.
The frame structure of the sending frame comprises 8 bytes, wherein the 1 st byte is a target address, namely the address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for reading the order; the 3 rd byte and the 4 th byte are target registers, namely storage addresses of temperature data in the fluorescent optical fiber thermometer; the 5 th byte and the 6 th byte are the number of data to be read, namely the number of channels; the 7 th byte and the 8 th byte are CRC check codes used for performing CRC check on the 1 st byte to the 6 th byte;
the frame structure of the received frame comprises N bytes, wherein the 1 st byte is a target address, namely an address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for responding to the reading command of the sending frame; the 3 rd byte is the data length of the received frame, namely the byte number M of the data from the byte to the front of the CRC check code, wherein M is a multiple of 4, every four bytes in the M bytes are sequentially used as a group, the first two bytes in each group are the temperature value of one channel, and the last two bytes are the PD value and the UV value of the channel respectively and are used for judging the accuracy of the temperature value; the N-1 th byte and the N-th byte are CRC check codes and are used for performing CRC check on the 1 st byte to the N-2 th byte;
the transmitting frame and the receiving frame adopt 16-system coding.
For example, the following steps are carried out:
and (3) sending a frame: 01030148000105E 0
Frame structure of transmission frame:
Figure BDA0002500359590000091
Figure BDA0002500359590000101
receiving a frame: 0103040121A 941 CD B6
Frame structure of received frame:
Figure BDA0002500359590000102
the data acquisition module comprises a first timer used for acquiring data in a serial port communication mode and a second timer used for acquiring data in a TCP/IP communication mode, and the first timer and the second timer can be executed independently or simultaneously, specifically:
the method comprises the steps that a first timer extracts address codes and channel number information of a fluorescence optical fiber thermometer which are communicated through a serial port, the address codes and the channel number information are placed in a first storage unit, then the address codes are sequentially obtained through traversing the first storage unit according to the frequency set in the step 1, a sending frame is formed according to a frame structure of the sending frame, the sending frame is sent to the fluorescence optical fiber thermometer through the serial port communication mode, and a receiving frame fed back by the fluorescence optical fiber thermometer according to the content of the sending frame is received.
And traversing the global Socket list in the step 2 by the second timer, sequentially acquiring the IP addresses stored in the list, acquiring the address codes and channel number information of the fluorescent optical fiber thermometers corresponding to the IP addresses by adopting a multithreading technology, putting the address codes and the channel number information into a second storage unit, traversing the second storage unit according to the frequency set in the step 1 to sequentially acquire the address codes, forming a sending frame according to the frame structure of the sending frame, sending the sending frame to the fluorescent optical fiber thermometers in a TCP/IP communication mode, and receiving a receiving frame fed back by the fluorescent optical fiber thermometers according to the content of the sending frame.
And 4, decomposing and analyzing the received frame through a data analysis module to form target data.
The method is implemented according to the following steps:
step 4.1, intercepting the last two bytes of the received frame through a data analysis module, namely CRC check codes, and then performing CRC check on the 1 st byte to the N-2 th byte, comparing whether the two check codes are the same or not, and if the two check codes are the same, indicating that the verification is passed;
step 4.2, after the verification is passed, extracting the 1 st byte of the received frame through a data analysis module, namely the address code of the fluorescent optical fiber thermometer, matching corresponding thermometer information including an ID number, a thermometer name, a channel number and a threshold range of each channel from prestored fluorescent optical fiber thermometer parameters according to the address code, and putting the thermometer information into a third storage unit;
4.3, extracting a 3 rd byte of a received frame through a data analysis module, intercepting M bytes after the byte according to a value M of the 3 rd byte, sequentially taking every four bytes as a group, converting a 16-system into a 10-system after the first byte and the second byte in each group are combined, and dividing the value by 10 to obtain a temperature value of a channel, converting a 16-system into the 10-system for obtaining a PD value of the channel, and converting a 16-system into the 10-system for obtaining a UV value of the channel; and (4) completely analyzing all the M bytes to obtain all channel data of a fluorescence optical fiber thermometer, additionally placing the channel data into a third storage unit, and forming target data by the thermometer information and all the channel data together.
And 5, displaying the target data by a real-time chart and a vector diagram through a real-time display unit of the data display module, storing the target data by a longitudinal/transverse analysis display unit of the data display module, longitudinally analyzing and displaying the stored historical target data, and transversely analyzing and displaying the stored associated equipment target data. Wherein, the vector diagram is in an svg format.
The real-time graph display of the target data specifically comprises the following steps:
firstly, traversing all prestored fluorescent optical fiber thermometer parameters through a real-time display unit of a data display module to generate a corresponding number of temperature data display frames, wherein the title of each display frame is the name of the fluorescent optical fiber thermometer corresponding to the display frame, the module ID of each display frame is an ID splicing appointed character of the fluorescent optical fiber thermometer, a status bar is arranged below the title and used for displaying high-temperature early warning, low-temperature early warning and fault status, a group of tables are arranged below the status bar, the number of cells of the tables is equal to the number of channels of the fluorescent optical fiber thermometer, each cell displays the temperature value of the corresponding channel, and the initial value of each cell is 'NA';
secondly, decomposing target data through a real-time display unit of a data display module, extracting an ID number of the fluorescence optical fiber thermometer, matching the ID number with an ID number of a display frame, and finding the display frame corresponding to the target data; and extracting the temperature value of each channel, assigning the temperature value to the channel cell of the corresponding display frame, and finishing the real-time display of the temperature value.
The real-time vector diagram display of the target data is specifically as follows:
firstly, drawing an svg format file and acquiring a source code;
secondly, extracting text labels to be filled with temperature data from all text labels of the source codes of the svg format files, analyzing initial text contents of the text labels, extracting text contents representing an ID number of the thermodetector, a channel number of the thermodetector and the ID number of the text labels, creating a two-dimensional array, and putting the extracted text contents representing the ID number of the thermodetector, the channel number of the thermodetector and the ID number of the text labels into the two-dimensional array;
traversing the two-dimensional array, and uniformly setting the display content of the text labels to be 0.0;
and fourthly, decomposing the target data through a real-time display unit of the data display module, extracting the ID number of the fluorescence optical fiber thermometer and the channel number of the fluorescence optical fiber thermometer, matching the text content representing the ID number of the thermometer in the two-dimensional array with the ID number of the fluorescence optical fiber thermometer decomposed from the target data, and matching the text content representing the channel number of the thermometer in the two-dimensional array with the channel number of the fluorescence optical fiber thermometer decomposed from the target data, and assigning the temperature value of the target data on the text label if the text content and the channel number are equal to each other, thereby finishing the real-time display of the temperature value.
When displaying in real time, target data are analyzed through the early warning module, and early warning is carried out according to the analysis result, which specifically comprises the following steps:
comparing the target data with a threshold range of each channel of the fluorescent optical fiber thermometer corresponding to the third storage unit through an early warning module, wherein the threshold range comprises an upper limit and a lower limit, if the temperature value exceeds the upper limit, displaying high-temperature early warning on a temperature data display frame status bar of the data display module, if the temperature value is lower than the lower limit, displaying low-temperature early warning on the temperature data display frame status bar of the data display module, if the temperature value is G, H or I, G represents the fault of the optical fiber temperature sensor, H represents the fault of the optical fiber, and I represents the fault in system adjustment, displaying the fault state on the temperature data display frame status bar of the data display module;
judging whether the temperature value is abnormal or not through an early warning module, and if so, carrying out data flicker prompting on a vector diagram of a data display module;
whether the temperature value is abnormal or not is judged through the early warning module, if the temperature value is abnormal, interface pop-up frame prompting is carried out, and sound prompting is sent out.

Claims (10)

1. The utility model provides a temperature data gathers and early warning system based on fluorescence optic fibre thermoscope which characterized in that:
the system comprises a data acquisition module, a data analysis module, a data display module and an early warning module;
the data acquisition module is used for sending a command to the fluorescent optical fiber thermometer in a serial port communication or TCP/IP communication mode and receiving temperature data fed back by the fluorescent optical fiber thermometer;
the data analysis module is used for analyzing the temperature data to form target data;
the data display module comprises a real-time display unit and a longitudinal/transverse analysis display unit;
the real-time display unit is used for displaying a chart and a vector diagram of target data in real time;
the longitudinal/transverse analysis display unit is used for storing target data, longitudinally analyzing and displaying the stored historical target data and transversely analyzing and displaying the stored associated equipment target data;
the early warning module is used for analyzing the target data and giving early warning according to the analysis result.
2. The temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer according to claim 1, characterized in that:
the vector diagram is in an svg format;
the early warning mode comprises a voice prompt, a data flicker prompt and an interface pop-up frame prompt.
3. A temperature data acquisition and early warning method based on a fluorescence optical fiber thermodetector is characterized by comprising the following steps:
step 1, initializing the temperature data acquisition and early warning system based on the fluorescence optical fiber thermometer according to any one of claims 1 to 2, including selecting an interface standard specification and a bus standard specification of serial port communication, setting a data signal transmission parameter of the serial port communication, setting a data signal transmission parameter of TCP/IP communication, setting a frequency of sending a sending frame, and setting an early warning mode when abnormal data occurs;
step 2, respectively accessing a plurality of fluorescent optical fiber thermometers to the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometers in the step 1 in a serial port communication and/or TCP/IP communication mode;
step 3, respectively sending frames to the plurality of fluorescent optical fiber thermometers through the data acquisition module according to the frequency set in the step 1, and receiving frames fed back by the plurality of fluorescent optical fiber thermometers;
step 4, decomposing and analyzing the received frame through a data analysis module to form target data;
step 5, displaying real-time graphs and vector diagrams of the target data through a real-time display unit of the data display module, storing the target data through a longitudinal/transverse analysis display unit of the data display module, performing longitudinal analysis display on the stored historical target data, and performing transverse analysis display on the stored associated equipment target data;
meanwhile, the target data is analyzed through the early warning module, and early warning is carried out according to the analysis result.
4. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 3, characterized in that:
the data signal transmission parameters of the serial port communication in the step 1 comprise a serial port number, a data bit, a stop bit, a baud rate and a check bit;
the data signal transmission parameters of the TCP/IP communication comprise a port number bound by the host and an IP address communicated with the host;
the early warning mode comprises a voice prompt, a data flicker prompt and an interface pop-up frame prompt.
5. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 3, characterized in that:
in the step 2, after the temperature data acquisition and early warning system based on the fluorescent optical fiber thermometer successfully receives the request of one client in a TCP/IP communication mode each time, the IP address of the client is stored; after disconnecting a client each time, deleting the IP address of the client from the storage list; each client supports a maximum of 255 connected fluorescence fiber thermometers.
6. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 5, characterized in that:
the frame structure of the frame sent in the step 3 comprises 8 bytes, wherein the 1 st byte is a target address, namely the address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for reading the order; the 3 rd byte and the 4 th byte are target registers, namely storage addresses of temperature data in the fluorescent optical fiber thermometer; the 5 th byte and the 6 th byte are the number of data to be read, namely the number of channels; the 7 th byte and the 8 th byte are CRC check codes used for performing CRC check on the 1 st byte to the 6 th byte;
the frame structure of the received frame comprises N bytes, wherein the 1 st byte is a target address, namely an address code of the fluorescence optical fiber thermometer; the 2 nd byte is the function code of this frame, is used for responding to the reading command of the sending frame; the 3 rd byte is the data length of the received frame, namely the byte number M of the data from the byte to the front of the CRC check code, wherein M is a multiple of 4, every four bytes in the M bytes are sequentially used as a group, the first two bytes in each group are the temperature value of one channel, and the last two bytes are the PD value and the UV value of the channel respectively and are used for judging the accuracy of the temperature value; the N-1 th byte and the N-th byte are CRC check codes and are used for performing CRC check on the 1 st byte to the N-2 th byte;
the sending frame and the receiving frame both adopt 16-system codes;
the data acquisition module comprises a first timer for acquiring data in a serial port communication mode and a second timer for acquiring data in a TCP/IP communication mode;
the first timer extracts address codes and channel number information of the fluorescence optical fiber thermometers which are communicated through the serial port, a sending frame is formed according to a frame structure of the sending frame, the sending frame is sent to the fluorescence optical fiber thermometers through the serial port communication mode, and a receiving frame fed back by the fluorescence optical fiber thermometers according to the content of the sending frame is received;
and the second timer acquires the address code and channel number information of the fluorescent optical fiber thermometer corresponding to the IP address by adopting a multithreading technology according to the IP address stored in the step 2, forms a sending frame according to the frame structure of the sending frame, sends the sending frame to the fluorescent optical fiber thermometer in a TCP/IP communication mode, and receives a receiving frame fed back by the fluorescent optical fiber thermometer according to the content of the sending frame.
7. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 6, wherein the step 4 is specifically implemented according to the following steps:
step 4.1, intercepting the last two bytes of the received frame through a data analysis module, namely CRC check codes, and then performing CRC check on the 1 st byte to the N-2 th byte, comparing whether the two check codes are the same or not, and if the two check codes are the same, indicating that the verification is passed;
step 4.2, after the verification is passed, extracting the 1 st byte of the received frame through a data analysis module, namely the address code of the fluorescent optical fiber thermometer, and matching corresponding thermometer information including an ID number, a thermometer name, a channel number and a threshold range of each channel from prestored fluorescent optical fiber thermometer parameters according to the address code;
4.3, extracting a 3 rd byte of a received frame through a data analysis module, intercepting M bytes after the byte according to a value M of the 3 rd byte, sequentially taking every four bytes as a group, converting a 16-system into a 10-system after the first byte and the second byte in each group are combined, and dividing the value by 10 to obtain a temperature value of a channel, converting a 16-system into the 10-system for obtaining a PD value of the channel, and converting a 16-system into the 10-system for obtaining a UV value of the channel; and (4) completely analyzing all the M bytes to obtain all channel data of the fluorescence optical fiber thermometer, wherein the channel data and the thermometer information obtained in the step (4.2) jointly form target data.
8. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 7, characterized in that:
the real-time graph display of the target data in the step 5 specifically includes:
firstly, traversing all prestored fluorescent optical fiber thermometer parameters through a real-time display unit of a data display module to generate a corresponding number of temperature data display frames, wherein the title of each display frame is the name of the fluorescent optical fiber thermometer corresponding to the display frame, the module ID of each display frame is an ID splicing appointed character of the fluorescent optical fiber thermometer, a status bar is arranged below the title and used for displaying high-temperature early warning, low-temperature early warning and fault status, a group of tables are arranged below the status bar, the number of cells of the tables is equal to the number of channels of the fluorescent optical fiber thermometer, each cell displays the temperature value of the corresponding channel, and the initial value of each cell is 'NA';
secondly, decomposing target data through a real-time display unit of a data display module, extracting an ID number of the fluorescence optical fiber thermometer, matching the ID number with an ID number of a display frame, and finding the display frame corresponding to the target data; and extracting the temperature value of each channel, assigning the temperature value to the corresponding display frame cell, and finishing the real-time display of the temperature value.
9. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to claim 7, characterized in that:
the vector diagram in the step 5 is a vector diagram in a svg format, and the real-time vector diagram display of the target data is specifically as follows:
firstly, drawing an svg format file and acquiring a source code;
secondly, extracting text labels to be filled with temperature data from all text labels of the source codes of the svg format files, analyzing initial text contents of the text labels, extracting text contents representing an ID number of the thermodetector, a channel number of the thermodetector and the ID number of the text labels, creating a two-dimensional array, and putting the extracted text contents representing the ID number of the thermodetector, the channel number of the thermodetector and the ID number of the text labels into the two-dimensional array;
traversing the two-dimensional array, and uniformly setting the display content of the text labels to be 0.0;
and fourthly, decomposing the target data through a real-time display unit of the data display module, extracting the ID number of the fluorescence optical fiber thermometer and the channel number of the fluorescence optical fiber thermometer, matching the text content representing the ID number of the thermometer in the two-dimensional array with the ID number of the fluorescence optical fiber thermometer decomposed from the target data, and matching the text content representing the channel number of the thermometer in the two-dimensional array with the channel number of the fluorescence optical fiber thermometer decomposed from the target data, and assigning the temperature value of the target data on the text label if the text content and the channel number are equal to each other, thereby finishing the real-time display of the temperature value.
10. The temperature data acquisition and early warning method based on the fluorescence optical fiber thermometer according to any one of claims 8 or 9, wherein:
the step 5 of analyzing the target data through the early warning module and performing early warning according to the analysis result specifically comprises the following steps:
comparing target data with a stored threshold range of each channel of the fluorescent optical fiber thermodetector through an early warning module, wherein the threshold range comprises an upper limit and a lower limit, if the temperature value exceeds the upper limit, displaying high-temperature early warning on a display frame status bar of a data display module, if the temperature value is lower than the lower limit, displaying low-temperature early warning on the display frame status bar of the data display module, and if the temperature value is a fault signal, displaying a fault state on the display frame status bar of the data display module;
judging whether the temperature value is abnormal or not through an early warning module, and if so, carrying out data flicker prompting on a vector diagram of a data display module;
whether the temperature value is abnormal or not is judged through the early warning module, if the temperature value is abnormal, interface pop-up frame prompting is carried out, and sound prompting is sent out.
CN202010430481.5A 2020-05-20 2020-05-20 Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer Pending CN111579115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010430481.5A CN111579115A (en) 2020-05-20 2020-05-20 Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010430481.5A CN111579115A (en) 2020-05-20 2020-05-20 Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer

Publications (1)

Publication Number Publication Date
CN111579115A true CN111579115A (en) 2020-08-25

Family

ID=72123076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010430481.5A Pending CN111579115A (en) 2020-05-20 2020-05-20 Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer

Country Status (1)

Country Link
CN (1) CN111579115A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706651A (en) * 2009-11-06 2010-05-12 河南电力试验研究院 Method for representing industrial monitoring graph based on SVG
US8194238B1 (en) * 2006-02-14 2012-06-05 Killdeer Mountain Manufacturing, Inc. Optical sensor component identification and interrogation system
CN102566484A (en) * 2011-12-15 2012-07-11 无锡科思电子科技有限公司 Multifunctional analog quantity acquisition module and information transmission method thereof
CN103595706A (en) * 2013-10-15 2014-02-19 航天科工深圳(集团)有限公司 Temperature sensing data universal server and communication method of temperature sensing data universal server
CN103972989A (en) * 2014-05-29 2014-08-06 昌华电气设备集团有限公司 Intelligent low-voltage switch cabinet comprehensive monitoring system based on optical-fiber communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8194238B1 (en) * 2006-02-14 2012-06-05 Killdeer Mountain Manufacturing, Inc. Optical sensor component identification and interrogation system
CN101706651A (en) * 2009-11-06 2010-05-12 河南电力试验研究院 Method for representing industrial monitoring graph based on SVG
CN102566484A (en) * 2011-12-15 2012-07-11 无锡科思电子科技有限公司 Multifunctional analog quantity acquisition module and information transmission method thereof
CN103595706A (en) * 2013-10-15 2014-02-19 航天科工深圳(集团)有限公司 Temperature sensing data universal server and communication method of temperature sensing data universal server
CN103972989A (en) * 2014-05-29 2014-08-06 昌华电气设备集团有限公司 Intelligent low-voltage switch cabinet comprehensive monitoring system based on optical-fiber communication

Similar Documents

Publication Publication Date Title
CN107809331A (en) The method and apparatus for identifying abnormal flow
CN112804336B (en) Fault detection method, device, system and computer readable storage medium
CN111679241B (en) Multi-information-channel automatic switching system and method for electric energy meter verification assembly line
CN109450094A (en) A kind of substation relay protection method for inspecting and system
CN102081808A (en) Field apparatus inspection method and system
CN110728381A (en) Intelligent power plant inspection method and system based on RFID and data processing
CN112541569A (en) Sensor online training system and method based on machine learning
CN110879820B (en) Industrial data processing method and device
CN110535972B (en) Centralized control and communication system, equipment and readable storage medium for platform gas detection equipment
CN106649765A (en) Smart power grid panoramic data analysis method based on big data technology
CN114036157A (en) Method and device for monitoring transmission line tree obstacle, computer equipment and storage medium
CN114004996A (en) Abnormal sound detection method, abnormal sound detection device, electronic equipment and medium
CN111579115A (en) Temperature data acquisition and early warning system and method based on fluorescent optical fiber thermometer
CN113076730A (en) Test report intelligent management method, device, system and storage medium
CN103746827A (en) Method and system for automatic parameter identification in IEC101/104 protocol analysis
CN112181549A (en) System and method for recognizing dynamic perception of power icon of transformer substation monitoring interface
CN115242684A (en) Full link voltage measuring method, device, computer equipment and storage medium
CN116401202A (en) Atmospheric component observation data acquisition edge server system and data processing method
CN115765153A (en) Method and system for fusion monitoring of Internet of things and online monitoring data of primary electric power equipment
CN115904388A (en) Application program protocol analysis method, device, equipment and storage medium
CN101975736B (en) Sensor-method water vapor transmission rate testing system
CN114022305A (en) Underground water dynamic monitoring method and device
CN114257472A (en) Network topology monitoring method, device, equipment and readable storage medium
CN109671176B (en) Real-time data acquisition system and method for tobacco equipment inspection system
CN112907111A (en) Intelligent monitoring data acquisition and analysis method based on Internet of things technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication