CN109855746A - Temperature value transmitting device and its method - Google Patents
Temperature value transmitting device and its method Download PDFInfo
- Publication number
- CN109855746A CN109855746A CN201910059532.5A CN201910059532A CN109855746A CN 109855746 A CN109855746 A CN 109855746A CN 201910059532 A CN201910059532 A CN 201910059532A CN 109855746 A CN109855746 A CN 109855746A
- Authority
- CN
- China
- Prior art keywords
- temperature value
- temperature
- pulses
- pulse signal
- value
- 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.)
- Granted
Links
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The present invention provides a kind of temperature value transmitting device and its method, the temperature value transmitting device includes: temperature sensor, the data line of controller and the connection temperature sensor and controller, ground wire, the temperature sensor, controller, data line and ground wire collectively form a circuit, wherein, the temperature sensor is for obtaining temperature value, the data line is used for transmission pulse signal to the controller, the number of pulses of the pulse signal is for characterizing the temperature value, in summary, the temperature value transmitting device can not only transmit temperature value, and structure is simply at low cost.
Description
Technical field
The present invention relates to data communication technology field more particularly to a kind of temperature value transmitting device and its methods.
Background technique
Temperature sensor is a kind of common equipment, and in practice, temperature sensor would generally be by transmitting device by institute
Several temperature values of acquisition are sent to controller, so that controller can be handled several temperature values, it is possible to understand that
, under the premise for meeting performance, the transmitting device is simpler, the lower cost the better.
Therefore, a kind of simple and at low cost temperature value transmitting device is designed, a urgent problem to be solved is just become.
Summary of the invention
The purpose of the present invention is to provide a kind of temperature value transmitting device and its methods.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of temperature value transmitting device, packet
It includes: data line, the ground wire of temperature sensor, controller and the connection temperature sensor and controller, the temperature sensing
Device, controller, data line and ground wire collectively form a circuit, wherein the temperature sensor is described for obtaining temperature value
Data line is used for transmission pulse signal to the controller, and the number of pulses of the pulse signal is for characterizing the temperature value.
As the further improvement of an embodiment of the present invention, the number of pulses meets formula: number of pulses=(temperature
Value-m)/k, wherein m is reference value, and k is used to characterize the detection accuracy of the temperature sensor, and the number of pulses is positive whole
Number;The controller obtains being received for receiving the pulse signal according to formula " temperature value=number of pulses * k+m "
Temperature value.
As the further improvement of an embodiment of the present invention, the temperature detection range of the temperature sensor is [a, b],
M is less than a.
As the further improvement of an embodiment of the present invention, the data line is also used to transmit electric energy to the temperature and passes
Sensor.
As the further improvement of an embodiment of the present invention, the data line is used for transmission several pulse signals to described
Controller, and there is time interval between successive pulse signals.
The embodiment of the invention also provides a kind of temperature value transmission methods, comprising the following steps: obtains temperature value, obtains arteries and veins
Signal is rushed, the number of pulses of the pulse signal is for characterizing the temperature value;Send the pulse signal.
It is further comprising the steps of as the further improvement of an embodiment of the present invention: return pulse signal, according to described in
Number of pulses in pulse signal obtains the received temperature value of institute.
As the further improvement of an embodiment of the present invention, described " number of pulses of pulse signal is described for characterizing
Temperature value " specifically includes: number of pulses=(temperature value-m)/k, wherein m is reference value, and k is for characterizing the temperature sensor
Detection accuracy, the number of pulses be positive integer;It is described " it is received to obtain institute according to the number of pulses in the pulse signal
Temperature value " specifically includes: obtaining a received temperature value according to formula " temperature value=number of pulses * k+m ".
As the further improvement of an embodiment of the present invention, described " number of pulses of pulse signal is described for characterizing
Temperature value " specifically includes: number of pulses=(temperature value-m)/k, wherein m is reference value, and k is for characterizing the temperature sensor
Detection accuracy, the digit of the lowest order of m and k is identical, and the temperature detection range of the temperature sensor is [a, b], and m is small
In a;" the obtaining the received temperature value of institute according to the number of pulses in the pulse signal " specifically includes: according to formula " temperature
Angle value=number of pulses * k+m " obtains the received temperature value of institute.
The embodiment of the invention also provides a kind of temperature value transmitting devices, comprise the following modules: initialization module, for obtaining
Temperature value is taken, obtains pulse signal, the number of pulses of the pulse signal is for characterizing the temperature value;Pulse signal sends mould
Block, for sending the pulse signal.
Compared with the existing technology, the technical effects of the invention are that: the embodiment of the present invention provides a kind of temperature value transmission dress
It sets and its method, the temperature value transmitting device includes: temperature sensor, controller and the connection temperature sensor and control
Data line, the ground wire of device processed, the temperature sensor, controller, data line and ground wire collectively form a circuit, wherein institute
It states temperature sensor and is used for transmission pulse signal to the controller, the pulse letter for obtaining temperature value, the data line
Number number of pulses for characterizing the temperature value, in conclusion the temperature value transmitting device can not only transmit temperature value, and
Structure is simply at low cost.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the temperature value transmitting device in the embodiment of the present invention;
Fig. 2 is the First Principle figure of the transmission temperature value in the embodiment of the present invention;
Fig. 3 is the second schematic diagram of the transmission temperature value in the embodiment of the present invention;
Fig. 4 is the flow diagram of the method for the transmission temperature value in the embodiment of the present invention;
Fig. 5 is the flow diagram of the method for the transmission temperature value in the embodiment of the present invention;
Fig. 6 is the flow diagram of the method for the reception temperature value in the embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to various embodiments shown in the accompanying drawings.But these embodiments are not
The limitation present invention, structure that those skilled in the art are made according to these embodiments, method or change functionally
It changes and is included within the scope of protection of the present invention.
The term of the representation space relative position used herein such as "upper", " top ", "lower", " lower section " is for just
A unit as shown in the drawings or feature are described relative to another unit or the relationship of feature in the purpose of explanation.It is empty
Between the term of relative position can be intended to include different direction of the equipment in use or work other than orientation as shown in the figure.
For example, the unit for being described as being located at other units or feature " below " or " under " will if the equipment in figure overturn
Positioned at other units or feature " top ".Therefore, exemplary term " lower section " can include above and below both orientation.If
It is standby to be otherwise directed (be rotated by 90 ° or other directions), and be interpreted accordingly used herein with space correlation
Language is described.
Also, it should be understood that although term first, second etc. can be used to describe herein various elements or
Structure, but these are described object and should not be limited by these terms.These terms are only used to by these description objects that
This is distinguished.For example, first interface can be referred to as second interface, and similarly second interface can also be referred to as first and connect
Mouthful, this protection scope without departing from the application.
The embodiment of the present invention one provides a kind of temperature value transmitting device, as shown in Figure 1, comprising:
Data line 3, the ground wire 4 of temperature sensor 1, controller 2 and the connection temperature sensor 1 and controller 2, institute
It states temperature sensor 1, controller 2, data line 3 and ground wire 4 and collectively forms a circuit, wherein the temperature sensor 1 is used for
Temperature value is obtained, the data line 3 is used for transmission pulse signal to the controller 2, and the number of pulses of the pulse signal is used
In the characterization temperature value.
Here, controller 2 can be a micro-control unit (Microcontroller Unit, MCU).In temperature sensing
It is only provided only with two conducting wires (i.e. data line 3 and ground wire 4) between device 1 and controller 2, and gets temperature in temperature sensor
When value, which will be converted into a positive integer Num, then send a pulse signal to controller 2, pulse letter
The quantity of pulse in number is Num, it is to be understood that controller 2 can be according to the arteries and veins in received pulse signal
Rush quantitative value and obtain the received temperature value of institute, in conclusion the temperature value transmitting device have the advantages that it is simple and at low cost.
Preferably, the number of pulses meets formula: number of pulses=(temperature value-m)/k, wherein m is reference value, and k is used
In the detection accuracy for characterizing the temperature sensor, the number of pulses is positive integer;The controller 2 is for receiving the arteries and veins
Signal is rushed, and obtains the received temperature value of institute according to formula " temperature value=number of pulses * k+m ".Here, to make number of pulses
For positive integer, therefore, it is necessary to make " temperature value-m " identical as the sign symbol of k, and the integral multiple that " temperature value-m " is k is
It can.
Preferably, the temperature detection range of the temperature sensor is [a, b], and m is less than a.Here, due to m < a,
The value of " temperature value-m " is greater than zero, and since k is greater than zero, then number of pulses is just positive number.
Preferably, the data line 3 is also used to transmit electric energy to the temperature sensor 1.Here, controller 2 can lead to
Cross data line 3 to temperature sensor 1 provide electric energy, i.e., data line 3 can either transmission pulse signal, electric energy can be transmitted by having, because
This can effectively reduce the cost of the temperature value transmitting device.
Here, when the voltage value on data line 3 is zero, then controller 2 provides electric energy, temperature without normal direction temperature sensor 1
Degree sensor 1 does not work;When the voltage value of data line 3 is equal to preset voltage value, (preset voltage value is in the temperature sensor 1
Operating voltage range within) when, temperature sensor 1 can receive electric energy from data line 3, and work.Here it is possible to manage
Solution, controller 2 can control whether temperature sensor 1 works by the voltage on control data line 3.Here it is possible to
Energy storage device (such as: inductance or capacitor etc.) is provided in temperature sensor 1, when the voltage value on data line 3 is zero,
Temperature sensor 1 can be used the electric energy in energy storage device and work on, it is to be understood that be stored in these energy storage devices
Electric energy be limited, therefore, when the time that the voltage value on data line 3 is zero be greater than the first preset time value when, the energy storage
Electric energy in device is depleted, and temperature sensor may turn off.Optionally, as shown in Figure 1, ground wire 4 is grounded, therefore, data line 3
On voltage value be for ground wire 4.
Optionally, as shown in Figure 1, first interface 21 and second interface 22 can be set on controller 2, first,
Two interfaces are connect with data line 3, and first interface 21 is connected to data line 3 by resistance R.Here, resistance R is that can be understood as
One pull-up (Pull Up) resistance, so as to which the current potential on data line 3 is pulled to preset voltage value, here, first,
Two interfaces can be universal input/output interface (GPIO, General Purpose Input Output).Temperature sensor 1
In DQ pin be connected to data line 3.
Here, Fig. 2 shows a kind of working principle diagram of the temperature value transmitting device, in situation shown in Fig. 2, temperature is passed
Sensor 1 only sends a temperature value to controller 2 every time.At the T1 ' moment, controller 2 will be on data line 3 by first interface 21
Voltage be pulled up to preset voltage value, then temperature sensor 1 begins to work, and within T1 '~T2 ' this period, temperature is passed
Sensor 1 obtains temperature value and simultaneously calculates number of pulses, within T2 '~T3 ' this period, is sent pulse signal by data line 3
To controller 2, at the T3 ' moment, temperature sensor 1 has sent pulse signal;Later, controller 2 will be counted by first interface 21
It is set as preset voltage value according to the voltage on line 3, is set as zero at the T4 ' moment, and after the first preset time value, temperature passes
Sensor 1 stops working.
Preferably, the data line 3 is used for transmission several pulse signals to the controller 2, and successive pulse signals it
Between have time interval.Here, controller 2 is that temperature sensor 1 provides electric energy, the acquisition temperature that temperature sensor 1 can continue
Temperature value is simultaneously sent to controller 2 by pulse signal by angle value, and has a time interval between two pulse signals
(for ease of description, the duration of the time interval is described with the second preset time value), so that controller 2 can be by phase
Adjacent pulse signal distinguishes, and can effectively prevent wrong generation.
Here, Fig. 3 shows a kind of working principle diagram of the temperature value transmitting device, and in situation shown in Fig. 3, temperature is passed
Sensor 1 can send multiple temperature values to controller 2 every time.At the T1 moment, the voltage on data line 3 is pulled up to by controller 2
Preset voltage value, then temperature sensor 1 begins to work, and within T1~T2 this period, temperature sensor 1 obtains temperature value
And number of pulses is calculated, within T2~T3 this period, pulse signal is sent to by controller 2 by data line 3, in T3
It carves, temperature sensor 1 has sent pulse signal;Later, in T3~T4 (time interval=the second described in T4-T3=this period
Preset time value) in, temperature value is obtained, obtains number of pulses according to formula " number of pulses=(temperature value-m) ÷ k ", and in T4
In~T5 this period, pulse signal is sent to by controller 2 by data line 3, at the T5 moment, temperature sensor 1 has been sent
Pulse signal;Later, in T5~T6 this period (time interval described in T6-T5==the second preset time value), temperature is obtained
Angle value obtains number of pulses according to formula " number of pulses=(temperature value-m) ÷ k ", and within T6~T7 this period, passes through
Pulse signal is sent to controller 2 by data line 3, and at the T7 moment, temperature sensor 1 has sent pulse signal, later, controller
2 by the voltage on data line 3 remain preset voltage value (it is understood that the duration need to be less than second it is default when
Between be worth), be set as zero later, and after the first preset time, temperature sensor 1 stops working.It is understood that scheming
In situation shown in 3, it is more than or equal to the time interval when the voltage of data line 3 is in preset voltage value and duration, then
Indicating pulse signal corresponding to a temperature value, have can for pulse signal corresponding to end of transmission and next temperature value
Transmission can be begun preparing, so that controller 2 can distinguish two different pulse signals;In situation shown in Fig. 3, the pulse
The high level of signal is equal to preset voltage value, and low level is equal to zero.It is understood that when the pulse signal is in high level
When, temperature sensor 1 can obtain electric energy from data line 3;In addition, the time in the pulse signal, between two pulses
Interval needs to be less than the first preset time value, and otherwise temperature sensor 1 is possible to stop working;It is understood that this is only
It is only a signal, the high level of the pulse signal and low level value can be set according to the actual situation, for example, working as low electricity
When flat value is greater than zero, then controller 2 can be continuously temperature sensor 1 and provide electric energy (here, it is desirable that high level, low level
All in the operating voltage range of the temperature sensor 1).In situation shown in Fig. 3, which is unidirectional square wave, can
With understanding, which can also be the waveform of other forms.
Second embodiment of the present invention provides a kind of temperature value transmission methods, as shown in Figure 4, comprising the following steps:
Step 401: obtaining temperature value, obtain pulse signal, the number of pulses of the pulse signal is for characterizing the temperature
Angle value;
Step 401: sending the pulse signal.
Preferably, further comprising the steps of: return pulse signal obtains institute according to the number of pulses in the pulse signal
Received temperature value.
Preferably, described " number of pulses of pulse signal is for characterizing the temperature value " specifically includes: number of pulses=
Temperature value-m/k, wherein m is reference value, and k is used to characterize the detection accuracy of the temperature sensor, and the number of pulses is positive
Integer;
" the obtaining the received temperature value of institute according to the number of pulses in the pulse signal " specifically includes: according to formula
" temperature value=number of pulses * k+m " obtains the received temperature value of institute.
Preferably, described " number of pulses of pulse signal is for characterizing the temperature value " specifically includes: number of pulses=
(temperature value-m)/k, wherein m is reference value, and k is used to characterize the detection accuracy of the temperature sensor, the lowest order of m and k
Digit is identical, and the temperature detection range of the temperature sensor is [a, b], and m is less than a;
" the obtaining the received temperature value of institute according to the number of pulses in the pulse signal " specifically includes: according to formula
" temperature value=number of pulses * k+m " obtains the received temperature value of institute.Here it is possible to understand, each temperature sensor has
Its temperature detection range and detection accuracy, for example, the temperature detection range of a temperature sensor can be -10 DEG C~100 DEG C,
Detection accuracy can be 0.01 DEG C, then it is understood that m needs to be less than -10 DEG C, the lowest order that 0.01 DEG C of precision is percentage
Position and digit be 1 percent;The lowest order of m be also percentile and digit is also 1 percent, then " temperature
The result of angle value-m " is 0.01 DEG C of precision of positive integer times certainly.
The embodiment of the invention also provides a kind of temperature value transmitting devices, comprise the following modules:
Initialization module obtains pulse signal, the number of pulses of the pulse signal is for characterizing for obtaining temperature value
The temperature value;
Pulse signal sending module, for sending the pulse signal.
The embodiment of the present invention three provides a kind of method of the transmission temperature value of temperature sensor 1, as shown in figure 5, including
Following steps:
Step 501: temperature value is obtained, obtains number of pulses Num according to formula " number of pulses=(temperature value-m) ÷ k ",
The formula makes the number of pulses Num be positive integer;Here, to make number of pulses Num is positive integer, therefore, it is necessary to
So that " temperature value-m " is identical as the sign symbol of k, and " temperature value-m " is the integral multiple of k.
Step 502: pulse signal being issued by data line 3, the quantity of the pulse in the pulse signal is equal to the arteries and veins
Rush quantity Num.
Here, in Fig. 2, at the T1 ' moment, the voltage on data line 3 is pulled up to preset voltage value by controller 2, then
Temperature sensor 1 begins to work, and within T1 '~T2 ' this period, temperature sensor 1 executes step 501, in T2 '~T3 '
In this period, pulse signal is sent to by controller 2 by data line 3, at the T3 ' moment, temperature sensor 1 has sent pulse
Signal;Later, the voltage on data line 3 is set preset voltage value by controller 2, is set as zero at the T4 ' moment, and first
After preset time, temperature sensor 1 stops working.
Optionally, further comprising the steps of:
Following operation is continuously carried out, is zero and continues the first preset time value until detecting the voltage value of data line 3;Institute
Stating operation includes: to wait the second preset time value, obtains temperature value, is obtained according to formula " number of pulses=(temperature value-m) ÷ k "
To number of pulses Num, the formula makes the number of pulses Num be positive integer, issues pulse signal, institute by data line 3
The quantity for stating the pulse in pulse signal is equal to number of pulses Num.
Here, as shown in figure 3, at the T1 moment, the voltage on data line 3 is pulled up to preset voltage value by controller 2, then
Temperature sensor 1 begins to work, and within T1~T2 this period, temperature sensor 1 executes step 501, in this section of T2~T3
In time, pulse signal is sent to by controller 2 by data line 3, at the T3 moment, temperature sensor 1 has sent pulse signal;
Later, within T3~T4 this period, temperature sensor 1 obtains temperature value after waiting the second preset time value, according to public
Formula " number of pulses=(temperature value-m) ÷ k " obtains number of pulses Num, and within T4~T5 this period, will by data line 3
Pulse signal is sent to controller 2, and at the T5 moment, temperature sensor 1 has sent pulse signal;Later, in this section of T5~T6
In, temperature sensor obtains temperature value after waiting the second preset time value, according to formula " number of pulses=(temperature
Value-m) ÷ k " obtains number of pulses Num, and within T6~T7 this period, pulse signal is sent to control by data line 3
Device 2, at the T7 moment, temperature sensor 1 has sent pulse signal, and later, controller 2 remains the voltage on data line 3 pre-
If voltage value (it is understood that the duration needs to be less than the second preset time value), is set as zero, and first later
After preset time, temperature sensor 1 stops working.It is understood that in situation shown in Fig. 3, when the electricity of data line 3
Pressure is in preset voltage value and the duration is more than or equal to the second preset time value, then it represents that pulse corresponding to a temperature value
Pulse signal corresponding to end of transmission and next temperature value is possible to begin preparing transmission signal, thus controller 2
Two different pulse signals can be distinguished;In situation shown in Fig. 3, the high level of the pulse signal is equal to predeterminated voltage
Value, low level are equal to zero.It is understood that temperature sensor 1 can be from data line when the pulse signal is in high level
Electric energy is obtained in 3;In addition, the time interval between two pulses needs to be less than the first preset time value in the pulse signal,
Otherwise temperature sensor is possible to stop working;It is understood that this is only a signal, the height electricity of the pulse signal
Gentle low level value can be set according to the actual situation, for example, then controller 2 can be with when low level value is greater than zero
It is continuously temperature sensor 1 and provides electric energy (here, it is desirable that high level, low level are all in the operating voltage model of the temperature sensor 1
In enclosing).In situation shown in Fig. 3, which is unidirectional square wave, it is to be understood that the pulse signal can also be
The waveform of other forms.
Optionally, in the pulse signal, the duration of a pulse needs to be less than the second preset value.
Optionally, described to obtain number of pulses according to formula " number of pulses=(temperature value-m) ÷ k " and include:
Number of pulses is obtained according to formula " number of pulses=(temperature value-m) ÷ k ", wherein m is less than the temperature sensing
Temperature detection range in minimum value, k is the detection accuracy of the temperature sensor, and the lowest order of m and the detection are smart
The digit of the lowest order of degree is identical.
Here it is possible to understand, each temperature sensor has its temperature detection range and detection accuracy, for example, one
The temperature detection range of a temperature sensor can be -10 DEG C~100 DEG C, detection accuracy can be 0.01 DEG C, then it is understood that
, m needs to be less than -10 DEG C, and the lowest order that 0.01 DEG C of detection accuracy is percentile and digit is 1 percent;M is most
Low level be also percentile and digit is also 1 percent, then the result of " temperature value-m " is 0.01 DEG C of precision certainly
Positive integer times.
The embodiment of the present invention has been also provided to a kind of device of transmission temperature value for temperature sensor 1, including following
Module:
Preprocessing module obtains umber of pulse according to formula " number of pulses=(temperature value-m) ÷ k " for obtaining temperature value
Num is measured, the formula makes the number of pulses Num be positive integer;
Pulse sending module, for issuing pulse signal, the quantity etc. of the pulse in the pulse signal by data line 3
In number of pulses Num.
The embodiment of the present invention four provides a kind of method of reception temperature value for controller 2, as shown in fig. 6, including
Following steps:
Step 601: preset voltage value is set for the voltage on data line 3 by first interface 21;Here, work as controller
When 2 needs receive temperature value from temperature sensor 1, preset voltage value will be set by the voltage value on data line 3, this is default
Voltage value is greater than zero.
Step 602: the pulse signal on data line 3 is persistently obtained by second interface 22, until the voltage on data line 3
For preset voltage value and the duration is more than or equal to the second preset time value;Obtain the umber of pulse of the pulse in the pulse signal
Measure Num, temperature value=number of pulses Num*k+m transmitted by temperature sensor 1.Here, the value Yu embodiment one of k and reality
The value for applying the k in example two is identical, and the value of m is identical as the value of m in embodiment one and embodiment two.
Preferably, further comprising the steps of: to set zero for the voltage on data line 3.Here, as shown in figure 4, when control
Device 2 is receiving temperature value transmitted by temperature sensor 1, later, directly can set zero for the voltage on data line 3,
To which temperature sensor 1 will stop working, i.e., controller 2 controls temperature sensor every time and only sends a temperature value, from
And it can effectively avoid the generation of mistake.Optionally, if controller 2 also needs to receive again transmitted by temperature sensor 1
Temperature value, can after setting zero for the voltage on data line 3, after being spaced the first preset time, then again will
Voltage on data line 3 is set as preset voltage value.
Preferably, following operation is continuously carried out, until the instruction for stopping receiving temperature value is received, later by data line 3
On voltage be set as zero;The operation includes: the pulse signal persistently obtained on data line 3 by second interface 22, until
Voltage on data line 3 is preset voltage value and the duration is more than or equal to the second preset time value, obtains the pulse signal
In pulse number of pulses Num, temperature value=number of pulses Num*k+m transmitted by temperature sensor 1.Here, such as
Shown in Fig. 3, controller 2 can every secondary control temperature sensor send multiple temperature values, so as to greatly improve temperature value
The speed of transmission.
The embodiment of the invention also provides a kind of devices of reception temperature value for controller, comprise the following modules:
Initialization module, for setting preset voltage value for the voltage on data line 3 by first interface 21;
Temperature value receiving module, for persistently obtaining the pulse signal on data line 3 by second interface 22, until data
Voltage on line 3 is preset voltage value and the duration is more than or equal to the second preset time value;It obtains in the pulse signal
The number of pulses Num of pulse, temperature value=number of pulses Num*k+m transmitted by temperature sensor 1.
In conclusion being only provided only with two conducting wire (i.e. data in the present invention, between temperature sensor 1 and controller 2
Line 3, ground wire 4), controller 2 can either transmit electric energy to temperature sensor 1 by two conducting wires, thus 1 energy of temperature sensor
Enough collecting temperature values, and the temperature value detected can be sent to controller 2 by two conducting wires;In addition, by
It is no to provide electric energy to temperature sensor 1, so that controller 2 can control whether temperature sensor 1 works.I.e. this control mode
It is very simple and cost is relatively low.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one
A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say
As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book
With the other embodiments of understanding.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of temperature value transmitting device characterized by comprising
Data line, the ground wire of temperature sensor, controller and the connection temperature sensor and controller, the temperature sensing
Device, controller, data line and ground wire collectively form a circuit, wherein the temperature sensor is described for obtaining temperature value
Data line is used for transmission pulse signal to the controller, and the number of pulses of the pulse signal is for characterizing the temperature value.
2. temperature value transmitting device according to claim 1, it is characterised in that:
The number of pulses meets formula: number of pulses=(temperature value-m)/k, wherein m is reference value, and k is described for characterizing
The detection accuracy of temperature sensor, the number of pulses are positive integer;
The controller obtains being received for receiving the pulse signal according to formula " temperature value=number of pulses * k+m "
Temperature value.
3. temperature value transmitting device according to claim 2, it is characterised in that:
The temperature detection range of the temperature sensor is [a, b], and m is less than a.
4. temperature value transmitting device according to claim 1, it is characterised in that:
The data line is also used to transmit electric energy to the temperature sensor.
5. temperature value transmitting device according to claim 1, it is characterised in that:
The data line was used for transmission several pulse signals and has to the controller, and between successive pulse signals between the time
Every.
6. a kind of temperature value transmission method, which comprises the following steps:
Temperature value is obtained, obtains pulse signal, the number of pulses of the pulse signal is for characterizing the temperature value;
Send the pulse signal.
7. temperature value transmission method according to claim 6, which is characterized in that further comprising the steps of:
Return pulse signal obtains the received temperature value of institute according to the number of pulses in the pulse signal.
8. temperature value transmission method according to claim 6, which is characterized in that
" number of pulses of pulse signal is for the characterizing the temperature value " specifically includes: number of pulses=(temperature value-m)/
K, wherein m is reference value, and k is used to characterize the detection accuracy of the temperature sensor, and the number of pulses is positive integer;
" the obtaining the received temperature value of institute according to the number of pulses in the pulse signal " specifically includes: according to formula " temperature
Angle value=number of pulses * k+m " obtains the received temperature value of institute.
9. temperature value transmission method according to claim 6, it is characterised in that:
" number of pulses of pulse signal is for the characterizing the temperature value " specifically includes: number of pulses=(temperature value-m)/
K, wherein m is reference value, and k is used to characterize the detection accuracy of the temperature sensor, digit's phase of the lowest order of m and k
Together, the temperature detection range of the temperature sensor is [a, b], and m is less than a;
" the obtaining the received temperature value of institute according to the number of pulses in the pulse signal " specifically includes: according to formula " temperature
Angle value=number of pulses * k+m " obtains the received temperature value of institute.
10. a kind of temperature value transmitting device, which is characterized in that comprise the following modules:
Initialization module obtains pulse signal, the number of pulses of the pulse signal is described for characterizing for obtaining temperature value
Temperature value;
Pulse signal sending module, for sending the pulse signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910059532.5A CN109855746B (en) | 2019-01-22 | 2019-01-22 | Temperature value transmission device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910059532.5A CN109855746B (en) | 2019-01-22 | 2019-01-22 | Temperature value transmission device and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109855746A true CN109855746A (en) | 2019-06-07 |
CN109855746B CN109855746B (en) | 2023-08-29 |
Family
ID=66895836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910059532.5A Active CN109855746B (en) | 2019-01-22 | 2019-01-22 | Temperature value transmission device and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109855746B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111879433A (en) * | 2020-07-10 | 2020-11-03 | 九阳股份有限公司 | Temperature detection method for cooking equipment and cooking equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4189093A (en) * | 1976-08-10 | 1980-02-19 | Robert Bosch Gmbh | Apparatus for regulating the temperature of a compartment or space |
CN204789976U (en) * | 2015-06-19 | 2015-11-18 | 深圳长城开发科技股份有限公司 | Automatic calibration equipment of electric energy meter error |
CN106707020A (en) * | 2016-12-22 | 2017-05-24 | 武汉盛帆智能科技有限公司 | Pulse detection device and pulse detection method |
CN206775163U (en) * | 2017-04-01 | 2017-12-19 | 重庆市华欣特实业有限公司 | Device is inserted in electric-type of autotomying charging |
CN206975524U (en) * | 2017-07-13 | 2018-02-06 | 重庆师范大学 | Novel thyristor speed regulator cooling system |
CN108344527A (en) * | 2018-02-27 | 2018-07-31 | 辽宁工程技术大学 | A kind of calibration system and calibration method of impulse modulation temperature sensor |
-
2019
- 2019-01-22 CN CN201910059532.5A patent/CN109855746B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4189093A (en) * | 1976-08-10 | 1980-02-19 | Robert Bosch Gmbh | Apparatus for regulating the temperature of a compartment or space |
CN204789976U (en) * | 2015-06-19 | 2015-11-18 | 深圳长城开发科技股份有限公司 | Automatic calibration equipment of electric energy meter error |
CN106707020A (en) * | 2016-12-22 | 2017-05-24 | 武汉盛帆智能科技有限公司 | Pulse detection device and pulse detection method |
CN206775163U (en) * | 2017-04-01 | 2017-12-19 | 重庆市华欣特实业有限公司 | Device is inserted in electric-type of autotomying charging |
CN206975524U (en) * | 2017-07-13 | 2018-02-06 | 重庆师范大学 | Novel thyristor speed regulator cooling system |
CN108344527A (en) * | 2018-02-27 | 2018-07-31 | 辽宁工程技术大学 | A kind of calibration system and calibration method of impulse modulation temperature sensor |
Non-Patent Citations (1)
Title |
---|
苏州纳芯微电子股份有限公司: "NST1001数字输出型温度传感器芯片", 《传感器世界》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111879433A (en) * | 2020-07-10 | 2020-11-03 | 九阳股份有限公司 | Temperature detection method for cooking equipment and cooking equipment |
CN111879433B (en) * | 2020-07-10 | 2022-06-28 | 九阳股份有限公司 | Temperature detection method for cooking equipment and cooking equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109855746B (en) | 2023-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106788920B (en) | A kind of baud rate deviation detecting method, device and air conditioner indoor unit | |
CN103345192B (en) | Intelligent clock synchronous-control circuit used for photoelectric tracker | |
CN107209811A (en) | System and method for asynchronised handover I2C data wires | |
CN107037311A (en) | A kind of Transformer Winding turn-to-turn insulation method for diagnosing faults and device | |
CN201181323Y (en) | Logic analyzer | |
CN102209110A (en) | Online controllable sensing node positioning method | |
CN109855746A (en) | Temperature value transmitting device and its method | |
CN104201948B (en) | Control device and method of position-free sensor of switched reluctance motor | |
CN106872983A (en) | A kind of distance-finding method, apparatus and system | |
CN107703362A (en) | A kind of server master board PCIE signal line impedence measurement jig | |
CN109902046A (en) | A kind of communication means, relevant device and system for Serial Peripheral bus system | |
CN106197747A (en) | The power overhead network monitoring temperature sensor circuit of a kind of duplicate supply pattern and temp measuring method | |
CN105607546A (en) | MBUS calorimeter data acquisition controller receiving circuit | |
CN108062268A (en) | A kind of automatic test has method, test fixture and the device of RS232RS485 general purpose interfaces | |
CN109256998A (en) | Control the method and system and servo motor of current of electric sampling with high precision | |
CN201608679U (en) | FPGA (field programmable gate array) chip-based drive control device for REPMSM (rare-earth permanent-magnet synchronous motor) | |
CN109887259B (en) | Single-wire transmission device and method | |
CN205120803U (en) | Air conditioner load current detection device and system | |
CN114878903A (en) | Detection circuit based on zero-crossing detection discrimination method and electric energy meter wrong wiring detector | |
CN104345757B (en) | Electric power detecting and correcting unit and electric power detecting and bearing calibration | |
CN109814107A (en) | A kind of long-range ultrasonic ranging system based on open source hardware and virtual instrument | |
CN107391401B (en) | A kind of method for reading data and system | |
CN102889910A (en) | Ultrasonic flow instrument circuit system for preventing miswave interference | |
CN101741298A (en) | Rare earth permanent magnet synchronous motor driving control device taking FPGA chip as core | |
CN104548250A (en) | Workstation, infusion pump, infusion system and infusion pump extension number distinguishing method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |