A kind of method of binary runtime environment for wireless mobile phone environment abnormal alarm and equipment thereof
Technical field
The present invention relates to a kind of alarm method and equipment, relate in particular to a kind of method and equipment thereof of binary runtime environment for wireless mobile phone environment abnormal alarm.
Background technology
Mobile phone has been deep into the every aspect of people's life as a kind of terminal equipment of mobile communication, function is various, as communicating by letter, give the correct time, dictionary, secretary, online, music, seeing TV, photography, shooting etc., become a kind of requisite daily necessities of carrying.But still there be not effect aspect the protection user person and the Environmental security; user or mobile phone safety appear threatening user or mobile phone environment of living in; as fire, smog, poison gas etc., and be difficult for under the situation that the user discovered, mobile phone should send alarm to the user as a kind of Realtime Alerts device.
The BREW radio communication platform is the basic platform based on the last value-added service developing operation of cdma network " wireless Internet flat pad " that Qualcomm releases calendar year 2001 in the prior art.BREW is exactly the abbreviation of vedio on radio binary operation environment (Binary Runtime Environment for Wireless).Relative Java, BREW is a more technology of bottom.This platform is not used in the security alarm function at present.
Summary of the invention
The object of the present invention is to provide a kind of alarm method based on BREW communications platform and terminal equipment mobile phone, and the mobile phone environment abnormal alarm equipment that uses the method to provide.
Technical scheme of the present invention comprises:
A kind of method of binary runtime environment for wireless mobile phone environment abnormal alarm, wherein: the flow process of its environment abnormal alarm comprises:
Mobile phone environment abnormal inductor collecting unit collects environmental information, and as high temperature, dense smoke, poison gas etc. and react, electrode voltage changes;
When change in voltage reached alarm threshold value, alarm signal was by the amplifier circuit amplification and be transferred to signal processing unit;
Signal processing unit carries out the mould of alarm signal/number conversion to be handled, and analog signal conversion is become and the corresponding to digital signal of communications platform, i.e. the incident that can discern of BREW;
Digital signal after the conversion is sent automatically through signal output device;
The BREW cell phone platform is forwarded to application layer with it after receiving the environmental abnormality signal;
Application layer starts corresponding application, is handled it by event handling function, and as the interface function that the calling mobile phone media player provides, the control mobile phone speaker sends warning;
Mobile phone speaker is reported to the police.
A kind of binary runtime environment for wireless mobile phone environment abnormal alarm equipment comprises BREW wireless mobile communications platform and terminal equipment mobile phone, wherein:
Described terminal equipment mobile phone is provided with miniature environmental abnormality inductor, is used for the unusual environment of high temperature, dense smoke, poison gas is reacted, and triggers binary runtime environment for wireless event handling application work, and the control mobile phone sends alarm signal;
Described binary runtime environment for wireless is used for controlling at the sound playing interface function of event handling function calling mobile phone media player the mobile phone speaker sound that gives the alarm.
Described binary runtime environment for wireless mobile phone environment abnormal alarm equipment, wherein: described miniature environmental abnormality inductor comprises signal gathering unit, signal processing unit and signal output unit.
Described binary runtime environment for wireless mobile phone environment abnormal alarm equipment, wherein: described miniature environmental abnormality inductor is the ionic formula inductor.
Described binary runtime environment for wireless mobile phone environment abnormal alarm equipment, wherein: described signal gathering unit comprises sensing element and amplifying circuit, described sensing element is used to accept external environment to be changed, cause interelectrode change in voltage, and by amplifying circuit signal is amplified, be transferred to signal processing unit.
Described binary runtime environment for wireless mobile phone environment abnormal alarm equipment, wherein: described signal processing unit is made up of simulation one digital conversion circuit, the analog signal of input is carried out analog-to-digital conversion handle, and is converted to the incident that binary runtime environment for wireless can be discerned.
Binary runtime environment for wireless mobile phone environment abnormal alarm method provided by the present invention and equipment thereof, based on binary runtime environment for wireless, by implantable miniature inductor on terminal phone, reached and utilized this articles for daily use of universal most convenient purpose that disasters such as fire, smog, poison gas are reported to the police automatically of mobile phone.The function of reporting to the police automatically when also making mobile phone increase environmental abnormality as product.
Description of drawings
Fig. 1 is the inventive method flow chart;
Fig. 2 is a system configuration schematic diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, illustrate that embodiment of the invention operation principle and architectural feature are as follows:
As shown in Figure 2, system configuration of the present invention mainly is made up of induction processing system of implanting in the mobile phone and former cell phone system.Mobile phone induction processing system partial design becomes the miniature inductive device, implants in the mobile phone.Inductor is made up of signal gathering unit, signal processing unit and signal output unit.
Signal gathering unit comprises sensing element and amplifier, and sensing element is noted environmental aspect with voltage form, and when environmental aspect takes place when unusual, as high temperature, smog, poison gas etc., inter-electrode voltage changes thereupon.When change in voltage reaches alarm threshold value, form alarm signal, and be transferred to signal processing unit by the amplifier circuit amplification.
Signal processing unit mainly is made of mould/number conversion circuit, carries out the analog digital conversion process of alarm signal, analog signal conversion is become and the corresponding to digital signal of communications platform, i.e. the incident (event) that can discern of BREW.
Digital alarm signal after the conversion is sent automatically through signal output unit; Become the part of cell phone system signal, enter cell phone system.
Comprise the BREW cell phone platform in the former cell phone system.BREW is exactly the abbreviation of vedio on radio binary operation environment (Binary Runtime Environment for Wireless).Relative Java, BREW is a more technology of bottom.
The general event handling function of described binary runtime environment for wireless is boolean Event Handler (IApplet*pApp, AEEEVENT eCode, uint16 wparam, uint32 dwparam), wherein second parameter is the event type code, the code of each incident is unique, it is the unsigned int number of one 16 bit, after 0 * 7000 is the User Defined incident, the code of alarm events can be determined voluntarily by concrete equipment manufacturers, the 3rd parameter be incident with first parameter, (the unsigned int numbers of 16 bits); The 4th for incident with second parameter (the unsigned int numbers of 32 bits); For example can be made as specified alarm type (as high temperature or dense smoke etc.) or emergency alarm bell sound type respectively, also can be empty (NULL); The sound playing interface function of calling mobile phone media player in event handling function and control the mobile phone speaker sound that gives the alarm.
The method flow of binary runtime environment for wireless mobile phone environment abnormal alarm of the present invention comprises as shown in Figure 1:
The signal gathering unit of inductor is gathered the mobile phone environment signal, and reflects with voltage form.
In inductor, set alarm threshold value,,, set corresponding alarm threshold value as high temperature, smog, poison gas etc. for dissimilar inductors.
When the ambient voltage value surpasses alarm threshold value, generate alarm signal, amplify and be transferred to signal processing unit through amplifier.
Signal processing unit carries out mould/number conversion of signals with alarm signal, and analog signal conversion is become digital alarm signal.
Digital alarm signal after the conversion is consistent with the BREW communications platform, becomes the incident (event) that BREW can receive.
Alarm signal is sent from trend BREW cell phone platform from mobile phone through output circuit output.
The BREW cell phone platform is forwarded to application layer with it after receiving environment abnormal alarm signal (event).
Application layer starts corresponding application, and (event handler) handles it by event handling function, and the sound interface function as the calling mobile phone media player provides sends alarm command to mobile phone.Event handling function is handled the instruction of sending and is comprised information such as alarm types (as high temperature, smog, poison gas), emergency alarm bell sound type.
Mobile phone speaker sends alarm signal.
What can expect is that the classification difference of the sensing element of the inductor of implanting on the terminal phone, the classification of the environment abnormal alarm that the present invention makes are also different; By changing the classification of sensing element, or enlarge the induction class scope of sensing element, just can enlarge the insurance kind scope of binary runtime environment for wireless mobile phone environment abnormal alarm of the present invention.
Should be understood that above-mentioned description at specific embodiment is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.