CN101141505A - Earphone keying shot method of mobile phone - Google Patents

Earphone keying shot method of mobile phone Download PDF

Info

Publication number
CN101141505A
CN101141505A CNA2006100309307A CN200610030930A CN101141505A CN 101141505 A CN101141505 A CN 101141505A CN A2006100309307 A CNA2006100309307 A CN A2006100309307A CN 200610030930 A CN200610030930 A CN 200610030930A CN 101141505 A CN101141505 A CN 101141505A
Authority
CN
China
Prior art keywords
earphone
mobile phone
keying
judged result
yes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2006100309307A
Other languages
Chinese (zh)
Inventor
韩飞宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huanda Computer Shanghai Co Ltd
Mitac International Corp
Original Assignee
Mitac International Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitac International Corp filed Critical Mitac International Corp
Priority to CNA2006100309307A priority Critical patent/CN101141505A/en
Publication of CN101141505A publication Critical patent/CN101141505A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention relates to an earphone key controlled photographing method of a mobile phone, a wired earphone comprises the procedures that a disruption thread senses a key pressing status of the wired earphone, and judges whether the present key pressing status of the wired earphone is a depressing status; the judgment result is ''Yes'', the disruption thread informs a system call photographing application program through a virtual key depressing event; the photographing application program calls a camera driver program to judge whether the present is under a camera preview mode; the judgment result is ''Yes'', the photographing is executed. A bluetooth earphone comprises the procedures that the bluetooth earphone is switched to a voice frequency channel mode after a bluetooth protocol matches pair with the mobile phone; the application program is used to judge whether the bluetooth earphone triggers a special AT command; the judgment result is ''Yes'', the application program informs a system call photographing application program through the virtual key depressing event; the photographing application program calls a camera driver program to judge whether the present is under a camera preview mode; the judgment result is ''Yes'', the photographing is executed, therefore to reach the better imaging quality.

Description

