Position detection method and device based on digital temperature sensor and storage medium

文档序号:191836 发布日期:2021-11-02 浏览:33次 中文

阅读说明:本技术 基于数字温度传感器的位置检测方法、装置及存储介质 (Position detection method and device based on digital temperature sensor and storage medium ) 是由 孙晓宇 梁东 张德宇 孟庆朴 于 2021-08-03 设计创作,主要内容包括:本申请提供了一种基于数字温度传感器的位置检测方法、装置及存储介质,涉及位置检测技术领域,包括如下步骤:对若干数字温度传感器进行编号排序;将完成编号排序的数字温度传感器的编号信息录入其内部的存储器;将存储器设置于数字温度传感器的位置信息录入电子标签,并将电子标签安装到指定位置;最后通过连接数字温度传感器读取其内部的编号信息,以使编号信息与指定位置一一对应,并在编号信息与指定位置一一对应后,以便于迅速检测到指定位置上损坏后的数字温度传感器,并对其进行替换,降低了总体成本,且便于后期维护。解决了传统数字温度传感器位置检测效率低的问题,提高了检测效率。(The application provides a position detection method, a position detection device and a storage medium based on a digital temperature sensor, which relate to the technical field of position detection and comprise the following steps: numbering and sequencing a plurality of digital temperature sensors; the number information of the digital temperature sensor with the number sorted is recorded into an internal memory; the method comprises the steps of recording position information of a memory on a digital temperature sensor into an electronic tag, and installing the electronic tag at a specified position; and finally, the number information inside the digital temperature sensor is read by connecting the digital temperature sensor, so that the number information corresponds to the designated position one by one, and after the number information corresponds to the designated position one by one, the damaged digital temperature sensor at the designated position is conveniently and rapidly detected and replaced, the overall cost is reduced, and the later maintenance is facilitated. The problem of traditional digital temperature sensor position detection inefficiency is solved, detection efficiency has been improved.)

1. A position detection method based on a digital temperature sensor is characterized by comprising the following steps:

numbering and sequencing a plurality of digital temperature sensors;

recording the number information of the digital temperature sensor with the number sorted into a memory inside the digital temperature sensor;

the position information of the memory arranged on the digital temperature sensor is recorded into an electronic tag, and the electronic tag is installed at a specified position;

and reading the number information inside the digital temperature sensor by connecting the digital temperature sensor so as to enable the number information to be in one-to-one correspondence with the specified positions.

2. The position detection method based on the digital temperature sensor as claimed in claim 1, wherein when detecting that the digital temperature sensor at the designated position needs to be replaced after the number information is in one-to-one correspondence with the designated position, the specific steps include:

replacing the digital temperature sensor needing to be replaced by using the digital temperature sensor with the same number information;

reading the temperature value of the replaced digital temperature sensor;

supplementing the temperature value to the location of the replaced digital temperature sensor.

3. The digital temperature sensor-based position detection method of claim 2, wherein the digital temperature sensor is a DS18B20 digital temperature sensor.

4. The position detection method based on the digital temperature sensor as claimed in claim 1, wherein the entry mode of the serial number information into the memory inside the digital temperature sensor is tool entry.

5. The digital temperature sensor-based position detection method of claim 4, wherein the memory is an electrically erasable programmable read only memory.

6. The digital temperature sensor-based position detection method of claim 1, wherein the type of the number information includes arabic numerals, roman numerals, and english alphabets.

7. A digital temperature sensor-based position sensing device, comprising:

the numbering and sequencing module (101) is used for numbering and sequencing the digital temperature sensors;

the information input module (102) is used for inputting the number information of the digital temperature sensor which finishes the numbering and sequencing into a memory inside the digital temperature sensor;

the recording and mounting module (103) is used for recording the position information of the memory arranged in the digital temperature sensor into an electronic tag and mounting the electronic tag at a specified position;

and the reading module (104) is connected with the digital temperature sensor and is used for reading the number information inside the digital temperature sensor so as to enable the number information to be in one-to-one correspondence with the specified position.

8. The digital temperature sensor-based position detection device of claim 7, further comprising a replacement module (105) for replacing the digital temperature sensor that needs to be replaced.

9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, causes the processor to carry out the steps of the digital temperature sensor-based position detection method of any one of claims 1 to 6.

Technical Field

The present invention relates to the field of position detection technologies, and in particular, to a position detection method and apparatus based on a digital temperature sensor, and a storage medium.

Background

Today, with an increasing degree of informatization, a machine room serving as a role of information processing and exchange is a data transmission center, a data processing center and a data exchange center of the whole information network engineering. In order to ensure that equipment in a machine room normally operates and a worker has a good working environment, the temperature and the humidity of the machine room are monitored in real time for 24 hours through a digital temperature sensor, and temperature and humidity measurement values of all positions can be displayed on a monitoring host machine of a central control room in real time. Once the numerical value exceeds the preset upper and lower temperature and humidity limits, the alarm can be given out by changing the numerical value color of the corresponding position on the monitoring host.

