Embodiment
Below will be in detail with reference to embodiments of the invention, the example of explanation embodiment in corresponding accompanying drawing, wherein identical reference number is represented components identical.Hereinafter with reference to accompanying drawing embodiments of the invention are described.
Mobile phone of the present invention and secondary machine thereof are realized information communication between the two by wireless mode, at the radio alarming transceiver channel that has between mobile phone of the present invention and the secondary machine thereof outside the mobile phone wireless channel (as the GSM network), what is more important mobile phone and secondary machine thereof all can carry out the measurement of distance between the two, to reach the purpose of antitheft mobile phone.For example, secondary machine band when the young child, was preestablished certain distance range before child leaves the adult, when child aprowl exceeds this preset distance, mobile phone and secondary machine thereof all will send chimes of doom.Equally, when mobile phone and secondary machine all are with on one's body the user, if mobile phone is stolen by the people, when mobile phone leaves the predefined distance range of its secondary machine, secondary machine and mobile phone all will send chimes of doom.
Yet mobile phone and its be secondary confidential sets up information communication, and both sides must shake hands (to sign indicating number) earlier to confirm the other side's legitimacy, because secondary machine does not have keyboard, stay an IO pin PAGE pin as handshake within it on the central processing unit of portion.This pin is a low level at ordinary times, and when selecting " to sign indicating number " function in mobile phone menu, this pin in the secondary machine on the central processing unit will become high level, and central processing unit will be started working realizing shaking hands of secondary machine and mobile phone, and realize the affirmation of shaking hands of secondary machine and mobile phone.(to sign indicating number) is prior art owing to shake hands, and below will introduce its implementation procedure no longer in detail.
All processes below in conjunction with accompanying drawing 1 explanation over-distance alarm.Mobile phone and secondary machine thereof carry out work to realize over-distance alarm by the flow process shown in the accompanying drawing 1.
At first, mobile phone and secondary machine thereof carry out after start as stated above to sign indicating number, and mobile phone all has 16 a bit address coding at random when each start, and secondary machine changes over the geocoding identical with mobile phone with the geocoding of oneself to sign indicating number the time.Secondly, also have 16 order of the bit coding in 16 bit address coding back, totally 32, as Fig. 4
Wherein, the mobile phone firing order is not carried out to the process of main frame simultaneously to the process and the secondary machine firing order of secondary machine, respectively accounts for 500 milliseconds.As Fig. 5
After mobile phone and secondary machine were finished sign indicating number, mobile phone just began to set the alarm detection distance between the two, and this moment, secondary machine was in the state that receives mobile phone command of waiting for.After mobile phone sets the alarm detection distance, the central processing unit in the mobile phone will send to its secondary machine to the coding of synthetic 32 of the order of address code and preset distance by the high frequency transmission circuit.After secondary machine reception and this order of decoding preset distance is wherein preserved, then answer signal is returned to mobile phone.Simultaneously, separately central processing unit will calculate the transmitting power size of corresponding high-frequency transceiver in mobile phone and the secondary machine, and change its transmitting power by the 26th pin of high frequency transceiver IC.After this, mobile phone and secondary machine are after the above-mentioned information of exchange, beginning is alternately sent 32 distance affirmation coding with cycle regular hour to the other side, confirm to encode, then represent not exceed between the two predefined distance as long as both sides receive the correct distance that the other side sends.Yet, once mobile phone or secondary machine do not receive that the other side sends apart from confirmation signal or receive apart from the confirmation signal mistake, mobile phone or secondary machine will start the warning circuit of himself and begin reports to the police.
2 functional structures that illustrate according to mobile phone of the present invention and secondary machine thereof with reference to the accompanying drawings.
At first, can carry out radio communication, in mobile phone and secondary machine thereof, all increase wireless transceiver circuit in order to realize mobile phone machine both sides secondary with it.Wherein, the wireless transceiver circuit in the mobile phone is made up of antenna loop, high frequency transceiver IC U5, central processing unit U4 etc.; Wireless transceiver circuit in the secondary machine is made up of antenna loop, high frequency transceiver IC U1, central processing unit U2 etc.
Secondly, can detect the other side's distance in order to realize mobile phone and secondary machine both sides, main frame and secondary machine all have noise detecting circuit (RSSI) and/or emitting power grade control circuit.Wherein, secondary machine sends the short pulse code signal with cycle regular hour, this pulse signal is encoded by certain form by central processing unit U2, and this code signal is delivered to high frequency transceiver IC U1 with the FSK form carry out frequency conversion, and the gained high-frequency signal is launched by antenna loop again.Simultaneously, the central processing unit U4 in the mobile phone will open high frequency transceiver IC U5 with the time cycle identical with secondary machine, receive the high-frequency signal that secondary machine sends.The high-frequency signal that receives from antenna loop carries out the low noise amplification and demodulates the FSK coded data through high frequency transceiver IC U5, gives central processing unit U4 by the 23rd pin of high frequency transceiver IC U5.When high frequency transceiver IC U5 opens, its 28th pin (RSSI) will be exported the voltage signal that a representative receives the high-frequency signal power simultaneously.The central processing unit U4 of mobile phone is by the fsk data of analysis of high frequency transceiver IC U5 the 23rd pin or the RSSI voltage signal of analyzing the 28th pin calculates distance.
A kind of method of calculating distance is to check distance by high frequency transceiver IC U5 the 28th pin RSSI signal.Mobile phone machine secondary with it all has noise detecting circuit (RSSI).Noise detecting circuit in the mobile phone is to be finished jointly by high frequency transceiver IC U5 and central processing unit U4, and the noise detecting circuit in the secondary machine is to be finished jointly by high frequency transceiver IC U1 and central processing unit U2.The 28th pin of its medium-high frequency transceiver IC is exported a voltage signal of representing the wireless signal power, and is undertaken becoming the digital signal of representing distance far and near after the analog-to-digital conversion by central processing unit.When the user preestablishes a distance range on mobile phone, the central processing unit U4 of mobile phone will send a control command to secondary machine by high frequency transceiver IC U5, equally also beaming back a confirmation signal after secondary machine receives orders returns main frame and receives orders with expression, secondary machine begins fill order simultaneously, and promptly the central processing unit U2 of secondary machine sends a short code signal by high frequency transceiver IC U1 in cycle regular time; Main frame is received the receiving unit that just begins to open with the same period that sends signal with secondary machine high frequency transceiver IC circuit U 5 behind the affirmation signal that secondary machine beams back, the central authorities of main frame handle the RSSI signal voltage that U4 begins to detect high frequency transceiver IC U5 the 28th pin simultaneously, calculate the distance of secondary machine by the height of voltage, if surpass predefined distance range then main frame will begin to report to the police.Vice versa for secondary machine.
The another kind of method of calculating distance is to check distance by high frequency transceiver IC U5 the 23rd pin fsk signal.All has the emitting power grade control circuit in mobile phone itself and the secondary machine.Power grade control circuit in the mobile phone is to be finished jointly by high frequency transceiver IC U5 and central processing unit U4; Power grade control circuit in the secondary machine is to be finished jointly by high frequency transceiver IC U1 and central processing unit U2.Mobile phone launches the radio coding signal of certain grade power for secondary machine, high frequency transceiver IC U1 by secondary machine receives again, central processing unit U2 returns to mobile phone via high frequency transceiver IC U1 again with the code signal that receives afterwards, the high frequency transceiver IC U5 of mobile phone receives the signal that returned again and itself and former signal is compared, thereby calculate number of bit errors, calculate distance between the two by number of bit errors and power grade again.Just, when the user preestablishes a distance range on mobile phone, the central processing unit U4 of main frame will calculate the great power master of secondary confidential emission could normally receive the wireless signal of secondary machine emission, and become control commands corresponding to send to secondary machine the digital translation of calculating by main frame high frequency transceiver IC U5, secondary machine will be beamed back a confirmation signal to main frame after receiving this command signal, received this command signal with expression, the central processing unit U2 of secondary machine begins to carry out this order simultaneously, promptly sends a short code signal in cycle regular time; Main frame just begins to open the receiving unit of high frequency transceiver IC U5 to receive with the cycle identical with the transmission cycle of secondary machine after receiving the affirmation signal that secondary machine beams back, and the signal that receives is carried out demodulation deliver to central processing unit U4 through its 23rd pin afterwards, the central processing unit U4 of mobile phone will analyze the code signal that demodulation is come out, and calculate number of bit errors, draw secondary machine by number of bit errors and whether surpass predetermined distance range.If surpass predefined distance range then main frame will begin to report to the police.
Wherein, in order to realize after exceeding preset distance, reporting to the police between the two, all has the warning phonation circuit in mobile phone and the secondary machine thereof.Warning circuit in the secondary machine sends alarm control signal by central processing unit U2, and this signal drives alarm via resistance R 21 to transistor Q1 (resistance R 21 and transistor Q1 are shown in Figure 3) and sends chimes of doom.
Illustrate according to the mobile phone shown in Figure 2 of the present invention and the circuit structure of secondary machine thereof hereinafter with reference to accompanying drawing 3.Wherein, " antenna loop " is made up of C42, C31, C41, L41, L31 and antenna, it mainly is the radio signal that antenna receives to be delivered to high-frequency transceiver carry out the frequency conversion demodulation, and the high-frequency wireless signals of also high-frequency transceiver being exported is delivered to antenna and launched through antenna in addition." high-frequency transceiver " is made up of high frequency transceiver IC U1 and peripheral component thereof, imports, exports from 23 pin demodulation from the 3rd pin of high frequency transceiver IC U1 from the radio signal that antenna loop receives, and decodes through central processing unit U2 again.The code signal of same central processing unit U2 output also is from the input of high frequency transceiver IC U1 the 23rd pin, exports from the 4th pin after inner modulation becomes high-frequency signal, launches through antenna loop again.
In accompanying drawing 3, the 1st, 5,9,15 pin among the high frequency transceiver IC U1 are analog power, and the 21st pin is a digital power, the 2nd, 6,7,8, and 14,16 pin are simulation ground, the 20th pin is for digitally.Above-mentioned each pin is the power pin of high frequency transceiver IC U1, and the 3rd pin wherein is that high-frequency wireless signals reception input, the 4th pin are that high-frequency wireless signals is launched output.Crystal oscillator XTAL and C171 thereof, the 17th, 18 pin of C181 and high frequency transceiver IC U1 has been formed clock circuit, for the internal work of high frequency transceiver IC U1 provides clock.The 23rd pin of high frequency transceiver IC U1 is data input and output pin, and the 24th pin is a data clock, and the 25th pin is the order clock, and the 26th pin is a command signal.Central processing unit U2 in the secondary machine has four IO pin to link to each other with the 23-26 pin of high frequency transceiver IC U1 respectively, and order that central processing unit U2 is sent and data all are sent to high frequency transceiver IC U1 by these four IO pin.
Here, the circuit structure of antenna loop, high-frequency transceiver, high frequency transceiver IC and central processing unit in mobile phone and the secondary machine is all identical, is therefore just no longer described for the said structure in the mobile phone.The interior part of frame of broken lines that it should be noted that mobile phone part in the accompanying drawing 2 is the existing circuit of mobile phone, directly do not get in touch with the present invention, and central processing unit wherein is simultaneously as the conventional communication and the distance detecting of machine secondary with it.
It is apparent to one skilled in the art that the present invention can change into multiple mode, and such change is not thought and departed from the scope of the present invention.What all were such will be included within the scope of accessory claim the conspicuous modification of one of ordinary skill in the art.