The earphone keying shot method of mobile phone
[technical field]
The present invention is meant a kind of earphone keying shot method of mobile phone especially about a kind of keying shot method.
[background technology]
The wired earphone button of mobile phone (claiming the PTT button again) is used for the earphone receiving/hang-up telephony feature, and this key function is idle when no telephone operation.Affirmation button or the Camera Key execution of using mobile phone of taking pictures taken pictures, when hand-held taking pictures, the vibration of human upper limb makes image blur easily during button, and earphone cord is connected with mobile phone is soft, the mobile phone shake of using earphone keystroke can avoid the shake of upper limbs to bring.
And support the music playback function of bluetooth earphone for top, market mobile phone.Finish when the bluetooth earphone pairing, click the Action key of bluetooth earphone, then switch to Audio Routing.This key function idle basically (the part earphone is double-clicked button group words function automatically) when broadcast or non-broadcast.Taking pictures of mobile phone is by confirming button or Camera Key because the vibration of human upper limb when pushing button makes image blur easily, and if utilize with mobile phone and do not have the bluetooth earphone of physical connection to control, then can avoid this error.
In view of this, be necessary to develop the earphone keying shot method of mobile phone in fact, utilize the earphone keying shot method of this mobile phone, mobile phone for using wired earphone can be connected with the soft of mobile phone by earphone cord, uses earphone keystroke to control and takes pictures, mobile phone for the music playback function of supporting bluetooth earphone, utilizing does not have the bluetooth earphone of physical connection to control with mobile phone to take pictures, the mobile phone shake that so can avoid the shake of upper limbs to bring, thus reach better image quality.
[summary of the invention]
Therefore, the object of the present invention is to provide the earphone keying shot method of mobile phone, utilize the earphone keying shot method of this mobile phone, mobile phone for using wired earphone can be connected with the soft of mobile phone by earphone cord, uses earphone keystroke to control and takes pictures, mobile phone for the music playback function of supporting bluetooth earphone, utilizing does not have the bluetooth earphone of physical connection to control with mobile phone to take pictures, the mobile phone shake that so can avoid the shake of upper limbs to bring, thus reach better image quality.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is used for controlling by the button of mobile phone wired earphone and takes pictures, and this method comprises the following steps:
The key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state; If above-mentioned judged result is a "Yes", then interrupt thread is pressed event notice system by analogue-key and is called the application program of taking pictures; The application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is a "Yes", then carries out and take pictures.
If step: the key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state; If the judged result of this step is a "No", then continue to return this step of execution;
If step: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If the judged result of this step is a "No", then enter step: the key-press status of interrupt thread detecting wired earphone, and judge whether current key-press status is down state.
Especially, in above-mentioned steps: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is "Yes", then enter step: judge mobile phone current whether be no talking state; If this judged result is a "Yes", then enter step: carry out and take pictures.
If step: judge mobile phone current whether be no talking state; Judged result is a "No", then enters step: converse.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is used for controlling by the button of Bluetooth of mobile phone earphone and takes pictures, and this mobile phone is supported the music playback function of bluetooth earphone, and this method comprises the following steps:
Bluetooth earphone switches to the voice-grade channel pattern after matching by Bluetooth protocol and mobile phone; Use application program to judge whether the bluetooth earphone button triggers specific AT order; If above-mentioned judged result is a "Yes", then application program is pressed event notice system by analogue-key and is called the application program of taking pictures; The application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is a "Yes", then carries out and take pictures.
If step: use application program to judge whether the bluetooth earphone button triggers specific AT order; If the judged result of this step is a "No", then continue to return this step of execution;
If step: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If the judged result of this step is a "No", then enter step: use application program to judge whether the bluetooth earphone button triggers specific AT order.
Especially, in above-mentioned steps: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is "Yes", then enter step: judge mobile phone current whether be no talking state; If this judged result is a "Yes", then enter step: carry out and take pictures.
If step: judge mobile phone current whether be no talking state; Judged result is a "No", then enters step: converse.
Compared to prior art, the earphone keying shot method of mobile phone of the present invention, utilize the earphone keying shot method of this mobile phone, mobile phone for using wired earphone can be connected with the soft of mobile phone by earphone cord, uses earphone keystroke to control and takes pictures, mobile phone for the music playback function of supporting bluetooth earphone, utilizing does not have the bluetooth earphone of physical connection to control with mobile phone to take pictures, the mobile phone shake that so can avoid the shake of upper limbs to bring, thus reach better image quality.
For purpose of the present invention, structural feature and function thereof are had further understanding, conjunction with figs. is described in detail as follows now:
[description of drawings]
Fig. 1 illustrates the earphone keying shot method of mobile phone of the present invention in the method flow diagram of first embodiment that uses wired earphone.
Fig. 2 illustrates the earphone keying shot method of mobile phone of the present invention in the method flow diagram of second embodiment that uses wired earphone.
Fig. 3 illustrates the earphone keying shot method of mobile phone of the present invention in the method flow diagram of first embodiment that uses bluetooth earphone.
Fig. 4 illustrates the earphone keying shot method of mobile phone of the present invention in the method flow diagram of second embodiment that uses bluetooth earphone.
[embodiment]
Please refer to Fig. 1, its earphone keying shot method that illustrates mobile phone of the present invention is in the method flow diagram of first embodiment that uses wired earphone.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is controlled in the button that uses wired earphone and to be taken pictures, and first embodiment of this method comprises the following steps:
The key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state (step 100);
If above-mentioned judged result is a "Yes", then interrupt thread is pressed event notice system by analogue-key and is called the application program (step 102) of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode (step 104) that whether is in;
If above-mentioned judged result is a "Yes", then carry out take pictures (step 106).
If step 100 judged result is a "No", then continue to return this step of execution; If step 104 judged result is a "No", then enter step 100.
Please refer to Fig. 2, its earphone keying shot method that illustrates mobile phone of the present invention is in the method flow diagram of second embodiment that uses wired earphone.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is controlled in the button that uses wired earphone and to be taken pictures, and second embodiment of this method comprises the following steps:
The key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state (step 200);
If above-mentioned judged result is a "Yes", then interrupt thread is pressed event notice system by analogue-key and is called the application program (step 202) of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode (step 204) that whether is in;
If above-mentioned judged result is "Yes", then judge mobile phone current whether be no talking state (step 206);
If above-mentioned judged result is a "Yes", then carry out take pictures (step 208).
If step 200 judged result is a "No", then continue to return this step of execution; If step 204 judged result is a "No", then enter step 200; If step 206 judged result is a "No", then converses (step 210), and finish this flow process.
Please refer to Fig. 3, the earphone keying shot method that illustrates mobile phone of the present invention is in the method flow diagram of first embodiment that uses bluetooth earphone.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is used for controlling by the button of Bluetooth of mobile phone earphone and takes pictures, and this mobile phone is supported the music playback function of bluetooth earphone, and this method first embodiment comprises the following steps:
Bluetooth earphone switches to voice-grade channel pattern (step 300) after matching by Bluetooth protocol and mobile phone;
Use application program to judge whether the bluetooth earphone button triggers specific AT order (step 302);
If above-mentioned judged result is a "Yes", then application program is pressed event notice system by analogue-key and is called the application program (step 304) of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode (step 306) that whether is in;
If above-mentioned judged result is a "Yes", then carry out take pictures (step 308).
If step 302 judged result is a "No", then continue to return this step of execution; If the judged result of step 306 is a "No", then enter step 302.
Please refer to Fig. 4, the earphone keying shot method that illustrates mobile phone of the present invention is in the method flow diagram of second embodiment that uses bluetooth earphone.
For reaching above-mentioned purpose, the earphone keying shot method of mobile phone of the present invention is used for controlling by the button of Bluetooth of mobile phone earphone and takes pictures, and this mobile phone is supported the music playback function of bluetooth earphone, and this method second embodiment comprises the following steps:
Bluetooth earphone switches to voice-grade channel pattern (step 400) after matching by Bluetooth protocol and mobile phone;
Use application program to judge whether the bluetooth earphone button triggers specific AT order (step 402);
If above-mentioned judged result is a "Yes", then application program is pressed event notice system by analogue-key and is called the application program (step 404) of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode (step 406) that whether is in;
If above-mentioned judged result is "Yes", then judge mobile phone current whether be no talking state (step 408);
If above-mentioned judged result is a "Yes", then carry out take pictures (step 410).
If step 402 judged result is a "No", then continue to return this step of execution; If step 406 judged result is a "No", then enter step 402; If step 408 judged result is a "No", then enter step: converse (step 412), and finish this flow process.
Compared to prior art, the earphone keying shot method of mobile phone of the present invention utilizes the earphone of this mobile phone Keying shot method, the mobile phone for using wired earphone can be connected with the soft of mobile phone by earphone cord, Control with earphone keystroke and to take pictures, for the mobile phone of the music playback function of supporting bluetooth earphone, profit Do not take pictures with having the bluetooth earphone of physical connection to control with mobile phone, so can avoid the shake of upper limbs to bring Mobile phone shake, thereby reach better image quality.

