A kind of digital compass that utilizes carries out control method of portable equipment
Technical field
The present invention relates to a kind of digital compass that utilizes and carry out control method of portable equipment.
Background technology
Along with development of science and technology, the application of portable equipments such as mobile phone, MP3 more and more widely appear at people's work and the life in the middle of.Therefore, utilize the portability of portable equipment, become inevitable trend for people develop multiple demands.The present invention utilizes the digital compass that disposes in the portable equipment, and portable equipment is controlled easily, makes the user can control portable equipment easily under different occasions, carries out such as changing easy operations such as song or page turning.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of digital compass that utilizes and carries out control method of portable equipment, utilize the digital compass that has on the various portable equipments such as mobile phone, MP3, MP4, the user can be by the control of simple spinning movement realization to portable equipment.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of digital compass that utilizes carries out control method of portable equipment, may further comprise the steps:
1.1 the user is by opening the digital compass in the program start portable equipment that is stored in advance in the portable equipment controller;
1.2 the user starts the application program that possesses keypress function in the portable equipment;
1.3 the user rotates described portable equipment as required;
1.4 the angle change information of digital compass sensing portable equipment;
1.5 the portable equipment program reads the portable equipment angle change information that digital compass senses, and by calculating the relative angle change information of rotation front and back; The angle change information of described digital compass sensing portable equipment is the angle change information of portable equipment and terrestrial magnetic field horizontal direction angle; Described angle change information comprises that angle changes size and angle change direction;
1.6 described portable equipment program judges whether to produce control commands corresponding according to the portable equipment relative angle change information that digital compass senses;
1.7 the portable equipment application program stops to carry out current execute file earlier, responds the control command that produces in 1.6 again.
In the such scheme, the described portable equipment that digital compass is housed is mobile phone MP3, MP4, MP5, digital camera, the PDA that is equipped with digital compass.
In the such scheme, the application program that the portable equipment in the step 1.2 possesses keypress function comprises: text demonstration, voice playing, video playback, picture browsing.
Effective effect of the present invention mainly shows: in the existing portable equipment that is equipped with digital compass, the user just realizes the function of direction location mostly with digital compass, it is not carried out further function expansion.But technical scheme provided by the invention is rotated the motion angle change information by digital compass perception user to portable equipment, by the portable equipment program angle change information is made command determination, and then control portable equipment response command, make the user under situations such as standby, also can simply control portable equipment easily, and need not carry out release, enter operations such as menu, thereby be very easy to the control of user to portable equipment.
Description of drawings
Fig. 1 carries out the control method of portable equipment process flow diagram for the digital compass that utilizes of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
With reference to shown in Figure 1, the user at first by opening the digital compass in the program start portable equipment that is stored in advance in the portable equipment controller, restarts the application program that possesses keypress function in the portable equipment; The user holds portable equipment as required and is rotated then, the angle change information of digital compass perception simultaneously portable equipment, the portable equipment program reads the angle change information that digital compass senses, and calculate the rotation before and after the relative angle change information, wherein, the angle change information of portable equipment is the angle change information of portable equipment and terrestrial magnetic field horizontal direction angle, comprises that angle changes size and angle change direction; Portable equipment is according to angle change information and current application program, produce control commands corresponding, portable equipment produces the process of control command, can be according to the difference of relative angle change information, define user's rotation mode of different correspondences, and then simulate different corresponding key functions, be shown as example with voice playing and text in this enforcement and set forth the detailed process that the portable equipment program produces control command:
User's portable equipment that turns clockwise is rotated counterclockwise portable equipment afterwards at once, and the relative angle change information that portable equipment obtains according to digital compass and the application program of current operation produce next or the control command of one page down.
The user is rotated counterclockwise portable equipment, and the relative angle change information that the portable equipment that at once turns clockwise afterwards, portable equipment obtain according to digital compass and the application program of current operation produce the control command of a last head or page up.
User's portable equipment that turns clockwise, continue the portable equipment that turns clockwise after having a break, the relative angle change information that portable equipment obtains according to digital compass and the application program of current operation produce the control command of continuous two next or continuous two following one pages.
The user is rotated counterclockwise portable equipment, continue to be rotated counterclockwise portable equipment after having a break, the relative angle change information that portable equipment obtains according to digital compass and the application program of current operation produce the control command of continuous two last one first or continuous two page ups.
The portable equipment amplitude is too small to make digital compass induction less than its changing value if the user rotates, and then to keep current state constant for portable equipment.
Should comprise one or more than one music file in the portable equipment music playlist, perhaps the text of portable equipment demonstration should comprise one page or the above displaying contents of one page; If playlist includes only a music file or text includes only one page displaying contents, when then the user rotated portable equipment, it is constant that portable equipment is kept current state.
At last, the application response of portable equipment should stop to carry out current file earlier, again the control command of response rotation generation.
Should be understood that above-mentioned description at embodiment is comparatively concrete, 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.