Embodiment
Embodiment mono-
The structural representation of the temperature measuring equipment that Fig. 1 provides for the embodiment of the present invention one; The temperature measuring equipment of the present embodiment has temperature query function, and at any time, user can send temperature query statement to temperature measuring equipment by mobile terminal and obtain current up-to-date temperature value.As shown in Figure 1, comprising: the temperature collect module 11 connecting successively, checking parsing module 12 and transceiver module 13;
Transceiver module 13, the first short message sending for mobile terminal receive, and described the first short message is sent to checking parsing module 12, described the first short message comprises client identification module (Subscriber Identity Model the is called for short SIM) card number of temperature query statement, described mobile terminal;
Checking parsing module 12, for described SIM card number is verified, is verified the described temperature query statement of rear parsing, and the described temperature query statement after resolving is sent to temperature collect module 11;
Temperature collect module 11, for gathering current temperature value according to the temperature query statement after described parsing, and sends to checking parsing module 12 by described current temperature value;
Checking parsing module 12, is also packaged into the second short message for the described current temperature value that temperature collect module 11 is gathered, and sends to transceiver module 13;
Transceiver module 13, also for sending to described mobile terminal by described the second short message.
In the present embodiment, temperature measuring equipment and mobile terminal wireless connections, at any time, user can send temperature query statement to temperature measuring equipment by the form of transmitting short message by mobile terminal, obtains current up-to-date temperature value.Transceiver module in temperature measuring equipment receives after the temperature query statement of mobile terminal transmission, checking parsing module reads in instruction by serial ports, first to sending the mobile terminal of this instruction, carry out identification, if disabled user does not process this instruction, if validated user, director data is carried out to a series of conversions, decoding according to SMS protocol specification, to read content of short message wherein.Temperature collect module is according to instruction acquisition current temperature value, by transceiver module, in the mode of short message, sends it back mobile terminal.
The temperature measuring equipment of the present embodiment adopts the technological means receiving by the form temperature query statement of transmitting short message by mobile terminal, the detection of realization to scene temperature, and the form by short message sends to mobile terminal by the temperature value of detection, solved the problem that existing real time temperature remote detection technology exists expensive and difficult use mobility, therefore, the advantages such as the system for detecting temperature measurement mechanism of the present embodiment has real-time, convenient use.
Embodiment bis-
The structural representation of the temperature measuring equipment that Fig. 2 provides for the embodiment of the present invention two; As shown in Figure 2, the present embodiment is further expanding on Fig. 1 shown device basis.
Temperature measuring equipment in the present embodiment also has fixed time temperature query function, be that user can oneself set timing, whenever the time setting then, temperature measuring equipment can self-timing be beamed back up-to-date temperature data user's mobile terminal in the mode of short message.Specifically comprise:
Transceiver module 13, described the first short message sending for mobile terminal receive, described the first short message comprises temperature query statement, described temperature query statement comprises timing information;
For instance, transceiver module can adopt gsm wireless transceiver module to realize.
Checking parsing module 12, specifically for after being verified, resolves the temperature query statement that comprises timing information, and the query statement that comprises described timing information after resolving is sent to temperature collect module 11;
For instance, checking parsing module can adopt single-chip microcomputer Detection & Controling module to realize, as MCS-51 single-chip microcomputer.
Temperature collect module 11, specifically for according to the temperature query statement that comprises described timing information after resolving, current temperature value described in timing acquiring, sends to checking parsing module 12 by described current temperature value.
For instance, the temperature collect module of the present embodiment can adopt temperature data acquisition module, as DS18B20 1-wire digital temperature sensor.
Temperature measuring equipment in the present embodiment also has temperature alarming function, be that user can be according to the needs of the scene temperature of oneself, by mobile terminal, to temperature measuring equipment, send the temperature alarming instruction of setting upper and lower threshold value, at any time, once scene temperature exceeds the upper and lower threshold value of the temperature of setting, temperature measuring equipment can initiatively send SMS message or call out the mobile terminal of validated user, sends temperature alarming message.Specifically comprise:
Transceiver module 13, the 3rd short message also sending for receiving described mobile terminal, and described the 3rd short message is sent to checking parsing module 12, and described the 3rd short message comprises temperature alarming instruction and described SIM card number, described temperature alarming instruction comprises temperature upper limit, lowest temperature value;
Checking parsing module 12, also for described SIM card number is verified, is verified the described temperature alarming instruction of rear parsing, and the described temperature alarming instruction after resolving is sent to temperature collect module 11;
Temperature collect module 11, also for preserving described temperature upper limit and described lowest temperature value according to the temperature alarming instruction after described parsing.
Temperature collect module 11, if also for determining that the current temperature value collecting is not between described temperature upper limit and lowest temperature value, generate temperature alarming information and sending to checking parsing module 12;
Checking parsing module 12, also, for described temperature alarming message is packaged into the 4th short message, sends to transceiver module 13;
Transceiver module 13, also for sending to described mobile terminal by described the 4th short message.
Temperature measuring equipment in the present embodiment also has temp-controled mode, be that user sends temperature control instruction to temperature measuring equipment by mobile terminal, temperature measuring equipment is according to temperature control instruction, to the relay transmit button operational order being connected with temperature measuring equipment.Specifically comprise:
Transceiver module 13, the 5th short message also sending for receiving described mobile terminal, and described the 5th short message is sent to checking parsing module 12, described the 5th short message comprises temperature control instruction and described SIM card number;
Checking parsing module 12, also for described SIM card number is verified, is verified the described temperature control instruction of rear parsing, generates switching manipulation instruction and sends to relay 14;
Described device also comprises: relay 14, and for carrying out switching manipulation according to described switching manipulation instruction, to regulate described current temperature value.
Wherein, the checking parsing module 12 of the present embodiment comprises: the authentication unit 121 and the resolution unit 122 that connect successively;
Authentication unit 121, for identifying the SIM card number of the described mobile terminal that described the first short message comprises, verifies described SIM card number, after being verified, described the first short message is sent to described resolution unit;
Resolution unit 122, for parsing described temperature query statement from described the first short message, to described temperature query statement change and decode after send to described temperature collect module.
The authentication unit 121 of the present embodiment, also for identifying the SIM card number of the described mobile terminal that described the 3rd short message and described the 5th short message comprise, described SIM card number is verified, after being verified, described the 3rd short message and described the 5th short message are sent to described resolution unit 122;
Resolution unit 122, for from described the 3rd short message resolution temperature alarm command and from described the 5th short message resolution temperature steering order, to described temperature query statement, temperature alarming instruction change and decode after send to temperature collect module 11, temperature control instruction is changed and decode after send to transceiver module 13.
The temperature collect module 11 of the present embodiment comprises: collecting unit 111, the storage element 112 being connected with collecting unit 111 and alarm unit 113;
Collecting unit 111, temperature query statement or temperature query statement and timing information for sending according to checking parsing module 12, gather current temperature value;
Storage element 112, for storing described temperature upper limit, the lowest temperature value of described temperature alarming instruction;
Alarm unit 113, if the current temperature value gathering for definite collecting unit 111, not between described temperature upper limit and lowest temperature value, sends temperature alarming message to checking parsing module 12.
Fig. 6 is the principle schematic of the concrete application of temperature measuring equipment of the embodiment of the present invention two; Fig. 7 is the schematic diagram of the peripheral interface circuit of gsm wireless transceiver module; Fig. 8 is the schematic diagram of the peripheral interface circuit of DS18B20 1-wire digital temperature sensor.
As shown in Figure 6, the transceiver module of the present embodiment adopts gsm wireless transceiver module, as TCi35i module realizes; Checking parsing module adopts single-chip microcomputer Detection & Controling module, as U3 89C51 single-chip microcomputer is realized, as the control core of the temperature measuring equipment of the present embodiment, main treatment temperature sampled data, control gsm wireless transceiver module transmitting-receiving short message, check content of short message is also processed etc.; Temperature collect module adopts temperature data acquisition module, as DS18B20 1-wire digital temperature sensor is realized.
As shown in Figure 7, TCi35i module is carried out data communication by TCi35i module interface and U3 89C51 single-chip microcomputer, and traffic rate is 9600kb/s, adopts 8 asynchronous communication modes, 1 start bit, 8 bit data positions, 1 position of rest.Wherein, 18 pin serial port input RXD of TCi35i module interface and 10 pin RXD of U3 89C51 single-chip microcomputer, 19 pin serial port output TXD of TCi35i module interface and 11 pin TXD of U389C51 single-chip microcomputer realize circuit interface, and the instruction that this interface sends transmitting-receiving short message for U3 89C51 single-chip microcomputer is to TCi35i module.
16~17 and 20~23 pin of TCi35i module interface are data input/output interface, meet ITU-T RS 232 interface standards, this interface is actually an asynchronous serial transceiver, for transmit short message between U389C51 single-chip microcomputer and TCi35i module, as, TCi35i module receives after the reception short message instruction of U3 89C51 single-chip microcomputer transmission, the short message that comprises temperature query statement receiving from mobile terminal is sent to U3 89C51 single-chip microcomputer by this data input/output interface, or, TCi35i module receives sending SMS message after instruction of U3 89C51 single-chip microcomputer transmission, by this data input/output interface, receive the short message that comprises temperature value that U3 89C51 single-chip microcomputer sends, and the short message that this is comprised to temperature value sends to mobile terminal.
1 pin P10 of U3 89C51 single-chip microcomputer is temperature acquisition interface, is connected with temperature collect module.
As shown in Figure 8, DS18B20 1-wire digital temperature sensor is realized circuit interface, the row data communication of going forward side by side by DQ pin as data I/O (Input/Output is called for short I/O) interface and U3 89C51 single-chip microcomputer 1 pin P10.
15 pin of TCi35i module interface are connected with TCi35i module reset circuit, 2 pin P11 of U3 89C51 single-chip microcomputer are connected with TCi35i module reset circuit, wherein, TCi35i module reset circuit can be for recovering the virgin state of described temperature measuring equipment or recovering last state, when unexpected power-off, TCi35i module reset circuit also has electrification reset function, can preserve the data before power-off temporarily.
The short message of the present embodiment comprises the short message forms such as voice, multimedia message, and the relay of the present embodiment can be the relay of thermostat.
In the present embodiment, mobile terminal sends in the short message of temperature measuring equipment and can comprise as given an order: temperature query statement, temperature alarming instruction and temperature control instruction.
Under temperature query pattern, at any time, user can send temperature query statement to temperature measuring equipment by mobile terminal and obtain current up-to-date temperature value.Temperature query statement can also comprise timing information, and user can oneself set timing, whenever the time setting then, temperature measuring equipment can be beamed back up-to-date temperature data user's mobile terminal by self-timing in the mode of short message.
Under temperature alarming pattern, user can be according to the needs of the scene temperature of oneself, by mobile terminal, to temperature measuring equipment, send the temperature alarming instruction of setting upper and lower threshold value, at any time, once scene temperature exceeds the upper and lower threshold value of the temperature of setting, temperature measuring equipment can initiatively send SMS message or call out the mobile terminal of validated user, sends temperature alarming message.
Under temp-controled mode, user sends temperature control instruction to temperature measuring equipment by mobile terminal, and temperature measuring equipment is according to temperature control instruction, to the relay transmit button operational order being connected with temperature measuring equipment.
Single-chip microcomputer in the temperature measuring equipment of the present embodiment uses the instruction of TCi35i gsm module transmitting-receiving short message by AT order, according to the definition of GSM 07.05, the sending and receiving pattern of SMS messaging breath has 3 kinds: piece Block pattern, text Text pattern and protocol Data Unit (Protocol Data Unit is called for short PDU) pattern.The step that adopts Text pattern to send reception short message is divided into initialization gsm module, sends text SMS breath and receive short message.Order format:
Send sign |
Password |
This command function |
Operation |
Particularly, password is the key of arranging between mobile terminal and the transceiver module of temperature measuring equipment, this command function represent this instruction for concrete function, such as real time temperature query function, temperature alarming function, control and display is opened or closing function.For instance, the real time temperature query statement of opening real time temperature query function can be: P123TEMPl, " P " is for sending sign, 123 " and be password, " TEMP " represents real time temperature query function, " 1 " represents open-minded.
The temperature measuring equipment of the present embodiment can be in real time or Timing measurement scene temperature value, if the Current Temperatures of measuring is overheated or excessively cold, can be by the form of transmitting short message by mobile terminal, realization is controlled scene temperature, therefore, the temperature measuring equipment of the present embodiment has controllability, real-time, facilitate use, mobility, can digitally show again can voice message etc. advantage.
Embodiment tri-
The schematic flow sheet of the thermometry that Fig. 3 provides for the embodiment of the present invention three; As shown in Figure 3, comprising:
The first short message that step 301, mobile terminal receive send, described the first short message comprises the client identification module SIM card number of temperature query statement, described mobile terminal.
Step 302, described SIM card number is verified, be verified the described temperature query statement of rear parsing.
Step 303, according to the temperature query statement after resolving, gather current temperature value.
Step 304, described current temperature value is packaged into the second short message, sends to described mobile terminal.
The short message of the present embodiment comprises the short message forms such as voice, multimedia message.
The present embodiment is by the form of transmitting short message by mobile terminal, the detection of realization to scene temperature, and the form by short message sends to mobile terminal by the temperature value of detection, therefore, the thermometry of the present embodiment has real-time, facilitate use, mobility, can digitally show again can voice message etc. advantage.
Embodiment tetra-
The schematic flow sheet of the thermometry that Fig. 4 provides for the embodiment of the present invention four; On the basis of embodiment of the method shown in Fig. 3, the present embodiment extends further to:
The 3rd short message that step 401, mobile terminal receive send, described the 3rd short message comprises temperature alarming instruction and described SIM card number, described temperature alarming instruction comprises temperature upper limit, lowest temperature value.
Step 402, described SIM card number is verified, be verified the described temperature alarming instruction of rear parsing.
Step 403, according to the temperature alarming instruction after described parsing, preserve described current temperature value and described temperature upper limit.
The first short message that step 404, mobile terminal receive send, described the first short message comprises the SIM card number of temperature query statement, described mobile terminal, described temperature query statement comprises timing information.
Step 405, verify described SIM card number, be verified the temperature query statement that rear parsing comprises timing information.
Step 406, according to the temperature query statement that comprises timing information, current temperature value described in timing acquiring.
If step 407 determines that the current temperature value collecting, not between described temperature upper limit and lowest temperature value, generates temperature alarming message.
Step 408, described temperature alarming message is packaged into the 4th short message, sends to described mobile terminal.
Step 409, receive the 5th short message that described mobile terminal sends, described the 5th short message comprises temperature control instruction and described SIM card number.
Step 410, described SIM card number is verified, be verified the described temperature control instruction of rear parsing, generate switching manipulation instruction.
Step 411, described switching manipulation instruction is sent to relay, to regulate described current temperature value.
The short message of the present embodiment comprises the short message forms such as voice, multimedia message, and the relay of the present embodiment can be the relay of thermostat.
In the present embodiment, the temperature alarming instruction set temperature alarm threshold value that temperature measuring equipment can send according to mobile terminal, if the Current Temperatures detecting is overheated or excessively cold, user can also send temperature control instruction by mobile terminal, the control of realization to scene temperature, therefore, the system for detecting temperature of the present embodiment has controllability, real-time, facilitate use, mobility, can digitally show again can voice message etc. advantage.
Embodiment five
The structural representation of the temperature measurement system that Fig. 5 provides for the embodiment of the present invention five; Comprise: mobile terminal 51 and temperature measuring equipment 52;
Temperature measuring equipment 52 is the temperature measuring equipment of embodiment as shown in Figure 1 or 2;
Mobile terminal 51, for send the first short message, the 3rd short message and the 5th short message to described temperature measuring equipment, and receives the second short message, the 4th short message that described temperature measuring equipment sends.
Described in the present embodiment system can execution graph 3 or Fig. 4 embodiment of the method described in thermometry, it realizes principle and technique effect repeats no more.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.