Claims (12)

1. the earphone keying shot method of a mobile phone is used for controlling by the button of mobile phone wired earphone and takes pictures, and it is characterized in that this method comprises the following steps:
The key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state;
If above-mentioned judged result is a "Yes", then interrupt thread is pressed event notice system by analogue-key and is called the application program of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode that whether is in;
If above-mentioned judged result is a "Yes", then carries out and take pictures.
2. the earphone keying shot method of mobile phone as claimed in claim 1 is characterized in that, if step: and the key-press status of interrupt thread detecting wired earphone, and judge whether the current key-press status of wired earphone is down state; If the judged result of this step is a "No", then continue to return this step of execution.
3. the earphone keying shot method of mobile phone as claimed in claim 1 is characterized in that, if step: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If the judged result of this step is a "No", then enter step: the key-press status of interrupt thread detecting wired earphone, and judge whether current key-press status is down state.
4. as the earphone keying shot method of claim 1 or 2 or 3 described mobile phones, it is characterized in that above-mentioned steps: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is "Yes", then enter step: judge mobile phone current whether be no talking state.
5. the earphone keying shot method of mobile phone as claimed in claim 4 is characterized in that, if step: judge mobile phone current whether be no talking state; If this judged result is a "Yes", then enter step: carry out and take pictures.
6. the earphone keying shot method of mobile phone as claimed in claim 4 is characterized in that, if step: judge mobile phone current whether be no talking state; If this judged result is a "No", then enter step: converse.
7. the earphone keying shot method of a mobile phone is used for taking pictures by the button rice control of Bluetooth of mobile phone earphone, and this mobile phone is supported the music playback function of bluetooth earphone, it is characterized in that this method comprises the following steps:
Bluetooth earphone switches to the voice-grade channel pattern after matching by Bluetooth protocol and mobile phone;
Use application program to judge whether the bluetooth earphone button triggers specific AT order;
If above-mentioned judged result is a "Yes", then application program is pressed event notice system by analogue-key and is called the application program of taking pictures;
The application call camera driver of taking pictures is judged the current camera preview mode that whether is in;
If above-mentioned judged result is a "Yes", then carries out and take pictures.
8. the earphone keying shot method of mobile phone as claimed in claim 7 is characterized in that, if step: use application program to judge whether the bluetooth earphone button triggers specific AT order; If the judged result of this step is a "No", then continue to return this step of execution.
9. the earphone keying shot method of mobile phone as claimed in claim 7 is characterized in that, if step: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If the judged result of this step is a "No", then enter step: use application program to judge whether the bluetooth earphone button triggers specific AT order.
10. as the earphone keying shot method of claim 7 or 8 or 9 described mobile phones, it is characterized in that above-mentioned steps: the application call camera driver of taking pictures is judged the current camera preview mode that whether is in; If above-mentioned judged result is "Yes", then enter step: judge mobile phone current whether be no talking state.
11. the earphone keying shot method of mobile phone as claimed in claim 10 is characterized in that, if step: judge mobile phone current whether be no talking state; If this judged result is a "Yes", then enter step: carry out and take pictures.
12. the earphone keying shot method of mobile phone as claimed in claim 10 is characterized in that, if step: judge mobile phone current whether be no talking state; If this judged result is a "No", then enter step: converse.
CNA2006100309307A 2006-09-07 2006-09-07 Earphone keying shot method of mobile phone Pending CN101141505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006100309307A CN101141505A (en) 2006-09-07 2006-09-07 Earphone keying shot method of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006100309307A CN101141505A (en) 2006-09-07 2006-09-07 Earphone keying shot method of mobile phone

