Summary of the invention
The object of the present invention is to provide a kind of mobile phone and method of work thereof with earphone function, it has increased the function of mobile phone, saves the expense of buying headset, and is convenient for carrying.
A kind of mobile phone with earphone function for realizing that purpose of the present invention provides comprises: traffic identification control module and headset module, wherein:
Described traffic identification control module is used to discern the business of current execution, according to different service types, calls the difference in functionality module in the described mobile phone;
Described headset module is used for when being called by described traffic identification control module, for setting up the headset voice channel between described mobile phone and the computer.
Described headset module also comprises:
Audio conversion module is used for the speech data of computer and the speech of user's speech are changed mutually.
For realizing that purpose of the present invention also provides a kind of method of work with mobile phone of earphone function, described method of work comprises the following steps:
Step 100. mobile phone and computer connect;
Step 200. user selects whether to enter the headset pattern on the menu of described mobile phone, if then enter step 300; Otherwise, on the menu of described mobile phone, select other USB functional modes;
Set up the headset voice channel between step 300. mobile phone and the computer, carry out the reception and the transmission of speech data.
Described step 100 also comprises the following steps:
Step 110. is connected described mobile phone with computer;
Step 120. computer is a USB device with described handset identity;
Show with computer on the described mobile phone of step 130. and connect.
Described connected mode comprises: connect by usb data line or blue teeth wireless.
Described step 300 also comprises the following steps:
Step 310. is set up the headset voice channel;
The speech data of the described mobile phone receiving computer of step 320., the audio conversion through described mobile phone is transferred to the user;
The speech of step 330. user speech, the audio conversion through described mobile phone is transferred to computer.
In the step 300, in the process of the reception of carrying out speech data and transmission, when needing to carry out other business, described step 300 also further comprises the following steps: between described mobile phone and the computer
Step 310 '. judge whether to switch the headset voice channel, if then enter step 320 '; Otherwise enter step 330 ';
Step 320 '. switch the headset voice channel and enter voice or multimedia service pattern, the headset pattern is hung up, and after described mobile phone was finished voice or multimedia service, described mobile phone recovered the headset pattern;
Step 330 '. the user is the direct control non-voice service on mobile phone, keeps the headset voice channel.
Described method of work also comprises step:
Step 400. user selects to withdraw from the headset pattern by the menu of described mobile phone, and the user continues to use other USB functions of mobile phone.
Described step 400 comprises the following steps:
Step 410. judges whether to disconnect and connects, if then enter step 420, otherwise the user continues to use other USB functions of mobile phone;
Step 420. user disconnects being connected of mobile phone and computer.
Described step 420 comprises the following steps:
Step 421. is if mobile phone is connected by the usb data line with computer, and the user pulls out usb data line being connected with disconnection mobile phone and computer;
Step 422. is if mobile phone is connected by blue teeth wireless with computer, and the Bluetooth function that the user closes the described mobile phone that is identified as USB device or closes described mobile phone from computer is connected with disconnection mobile phone and computer.
Beneficial effect of the present invention is:
1. the place of going out as the user does not have headset or be inconvenient to carry under the situation of headset, can be mobile phone as an external audio frequency apparatus use;
2. mobile phone is used as external headset, can allow the voice-enabled chat on the computer equally convenient, saved the expense of making a phone call simultaneously to making a phone call;
3. mobile phone is used as external headset, can better realize functions such as Web conference, the user can get together and participate in a conference, and participates in a conference and need not be subjected to the position that the restriction of own computer is sitting in separately;
4. mobile phone is used as external headset, can save the expense that the user buys headset separately.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, a kind of mobile phone and method of work thereof with earphone function of the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
A kind of mobile phone and method of work thereof with earphone function of the present invention is that mobile phone is connected with computer, and the menu operation by mobile phone switches to the headset pattern with mobile phone, and the headset that this moment, mobile phone can be used as computer uses.It has increased the function of mobile phone, saves the expense of buying headset, and is convenient for carrying.
Below in conjunction with above-mentioned target, introduce a kind of mobile phone of the present invention in detail with earphone function.Fig. 1 is a kind of structural representation with mobile phone of earphone function of the present invention, and as shown in Figure 1, described mobile phone comprises: CPU, voice module, traffic identification control module, headset module, audio conversion module, wherein:
Traffic identification control module 1 is used to discern the business of current execution, according to different service types, calls the difference in functionality module in the described mobile phone;
After mobile phone of the present invention and computer connected, the traffic identification control module can be automatically according to the difference in functionality module in user's the selection calling mobile phone, and computer is controlled the USB functional module relevant with computer in the mobile phone indirectly by service identification module.
Headset module 2 is used for when being called by described traffic identification control module, for setting up the headset voice channel between described mobile phone and the computer.
Described headset module 2 also comprises:
Audio conversion module 21 is used for the voice data of computer and the speech of user's speech are changed mutually.
Described headset module is connected with CPU, voice module in the mobile phone, and the voice data of the CPU receiving computer of mobile phone is changed audio data transmission to audio conversion module, and the voice data after will changing is again passed to the user by voice module; In like manner, voice module receives user's speech, and voiceband user is transferred to audio conversion module, becomes audio-frequency information through audio conversion and is transferred to CPU again, by CPU audio-frequency information is transferred to computer, finishes reception and the transmission of carrying out speech data between mobile phone and the computer.
Corresponding to a kind of mobile phone of the present invention, also provide a kind of method of work with mobile phone of earphone function with earphone function.
Fig. 2 is the flow chart of the method for work of a kind of mobile phone with earphone function of the present invention, and as shown in Figure 2, described method of work comprises the following steps:
Step 100. mobile phone and computer connect;
Step 110. is connected mobile phone with computer;
Mobile phone can be connected with computer by the usb data line, also can be connected with the computer with bluetooth linkage function by the Bluetooth function of starting hand-set self.
Behind the Bluetooth function of mobile phone unlatching itself, the user adds this cell phone apparatus in the bluetooth equipment tabulation of computer.
Step 120. computer is a USB device with described handset identity;
Computer is a USB device with handset identity, promptly can use USB functions all on the mobile phone, for example, mobile phone as a USB flash disk, is transmitted data to it; Or picture of the present invention with it as the headset use etc.
Show with computer on the described mobile phone of step 130. and connect.
Behind the computer Recognition mobile phone, show with computer on the mobile phone to connect.
Step 200. user selects whether to enter the headset pattern on the menu of described mobile phone, if then enter step 300; Otherwise, on the menu of described mobile phone, select other USB functional modes;
In this step, after mobile phone and computer connect, which USB function that the CPU of mobile phone will point out the user to select mobile phone, after the user selected earphone function, the traffic identification control module of mobile phone was with the headset module in the calling mobile phone; In like manner, after the user selected other USB functions, the traffic identification control module of mobile phone was with other USB functional modules in the calling mobile phone.
Set up the headset voice channel between step 300. mobile phone and the computer, carry out the reception and the transmission of speech data.
Fig. 3 is the flow chart that carries out the reception and the transmission of speech data between mobile phone and the computer among the present invention, and as shown in Figure 3, described step 300 comprises the following steps:
Step 310. is called the headset module and is set up the headset voice channel;
Described headset module is connected with CPU, audio conversion module, voice module in the mobile phone, calls the headset module, the headset voice channel that---audio conversion module---voice module of setting up CPU connects.
The speech data of the described mobile phone receiving computer of step 320., the audio conversion through described mobile phone is transferred to the user;
The voice data of the CPU receiving computer of mobile phone is changed audio data transmission to audio conversion module, the voice data after will changing is again passed to the user by voice module.
The speech of step 330. user speech, the audio conversion through described mobile phone is transferred to computer.
In like manner, voice module receives user's speech, and voiceband user is transferred to audio conversion module, becomes audio-frequency information through audio conversion and is transferred to CPU again, by CPU audio-frequency information is transferred to computer.
Fig. 4 is the flow chart of user's service switchover among the present invention.
Preferably, when the user uses the earphone function of described mobile phone, need to carry out under other professional situations, described step 300 as shown in Figure 4, also further comprises the following steps:
Step 310 '. judge whether to switch the headset voice channel, if then enter step 320 '; Otherwise enter step 330 ';
Step 320 '. switch the headset voice channel and enter voice or multimedia service pattern, the headset pattern is hung up, and after described mobile phone was finished voice or multimedia service, described mobile phone recovered the headset pattern;
Step 330 '. the user is the direct control non-voice service on mobile phone, keeps the headset voice channel.
Step 400. user selects to withdraw from the headset pattern by the menu of described mobile phone, and the user continues to use other USB functions of mobile phone.
Fig. 5 is the flow chart that the user withdraws from mobile phone headset pattern among the present invention, and as shown in Figure 5, described step 400 comprises the following steps:
Step 410. judges whether to disconnect and connects, if then enter step 420, otherwise the user continues to use other USB functions of mobile phone;
Use other USB functions of mobile phone, promptly withdraw from the headset pattern of mobile phone automatically.
Step 420. user disconnects being connected of mobile phone and computer;
Step 421. is if mobile phone is connected by the usb data line with computer, and the user can disconnect by the method for directly pulling out the usb data line and connecting;
Step 422. is if mobile phone is connected by blue teeth wireless with computer, and the Bluetooth function that the user can be directly closes the described mobile phone that is identified as USB device or closes described mobile phone from computer is connected with disconnection mobile phone and computer.
The disconnection mobile phone is connected with computer, promptly withdraws from all USB functions of mobile phone.
Beneficial effect of the present invention is:
1. the place of going out as the user does not have headset or be inconvenient to carry under the situation of headset, can be mobile phone as an external audio frequency apparatus use;
2. mobile phone is used as external headset, can allow the voice-enabled chat on the computer equally convenient, saved the expense of making a phone call simultaneously to making a phone call;
3. mobile phone is used as external headset, can better realize functions such as Web conference, the user can get together and participate in a conference, and participates in a conference and need not be subjected to the position that the restriction of own computer is sitting in separately;
4. mobile phone is used as external headset, can save the expense that the user buys headset separately.
In conjunction with the drawings to the description of the specific embodiment of the invention, others of the present invention and feature are conspicuous to those skilled in the art.
More than specific embodiments of the invention are described and illustrate it is exemplary that these embodiment should be considered to it, and be not used in and limit the invention, the present invention should make an explanation according to appended claim.