CN106969856A - A kind of update method of grain heap cable for measuring temperature - Google Patents

A kind of update method of grain heap cable for measuring temperature Download PDF

Info

Publication number
CN106969856A
CN106969856A CN201710258787.5A CN201710258787A CN106969856A CN 106969856 A CN106969856 A CN 106969856A CN 201710258787 A CN201710258787 A CN 201710258787A CN 106969856 A CN106969856 A CN 106969856A
Authority
CN
China
Prior art keywords
information
cable
address information
sensor
measuring temperature
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
CN201710258787.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.)
Zhengzhou Liling Electronic Technology Co Ltd
Original Assignee
Zhengzhou Liling 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 Zhengzhou Liling Electronic Technology Co Ltd filed Critical Zhengzhou Liling Electronic Technology Co Ltd
Priority to CN201710258787.5A priority Critical patent/CN106969856A/en
Publication of CN106969856A publication Critical patent/CN106969856A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • G01K13/10Thermometers specially adapted for specific purposes for measuring temperature within piled or stacked materials
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • 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

Abstract

The invention provides a kind of update method of grain heap cable for measuring temperature, applied to grain temperature extension set, including the raw information of sensor on cable for measuring temperature is pre-saved, in addition to:Obtain the address information of sensor on the cable for measuring temperature being connected with the grain temperature extension set;Judge that the address information whether there is in the raw information, if it does, the raw information is labeled as into the first raw information, otherwise, the address information is labeled as the first address information;The raw information for being not labeled as the first raw information is labeled as the second raw information;Address information in second raw information is replaced with into the first address information, completes to update.This programme can automatically update the address information of cable for measuring temperature.

Description

A kind of update method of grain heap cable for measuring temperature
Technical field
The present invention relates to cable for measuring temperature update method field, more particularly to a kind of update method of grain heap cable for measuring temperature.
Background technology
At present, grain depots at different levels have grain inspection system mostly in order to ensure stored grain safety, can detect humidity, storehouse in storehouse The parameters such as interior temperature, grain heap temperature.Wherein, grain heap temperature detection needs to use substantial amounts of test cable, and going out due to grain Storage, these test cables can be moved often, so during grain inspection system use, often there is grain heap test cable Damage and failure problems.
The grain inspection system used at present, sensor address backup is in main frame, it is necessary to when changing cable, carry out specially The operation of industry, the address of main frame could be updated, in operating process, user misoperation phenomenon often occurs, causes system to go out Mistake can not be recovered, or even need to send professional's field maintenance, time and the financial cost of producer be considerably increased, also to user Using bringing inconvenience.
The content of the invention
In view of this, can the technical problem to be solved in the present invention is to provide a kind of update method of grain heap cable for measuring temperature Automatically update the address information of cable.
The technical proposal of the invention is realized in this way:
A kind of update method of grain heap cable for measuring temperature, applied to grain temperature extension set, including pre-saves sensing on cable for measuring temperature The raw information of device, in addition to:
Step 1:Obtain the address information of sensor on the cable for measuring temperature being connected with the grain temperature extension set;
Step 2:Judge that the address information whether there is in the raw information, if it does, by the original letter Breath is labeled as the first raw information, otherwise, and the address information is labeled as into the first address information;
Step 3:The raw information for being not labeled as the first raw information is labeled as the second raw information;
Step 4:Address information in second raw information is replaced with into the first address information, completes to update.
It is preferred that, the raw information includes the address information and positional information of sensor.
It is preferred that, before the step 4, in addition to:
Coding rule is selected, judges whether first address information meets the coding rule, if met, performs step Rapid 4.
It is preferred that, the step 1 includes:
All branches of sensor described in traversal search, obtain the address letter of the sensor representated by the branch by turn Breath.
The update method of grain heap cable for measuring temperature proposed by the present invention, the address information of sensor is gathered by grain temperature extension set, And be compared with raw information, new address information is updated into raw information, so as to automatically update cable for measuring temperature Address information.
Brief description of the drawings
Fig. 1 is the method flow diagram of the update method for the grain heap cable for measuring temperature that one embodiment of the invention is proposed;
Fig. 2 is the method flow diagram of the update method for the grain heap cable for measuring temperature that further embodiment of this invention is proposed;
Fig. 3 is the structured flowchart for the grain temperature extension set that the embodiment of the present invention is proposed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the present invention proposes a kind of update method of grain heap cable for measuring temperature, applied to grain temperature point Machine, including the raw information of sensor on cable for measuring temperature is pre-saved, in addition to:
Step 101:Obtain the address information of sensor on the cable for measuring temperature being connected with grain temperature extension set;
Step 102:Judge that address information whether there is in raw information, if it does, by raw information labeled as the One raw information, otherwise, the first address information is labeled as by address information;
Step 103:The raw information for being not labeled as the first raw information is labeled as the second raw information;
Step 104:Address information in second raw information is replaced with into the first address information, completes to update.
It can be seen that, the update method for the grain heap cable for measuring temperature that the embodiment of the present invention is proposed gathers sensor by grain temperature extension set Address information, and be compared with raw information, new address information updated into raw information, so as to automatically more The address information of new cable.
In a preferred embodiment of the invention, raw information includes the address information and positional information of sensor.
In the present embodiment, the information of sensor is all stored in grain temperature extension set, and the information of sensor can include passing The quantity of the address of sensor, the position of sensor and sensor.
In a preferred embodiment of the invention, coding rule is selected, judges whether the first address information meets coding Rule, if met, performs step 104.
In the present embodiment, in order to ensure cable versatility, it is necessary to sensor carry out Unified coding.For example, Every cable for measuring temperature is provided with 4 sensors, and 4 sensors are separately encoded as 1,2,3,4.Onsite application cable and cable in stock Coded system is identical, thereby may be ensured that the versatility of cable in stock
In a preferred embodiment of the invention, the address of sensor on the cable for measuring temperature being connected with grain temperature extension set is obtained Information includes:
All branches of traversal search sensor, obtain the address information of the sensor representated by branch by turn.
In the present embodiment, can by all branches of binary traversal algorithm traversal search sensor by turn so that Obtain all addresses of sensor.
As shown in Fig. 2 the embodiment of the present invention proposes a kind of update method of grain heap cable for measuring temperature, applied to grain temperature point Machine, comprises the following steps:
Step 201:Grain temperature extension set pre-saves the raw information of sensor on cable for measuring temperature
Wherein, grain temperature extension set is as shown in figure 3, including humiture interface, grain temperature test interface, memory, single-chip microcomputer in storehouse And communication interface.
In the present embodiment, the raw information of sensor is all stored in grain temperature extension set on cable for measuring temperature.
Step 202:Single-chip microcomputer obtains the address information of sensor on the cable for measuring temperature being connected with grain temperature extension set.
It is detailed, the survey that the single-chip microcomputer of grain temperature extension set can be connected when restarting by interface active obtaining with grain temperature extension set The address information of sensor on warm cable, and preserve in memory.
Wherein, on the cable for measuring temperature that acquisition is connected with grain temperature extension set during the address information of sensor, y-bend can be used Set ergodic algorithm.For example, sensor has 64 bit address, and each has 0 and 1 Liang Zhong branches, is proceeded by by turn time from D0 Search branch is gone through, until D63, records occurred branch, until not new branch, terminates search.
After search terminates, occurred branch is counted, each branch just represents the address of a sensor, counted All branches, the address representated by respective branches, foundation includes the address table of address information.
Step 203:Single-chip microcomputer judges that address information whether there is in raw information, if it does, by raw information mark The first raw information is designated as, otherwise, address information the first address information is labeled as.
In the present embodiment, it is necessary to the raw information in the information and memory of address table is compared, if phase Same address, illustrates that sensor is not replaced, and now raw information can be labeled as into the first raw information;If newly Location, can be labeled as the first address information by new address information.
Step 204:The raw information for being not labeled as the first raw information is labeled as the second raw information by single-chip microcomputer.
In the present embodiment, the first raw information is labeled raw information, i.e., the information for the sensor do not changed;The Two raw informations are not labeled raw information, i.e. the corresponding sensor of the second raw information has been replaced, it is impossible to detected.
Step 205:Single-chip microcomputer selects coding rule, judges whether the first address information meets coding rule.
In order to ensure that the coding rule of the sensor on the versatility of cable for measuring temperature, cable for measuring temperature should be identical, if standby Coding rule is not met with cable, then can not be automatically updated.
Step 206:Address information in second raw information in memory is replaced with the first address information by single-chip microcomputer, complete Into renewal.
The corresponding sensor of second raw information has been replaced, it is therefore desirable to which the address information in raw information is carried out more Newly, by the way that the first address information is updated in the second raw information, the renewal of address information can be completed, that is, completes what is updated The address information of sensor in cable updates.
It can be seen that, the update method for the grain heap cable for measuring temperature that the embodiment of the present invention is proposed gathers sensor by grain temperature extension set Address information, and be compared with raw information, new address information updated into raw information, so as to automatically more The address information of new cable for measuring temperature.
User need to only find out error cable position, and extension set is restarted after being changed using cable in stock, carry out cable for measuring temperature more Newly, the renewal process of cable for measuring temperature, be by grain temperature extension set complete independently, during do not need main frame participation, new sensing Device information, which is remained on, to be stored in the memory of grain temperature extension set.User need to only change failure cable and restart point in whole process Machine, so that it may normally use, without any configuration of progress and setting.
In summary, the embodiment of the present invention can at least realize following effect:
In embodiments of the present invention, the address information of sensor is gathered by grain temperature extension set, and is compared with raw information Compared with by new address information renewal into raw information, so as to automatically update the address information of cable for measuring temperature.
In embodiments of the present invention, can by all branches of binary traversal algorithm traversal search sensor by turn, So as to the complete all address informations for obtaining sensor.
In embodiments of the present invention, carry out using in the renewal of sensor information on cable, whole process by grain temperature extension set Family need to only change failure cable and restart extension set, so that it may normally use, without any configuration of progress and setting.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (4)

