技术领域technical field
本发明涉及智能化集中式温控系统,尤其是基于集中温控系统的温度数据采集方法。The invention relates to an intelligent centralized temperature control system, in particular to a method for collecting temperature data based on the centralized temperature control system.
背景技术Background technique
集中式温控系统,的硬件系统结构参见图1,最上层称为上位机,是系统的中枢,所有的控制输入和输出在此完成;中层为巡检仪,最多可接80台,巡检仪完成温度曲线的下发、基表数据采集和基表控制;最下一层为基表(或称温度控制器:包括PID控制器及温度传感器\热电偶),最多可接80台,完成升温、降温、恒温和报警等功能。这种结构的优点有;1)、系统规模可灵活扩充;2)、上位机可关机,基表的实时数据存储于巡检仪;3)、可大大简化基表的设计复杂程度,大大降低系统成本。The hardware system structure of the centralized temperature control system is shown in Figure 1. The uppermost layer is called the upper computer, which is the center of the system, and all control input and output are completed here; The instrument completes the distribution of temperature curves, base meter data collection and base meter control; the bottom layer is the base meter (or temperature controller: including PID controllers and temperature sensors\thermocouples), up to 80 units can be connected to complete Heating, cooling, constant temperature and alarm functions. The advantages of this structure are: 1), the scale of the system can be flexibly expanded; 2), the upper computer can be shut down, and the real-time data of the base table is stored in the inspection instrument; 3), the design complexity of the base table can be greatly simplified, and the system cost.
由于集中式温控系统可接的温控点理论值是80×80,即系统中巡检仪的上限是80,温控基表上限值也是80,这样系统基表数的上限6400。巡检仪按1毫秒、10毫秒、100毫秒和1秒采集数据一次,采集周期上限值分别为6.4秒、64秒、640秒和6400秒。在温控精度要求不十分高的情况下,多数采用100毫秒和1秒采集数据一次,这时采集周期上限值分别为6.7分钟和67分钟。在实际的工业之中,这样的时间段内温度已经发生变化,采集的数据将是不连续的,绘制的温度曲线会是断断续续的。也就是说按照温控点理论最大值上位机采集数据时,会出现丢失数据的可能:1)、由于环境干扰等情况巡检仪发给上位机的数据是错误的,上位机将丢掉该数据;2)、由于温控点过多,上位机的采集周期错过,读不到数据造成数据丢失。Since the theoretical value of the temperature control points that can be connected to the centralized temperature control system is 80×80, that is, the upper limit of the inspection instrument in the system is 80, and the upper limit of the temperature control base meter is also 80, so the upper limit of the number of base meters in the system is 6400. The inspection instrument collects data once in 1 millisecond, 10 milliseconds, 100 milliseconds and 1 second, and the upper limit of the collection period is 6.4 seconds, 64 seconds, 640 seconds and 6400 seconds respectively. In the case that the temperature control accuracy is not very high, most of them use 100 milliseconds and 1 second to collect data once. At this time, the upper limit of the collection period is 6.7 minutes and 67 minutes respectively. In the actual industry, the temperature has changed during such a period of time, the collected data will be discontinuous, and the drawn temperature curve will be intermittent. That is to say, when the upper computer collects data according to the theoretical maximum value of the temperature control point, there will be a possibility of data loss: 1) Due to environmental interference and other circumstances, the data sent by the inspection instrument to the upper computer is wrong, and the upper computer will lose the data. ;2) Due to too many temperature control points, the acquisition cycle of the upper computer is missed, and the data cannot be read, resulting in data loss.
发明内容Contents of the invention
为解决以上技术问题,本发明提供了基于集中温控系统的温度数据采集方法,该方法能将丢失的采集点的数据补充起来,使数据库中的数据完整并且绘制实时温度曲线使比较完整、连续和基本符合实际。In order to solve the above technical problems, the present invention provides a temperature data collection method based on a centralized temperature control system, which can supplement the lost data of collection points, make the data in the database complete and draw a real-time temperature curve to make it more complete and continuous and basically in line with reality.
本发明的技术方案为:基于集中温控系统的温度数据采集方法,其不同之处在于:其包括以下步骤:The technical solution of the present invention is: a method for collecting temperature data based on a centralized temperature control system, the difference is that it includes the following steps:
步骤1)、系统上位机启动上位机串口向巡检仪发送温控曲线;Step 1), the host computer of the system starts the serial port of the host computer to send the temperature control curve to the inspection instrument;
步骤2)、巡检仪向温控基表按段发送温控曲线;Step 2), the inspection instrument sends the temperature control curve to the temperature control base meter by segment;
步骤3)、上位机按照规定的取样周期读取巡检仪存储器中某一基表的实时温度值;如巡检仪存储器中没有采集到温度数据则执行步骤4),如巡检仪存储器中有数据则进一步判断该段数据采样是否完成,如完成则将采集到的温度数据曲线发送至数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;Step 3), the upper computer reads the real-time temperature value of a base table in the memory of the patrol instrument according to the specified sampling period; if no temperature data is collected in the memory of the patrol instrument, perform step 4). If there is data, it will further judge whether the data sampling of this section is completed. If it is completed, the collected temperature data curve will be sent to the database before reading the next section of data. If it is not completed, the host computer will continue to read the inspection instrument according to the specified sampling cycle. The real-time temperature value of the base table in the memory;
步骤4)、以巡检仪号j和基表号i为查询索引,遍历检索基表的全部历史数据判断上位机数据库中有无与缺失数据匹配的温度数据,如没有则以设定温度曲线值公式一来作为缺失时间点或段的温度数据曲线公式计算并补充温度曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按取样周期继续读取巡检仪存储器中所述基表的实时温度值;Step 4), using the inspection instrument number j and the base table number i as the query index, traverse all the historical data of the base table to determine whether there is any temperature data matching the missing data in the host computer database, if not, use the set temperature curve Value formula 1 is used as the temperature data curve formula of the missing time point or segment to calculate and supplement the temperature curve, and then judge whether the temperature data sampling of this segment is completed. If it is completed, the collected and supplemented temperature curve will be sent to the host computer database. Then read the next piece of data, if it is not completed, the host computer will continue to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the sampling cycle;
Y=(y2-y1)/(x2-x1)X+(y1x2-y2x1)/(x2-x1) (公式一)Y=(y2 -y1 )/(x2 -x1 )X+(y1 x2 -y2 x1 )/(x2 -x1 ) (Formula 1)
设x为时间,y为基表的温度值,其中x1和x2为温度曲线某段的起始和终止时间,y1和y2为该曲线起始和终止的温度值;Let x be the time, and y be the temperature value of the base table, where x1 andx2 are the start and end times ofa certain section of the temperature curve, andy1 and y2 are the temperature values at the start and end of the curve;
如数据库中有与缺失数据匹配的数据,则再判断数据精度要求,如数据精度要求高则以同一基表根据设定温度曲线值公式一计算得到的值Yji减去历史数据Vji之后得到值进行平方取得方差值,取遍n个历史数据得到所对应n个方差值,取n个方差值中最小值,该最小方差值所对应历史数据Vji为丢失温度数据值Uji,以此方法来计算并补充缺失时间点或段的温度数据曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;If there is data matching the missing data in the database, then judge the data accuracy requirements. If the data accuracy requirements are high, use the same base table to calculate the value Yji according to the set temperature curve value formula 1 and subtract the historical data Vji to get The value is squared to obtain the variance value, and n historical data are taken to obtain the corresponding n variance values, and the minimum value of the n variance values is taken, and the historical data Vji corresponding to the minimum variance value is the lost temperature data value Uji , use this method to calculate and supplement the temperature data curve of the missing time point or segment, and then judge whether the temperature data sampling of this segment is completed. If it is completed, send the collected and supplemented temperature curve to the host computer database for reading Take the next piece of data, if it is not completed, the host computer will continue to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the specified sampling period;
如数据精度要求低则按公式二来作为缺失时间点或段的温度数据曲线公式来计算并补充温度曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;If the data accuracy requirement is low, use formula 2 as the temperature data curve formula of the missing time point or segment to calculate and supplement the temperature curve, and then judge whether the temperature data sampling of this segment is completed. If it is completed, the collected and supplemented temperature After the curve is sent to the host computer database, the next piece of data is read. If it is not completed, the host computer continues to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the specified sampling cycle;
Uji=ΣVji/n (公式二)Uji =ΣVji /n (Formula 2)
Uji为丢失温度数据值,Vji为数据库中相同编号的巡检仪j和相同基表号i在同一设定温度曲线、同一温控段、同一时刻的温度值;ΣVji为n个历史数据之和;Yji为同一基表根据设定温度曲线值公式一计算得到的值。Uji is the lost temperature data value, Vji is the temperature value of the inspection instrument j with the same number and the same base meter number i in the database at the same set temperature curve, the same temperature control section, and the same time; ΣVji is n historical The sum of the data; Yji is the value calculated by the same base table according to formula 1 of the set temperature curve value.
本发明将丢失的采集点的数据补充起来,同时将此数据补充进数据库中,使数据库中的数据完整并且绘制实时温度变化曲线使比较完整、连续和基本符合实际。The invention supplements the data of the lost collection points, and at the same time, supplements the data into the database, makes the data in the database complete and draws the real-time temperature change curve so that it is relatively complete, continuous and basically conforms to reality.
附图说明Description of drawings
图1为本发明实施例集中温控系统的结构框图;Fig. 1 is the structural block diagram of the centralized temperature control system of the embodiment of the present invention;
图2为本发明实施例基于集中温控系统的温度数据采集方法的流程示意图;FIG. 2 is a schematic flow diagram of a method for collecting temperature data based on a centralized temperature control system according to an embodiment of the present invention;
图3为本发明实施例温控基表所在层的具体接线示意图。Fig. 3 is a specific wiring schematic diagram of the layer where the temperature control base meter is located in the embodiment of the present invention.
具体实施方式detailed description
参见图1-图3,本发明实施例基于集中温控系统的温度数据采集方法,其不同之处在于:其包括以下步骤:Referring to Fig. 1-Fig. 3, the embodiment of the present invention is based on the temperature data collection method of centralized temperature control system, and its difference is: it comprises the following steps:
步骤1)、系统上位机启动上位机串口向巡检仪发送温控曲线;Step 1), the host computer of the system starts the serial port of the host computer to send the temperature control curve to the inspection instrument;
步骤2)、巡检仪向温控基表按段发送温控曲线;Step 2), the inspection instrument sends the temperature control curve to the temperature control base meter by segment;
步骤3)、上位机按照规定的取样周期读取巡检仪存储器中某一基表的实时温度值;如巡检仪存储器中没有采集到温度数据则执行步骤4),如巡检仪存储器中有数据则进一步判断该段数据采样是否完成,如完成则将采集到的温度数据曲线发送至数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;Step 3), the upper computer reads the real-time temperature value of a base table in the memory of the patrol instrument according to the specified sampling period; if no temperature data is collected in the memory of the patrol instrument, perform step 4). If there is data, it will further judge whether the data sampling of this section is completed. If it is completed, the collected temperature data curve will be sent to the database before reading the next section of data. If it is not completed, the host computer will continue to read the inspection instrument according to the specified sampling cycle. The real-time temperature value of the base table in the memory;
步骤4)、以巡检仪号j和基表号i为查询索引,遍历检索基表的全部历史数据判断上位机数据库中有无与缺失数据匹配的温度数据,如没有则以设定温度曲线值公式一来作为缺失时间点或段的温度数据曲线公式计算并补充温度曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按取样周期继续读取巡检仪存储器中所述基表的实时温度值;Step 4), using the inspection instrument number j and the base table number i as the query index, traverse all the historical data of the base table to determine whether there is any temperature data matching the missing data in the host computer database, if not, use the set temperature curve Value formula 1 is used as the temperature data curve formula of the missing time point or segment to calculate and supplement the temperature curve, and then judge whether the temperature data sampling of this segment is completed. If it is completed, the collected and supplemented temperature curve will be sent to the host computer database. Then read the next piece of data, if it is not completed, the host computer will continue to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the sampling cycle;
Y=(y2-y1)/(x2-x1)X+(y1x2-y2x1)/(x2-x1) (公式一)Y=(y2 -y1 )/(x2 -x1 )X+(y1 x2 -y2 x1 )/(x2 -x1 ) (Formula 1)
设x为时间,y为基表的温度值,其中x1和x2为温度曲线某段的起始和终止时间,y1和y2为该曲线起始和终止的温度值;Let x be the time, and y be the temperature value of the base table, where x1 andx2 are the start and end times ofa certain section of the temperature curve, andy1 and y2 are the temperature values at the start and end of the curve;
如数据库中有与缺失数据匹配的数据,则再判断数据精度要求,如数据精度要求高则以同一基表根据设定温度曲线值公式一计算得到的值Yji减去历史数据Vji之后得到值进行平方取得方差值,取遍n个历史数据得到所对应n个方差值,取n个方差值中最小值,该最小方差值所对应历史数据Vji为丢失温度数据值Uji,以此方法来计算并补充缺失时间点或段的温度数据曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;If there is data matching the missing data in the database, then judge the data accuracy requirements. If the data accuracy requirements are high, use the same base table to calculate the value Yji according to the set temperature curve value formula 1 and subtract the historical data Vji to get The value is squared to obtain the variance value, and n historical data are taken to obtain the corresponding n variance values, and the minimum value of the n variance values is taken, and the historical data Vji corresponding to the minimum variance value is the lost temperature data value Uji , use this method to calculate and supplement the temperature data curve of the missing time point or segment, and then judge whether the temperature data sampling of this segment is completed. If it is completed, send the collected and supplemented temperature curve to the host computer database for reading Take the next piece of data, if it is not completed, the host computer will continue to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the specified sampling period;
如数据精度要求低则按公式二来作为缺失时间点或段的温度数据曲线公式来计算并补充温度曲线,然后判断该段温度数据采样是否完成,如完成则将采集到的和补充完毕的温度曲线发送至上位机数据库后再读取下一段数据,如没有完成则上位机按照规定的取样周期继续读取巡检仪存储器中所述基表的实时温度值;If the data accuracy requirement is low, use formula 2 as the temperature data curve formula of the missing time point or segment to calculate and supplement the temperature curve, and then judge whether the temperature data sampling of this segment is completed. If it is completed, the collected and supplemented temperature After the curve is sent to the host computer database, the next piece of data is read. If it is not completed, the host computer continues to read the real-time temperature value of the base meter in the memory of the inspection instrument according to the specified sampling cycle;
Uji=ΣVji/n (公式二)Uji =ΣVji /n (Formula 2)
Uji为丢失温度数据值,Vji为数据库中相同编号的巡检仪j和相同基表号i在同一设定温度曲线、同一温控段、同一时刻的温度值;ΣVji为n个历史数据之和;Yji为同一基表根据设定温度曲线值公式一计算得到的值。Uji is the lost temperature data value, Vji is the temperature value of the inspection instrument j with the same number and the same base meter number i in the database at the same set temperature curve, the same temperature control section, and the same time; ΣVji is n historical The sum of the data; Yji is the value calculated by the same base table according to formula 1 of the set temperature curve value.
数据精度即采集温度曲线与温控曲线的差异度,差异度在正负3%之内属于高精度,Data accuracy refers to the difference between the collected temperature curve and the temperature control curve. The difference is within plus or minus 3%, which is high precision.
正负3%之外属于低精度,数据精度大小可以设置,不限于正负3%。Plus or minus 3% is low precision, and the data precision can be set, not limited to plus or minus 3%.
参见图3,本发明实施例中的温控基表可以采用温度调节仪,该温度调节仪的温控线连接至热电偶检定炉。Referring to Fig. 3, the temperature control base meter in the embodiment of the present invention can use a temperature regulator, and the temperature control line of the temperature regulator is connected to a thermocouple verification furnace.
算法设计原理简述约定每隔1分钟就要了解一次基表的温度变化,那么在采集周期上限值为6.7分钟,每个基表分别就丢失了6.7个数据。对这6.7个数据的采用如下公式计算得到。为简单化,算法描述中基表的个数取[60,6400]区间的上限或下限,即60或6400。基表的个数小于60系统采集不会出现数据丢失,基表的个数大于6400系统无法处理.算法描述(Statistics Temperature Data Fitting Algorithm)Brief description of the algorithm design principle. It is agreed that the temperature change of the base meter should be known every 1 minute. Then, the upper limit of the collection period is 6.7 minutes, and each base meter loses 6.7 data respectively. The 6.7 data are calculated using the following formula. For simplicity, the number of base tables in the algorithm description takes the upper or lower limit of the interval [60, 6400], that is, 60 or 6400. If the number of base tables is less than 60, the system will not lose data. If the number of base tables is greater than 6400, the system cannot handle it. Algorithm description (Statistics Temperature Data Fitting Algorithm)
(1)补赏温控数据采集算法的伪C语言描述如下:(1) The pseudo-C language description of the reward temperature control data collection algorithm is as follows:
(2)数据采样算法(2) Data sampling algorithm
数据采样算法是指系统的上位机按照规定的取样周期读取巡检仪存储器中某基表的实时温度值,当巡检仪无数据发送或发送的数据有错误时调用STEDAFA算法。其伪C语言代码如下所示:The data sampling algorithm means that the upper computer of the system reads the real-time temperature value of a base meter in the memory of the inspection instrument according to the specified sampling period, and calls the STEDAFA algorithm when the inspection instrument has no data to send or the data sent has errors. Its pseudo-C language code is as follows:
以下进一步描述巡检仪通信协议。The polling instrument communication protocol is further described below.
(1)、上位机可能发送的指令如下:(1) The commands that the host computer may send are as follows:
校正时钟:校正巡检仪的实时钟。(年月日时分秒)Calibrate Clock: Calibrate the real-time clock of the inspection instrument. (year, month, day, hour, minute, second)
读取基表参数:读取指定基表内指定的参数值。(基表地址,参数序号)Read base table parameters: read the specified parameter values in the specified base table. (base table address, parameter number)
修改基表参数:修改指定基表内指定的参数值。(基表地址,参数序号,参数值)Modify base table parameters: modify the specified parameter values in the specified base table. (base table address, parameter number, parameter value)
下发曲线数据:下发各基表当前温控曲线数据到巡检仪。(基表号,曲线数据)Send curve data: Send the current temperature control curve data of each base meter to the inspection instrument. (base table number, curve data)
暂停/启动:控制指定基表暂停或者启动。(基表地址,命令)Pause/Start: Control the pause or start of the specified base table. (base table address, command)
采集记录:从巡检仪的数据存储器中采集温检记录。Collection records: collect temperature inspection records from the data memory of the inspection instrument.
(2)、上位机向巡检仪发送命令(2), the upper computer sends commands to the inspection instrument
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,07,00,C1,年,月,日,时,分,秒,校验码L,校验码HAddress, address inverse code, 07,00, C1, year, month, day, hour, minute, second, check code L, check code H
巡检仪执行命令后回送应答包格式如下:The format of the response packet returned by the patrol instrument after executing the command is as follows:
地址,01,00,结果码,校验码L,校验码H。Address, 01, 00, result code, check code L, check code H.
(3)、读取基表参数(3), read the base table parameters
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,03,00,C2,基表地址,参数号,校验码L,校验码HAddress, address inverse code, 03, 00, C2, base table address, parameter number, check code L, check code H
巡检仪收到命令,从指定基表读取相应参数数据后回送应答包格式如下:The inspection instrument receives the command, reads the corresponding parameter data from the specified base table, and sends back a response packet in the following format:
地址,0B,00,结果码,基表地址,参数号,PV[2],SV[2],MV,B,参数值[2],校验码L,校验码H。Address, 0B, 00, result code, base table address, parameter number, PV[2], SV[2], MV, B, parameter value[2], check code L, check code H.
(4)、修改基表参数(4), modify the base table parameters
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,05,00,C3,基表地址,参数号,参数值[2],校验码L,校验码HAddress, inverse address, 05, 00, C3, base table address, parameter number, parameter value [2], check code L, check code H
巡检仪收到命令,向指定基表定入相应参数数据后回送应答包格式如下:After receiving the command, the inspection instrument sends corresponding parameter data to the specified base table and sends back a response packet in the following format:
地址,0B,00,结果码,基表地址,参数号,PV[2],SV[2],MV,B,参数值[2],校验码L,校验码H。Address, 0B, 00, result code, base table address, parameter number, PV[2], SV[2], MV, B, parameter value[2], check code L, check code H.
(5)、下发曲线数据(5) Send curve data
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,53,00,C4,基表地址,包序号,曲线数据[80],校验码L,校验码HAddress, inverse address, 53, 00, C4, base table address, package number, curve data [80], check code L, check code H
包序号:0~8.(如果下发90段曲线则要分成9个包顺序下发)Package number: 0~8. (If 90 segments of curves are to be delivered, they shall be divided into 9 packages and delivered sequentially)
曲线数据:每次最多可发送10段曲线数据,每段数据占8字节,结构如下:Curve data: Up to 10 pieces of curve data can be sent each time, and each piece of data occupies 8 bytes. The structure is as follows:
起始温度[2],终止温度[2],运行时间[2],控制符[1],标志[1]Start temperature [2], end temperature [2], running time [2], control symbol [1], flag [1]
巡检仪执行命令后回送应答包格式如下:The format of the response packet returned by the patrol instrument after executing the command is as follows:
地址,01,00,结果码,校验码L,校验码H。Address, 01, 00, result code, check code L, check code H.
(6)、暂停/启动控制(6), pause/start control
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,03,00,C5,基表地址,控制码,校验码L,校验码HAddress, address inverse code, 03, 00, C5, base table address, control code, check code L, check code H
基表地址值若为FF,则表示对所有基表进行控制If the base table address value is FF, it means that all base tables are controlled
控制码:00=暂停,01=启动Control code: 00=pause, 01=start
巡检仪执行命令后回送应答包格式如下:The format of the response packet returned by the patrol instrument after executing the command is as follows:
地址,01,00,结果码,校验码L,校验码H。Address, 01, 00, result code, check code L, check code H.
(7)、采集记录(7) Collection records
上位机向巡检仪发送命令包,格式如下:The host computer sends a command packet to the inspection instrument, the format is as follows:
地址,地址反码,05,00,C6,包序号[4],校验码L,校验码HAddress, inverse address, 05, 00, C6, package number [4], check code L, check code H
包序号:0~xxxxxxx,(512字节/包)Package number: 0~xxxxxxx, (512 bytes/packet)
巡检仪回送应答包格式如下:The format of the response packet returned by the patrol instrument is as follows:
地址,01,02,结果码,数据[512],校验码L,校验码HAddress, 01, 02, result code, data [512], check code L, check code H
温检记录每条占16字节,格式如下:Each temperature inspection record occupies 16 bytes, and the format is as follows:
标志[1],基表地址[1],温度值[2],年月日时分秒[6],保留[6]。Flag [1], base table address [1], temperature value [2], year, month, day, hour, minute, second [6], reserved [6].
(8)、巡检仪“实时”采集数据通信协议:(8) "Real-time" data acquisition communication protocol of the inspection instrument:
上位机向巡检仪发送查询命令包,格式如下:The upper computer sends a query command packet to the inspection instrument, the format is as follows:
地址,地址反码,02,00,C7,01,校验码L,校验码HAddress, address inverse code, 02,00,C7,01, check code L, check code H
巡检仪回送应答包格式如下:The format of the response packet returned by the patrol instrument is as follows:
地址,15,00,结果码,数据[20],校验码L,校验码HAddress, 15, 00, result code, data [20], check code L, check code H
无数据时,结果码=00When there is no data, the result code=00
有数据时,结果码=01When there is data, the result code=01
数据[20]:格式如下:Data[20]: The format is as follows:
当结果码=01时,上位机必须再向巡检仪发送数据确认包,通知巡检仪此条记录已经收到,When the result code = 01, the upper computer must send a data confirmation packet to the inspection instrument to notify the inspection instrument that this record has been received.
如果巡检仪没有收到确认包就会一直应答同一条记录。数据确认包格式如下:If the patrol instrument does not receive the confirmation packet, it will always respond to the same record. The format of the data confirmation packet is as follows:
地址,地址反码,02,00,C7,02,校验码L,校验码HAddress, address inverse code, 02,00, C7,02, check code L, check code H
数据确认包无应答。There is no response to the data confirmation packet.
实时采集步骤如下:步骤1)、上位机发查询命令包;步骤2)、巡检仪回送应包;步骤3)、应答包中无数据,回到步骤1);步骤4)、上位机发数据确认包,回到步骤1)。The real-time acquisition steps are as follows: step 1), the upper computer sends a query command packet; step 2), the inspection instrument returns a response packet; step 3), there is no data in the response packet, return to step 1); step 4), the upper computer sends Data confirmation packet, return to step 1).
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410015859.XACN103995549B (en) | 2013-01-14 | 2014-01-14 | Based on the temperature data acquisition method for concentrating temperature control system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013100121656 | 2013-01-14 | ||
| CN 201310012165CN103116376A (en) | 2013-01-14 | 2013-01-14 | Temperature data collection method based on centralized temperature control system |
| CN201310012165.6 | 2013-01-14 | ||
| CN201310037466.4 | 2013-01-31 | ||
| CN2013100374664 | 2013-01-31 | ||
| CN2013100374664ACN103135534A (en) | 2013-01-31 | 2013-01-31 | Temperature data acquisition method based on centralized temperature control system |
| CN201410015859.XACN103995549B (en) | 2013-01-14 | 2014-01-14 | Based on the temperature data acquisition method for concentrating temperature control system |
| Publication Number | Publication Date |
|---|---|
| CN103995549A CN103995549A (en) | 2014-08-20 |
| CN103995549Btrue CN103995549B (en) | 2017-12-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410015859.XAExpired - Fee RelatedCN103995549B (en) | 2013-01-14 | 2014-01-14 | Based on the temperature data acquisition method for concentrating temperature control system |
| Country | Link |
|---|---|
| CN (1) | CN103995549B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106534162A (en)* | 2016-12-05 | 2017-03-22 | 德讯科技股份有限公司 | Server temperature monitoring system and method based on remote management communication protocol |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102192794A (en)* | 2011-03-07 | 2011-09-21 | 陕西师范大学 | Temperature data acquisition device, and storing and transmitting method thereof |
| CN102254013A (en)* | 2011-07-21 | 2011-11-23 | 深圳市华力特电气股份有限公司 | Data processing method and data processing device |
| CN202101761U (en)* | 2011-06-01 | 2012-01-04 | 阮晴 | On-line monitoring device used for non-contact temperature measurement of power transmission line |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62160461A (en)* | 1986-01-09 | 1987-07-16 | Fuji Electric Co Ltd | Heating source for manufacturing electrophotographic photoreceptors |
| US9197736B2 (en)* | 2009-12-31 | 2015-11-24 | Digimarc Corporation | Intuitive computing methods and systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102192794A (en)* | 2011-03-07 | 2011-09-21 | 陕西师范大学 | Temperature data acquisition device, and storing and transmitting method thereof |
| CN202101761U (en)* | 2011-06-01 | 2012-01-04 | 阮晴 | On-line monitoring device used for non-contact temperature measurement of power transmission line |
| CN102254013A (en)* | 2011-07-21 | 2011-11-23 | 深圳市华力特电气股份有限公司 | Data processing method and data processing device |
| Publication number | Publication date |
|---|---|
| CN103995549A (en) | 2014-08-20 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106707898A (en) | Remote data acquisition and real-time analysis system for filling production line | |
| CN103257295B (en) | Intelligent micro-grid detection system and method based on Beidou-GPS dual-mode time service | |
| CN103941642B (en) | Thermal Error Intelligent Measurement compensates system | |
| CN112699128B (en) | Report generation method and device, readable storage medium and electronic equipment | |
| CN103401881A (en) | Data collection system and method based on intelligent instrument | |
| CN109523134B (en) | Quantitative assessment method for time shifting capability of distributed electric heating load based on measured data and modeling system thereof | |
| CN105071535B (en) | A kind of the time synchronization management system and implementation method of network system | |
| CN103314334A (en) | Analog input unit and programmable controller | |
| CN104659918A (en) | Smart grid information management device fused with IEC (international electrotechnical commission) 61850 protocol | |
| CN202837399U (en) | Synchronized phasor measurement apparatus | |
| CN104537233B (en) | A Pseudo-Measurement Generation Method for Distribution Network Based on Kernel Density Estimation | |
| CN103995549B (en) | Based on the temperature data acquisition method for concentrating temperature control system | |
| CN203191430U (en) | Multifunctional electric power parameter display instrument based on DSP | |
| CN104133802A (en) | Data exchange method between Vxworks embedded operating system and motion control card of double-workpiece-platform scanning mask aligner | |
| CN205139355U (en) | Leading collection system suitable for system is compared to total mark electric quantity | |
| CN202854576U (en) | Automobile production line data management system | |
| CN103135534A (en) | Temperature data acquisition method based on centralized temperature control system | |
| CN104749391A (en) | Speed measuring system and method based on three-axis acceleration sensor | |
| CN112862189A (en) | Method, device, apparatus, storage medium, and program product for predicting heat source load | |
| CN103116376A (en) | Temperature data collection method based on centralized temperature control system | |
| CN204241591U (en) | Based on the low-voltage cabinet electrical energy parameter on-Line Monitor Device of carrier communication | |
| CN205691633U (en) | A kind of Intelligent reading list processing equipment reducing electric-power metering line loss | |
| CN101170296A (en) | Active Disturbance Rejection Generator Excitation Controller with Dual Central Processors and Its Control Method | |
| CN209513103U (en) | Energy measurement of natural gas system | |
| CN203786788U (en) | An Intelligent Timing and Counting System |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20171201 |