Traditional digital temperature sensors are respectively connected with a micro control unit through separate pins, as shown in fig. 1 to 3, the circuit connection is relatively complex, and the positions of the digital temperature sensors need to be determined according to the sequence of access of each digital temperature sensor. The method is characterized in that the position of the digital temperature sensor is determined through a 64-bit serial number of the digital temperature sensor, and the digital temperature sensor is connected with the position information of the digital temperature sensor in a manual mode.

Disclosure of Invention

In order to solve the problem of low position detection efficiency of the traditional digital temperature sensor, the application aims to provide a position detection method and device based on the digital temperature sensor and a storage medium.

In a first aspect, the present application provides a position detection method based on a digital temperature sensor, including:

numbering and sequencing a plurality of digital temperature sensors;

recording the number information of the digital temperature sensor with the number sorted into a memory inside the digital temperature sensor;

the position information of the memory arranged on the digital temperature sensor is recorded into an electronic tag, and the electronic tag is installed at a specified position;

and reading the number information inside the digital temperature sensor by connecting the digital temperature sensor so as to enable the number information to be in one-to-one correspondence with the specified positions.

By adopting the technical scheme, the serial numbers of the digital temperature sensors before leaving the factory are sorted according to the mode of numbers or English letters, then the number information of the digital temperature sensors with the numbers sorted is recorded into a memory inside the digital temperature sensors in a tooling mode, the memory is arranged in the position information of the digital temperature sensors and is recorded into the electronic tag, the electronic tag is arranged at a designated position, and the number information in the electronic tag is read by connecting a digital temperature sensor, so that the number information and the designated position can automatically correspond one to one, the number information stored in the memory is automatically in one-to-one correspondence with the designated position information of the electronic tag through the radio frequency identification technology, so that the damaged digital temperature sensor can be quickly detected in the subsequent detection, the detection efficiency is improved, and the problem of too high error rate of excessive manual connection is avoided.

Preferably, when it is detected that the digital temperature sensor at the designated position needs to be replaced after the number information corresponds to the designated position one to one, the specific steps include:

replacing the digital temperature sensor needing to be replaced by using the digital temperature sensor with the same number information; reading the temperature value of the replaced digital temperature sensor; supplementing the temperature value to the location of the replaced digital temperature sensor.

By adopting the technical scheme, after the number information and the designated position are in one-to-one correspondence, when the damaged digital sensor needs to be replaced, the digital temperature sensor needing to be replaced is replaced by the digital temperature sensor with the same number information, the temperature value of the replaced digital temperature sensor is read, and the temperature value is supplemented to the position of the replaced digital temperature sensor, so that the number information and the position information of the replaced digital temperature sensor are in one-to-one correspondence through the radio frequency identification technology of the electronic tag, and the number information and the position information are ensured to be always in a connection state.

Preferably, the digital temperature sensor is a DS18B20 digital temperature sensor.

By adopting the technical scheme, the DS18B20 digital temperature sensor has the characteristics of small volume, low hardware cost, strong anti-interference capability and high precision, and the digital temperature sensor of the type is mainly used in the application.

Preferably, the input mode of the serial number information into the memory inside the digital temperature sensor is tool input.

By adopting the technical scheme, the transmission efficiency of the memory in the digital temperature sensor for inputting the serial number information is improved in a tool inputting mode.

Preferably, the memory is an electrically erasable programmable read only memory.

By adopting the technical scheme, the EEPROM can erase the stored information on the chip by using specific voltage without ultraviolet irradiation or taking off so as to write new data and is convenient to use.

Preferably, the type of the number information includes arabic numerals, roman numerals, and english letters.

By adopting the technical scheme, the specific type of the number information can be flexibly numbered according to the personal operation habit of the staff.

In a second aspect, the present application provides a digital temperature sensor-based position detection apparatus, including: the numbering and sequencing module is used for numbering and sequencing the digital temperature sensors; the information input module is used for inputting the serial number information of the digital temperature sensor which finishes serial number sequencing into a memory inside the digital temperature sensor; the recording and mounting module is used for recording the position information of the memory in the digital temperature sensor into an electronic tag and mounting the electronic tag at a specified position; and the reading module is connected with the digital temperature sensor and is used for reading the number information in the digital temperature sensor so as to enable the number information to be in one-to-one correspondence with the specified positions.

Preferably, the system further comprises a replacement module for replacing the digital temperature sensor needing to be replaced.

