Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of angle detecting terminal, by the equipment carried with, target direction can be identified easily, thus the experience of user can be improved.Below be described in detail respectively.
Refer to Fig. 1, a kind of schematic flow sheet of direction detection method disclosed in the embodiment of the present invention.As shown in Figure 1, this direction detection method can comprise the following steps.
S101, terminal opening direction measuring ability.
In the embodiment of the present invention, terminal can include but not limited to smart mobile phone, panel computer, notebook computer, palm PC, PAD etc.Wherein, the operating system of this terminal can include but not limited to Android operation system, IOS, Symbian (Saipan) operating system, Black Berry (blackberry, blueberry) operating system, Windows Phone8 operating system etc., and the embodiment of the present invention does not limit.
As the optional embodiment of one, terminal opening direction measuring ability, can comprise the following steps:
11) the angle detecting function open command that the pressure-detecting device this terminal of terminal reception user operation configured triggers;
12) this direction measuring ability open command of terminal response, opening direction measuring ability.
In embodiments of the present invention, pressure-detecting device can be configured in below terminal screen, or is configured in the left side of terminal fuselage, or is configured in the right side of terminal fuselage.When pressure-detecting device is configured in below terminal screen, if the screen above user's press pressure pick-up unit position, pressure-detecting device just can detect the force value that user's pressing operation produces.If this force value exceedes predetermined threshold value, then will trigger angle detecting function open command.
As the optional embodiment of one, terminal opening direction measuring ability, can comprise the following steps:
21) terminal receives the angle detecting function open command that user operation volume adjusting button triggers;
22) this direction measuring ability open command of terminal response, opening direction measuring ability.
In embodiments of the present invention, volume adjusting button can for being arranged on terminating machine mechanical key with it, is generally and is arranged on the left of terminal fuselage or the fast-type mechanical key with volume adjusting function on right side.This volume adjusting button also can for being loaded into the application software in terminal system, by receiving the touch operation of user's input or slide at Touch Screen to regulate the soft volume adjusting button of terminal volume.
In embodiments of the present invention, the concrete mode of user operation volume adjusting button can carry out pressing operation for user increases key to the volume increasing terminal volume, when user exceedes predetermined threshold value for duration of pressing operation that volume increases key, angle detecting function open command will be triggered.Or, the concrete mode of user operation volume adjusting button can carry out pressing operation for user reduces key to the volume reducing terminal volume, when user exceedes predetermined threshold value for duration of button operation that volume reduces key, angle detecting function open command will be triggered.Or, the concrete mode of user operation volume adjusting button increases key to volume for user simultaneously and volume reduction key carries out pressing operation, when terminal detects that user increases the button operation of key and volume reduction key to volume simultaneously, angle detecting function open command will be triggered.
The spatial attitude that S102, terminal sense terminals are current.
In the embodiment of the present invention, the current spatial attitude of terminal sense terminals can comprise the following steps:
31) terminal obtains the acceleration that gravity sensor causes due to gravity;
32) spatial attitude that terminal is current according to the acceleration calculation terminal obtained.
In the embodiment of the present invention, after opening direction measuring ability, the acceleration caused due to gravity that terminal will obtain gravity sensor and measures, according to the acceleration obtained, the spatial attitude that computing terminal is current.Optionally, Fig. 2 is the schematic diagram of a kind of three-dimensional rectangular coordinate axle disclosed in the embodiment of the present invention, and as shown in Figure 2, terminal can preset three-dimensional rectangular coordinate axle, and this three-dimensional rectangular coordinate axle comprises X-axis, Y-axis, Z axis three axles.Gravity sensor can measure the acceleration of X-axis in three-dimensional rectangular coordinate axle, Y-axis, Z axis three axles.Terminal will obtain X-axis, Y-axis, Z axis three axle accelerations of gravity sensor measurement, and calculates the current spatial attitude of terminal according to the accelerometer of the X-axis obtained, Y-axis, Z axis three axles.
Illustrate, when terminal is stationary state, the current spatial attitude of terminal is that terminal screen is parallel with ground level, and the screen of terminal upward time, the acceleration of X-axis is 0, and the acceleration of Y-axis is 0, and the acceleration of Z axis is 9.81; When terminal is stationary state, the current spatial attitude of terminal is that terminal screen is parallel with ground level, and the screen of terminal down time, the acceleration of X-axis is 0, and the acceleration of Y-axis is 0, and the acceleration of Z axis is-9.81; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction, the acceleration of X-axis is 0, and the acceleration of Y-axis is 9.81, the acceleration 0 of Z axis; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction, the acceleration of X-axis is 0, and the acceleration of Y-axis is-9.81, the acceleration 0 of Z axis; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the first horizontal screen direction, the acceleration of X-axis is 9.81, and the acceleration of Y-axis is 0, the acceleration 0 of Z axis; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the second horizontal screen direction, the acceleration of X-axis is-9.81, and the acceleration of Y-axis is 0, the acceleration 0 of Z axis.So the current spatial attitude of terminal just can be calculated by the acceleration of detection X-axis, Y-axis, Z axis.
Whether the current spatial attitude of S103, terminal judges terminal is the object space attitude for guiding target direction preset.
In the embodiment of the present invention, object space attitude can be the spatial attitude of the terminal pre-set, and as the optional embodiment of one, this object space attitude can include but not limited to any one spatial attitude following:
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first horizontal screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second horizontal screen direction.
In the embodiment of the present invention, object space attitude may be used for guiding target direction, and a kind of object space attitude is only for guiding a target direction.
It is the information of target direction that S104, terminal export the direction guided by spatial attitude being used for prompt terminal current.
In the embodiment of the present invention, if the current spatial attitude of terminal judges terminal is object space attitude, the direction guided by spatial attitude that then terminal is current is target direction, and the direction exported guided by the current spatial attitude of prompt terminal is the information of target direction by terminal.User can find direction guided by current spatial attitude, to determine target direction according to the design feature of terminal.Such as, the current spatial attitude of terminal is that screen is vertical with ground level, and when screen orientation is power key away from the spatial attitude in the first perpendicular screen direction on ground, then user can determine guided by the spatial attitude that terminal is current according to the position of power key direction, to obtain target direction.
As the optional embodiment of one, it is the vibration information of target direction that terminal can export for the direction guided by the current spatial attitude of prompt terminal; Or it is the acoustic information of target direction that terminal can export for the direction guided by the current spatial attitude of prompt terminal; Or it is vibration information and the acoustic information of target direction that terminal can export for the direction guided by the current spatial attitude of prompt terminal, and the embodiment of the present invention does not limit.
In the method described by Fig. 1, terminal opening direction measuring ability, the spatial attitude that sense terminals is current; And judge whether the current spatial attitude of terminal is the object space attitude for guiding target direction preset, if the current spatial attitude of terminal is object space attitude, then terminal exports the direction guided by spatial attitude being used for prompt terminal current is the information of target direction.Visible, the method described by Fig. 1 by the equipment carried with, can identify target direction easily, thus can improve the experience of user.
Refer to Fig. 3, the schematic flow sheet of another kind of direction detection method disclosed in the embodiment of the present invention.As shown in Figure 3, this direction detection method can comprise the following steps.
What S301, terminal reception user inputted arranges instruction.
S302, terminal response arrange instruction, to arrange the object space attitude for guiding ground level direction.
In the embodiment of the present invention, terminal receive user input instruction is set after, terminal response arranges instruction, to arrange the object space attitude for guiding ground level direction.Thus in step S309, terminal can judge whether the current spatial attitude of terminal is the object space attitude for guiding ground level direction preset.
In the embodiment of the present invention, any one spatial attitude following can be included but not limited to for guiding the object space attitude in ground level direction:
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first horizontal screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second horizontal screen direction.
S303, terminal opening direction measuring ability.
S304, terminal send the distress signal carrying terminal geographic positional information to the object contact person pre-set.
In the embodiment of the present invention, after execution step S303, terminal will obtain the object contact person pre-set, and open GPS (Global Positioning System, GPS) obtain terminal current geographic position information, the distress signal carrying terminal current geographic position information is sent to object contact person.
In the embodiment of the present invention, when victim is embedded in underground, possible contact person of being inconvenient to check in terminal contact, and send distress signal to contact person.At this moment by implementation step S304, when after terminal opening direction measuring ability, by the object contact person that automatic acquisition terminal pre-sets, and send the distress signal carrying terminal current geographic position information to object contact person, the possibility that victim is survived improves greatly.
S305, terminal start humidity detector and detect current environment humidity value.
In the embodiment of the present invention, after execution step S303, startup humidity detector is carried out real-time detection to current environment humidity value by terminal.Wherein, humidity detector can be humidity sensor.
Whether S306, terminal judges current environment humidity value exceed predetermined threshold value.
In the embodiment of the present invention, if terminal judges current environment humidity value exceedes predetermined threshold value, then perform step S307, if terminal judges current environment humidity value does not exceed predetermined threshold value, then continue to perform step S305, current environment humidity value is detected.
S307, terminal export the information for pointing out current environment humidity value to exceed predetermined threshold value.
In the embodiment of the present invention, when S306 judges that current environment humidity value exceedes predetermined threshold value, output is used for pointing out current environment humidity value to exceed the information of predetermined threshold value by terminal.Wherein, this information can include but not limited to vibration information, acoustic information, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, the information exceeding predetermined threshold value for pointing out current environment humidity value should be different from the information guiding target direction in step S310 for the spatial attitude that prompt terminal is current.Illustrate, when the information for pointing out current environment humidity value to exceed predetermined threshold value is acoustic information, the spatial attitude current for prompt terminal guides the information of target direction can be vibration information; When the information for pointing out current environment humidity value to exceed predetermined threshold value with when guiding the information of target direction to be all acoustic information for the spatial attitude that prompt terminal is current, different acoustic information can be set, be for pointing out current environment humidity value to exceed predetermined threshold value to distinguish this information, or guide target direction for the spatial attitude that prompt terminal is current.
In the embodiment of the present invention, when after earthquake, the place that underground humidity value is higher is more dangerous, by implementation step S305 ~ S307, terminal then exports information after detecting that current environment humidity value exceedes predetermined threshold value, to make user's Timeliness coverage dangerous, strive for fast-escape.
The spatial attitude that S308, terminal sense terminals are current.
Whether the current spatial attitude of S309, terminal judges terminal is the object space attitude for guiding target direction preset.
It is the information of target direction that S310, terminal export the direction guided by spatial attitude being used for prompt terminal current.
In the method described by Fig. 3, after terminal opening direction measuring ability, send the distress signal carrying terminal geographic positional information to the object contact person pre-set; And after terminal opening direction measuring ability, start humidity detector and real-time detection is carried out to current environment humidity value, if current environment humidity value exceedes predetermined threshold value, then terminal exports the information for pointing out current environment humidity value to exceed predetermined threshold value; And after terminal opening direction measuring ability, the spatial attitude that sense terminals is current; Judge whether the current spatial attitude of terminal is the object space attitude for guiding target direction preset, if the current spatial attitude of terminal is object space attitude, then terminal exports the direction guided by spatial attitude being used for prompt terminal current is the information of target direction.Visible, method described by Fig. 3 can not only by the equipment carried with, identify target direction easily, thus the experience of user can be improved, and distress signals can also be sent when victim is embedded in underground to the contact person pre-set and point out victim's current environment humidity value whether to exceed predetermined threshold value, add the possibility that victim survives.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.Wherein, the terminal shown in Fig. 4 can comprise opens unit 410, detecting unit 420, judging unit 430 and the first output unit 440.
Open unit 410, for opening direction measuring ability.
Detecting unit 420, for the spatial attitude that sense terminals is current.
Judging unit 430, for judging whether the current spatial attitude of terminal is the object space attitude for guiding target direction preset.
In the embodiment of the present invention, object space attitude can be the spatial attitude of the terminal pre-set, and as the optional embodiment of one, this object space attitude can include but not limited to any one spatial attitude following:
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first horizontal screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second horizontal screen direction.
In the embodiment of the present invention, object space attitude may be used for guiding target direction, and a kind of object space attitude is only for guiding a target direction.
First output unit 440 is the information of target direction for exporting for the direction guided by the current spatial attitude of prompt terminal.
In the embodiment of the present invention, if judging unit 430 judges terminal, current spatial attitude is object space attitude, the direction guided by spatial attitude that then terminal is current is target direction, and the direction exported guided by the current spatial attitude of prompt terminal is the information of target direction by the first output unit 440.User can find direction guided by current spatial attitude, to determine target direction according to the design feature of terminal.Such as, the current spatial attitude of terminal is that screen is vertical with ground level, and when screen orientation is power key away from the spatial attitude in the first perpendicular screen direction on ground, then user can determine guided by the spatial attitude that terminal is current according to the position of power key direction, to obtain target direction.
As the optional embodiment of one, it is the vibration information of target direction that the first output unit 440 can export for the direction guided by the current spatial attitude of prompt terminal; Or it is the acoustic information of target direction that the first output unit 440 can export for the direction guided by the current spatial attitude of prompt terminal; Or it is vibration information and the acoustic information of target direction that the first output unit 440 can export for the direction guided by the current spatial attitude of prompt terminal, and the embodiment of the present invention does not limit.
See also Fig. 5, Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.Wherein, the terminal shown in Fig. 5 is that terminal is as shown in Figure 4 optimized and obtains.Compared with the terminal shown in Fig. 4, the terminal shown in Fig. 5, except comprising the unit shown in Fig. 4, can also comprise the 3rd receiving element 450, the 3rd response unit 460, transmitting element 470, start unit 480 and the second output unit 490.
3rd receiving element 450, for receive user input instruction is set.
3rd response unit 460, for respond the 3rd receiving element 450 receive instruction is set, to arrange the object space attitude for guiding ground level direction.
In the embodiment of the present invention, the 3rd response unit 460, what can respond the 3rd receiving element 450 reception arranges instruction, to arrange the object space attitude for guiding ground level direction.Thus judging unit 430 will judge whether the current spatial attitude of terminal is the object space attitude being used for guiding ground level direction preset.
In the embodiment of the present invention, any one spatial attitude following can be included but not limited to for guiding the object space attitude in ground level direction:
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the first horizontal screen direction;
The screen of terminal is vertical with ground level, and the screen orientation of terminal is the spatial attitude in the second horizontal screen direction.
Transmitting element 470, after opening unit 410 opening direction measuring ability, sends the distress signal carrying terminal geographic positional information to the object contact person pre-set.
In the embodiment of the present invention, after unlatching unit 410 opening direction measuring ability, transmitting element 470 will obtain the object contact person pre-set, and open GPS (Global Positioning System, GPS) obtain terminal current geographic position information, the distress signal carrying terminal current geographic position information is sent to object contact person.
In the embodiment of the present invention, when victim is embedded in underground, possible contact person of being inconvenient to check in terminal contact, and send distress signal to contact person.At this moment when after terminal opening direction measuring ability, by the object contact person that transmitting element 470 automatic acquisition terminal pre-sets, and the distress signal carrying terminal current geographic position information is sent to object contact person, the possibility that victim is survived improves greatly.
Start unit 480, after opening unit 410 opening direction measuring ability, starts humidity detector and detects current environment humidity value.
In the embodiment of the present invention, after unlatching unit 410 opening direction measuring ability, startup humidity detector is carried out real-time detection to current environment humidity value by start unit 480.Wherein, humidity detector can be humidity sensor.
Second output unit 490, for exporting the information for pointing out current environment humidity value to exceed predetermined threshold value.
In the embodiment of the present invention, when current environment humidity value exceedes predetermined threshold value, output is used for pointing out current environment humidity value to exceed the information of predetermined threshold value by the second output unit 490.Wherein, this information can include but not limited to vibration information, acoustic information, and the embodiment of the present invention does not limit.When current environment humidity value does not exceed predetermined threshold value, start unit 480 continues to detect current environment humidity value.
In the embodiment of the present invention, the information exceeding predetermined threshold value for pointing out current environment humidity value should be different from the information of the spatial attitude guide target direction current for prompt terminal that the first output unit 440 exports.Illustrate, when the information for pointing out current environment humidity value to exceed predetermined threshold value is acoustic information, the spatial attitude current for prompt terminal guides the information of target direction can be vibration information; When the information for pointing out current environment humidity value to exceed predetermined threshold value with when guiding the information of target direction to be all acoustic information for the spatial attitude that prompt terminal is current, different acoustic information can be set, be for pointing out current environment humidity value to exceed predetermined threshold value to distinguish this information, or guide target direction for the spatial attitude that prompt terminal is current.
In the embodiment of the present invention, when after earthquake, the place that underground humidity value is higher is more dangerous, detect current environment humidity value by start unit 480, if current environment humidity value exceedes predetermined threshold value, the second output unit 490 exports information, to make user's Timeliness coverage dangerous, strive for fast-escape.
In the terminal shown in Fig. 5, detecting unit 420 can comprise with lower unit:
Acquiring unit 421, for obtaining the acceleration that gravity sensor causes due to gravity;
Computing unit 422, for the spatial attitude current according to the acceleration calculation terminal obtained.
In the embodiment of the present invention, after unlatching unit 410 opening direction measuring ability, the acceleration caused due to gravity that acquiring unit 421 will obtain that gravity sensor measures, and by computing unit 422 according to the acceleration obtained, calculate the spatial attitude that it is current.Optionally, Fig. 2 is the schematic diagram of a kind of three-dimensional rectangular coordinate axle disclosed in the embodiment of the present invention, and as shown in Figure 2, terminal can preset three-dimensional rectangular coordinate axle, and this three-dimensional rectangular coordinate axle comprises X-axis, Y-axis, Z axis three axles.Gravity sensor can measure the acceleration of X-axis in three-dimensional rectangular coordinate axle, Y-axis, Z axis three axles.Acquiring unit 421 will obtain X-axis, Y-axis, Z axis three axle accelerations of gravity sensor measurement, and calculates the current spatial attitude of terminal by computing unit 422 according to the accelerometer of the X-axis obtained, Y-axis, Z axis three axles.
Illustrate, when terminal is stationary state, the current spatial attitude of terminal is that terminal screen is parallel with ground level, and the screen of terminal upward time, the acceleration of X-axis is 0, and the acceleration of Y-axis is 0, and the acceleration of Z axis is 9.81; Then when terminal is stationary state, the current spatial attitude of terminal is that terminal screen is parallel with ground level, and the screen of terminal down time, the acceleration of X-axis is 0, and the acceleration of Y-axis is 0, and the acceleration of Z axis is-9.81; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the first perpendicular screen direction, the acceleration of X-axis is 0, and the acceleration of Y-axis is 9.81, the acceleration 0 of Z axis; Then when terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the second perpendicular screen direction, the acceleration of X-axis is 0, and the acceleration of Y-axis is-9.81, the acceleration 0 of Z axis; When terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the first horizontal screen direction, the acceleration of X-axis is 9.81, and the acceleration of Y-axis is 0, the acceleration 0 of Z axis; Then when terminal is stationary state, the current spatial attitude of terminal is that the screen of terminal is vertical with ground level, and when the screen orientation of terminal is the spatial attitude in the second horizontal screen direction, the acceleration of X-axis is-9.81, and the acceleration of Y-axis is 0, the acceleration 0 of Z axis.So the current spatial attitude of terminal just can be calculated by the acceleration of detection X-axis, Y-axis, Z axis.
See also Fig. 6, Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.Wherein, the terminal shown in Fig. 6 is that terminal is as shown in Figure 5 optimized and obtains, and compared with the terminal shown in Fig. 5, in the terminal shown in Fig. 6, opening unit 410 can comprise:
First receiving element 411, for receiving the angle detecting function open command that pressure-detecting device that user operation terminal configures triggers;
First response unit 412, for responding the angle detecting function open command that the first receiving element 411 receives, opening direction measuring ability.
In the embodiment of the present invention, pressure-detecting device can be configured in below terminal screen, or is configured in the left side of terminal fuselage, or is configured in the right side of terminal fuselage.When pressure-detecting device is configured in below terminal screen, if the screen above user's press pressure pick-up unit position, pressure-detecting device just can detect the force value that user's pressing operation produces.If this force value exceedes predetermined threshold value, then will trigger angle detecting function open command.
See also Fig. 7, Fig. 7 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.Wherein, the terminal shown in Fig. 7 is that terminal is as shown in Figure 5 optimized and obtains, and compared with the terminal shown in Fig. 5, in the terminal shown in Fig. 7, opening unit 410 can comprise:
Second receiving element 413, for receiving the angle detecting function open command that user operation volume adjusting button triggers;
Second response unit 414, for responding the angle detecting function open command that the second receiving element 413 receives, opening direction measuring ability.
In the embodiment of the present invention, volume adjusting button can for being arranged on terminating machine mechanical key with it, is generally and is arranged on the left of terminal fuselage or the fast-type mechanical key with volume adjusting function on right side.This volume adjusting button also can for being loaded into the application software in terminal system, by receiving the touch operation of user's input or slide at Touch Screen to regulate the soft volume adjusting button of terminal volume.
In the embodiment of the present invention, the concrete mode of user operation volume adjusting button can carry out pressing operation for user increases key to the volume increasing terminal volume, when user exceedes predetermined threshold value for duration of pressing operation that volume increases key, angle detecting function open command will be triggered.Or, the concrete mode of user operation volume adjusting button can carry out pressing operation for user reduces key to the volume reducing terminal volume, when user exceedes predetermined threshold value for duration of button operation that volume reduces key, angle detecting function open command will be triggered.Or, the concrete mode of user operation volume adjusting button increases key to volume for user simultaneously and volume reduction key carries out pressing operation, when terminal detects that user increases the button operation of key and volume reduction key to volume simultaneously, angle detecting function open command will be triggered.
In the terminal described by Fig. 4, open unit opening direction measuring ability, the spatial attitude that detecting unit sense terminals is current; Judging unit judges whether the current spatial attitude of terminal is the object space attitude for guiding target direction preset; If the current spatial attitude of terminal is object space attitude, then the first output unit exports the direction guided by spatial attitude being used for prompt terminal current is the information of target direction.Visible, the terminal described by Fig. 4 by the equipment carried with, can identify target direction easily, thus can improve the experience of user.In the terminal described by Fig. 5, Fig. 6, Fig. 7, after unlatching unit opening direction measuring ability, transmitting element sends the distress signal carrying terminal geographic positional information to the object contact person pre-set; And after opening unit opening direction measuring ability, start unit starts humidity detector and carries out real-time detection to current environment humidity value, if current environment humidity value exceedes predetermined threshold value, then the second output unit exports the information for pointing out current environment humidity value to exceed predetermined threshold value.Terminal described by visible Fig. 5, Fig. 6, Fig. 7 can not only identify target direction easily, victim is made to escape from ground fast, but also distress signals can be sent to the contact person pre-set and point out victim's current environment humidity value whether to exceed predetermined threshold value, add the possibility that victim survives.
Refer to Fig. 8, the structural representation of Fig. 8 another kind of terminal disclosed in the embodiment of the present invention, as shown in Figure 8, this terminal can comprise: at least one processor 810, such as CPU, at least one storer 820, at least one communication bus 830, at least one output unit 840, at least one pressure-detecting device 850, at least one humidity detector 860, at least one input media 870.Wherein, communication bus 830 is for realizing the communication connection between these assemblies.Storer 820 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 820 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 810.Wherein, processor 810 can composition graphs 4, terminal described by Fig. 5, Fig. 6 and Fig. 7, store batch processing code, and above-mentioned processor 810 calls the program code stored in storer 820, for performing following operation in storer 820:
Opening direction measuring ability;
The spatial attitude that sense terminals is current;
Judge whether the current spatial attitude of terminal is the object space attitude for guiding target direction preset;
If the current spatial attitude of terminal is object space attitude, then making output unit 840 export for the direction guided by the current spatial attitude of prompt terminal is the information of target direction.
As the optional embodiment of one, processor 810 calls the program code in storer 820, opens self-saving model, can specifically comprise following operation:
Respond the angle detecting function open command that pressure-detecting device 850 that the user operation terminal that inputted by input media 870 configures is triggered, opening direction measuring ability.
In embodiments of the present invention, pressure-detecting device can be configured in below terminal screen, or is configured in the left side of terminal fuselage, or is configured in the right side of terminal fuselage.When pressure-detecting device is configured in below terminal screen, if the screen above user's press pressure pick-up unit position, pressure-detecting device just can detect the force value that user's pressing operation produces.If this force value exceedes predetermined threshold value, then will trigger angle detecting function open command.
As the optional embodiment of one, processor 810 calls the program code in storer 820, opens self-saving model, can specifically comprise following operation:
The angle detecting function open command that response user operation volume adjusting button triggers, opening direction measuring ability.
In the embodiment of the present invention, processor 810 calls the program code in storer 820, can also perform following steps:
What response was inputted by input media 870 arranges instruction, arranges the object space attitude for guiding ground level direction.
In the embodiment of the present invention, processor 810 calls the program code in storer 820, the spatial attitude that sense terminals is current, can specifically comprise following operation:
Obtain the acceleration that gravity sensor causes due to gravity;
The spatial attitude that terminal is current according to the described acceleration calculation obtained.
In the embodiment of the present invention, processor 810 calls the program code in storer 820, after opening direction measuring ability, can also perform following operation:
The distress signal carrying described terminal geographic positional information is sent to the object contact person pre-set.
In the embodiment of the present invention, processor 810 calls the program code in storer 820, after opening direction measuring ability, can also perform following operation:
Start humidity detector 860 pairs of current environment humidity values to detect.
If current environment humidity value exceedes predetermined threshold value, then output unit 840 is made to export information for pointing out current environment humidity value to exceed predetermined threshold value.
As the optional embodiment of one, processor 810 calls the program code in storer 820, makes output unit 840 export the information guiding target direction for the spatial attitude that prompt terminal is current, can specifically comprise following operation:
Direction guided by the spatial attitude exporting for pointing out described terminal current by output unit 840 is the vibration information of described target direction.
As the optional embodiment of one, processor 810 calls the program code in storer 820, and making output unit 840 export for the direction guided by the current spatial attitude of prompt terminal is the information of target direction, can specifically comprise following operation:
Direction guided by the spatial attitude exporting for pointing out described terminal current by output unit 840 is the acoustic information of described target direction.
Concrete, the terminal introduced in the present embodiment can implement the part or all of flow process in the embodiment of the direction detection method that composition graphs 1 to Fig. 3 of the present invention introduces.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal or equipment or subelement can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can carry out the device-dependent hardware of command terminal by program to have come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Be described in detail the embodiment of the invention discloses a kind of terminal above, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.