Publications (1)

Publication Number Publication Date
CN101141505A true CN101141505A (en) 2008-03-12

Family

ID=39193239

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006100309307A Pending CN101141505A (en) 2006-09-07 2006-09-07 Earphone keying shot method of mobile phone

Country Status (1)

Country Link
CN (1) CN101141505A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647523A (en) * 2012-04-11 2012-08-22 深圳市中兴移动通信有限公司 Remote control realization system and remote control realization method of intelligent mobile terminal and mobile terminal camera
CN103237169A (en) * 2013-04-16 2013-08-07 广东欧珀移动通信有限公司 Method and device for controlling camera to take photos by Bluetooth headset
CN103279289A (en) * 2013-04-16 2013-09-04 广东欧珀移动通信有限公司 Method and device for controlling camera to photograph with wired earphone
CN103916524A (en) * 2013-01-07 2014-07-09 凹凸电子(武汉)有限公司 Auxiliary operation device and method for controlling mobile terminal
CN104113627A (en) * 2013-04-16 2014-10-22 神达电脑股份有限公司 Method of displaying physical fitness data and physical fitness system
CN104202474A (en) * 2014-08-27 2014-12-10 东莞市和乐电子有限公司 Wireless time telling and photographing method
CN105827949A (en) * 2016-01-22 2016-08-03 维沃移动通信有限公司 Pressure-control photographing method, mobile terminal and headset
CN105842657A (en) * 2016-03-29 2016-08-10 林小军 Bluetooth earphone auxiliary searching realizing method
CN106504775A (en) * 2016-04-29 2017-03-15 上海宏镜科技有限公司 Control method based on Bluetooth audio device
CN114422710A (en) * 2022-03-29 2022-04-29 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647523A (en) * 2012-04-11 2012-08-22 深圳市中兴移动通信有限公司 Remote control realization system and remote control realization method of intelligent mobile terminal and mobile terminal camera
CN103916524A (en) * 2013-01-07 2014-07-09 凹凸电子(武汉)有限公司 Auxiliary operation device and method for controlling mobile terminal
CN103237169A (en) * 2013-04-16 2013-08-07 广东欧珀移动通信有限公司 Method and device for controlling camera to take photos by Bluetooth headset
CN103279289A (en) * 2013-04-16 2013-09-04 广东欧珀移动通信有限公司 Method and device for controlling camera to photograph with wired earphone
CN104113627A (en) * 2013-04-16 2014-10-22 神达电脑股份有限公司 Method of displaying physical fitness data and physical fitness system
CN104202474A (en) * 2014-08-27 2014-12-10 东莞市和乐电子有限公司 Wireless time telling and photographing method
CN105827949A (en) * 2016-01-22 2016-08-03 维沃移动通信有限公司 Pressure-control photographing method, mobile terminal and headset
CN105842657A (en) * 2016-03-29 2016-08-10 林小军 Bluetooth earphone auxiliary searching realizing method
CN106504775A (en) * 2016-04-29 2017-03-15 上海宏镜科技有限公司 Control method based on Bluetooth audio device
CN106504775B (en) * 2016-04-29 2019-09-03 上海宏镜科技有限公司 Control method based on Bluetooth audio device
CN114422710A (en) * 2022-03-29 2022-04-29 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium
CN114422710B (en) * 2022-03-29 2022-08-16 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
CN101141505A (en) Earphone keying shot method of mobile phone
JP5740145B2 (en) Apparatus and method for recognizing earphone wearing in portable terminal
EP1443737A1 (en) Headset comprising a wireless communication device communicating with at least two remote devices
KR101613931B1 (en) Mobile terminal and control method thereof
WO2018201944A1 (en) Apparatus control method and device
CN103701983A (en) Method and system for operating mobile phone applications quickly
CN102843464A (en) System and method utilizing distance sensor to adjust call audio output mode
WO2010060248A1 (en) A method to adjust the incoming call ring tone of the mobile terminal and a mobile terminal
CN102170493A (en) Mobile phone as well as method and device for controlling video calls of mobile phone
CN102984374A (en) Communication terminal and communication manner switching method thereof
JP2004120651A (en) Electronic apparatus and method for switching connection destination of the same electronic apparatus
CN104023117B (en) A kind of method of information processing and electronic equipment
CN104780574A (en) Method and device for network switchover
KR101390126B1 (en) Method of providing a preview image and mobile communication terminal
WO2015180451A1 (en) Method, apparatus, and system for wirelessly manipulating terminal
KR100833106B1 (en) Mobile communication terminal and its operating method
CN102123214A (en) Control device and method of three-network integrated phone
KR100809613B1 (en) Apparatus and method for performing communication function during performing multimedia function
KR101638924B1 (en) Electronic Device
US20100183137A1 (en) Phone With Child Mode
JP2001016560A (en) Image pickup device with communication function and incoming call notice method
WO2019056300A1 (en) Adjustment system and method for automatically switching audio mode during call
JP5914945B2 (en) Telephone device, telephone system, and control method
CN1112819C (en) Multifunctional phonetic recording and playback device and method for mobile telephone
JP5803132B2 (en) Voice switching device, program and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080312