By adopting the technical scheme, the terminal carries out numbering and sequencing on the digital temperature sensors by means of the numbering and sequencing module, then the numbering information of the digital temperature sensors completing numbering is recorded into the internal memory of the terminal through the information recording module, the position information of the memory arranged in the digital temperature sensors is recorded into the electronic tag through the recording and installing module, the electronic tag is installed at the appointed position, finally the digital temperature sensors are connected through the radio frequency identification technology to read the internal numbering information, the one-to-one correspondence between the numbering information and the appointed position is ensured, so that the digital temperature sensors needing to be replaced after being damaged can be rapidly detected in the follow-up process, the detection efficiency is improved, the overall cost is reduced, and the later maintenance is facilitated.

In a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the digital temperature sensor-based position detection method.

By adopting the technical scheme, the position detection method is presented in the form of computer readable codes and stored in the memory, and when the processor runs the computer readable codes in the memory, the steps of the position detection method are executed to obtain the processing result of the position detection based on the digital temperature sensor, and meanwhile, the efficiency of the position detection based on the digital temperature sensor is improved.

The application brings the following beneficial effects:

through the position detection method, the position detection device and the storage medium based on the digital temperature sensor, the detection efficiency is improved, the overall cost is reduced, meanwhile, the possibility of human errors can be effectively prevented through the mode of reducing manual connection, and later maintenance is facilitated.

Drawings

In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.

FIG. 1 is one of the schematic circuit connection diagrams of a conventional digital temperature sensor and a micro control unit provided in the background art;

FIG. 2 is a second schematic diagram of the circuit connection between the conventional digital temperature sensor and the micro-control unit provided in the prior art;

FIG. 3 is a third schematic diagram of the circuit connection between the conventional digital temperature sensor and the micro-control unit provided in the background art;

FIG. 4 is a flow chart of a digital temperature sensor based position detection method provided herein;

FIG. 5 is a second flowchart of a digital temperature sensor-based position detection method provided in the present application;

FIG. 6 is a schematic diagram of the electrical connections of the DS18B20 digital temperature sensor and the micro control unit provided herein;

FIG. 7 is a schematic structural diagram of a digital temperature sensor-based position detection device provided in the present application;

in the figure:

a numbering and sequencing module 101, an information entry module 102, an entry installation module 103, a reading module 104 and a replacement module 105.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

As shown in fig. 4, a position detection method based on a digital temperature sensor includes the following steps:

and step S1, numbering and sequencing the digital temperature sensors.

Specifically, according to the position detection method based on the digital temperature sensors, before the digital temperature sensors leave a factory, each digital temperature sensor is numbered and sequenced according to actual engineering application for distinguishing different digital temperature sensors, wherein the numbering mode can be used for numbering and sequencing different digital temperature sensors in a mode of Arabic numerals 1-7, Roman numerals I-IV or English letters A-C according to personal common habits of workers.

It should be noted that the digital temperature sensor in this embodiment mainly adopts a model number DS28B20, outputs a digital signal, and has the characteristics of small volume, low hardware cost, strong anti-interference capability, and high accuracy. And the DS18B20 digital temperature sensor is convenient to connect with the MCU or other control devices, and can be applied to various occasions and unique single-wire interface modes after packaging. The DS18B20 digital temperature sensor is connected with the micro control unit, and can realize the two-way communication between the micro control unit and the DS18B20 digital temperature sensor, and simultaneously, because each DS18B20 digital temperature sensor comprises a unique 64-bit serial number, a plurality of DS18B20 digital temperature sensors can simultaneously exist on one bus, so that the DS18B20 digital temperature sensors can be placed in a plurality of different places to directly read related temperature physical quantity and humidity physical quantity, and are converted into sensors of digital quantity which can be directly read by a computer or a data acquisition device such as a MCU through an internal humidity sensitive element and a corresponding circuit.

And step S2, recording the number information of the digital temperature sensors with the numbers sorted into the memory inside the digital temperature sensors.

Specifically, after a plurality of digital temperature sensors finish numbering and sequencing, number information of the digital temperature sensors finish numbering and sequencing is recorded into a memory inside the digital temperature sensors through a tool, wherein the memory in the embodiment mainly adopts an electrically Erasable Programmable read only memory (eeprom), which is abbreviated as an eeprom (electrically Erasable Programmable read only memory), and is a memory chip with no data loss after power failure. The EEPROM can erase the existing information on a computer or special equipment, and is plug-and-play, convenient and fast. The serial number information is also commonly used in the interface card for storing hardware setting data, so that the serial number information in the embodiment can be safely stored in the interface card and is not easy to lose.

And step S3, arranging the memory on the position information recording electronic label of the digital temperature sensor, and installing the electronic label on a specified position.

And step S4, reading the number information inside the digital temperature sensor by connecting the digital temperature sensor, so that the number information corresponds to the designated position one by one.