1. a kind of update method of grain heap cable for measuring temperature, it is characterised in that applied to grain temperature extension set, including pre-save thermometric electricity The raw information of sensor on cable, in addition to:
Step 1:Obtain the address information of sensor on the cable for measuring temperature being connected with the grain temperature extension set;
Step 2:Judge that the address information whether there is in the raw information, if it does, by the raw information mark The first raw information is designated as, otherwise, the address information the first address information is labeled as;
Step 3:The raw information for being not labeled as the first raw information is labeled as the second raw information;
Step 4:Address information in second raw information is replaced with into the first address information, completes to update.
2. the update method of grain heap cable for measuring temperature as claimed in claim 1, it is characterised in that the raw information includes sensing The address information and positional information of device.
3. the update method of grain heap cable for measuring temperature as claimed in claim 1, it is characterised in that before the step 4, also wrap Include:
Coding rule is selected, judges whether first address information meets the coding rule, if met, step 4 is performed.
4. the update method of the grain heap cable for measuring temperature as described in claim any one of 1-3, it is characterised in that the step 1 is wrapped Include:
All branches of sensor described in traversal search, obtain the address information of the sensor representated by the branch by turn.
CN201710258787.5A 2017-04-19 2017-04-19 A kind of update method of grain heap cable for measuring temperature Pending CN106969856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710258787.5A CN106969856A (en) 2017-04-19 2017-04-19 A kind of update method of grain heap cable for measuring temperature

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710258787.5A CN106969856A (en) 2017-04-19 2017-04-19 A kind of update method of grain heap cable for measuring temperature

Publications (1)

Publication Number Publication Date
CN106969856A true CN106969856A (en) 2017-07-21

Family

ID=59332381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710258787.5A Pending CN106969856A (en) 2017-04-19 2017-04-19 A kind of update method of grain heap cable for measuring temperature

Country Status (1)

Country Link
CN (1) CN106969856A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515171A (en) * 2008-02-22 2009-08-26 当代天启技术(北京)有限公司 Intelligent control network system and networking method
CN102186287A (en) * 2011-04-02 2011-09-14 南开大学 Street lamp self-adaptive address discrimination control algorithm based on wireless sensor network
CN103067987A (en) * 2013-01-09 2013-04-24 大唐移动通信设备有限公司 User equipment location area updating method and device
CN103248546A (en) * 2012-02-08 2013-08-14 珠海格力电器股份有限公司 Multi-connected air conditioner, address assignment method of indoor unit thereof and outdoor unit
CN203894359U (en) * 2014-06-25 2014-10-22 安徽大学 Wireless field handheld digital cable detection system
CN205506257U (en) * 2015-08-31 2016-08-24 国网浙江省电力公司岱山县供电公司 Temperature monitoring means and system
US20160357800A1 (en) * 2015-06-04 2016-12-08 Mediatek Inc. Network switch and data base updating method
CN106505401A (en) * 2016-10-10 2017-03-15 北京阳光浩普科技发展有限公司 The method of cable for measuring temperature automatic numbering

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515171A (en) * 2008-02-22 2009-08-26 当代天启技术(北京)有限公司 Intelligent control network system and networking method
CN102186287A (en) * 2011-04-02 2011-09-14 南开大学 Street lamp self-adaptive address discrimination control algorithm based on wireless sensor network
CN103248546A (en) * 2012-02-08 2013-08-14 珠海格力电器股份有限公司 Multi-connected air conditioner, address assignment method of indoor unit thereof and outdoor unit
CN103067987A (en) * 2013-01-09 2013-04-24 大唐移动通信设备有限公司 User equipment location area updating method and device
CN203894359U (en) * 2014-06-25 2014-10-22 安徽大学 Wireless field handheld digital cable detection system
US20160357800A1 (en) * 2015-06-04 2016-12-08 Mediatek Inc. Network switch and data base updating method
CN205506257U (en) * 2015-08-31 2016-08-24 国网浙江省电力公司岱山县供电公司 Temperature monitoring means and system
CN106505401A (en) * 2016-10-10 2017-03-15 北京阳光浩普科技发展有限公司 The method of cable for measuring temperature automatic numbering

Similar Documents

Publication Publication Date Title
KR101675075B1 (en) Method and apparatus for non-volatile ram error re-mapping
CN102804146A (en) System And Method Of Tracking Error Data Within A Storage Device
CN102541676B (en) Method for detecting and mapping states of NAND FLASH
TWI502345B (en) Flash memory control chip and data storage device and flash memory control method
CN103823642B (en) For the method and system of the balanced storages of Flash
CN103699338B (en) A kind of method and apparatus downloading data
CN103218275B (en) Error in data restorative procedure, device and equipment
US20080155369A1 (en) Information processing apparatus, history management method
CN104215878A (en) Device and method for recording fault waveforms of power distribution lines
CN102236569A (en) Embedded system and starting method thereof
CN103226505B (en) A kind of method and apparatus verifying basic input-output system BIOS
CN105208627A (en) Method for automatically accessing wireless local area network
CN107733982A (en) A kind of method of data synchronization, terminal device, cloud server and system
CN104049999A (en) Automatic storage device repair system based on network and method thereof
CN103902408B (en) For detecting the method and system of the difference between reproducting content block
CN103079108B (en) The method of starter motor top box and Set Top Box
CN106969856A (en) A kind of update method of grain heap cable for measuring temperature
CN103631629A (en) Method for obtaining and automatically updating remote update file
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN105573872A (en) Hardware maintenance method and device of data storage system
CN104049998B (en) The processing method of upgrade package, device and equipment in a kind of android system
CN103885863B (en) The processing method and virtual machine of the system failure
CN112433498A (en) Redundant module implementation method, electronic equipment and storage medium
CN204269175U (en) Water meter intelligent processing system
CN109002253B (en) Method and device for processing damaged strip

Legal Events

Date Code Title Description
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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170721