Background technology
At present at the ultrasonic piezoelectric transducer technical elements, according to the Signal Processing mode, be divided into passive and active two kinds, main frame directly connects the ultrasonic sensor emitting head under the passive mode, the received signal of emitting head deals with after being delivered to main frame by lead again, the received signal that amplitude is very little under this mode is carried by long lead, is easy to be subjected to external interference, even adding shielding conductor head it off fully; Active mode then is to add amplifying circuit on transducer, after the signal that transducer is received amplifies, be transferred to main frame by lead again, can increase signal to noise ratio like this, strengthen anti-interference, processing mode commonly used at present is that main frame charges to transducer earlier, and then the impulse waveform of input corresponding frequencies, the transducer built-in circuit is converted to the work of emission driven ultrasonic wave emitting head with impulse waveform, simultaneously echo-signal is amplified, be superimposed upon and be transferred to main frame on the power line, main frame separates signal again, and the analog signal that obtains has usually increased many though compare common passive probe signal, but analog signal still is interfered easily, comprises the interference on the power supply; In the active circuit of part analog signal is transformed, analog signal conversion has been become digital signal, but effective isolation is not carried out in emission and acceptance, and be subjected to the limitation of host power supply, usually can only send simple imitative digital signal, be not real digital signal, the information of transmitting between main frame and the transducer has been subjected to very big restriction.Built-in processor is arranged in the transducer, can with main frame synchronously or asynchronous working.
Summary of the invention
The objective of the invention is to avoid weak point of the prior art and the communication mode of setting up equity by data reception module and data transmission blocks is provided between a kind of main frame and the transducer, message transmission each other is a coded system, the anti-interference of raising in transmission course, realize the transmission of bus type information, cost-effective two-wire system encoding digital type ultrasonic sensor probe.
The objective of the invention is to realize that by following measure two-wire system active encoding digital type ultrasonic sensor probe is made up of main frame and transducer, be connected by two leads between main frame and the transducer, one is holding wire, and one be ground wire.In the transducer built-in circuit, can form by main control module, data transmission module, ultrasonic wave transmitter module, ultrasonic echo processing and amplifying module, power module.In the course of the work, main frame is connected with transducer by holding wire, and when both sides did not produce communication, holding wire kept high level, and this moment, holding wire played the effect of power line, in the sensor internal circuit two independently power module store power supply.When needing communication between main frame and the probe, the electric energy that the power module utilization stores guarantees the operate as normal of built-in circuit, this moment, holding wire was used as transfer of data, main frame sends numerically coded instruction by holding wire, data transmission module in the transducer receives information and is delivered to main control module, main control module can be controlled the ultrasonic wave transmitter module and carry out work, drives ultrasonic sensor.Main control module is understood command information, control ultrasonic wave transmitter module and ultrasonic echo processing and amplifying module drive the ultrasonic sensor emitting head and transmit and receive information, calculate by main control module, and information sent with the digital coding mode, be sent to main frame by data transmission module.
Design has data transmission module in the transducer built-in circuit, makes to carry out the transmission of bi-directional digital signal between probe and the main frame under two line ways of connecting.Probe is worked under the power supply of+5VDC, and inside does not do DC boosting or step-down can be satisfied the internal circuit power reguirements.
The transducer of the present invention design has designed special data transmission module (A), makes holding wire can realize powering and the function of bi-directional digital signal transmission.In data transmission procedure, external digital signal is connected to the output of main control module (B) by R7, and main control chip reads digital signal corresponding.When ultrasonic probe need utilize the logic state on the triode change holding wire in the data transmission module when the external world sends signal, make main frame can read the data on the holding wire, thereby reach the purpose of transfer of data.
Communication between main frame and the transducer is the digital signal communication, can both-way communication, and information transmitted is a coded digital signal.
Digital signal is adopted in communication between main frame and the probe, carry out exchanges data by data transmission module, realize both-way communication, digital signal is a coding type, can set coded system according to specific requirement, the information translation of needs transmission is become digital coding transmission.
Carry out in the process of exchanges data at probe and main frame, because sensor internal has the main control module of band MCU processor, main control module can be carried out the order of every agreement regulation of main frame requirement, and other module that can control in the transducer is carried out the work of different modes.
The transducer built-in circuit is handled power supply and is split up into two independently modules, power supply is provided for respectively inner different processing module, a power module provides the power supply of ultrasonic wave emission, is connected the power end of ultrasonic wave transmitter module, and a power module provides the power supply of other functional modules.
Design has ultrasonic wave transmitter module and ultrasonic echo processing and amplifying module in the transducer built-in circuit.Ultrasonic wave transmitter module and ultrasonic echo amplification treatment circuit directly are connected on the ultrasonic sensor emitting head, launch ultrasonic wave and will return main control module analysis after the echo processing and amplifying under master control module controls.
Each module that adopts in the built-in circuit can be finished every function with the form of separating, and also each module can be integrated on the special chip.Owing to adopted coded system, in data transfer, the information that is comprised no longer is confined to simple distance signal, other relevant information that can comprise transducer simultaneously, as the reference numeral of transducer, self check information etc., simultaneously, the main control module of transducer can be discerned the information that main frame sends and judge, identify the main frame requirement, and carry out corresponding operation.Therefore, in use, can realize the connected mode of bus type, main frame is by a bus and a plurality of sensor probes of ground line traffic control, the corresponding coded address of each sensor probe, main frame is controlled corresponding sensor probe by the coded address and is carried out work.Be that main frame passes through a bus and a plurality of sensor probes of ground line traffic control, each transducer respective hosts takies a fixing address, in information transfer process, the control information that main frame will have specified sensor corresponding address numbering is transferred to bus, after each transducer on the bus receives relevant information, main control module in the transducer, whether the geocoding in the main control module elder generation determination information is identical with local address, if difference is not then reacted, only meet local address, other in just continuing to execute instruction requires information.By this method, saved the lead cost on the one hand, also made whole system be called the digital information system of a class bus mode on the other hand.Can set up the communication mode of equity between main frame and the transducer by data transmission module, message transmission each other is the pure digi-tal formula, adopts coded system, has enlarged transinformation, and the pure digi-tal signal also improves the anti-interference in transmission course simultaneously.Because the communication between main frame and each transducer is by specific protocol, has unique relation mutually, therefore can realize the mode of intelligence transmission of bus type, can finish mutual communication by a bus and a ground wire between main frame and a plurality of transducer, comparing when alternate manner uses needs 5 leads at least, provides cost savings.
The present invention can be operated on the interior supply voltage arbitrarily of 5~24V scope sensor probe by changing the internal electric source processing module.
The transducer of the present invention design has designed special data reception module and data transmission blocks, makes holding wire can realize powering and the function of bi-directional digital signal transmission.
The coded system that adopted of the present invention can realize providing cost savings the connected mode of bus type, has enlarged transinformation, improves the anti-interference in transmission course.
Probe of the present invention can independently be judged measuring distance, and gives ECU or display unit or diagnostor and various memory in the mode of coding.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
As shown in Figure 1, the present invention is made up of main frame and transducer, is connected by two leads between main frame and the transducer, and one is holding wire, and one is ground wire.Main control module (B), data transmission module (A), ultrasonic wave transmitter module (C), ultrasonic echo amplification treatment circuit (D), power module (E), power module (F) are arranged in the transducer built-in circuit.Main control module (B) carries out exchanges data by data transmission module (A) and main frame, main control module (B) connects ultrasonic wave transmitter module (C), main control module (B) connects ultrasonic echo amplification treatment circuit (D), ultrasonic wave transmitter module (C) and ultrasonic echo amplification treatment circuit (D) directly are connected ultrasonic wave and produce on the sensor emitting head (SENSOR), the transducer built-in circuit is handled power supply and is split up into two independently modules, power supply is provided for respectively inner different processing module, power module (E) provides the power supply of ultrasonic wave emission, be connected the power end of ultrasonic wave transmitter module (C), power module (F) provides the power supply of other functional modules.Main frame is connected with transducer by holding wire, main frame sends numerically coded instruction by holding wire, data transmission module in the transducer (A) receives information and is delivered to main control module (B), main control module is understood command information according to related protocol, and by information requirements, control ultrasonic wave transmitter module (C) and ultrasonic echo processing and amplifying module (D), utilize the emission receiving function of ultrasonic sensor emitting head, obtain external information, (B) calculates by main control module, and agreement according to the rules sends information digital coding mode, and (A) is sent to main frame by data transmission module, so far finishes the primary information exchange.