Summary of the invention
The object of the embodiment of the present invention is to provide a kind of temp measuring method, equipment and system, be intended to solve the modulating unit that temperature measuring equipment of the prior art needs additionally to arrange digital to analogy, cause the problem that cost increases, and need additionally to arrange Power supply, cause taking equipment volume, increase the problem that weight of equipment and user need frequently to change power-supply device.
Embodiments provide a kind of temp measuring method, described method comprises:
Terminal device sends sound signal by audio interface after receiving thermometric instruction;
Described sound signal is converted to DC voltage by Power Management Unit, and to export described DC voltage be that temperature measuring equipment is powered;
After described Power Management Unit exports DC voltage, trigger processing unit receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data, the voltage signal that the voltage signal that described temperature sensor exports is changed according to the temperature gathered for described temperature sensor;
Described target temperature data are converted to binary coding, check code are added to described binary coding, is packaged into packet, sends described packet by microphone;
Described terminal device receives described packet, verifies described packet;
The described data by verification of display.
The embodiment of the present invention further provides a kind of temperature measuring equipment, and described equipment comprises:
Power Management Unit, for the sound signal that receiving terminal apparatus is sent by audio interface, is converted to DC voltage by the sound signal that described receiving element receives, and exports described DC voltage, for temperature measuring equipment is powered;
Processing unit, for after described Power Management Unit exports DC voltage, receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data;
Temperature sensor, for collecting temperature, is converted to voltage signal by described collecting temperature;
Temperature output unit, for described target temperature data are converted to binary coding, add check code to described binary coding, is packaged into packet, sends described packet by microphone.
Present invention also offers a kind of temp measuring system, described system comprises terminal device and temperature measuring equipment, and described terminal device comprises:
Sound signal transmitter unit, for the sound signal sent by audio interface;
Verification unit, for receiving the packet sent by microphone, is verified described packet;
Described temperature measuring equipment comprises:
Power Management Unit, for the sound signal that receiving terminal apparatus is sent by audio interface, is converted to DC voltage by the sound signal that described receiving element receives, and exports described DC voltage, for temperature measuring equipment is powered;
Processing unit, for after described Power Management Unit exports DC voltage, receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data;
Temperature sensor, for collecting temperature, is converted to voltage signal by described collecting temperature;
Temperature output unit, for described target temperature data are converted to binary coding, add check code to described binary coding, is packaged into packet, sends described packet by microphone.
The temp measuring method that the embodiment of the present invention provides, equipment and system, be that whole system is powered by terminal device output audio signal being converted to DC voltage, while power supply, trigger processing unit processes the voltage signal that temperature sensor exports, after obtaining mapping objects temperature number, conversion binary is encoded, add check code and generate Packet Generation to terminal device, after terminal device displays temperature data, stop output audio information, temperature measuring equipment is supplied without electricity, completes thermometric.Utilize the sound signal that terminal device exports, for whole temperature measuring equipment is powered, without the need to additionally arranging power supply unit, triggered unlatching, the whole thermometric process of stopping end of output of whole thermometric process by the output of sound signal simultaneously, without the need to extra switch module, reduce equipment cost, without the need to frequently changing battery or charging, simultaneously after displays temperature auto-breaking without the need to user's hand switch.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the process flow diagram of the temp measuring method that the embodiment of the present invention provides.As shown in Figure 1, the method comprises the steps.
Step S101: terminal device sends sound signal by audio interface after receiving thermometric instruction.
In one of the present invention preferably embodiment, exporting this sound signal can be transmitted by single channel, such as, use L channel, and now R channel is in mute state or as his use, this kind of mode can reduce passage occupancy.Another kind is preferably in embodiment, and export this sound signal and can be transmitted by two-channel and two-channel sound intermediate frequency signal forms the phase differential of 180 degree, this kind of mode ensure that the maximized output power of terminal device.
Step S102: described sound signal is converted to DC voltage by Power Management Unit, and to export described DC voltage be that temperature measuring equipment is powered.
In this step, the sound signal that Power Management Unit receiving terminal apparatus exports, and after filtering, interchange amplification, rectifying and voltage-stabilizing are carried out to sound signal, export DC voltage, for temperature measuring equipment is powered.
Step S103: after described Power Management Unit exports DC voltage, trigger processing unit receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data, the voltage signal that the voltage signal that described temperature sensor exports is changed according to the temperature gathered for described temperature sensor.
In this step, after Power Management Unit exports DC voltage, for whole system is powered, trigger processing unit receives the voltage signal that temperature sensor exports simultaneously, according to the corresponding relation of voltage signal and temperature value, obtain the target temperature data mapped with voltage signal.
Step S104: described target temperature data are converted to binary coding, adds check code to described binary coding, is packaged into packet, sends described packet by microphone.
In this step, target temperature data are converted to binary coding, wherein add check code to be specially: described binary code is added to initial code, the stop code that can distinguish sound signal, and according to described target temperature data formed can the signed codevector of identity verification and error correction.
Step S105: described terminal device receives described packet, verifies described packet.
In this step, described terminal device reads initial code, stop code in described packet, if the initial code in described packet, stop code are consistent with preset characters, then receive described packet, otherwise does not receive; According to described signed codevector, described packet is compared verification.Terminal device is when receiving packet by audio interface, can information constantly in read data packet, in the packet of default byte length, read initial code, whether stop code is consistent with preset characters, if, then receive this packet, certifying signature code further, checks this packet authentication identity information, and to compare verification, error correction to packet; Otherwise again receive packet.
Step S106: the described data by verification of display.
In this step, terminal device by the data display by verification on a display screen, facilitates user to check.
Step S107: after the described data by verification of display, described terminal device stops output audio signal.
In this step, terminal device stops output audio signal, and because terminal device stops output audio signal, Power Management Unit exports without direct supply, and temperature measuring equipment supplies without electricity, and whole thermometric process completes.
In the embodiment of the present invention one, by terminal device output audio signal when receiving thermometric instruction, Power Management Unit utilizes sound signal to produce DC voltage, for whole temperature measuring equipment is powered, trigger by exporting DC voltage the voltage signal that processing unit receives temperature sensor simultaneously, voltage signal is formed target temperature data, and convert to binary coding add check code be packaged into packet, terminal device is sent to by audio interface, without the need to additionally arranging the converting unit of digital signal converting analogue signals, simultaneously without the need to additionally arranging power supply unit, only arranging Power Management Unit becomes DC voltage to power Audio Signal Processing by passive device, save a large amount of costs to drop into, and be user-friendly to.
Fig. 2 is the schematic diagram of the temperature measuring equipment that the embodiment of the present invention provides.As shown in Figure 2, this equipment at least comprises: Power Management Unit 21, processing unit 22, temperature sensor 23 and temperature output unit 24.
Wherein, the sound signal that Power Management Unit 21 is sent by audio interface for receiving terminal apparatus, is converted to DC voltage by the sound signal that described receiving element receives, and exports described DC voltage, for temperature measuring equipment is powered; Processing unit 22, for after described Power Management Unit exports DC voltage, receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data; Described collecting temperature, for collecting temperature, is converted to voltage signal by temperature sensor 23; Temperature output unit 24, for described target temperature data are converted to binary coding, add check code to described binary coding, is packaged into packet, sends described packet by microphone.
Fig. 3 illustrates the structure principle chart of the temp measuring system that the embodiment of the present invention provides.As shown in Figure 3, this system comprises terminal device 31 and temperature measuring equipment 32, and described terminal device 31 comprises: sound signal transmitter unit 311 and verification unit 312; Described temperature measuring equipment 32 comprises: Power Management Unit 321, processing unit 322, temperature sensor 323, temperature output unit 324 and display unit 325.
Described terminal device 31 comprises: the sound signal of sound signal transmitter unit 311 for being sent by audio interface; Verification unit 312, for receiving the packet sent by microphone, is verified described packet.
Described temperature measuring equipment 32 comprises: the sound signal that Power Management Unit 321 is sent by audio interface for receiving terminal apparatus, and the sound signal that described receiving element receives is converted to DC voltage, and exports described DC voltage, for temperature measuring equipment is powered; Processing unit 322, for after described Power Management Unit exports DC voltage, receives the voltage signal that temperature sensor exports, and according to the corresponding relation of voltage signal and temperature value, described voltage signal is converted to target temperature data; Described collecting temperature, for collecting temperature, is converted to voltage signal by temperature sensor 323; Temperature output unit 324, for described target temperature data are converted to binary coding, add check code to described binary coding, is packaged into packet, sends described packet by microphone; Display unit 325 is for showing the described data by verification.
Described can be by the transmission of mono in described audio interface by audio interface output audio signal to Power Management Unit, or the two-channel transmission in described audio interface.
Wherein, sending described packet to described terminal device by microphone is modulation system based on amplitude shift keying (ASK), frequency shift keying (FSK) or phase-shift keying (PSK) (PSK).
Be that whole system is powered by terminal device output audio signal being converted to DC voltage, while power supply, trigger processing unit processes the voltage signal that temperature sensor exports, after obtaining mapping objects temperature number, conversion binary is encoded, add check code and generate Packet Generation to terminal device, after terminal device displays temperature data, stop output audio information, temperature measuring equipment is supplied without electricity, completes thermometric.Utilize the sound signal that terminal device exports, for whole temperature measuring equipment is powered, without the need to additionally arranging power supply unit, triggered unlatching, the whole thermometric process of stopping end of output of whole thermometric process by the output of sound signal simultaneously, without the need to extra switch module, reduce equipment cost, without the need to frequently changing battery or charging, simultaneously after displays temperature auto-breaking without the need to user's hand switch.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.