After the number information is written into the memory, the memory is arranged in the position information of the digital temperature sensor to be recorded into the electronic tag, and the electronic tag is installed at a specified position. The electronic tag comprises an RFID circuit, in particular an RFID chip comprising an RFID radio frequency part and an ultra thin antenna loop, and compared to other ID technologies such as bar codes or magnetic strips, the transceiver technology has the advantage of a wireless link between the reader and the transceiver, and the transceiver is not sensitive to moisture, dirt and mechanical influences, and is particularly suitable for use in a computer room where the digital temperature sensor is used.

Meanwhile, considering that the technical parameters of the electronic tag are mainly related to the energy requirement of tag activation, the reading and writing speed of tag information, the transmission efficiency of the tag information, the capacity of the tag information, the packaging size of the tag, the reliability of the tag, the working frequency of the tag, the price of the tag and the reading and writing distance of the tag, especially the reading and writing distance of the tag, the electronic tag can be excited by a radio frequency signal sent by a reader-writer after entering a working area of the reader-writer so as to enable the electronic tag to enter a working state, namely, the electronic tag has a requirement on the installation position and needs to be installed at a specified position according to actual installation requirements. And then, the number information in the digital temperature sensor is read by connecting the digital temperature sensor, so that the number information and the specified position automatically correspond one to one, and the digital temperature sensor is used for rapidly detecting the position of the damaged digital temperature sensor after a certain digital temperature sensor is damaged and replacing the position with the digital sensor with the same number information.

Further, when detecting that the digital temperature sensor at the designated position needs to be replaced after the number information automatically corresponds to the designated position one by one, as shown in fig. 2, the specific steps include:

step S5, replacing the digital temperature sensor to be replaced by using the digital temperature sensor with the same number information;

step S6, reading the temperature value of the replaced digital temperature sensor;

step S7, the temperature value is supplemented to the location of the replaced digital temperature sensor.

In this embodiment, after the number information and the designated position are automatically in one-to-one correspondence, and after a certain digital temperature sensor is detected to be damaged, when replacement is required, the position of the damaged digital temperature sensor can be quickly located, the damaged digital temperature sensor is replaced by using the same digital temperature sensor with the same number information, the temperature value of the digital temperature sensor after digital replacement is read after the replacement is completed, and the temperature value is supplemented to the position of the replaced digital temperature sensor, so that the number information in the replaced digital temperature sensor is still in one-to-one correspondence with the designated position.

In summary, considering that the DS28B20 digital temperature sensor has the characteristics of small volume, low hardware cost, strong anti-interference capability and high precision, the digital temperature sensor in this embodiment is mainly a DS28B20 digital temperature sensor, and before the DS28B20 digital temperature sensor leaves the factory, each DS28B20 digital temperature sensor is numbered and sequenced, and the content of the number information is recorded into a memory inside the DS28B20 digital temperature sensor by means of tooling, and at the same time, the position information of the memory arranged in the DS28B20 digital temperature sensor is recorded into an electronic tag, and the electronic tag is mounted at a designated position (for example, a position a, B position and C position) as required, so as to avoid the problem that the information inside the tag cannot be read due to too far distance between the electronic tag and a reader-writer, and then the number information inside the digital temperature sensor is read by connecting the DS28B20 digital temperature sensor, the number information and the electronic tag designated installation device are in one-to-one correspondence, as shown in fig. 6, specifically, the electronic tag designated installation positions a, B and C in the microprocessing unit MCU are in one-to-one correspondence with numbers 1, 2 and 3 of the DS28B20 digital temperature sensors respectively, and then are connected with DS28B20 digital temperature sensors with different numbers in a single-bus passing manner, wherein power supplies of the DS28B20 digital temperature sensors with different numbers are provided by 5 VDC.

In the present embodiment, a position detecting apparatus based on a digital temperature sensor, as shown in fig. 7, includes: the system comprises a numbering and sequencing module 101, an information entry module 102, an entry installation module 103, a reading module 104 and a replacement module 105, wherein the numbering and sequencing module 101 is used for numbering and sequencing a plurality of digital temperature sensors; the information input module 102 is used for inputting the number information of the digital temperature sensors with the numbers sorted into a memory inside the digital temperature sensors; the recording and installing module 103 is used for recording the position information of the memory in the digital temperature sensor into an electronic tag and installing the electronic tag to a specified position according to a preset requirement; the reading module 104 is connected with the digital temperature sensor and used for reading the number information inside the digital temperature sensor so as to enable the number information to be in one-to-one correspondence with the specified positions; and a replacement module 105 for replacing the digital temperature sensor which needs to be replaced.

In this embodiment, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor is enabled to execute the steps of the digital temperature sensor-based position detection method.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In addition, in the description of the embodiments of the present application, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.

The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:超微特征防伪芯片及其生产方法和鉴别方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!