CN106997328B - Mobile phone control method based on universal serial bus audio protocol - Google Patents
Mobile phone control method based on universal serial bus audio protocol Download PDFInfo
- Publication number
- CN106997328B CN106997328B CN201710195455.7A CN201710195455A CN106997328B CN 106997328 B CN106997328 B CN 106997328B CN 201710195455 A CN201710195455 A CN 201710195455A CN 106997328 B CN106997328 B CN 106997328B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- control
- serial bus
- universal serial
- audio
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72433—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a mobile phone control method based on a universal serial bus audio protocol and mobile phone audio equipment based on the method. The method comprises the following steps: adding control items corresponding to answering and hanging up/rejecting of the mobile phone in a control request of a universal serial bus audio protocol of the mobile phone; when the mobile phone audio equipment using the USB audio protocol is accessed into the mobile phone through the USB, the mobile phone audio equipment is used for sending the command of the control item to the mobile phone through the USB so as to realize the control of the mobile phone. According to the method, when the audio equipment of the mobile phone using the UAC protocol is accessed into the mobile phone, the audio equipment can be used for controlling the mobile phone without directly operating the mobile phone, so that the complexity of the operation of the mobile phone is greatly simplified, the usability of the mobile phone is improved, the functions of the audio equipment of the mobile phone are expanded, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a mobile phone control method based on a universal serial bus audio protocol.
Background
With the continuous development of mobile phone technology, the application of mobile phones in daily production and life is more and more popular.
Due to the limitations of volume, energy consumption and the like, only a simpler audio external device (a built-in loudspeaker) is integrated in the mobile phone. With the continuous improvement of user requirements, the audio external device built in the mobile phone often cannot meet the requirements of users in different application occasions. Therefore, in order to further improve the usability of the mobile phone and expand the functions of the mobile phone, in the prior art, a variety of different mobile phone audio devices (such as earphones, speaker boxes, etc.) are developed for different applications of the mobile phone.
With the continuous improvement of the demand of users for sound quality, in the prior art, a part of mobile phone Audio devices access a mobile phone by using a Universal Serial Bus (USB), and acquire Audio data output by the mobile phone based on a universal serial bus Audio Class (UAC) protocol. However, in the prior art, the audio device of the mobile phone based on the UAC protocol usually cannot control the mobile phone, and during the audio processing, if the mobile phone needs to be controlled (for example, a call is incoming or needs to be answered or rejected/hung up during a call), the user needs to directly operate the mobile phone. Therefore, the operation difficulty of the mobile phone is increased to a certain extent, and the usability of the mobile phone audio equipment is reduced.
Therefore, in order to improve the usability of the audio device of the mobile phone, a new mobile phone control method is required.
Disclosure of Invention
The invention provides a mobile phone control method based on a universal serial bus audio protocol, which comprises the following steps:
adding control items corresponding to answering and hanging up/rejecting of the mobile phone in a control request of a universal serial bus audio protocol of the mobile phone;
when the mobile phone audio equipment using the USB audio protocol is accessed into the mobile phone through the USB, the mobile phone audio equipment is used for sending the command of the control item to the mobile phone through the USB so as to realize the control of the mobile phone.
In an embodiment, the control request of the usb audio-like protocol includes a setting request and an obtaining request, wherein the control item is added to the setting request.
In an embodiment, in the universal serial bus audio class protocol:
the request type field corresponding to the control request of the universal serial bus audio protocol is 00100001B;
the control entry corresponds to request field 0x 06.
In one embodiment, the control item with different data fields is sent to the mobile phone by the mobile phone audio device through a universal serial bus to realize the control of the mobile phone.
In one embodiment, when a call is incoming or a call is in progress, the mobile phone audio equipment is used for sending a corresponding instruction of the control item to the mobile phone through the universal serial bus so as to realize answering or hanging up/rejecting control of the mobile phone.
In one embodiment:
the data field of the control item for answering operation of the mobile phone is 0x 01;
the data field of the control item for the hang-up/rejection operation of the mobile phone is 0x 02.
The invention also provides a mobile phone audio device, which comprises a universal serial bus interface for accessing the mobile phone and a mobile phone control key, and the device is configured as follows:
when the mobile phone control key is operated, the equipment outputs a corresponding instruction of the control item through the universal serial bus interface.
In one embodiment, the handset control key comprises:
an answering key, wherein the equipment is configured to output an instruction of the control item corresponding to answering operation through the universal serial bus interface when the answering key is operated;
a hang/reject key, the device configured to output an instruction of the control item corresponding to the hang/reject operation through the universal serial bus interface when the hang/reject key is operated.
In an embodiment, the device is a headset.
In one embodiment, the usb interface is a class C usb interface.
According to the method, when the audio equipment of the mobile phone using the UAC protocol is accessed into the mobile phone, the audio equipment can be used for controlling the mobile phone without directly operating the mobile phone, so that the complexity of the operation of the mobile phone is greatly simplified, the usability of the mobile phone is improved, the functions of the audio equipment of the mobile phone are expanded, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows. Also, some of the features and advantages of the invention will be apparent from the description, or may be learned by practice of the invention. The objectives and some of the advantages of the invention may be realized and attained by the process particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a method according to an embodiment of the invention.
Detailed Description
The following detailed description will be provided for the embodiments of the present invention with reference to the accompanying drawings and examples, so that the practitioner of the present invention can fully understand how to apply the technical means to solve the technical problems, achieve the technical effects, and implement the present invention according to the implementation procedures. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
With the continuous improvement of the demand of users for sound quality, in the prior art, a part of mobile phone Audio devices access a mobile phone by using a Universal Serial Bus (USB), and acquire Audio data output by the mobile phone based on a universal serial bus Audio Class (UAC) protocol. For example, headphones using a class C USB interface.
However, in the prior art, the audio device of the mobile phone based on the UAC protocol usually cannot control the mobile phone, and during the audio processing, if the mobile phone needs to be controlled (for example, a call is incoming or needs to be answered or rejected/hung up during a call), the user needs to directly operate the mobile phone. Therefore, the operation difficulty of the mobile phone is increased to a certain extent, and the usability of the mobile phone audio equipment is reduced. For example, when a Type C interface earphone of an existing UAC protocol is applied to a mobile phone, the user cannot answer, reject and hang up the phone by wire control.
Aiming at the problems, the invention provides a mobile phone control method based on a universal serial bus audio protocol. The detailed flow of a method according to an embodiment of the invention is described in detail below based on the accompanying drawings, the steps shown in the flow chart of which can be executed in a computer system containing instructions such as a set of computer executable instructions. Although a logical order of steps is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
As shown in fig. 1, in an embodiment, first, a control item corresponding to the answering and hanging up/rejecting of the mobile phone is added to a control request of the UAC protocol of the mobile phone (step S110); when the user uses the mobile phone, the user accesses the audio equipment of the mobile phone using the UAC protocol to the mobile phone through the USB interface (step S120); in the process that the mobile phone audio equipment is used, if a user needs to control the mobile phone, the mobile phone audio equipment is utilized to send a command of a control item of a UAC protocol to the mobile phone through a USB interface (step S130); after receiving the command of the control item of the UAC protocol, the handset executes the corresponding operation (step S140).
According to the method, when the audio equipment of the mobile phone using the UAC protocol is accessed into the mobile phone, the audio equipment can be used for controlling the mobile phone without directly operating the mobile phone, so that the complexity of the operation of the mobile phone is greatly simplified, the usability of the mobile phone is improved, the functions of the audio equipment of the mobile phone are expanded, and the user experience is improved.
In the flow of the embodiment shown in fig. 1, one of the key steps is step S110. In the prior art, the control request of the UAC protocol includes two categories, a setting request and an obtaining request. In one embodiment of the invention, a control item is added to the setup request.
Specifically, in the related art, the main format of the setting control request of the UAC is as shown in table 1.
TABLE 1
In one embodiment, a control item (SET _ MOB) is added to the setup request, as shown in Table 2.
TABLE 2
Further, in an embodiment, a request type field corresponding to the control request of the UAC protocol is 00100001B; the request field 0x06 corresponding to the control item (SET _ MOB).
Further, in an embodiment, when a call is incoming or a call is in progress, the audio device of the mobile phone is used for sending a command of a corresponding control item to the mobile phone through the universal serial bus so as to realize answering or hanging up/rejecting control of the mobile phone.
Further, in one embodiment, the control items with different data fields are sent to the mobile phone by the audio device of the mobile phone through the universal serial bus to realize the control of the mobile phone.
Specifically, the data field of the control item for the answering operation of the mobile phone is 0x 01; the data field of the control item for the hang up/reject operation of the handset is 0x 02. As shown in tables 3 and 4.
TABLE 3
TABLE 4
Based on the mobile phone control method provided by the invention, the invention also provides mobile phone audio equipment adopting the mobile phone control method. In one embodiment, the audio device of the mobile phone comprises a USB interface for accessing the mobile phone and a control key of the mobile phone, and is configured to:
when the mobile phone control key is operated, the mobile phone audio equipment outputs a corresponding control item instruction through a USB interface accessed to the mobile phone.
Further, in an embodiment, the mobile phone control key includes:
the mobile phone audio equipment is configured to output a command corresponding to a control item of the answering operation through the USB interface when the answering key is operated;
and the mobile phone audio equipment is configured to output an instruction of a control item corresponding to the hang-up/rejection operation through the USB interface when the hang-up/rejection key is operated.
Further, in an embodiment, the audio device of the mobile phone is a headset.
Further, in an embodiment, the USB interface of the audio device of the mobile phone is a Type C universal serial bus interface (Type C USB).
Specifically, in an embodiment, the mobile phone audio device is a Type C headset having an answer key and a hang-up/reject key.
When a mobile phone connected with a Type C earphone has a call to make, the mobile phone does not need to be taken out and then the call is answered, and the call can be answered only by sending a SET _ MOB (Data field is 0x01) instruction through an answering key on the Type C earphone.
When a call is incoming or a call is in progress in the mobile phone connected with the Type C earphone, the mobile phone does not need to be taken out and then the call is answered, and the call can be refused or hung up only by sending a SET _ MOB (Data field is 0x02) instruction on the Type C earphone through a hang-up/hang-up key.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. There are various other embodiments of the method of the present invention. Various corresponding changes or modifications may be made by those skilled in the art without departing from the spirit of the invention, and these corresponding changes or modifications are intended to fall within the scope of the appended claims.
Claims (8)
1. A mobile phone control method based on a universal serial bus audio protocol is characterized by comprising the following steps:
adding control items corresponding to answering and hanging up/rejecting of the mobile phone in a control request of a universal serial bus audio protocol of the mobile phone;
when the mobile phone audio equipment using the USB audio protocol is accessed into the mobile phone through a USB, the mobile phone audio equipment is used for sending the instruction of the control item to the mobile phone through the USB so as to realize the control of the mobile phone;
the control request of the universal serial bus audio protocol comprises a setting request and an obtaining request, and the control item is added in the setting request; and sending the control items with different data fields to the mobile phone by using the mobile phone audio equipment through a universal serial bus so as to realize the control of the mobile phone.
2. The method of claim 1, wherein in the universal serial bus audio-like protocol:
the request type field corresponding to the control request of the universal serial bus audio protocol is 00100001B;
the control entry corresponds to request field 0x 06.
3. The method as claimed in claim 1, wherein when there is an incoming call or a call, the audio device of the mobile phone is used to send the instruction of the corresponding control item to the mobile phone through the universal serial bus to implement the answering or hanging up/rejecting control of the mobile phone.
4. The method of claim 1, wherein:
the data field of the control item for answering operation of the mobile phone is 0x 01;
the data field of the control item for the hang-up/rejection operation of the mobile phone is 0x 02.
5. A mobile phone audio device adopting the mobile phone control method of any one of claims 1 to 4, wherein the device comprises a universal serial bus interface for accessing a mobile phone and a mobile phone control key, and the device is configured to:
when the mobile phone control key is operated, the equipment outputs a corresponding instruction of the control item through the universal serial bus interface, wherein the equipment sends the control item with different data fields to the mobile phone through the universal serial bus to realize the control of the mobile phone.
6. The device of claim 5, wherein the handset control keys comprise:
an answering key, wherein the equipment is configured to output an instruction of the control item corresponding to answering operation through the universal serial bus interface when the answering key is operated;
a hang/reject key, the device configured to output an instruction of the control item corresponding to the hang/reject operation through the universal serial bus interface when the hang/reject key is operated.
7. The device of claim 6, wherein the device is a headset.
8. The device of claim 5, wherein the USB interface is a class C USB interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710195455.7A CN106997328B (en) | 2017-03-29 | 2017-03-29 | Mobile phone control method based on universal serial bus audio protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710195455.7A CN106997328B (en) | 2017-03-29 | 2017-03-29 | Mobile phone control method based on universal serial bus audio protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106997328A CN106997328A (en) | 2017-08-01 |
CN106997328B true CN106997328B (en) | 2021-01-29 |
Family
ID=59431021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710195455.7A Active CN106997328B (en) | 2017-03-29 | 2017-03-29 | Mobile phone control method based on universal serial bus audio protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106997328B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445564A (en) * | 2018-10-19 | 2019-03-08 | 歌尔科技有限公司 | A kind of usb audio class equipment and its control method, device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101115081A (en) * | 2006-07-27 | 2008-01-30 | 创杰科技股份有限公司 | Wireless communication device and blue tooth wireless earphone capable of extending to support wireless network telephone |
CN200953638Y (en) * | 2006-09-27 | 2007-09-26 | 青岛海信移动通信技术股份有限公司 | Cellphone with multi-functional earphone |
-
2017
- 2017-03-29 CN CN201710195455.7A patent/CN106997328B/en active Active
Non-Patent Citations (2)
Title |
---|
Universal Serial Bus Device Class Definition for Audio Devices;无;《https://www.docin.com/p-624280532.html》;19980318;第65页至第129页 * |
USB音频类;无;《 https://baike.so.com/doc/3165565-3336070.html》;20151230;第1页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106997328A (en) | 2017-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10200790B2 (en) | Earpiece with cellular connectivity | |
US11812485B2 (en) | Bluetooth communication method and terminal | |
US11805350B2 (en) | Point-to-multipoint data transmission method and device | |
WO2021082829A1 (en) | Bluetooth connection method and related apparatus | |
CN104980811B (en) | Remote controller, communicator, phone system and call method | |
WO2021008430A1 (en) | Transmission method and communication device | |
WO2021004317A1 (en) | Transmission antenna switching method and terminal device | |
AU2015340841B2 (en) | Steering device for a dictation machine | |
CN103686516A (en) | Bluetooth headset capable of sharing audios and control method thereof | |
CN112789934B (en) | Bluetooth service query method and electronic equipment | |
US10827455B1 (en) | Method and apparatus for sending a notification to a short-range wireless communication audio output device | |
CN106982286B (en) | Recording method, recording equipment and computer readable storage medium | |
WO2023088209A1 (en) | Cross-device audio data transmission method and electronic devices | |
WO2020228529A1 (en) | Configuration method, device and system for semi-static scheduling configuration | |
CN107277208B (en) | Communication method, first communication device and terminal | |
TW201919434A (en) | Multi-connection device and multi-connection method | |
CN106997328B (en) | Mobile phone control method based on universal serial bus audio protocol | |
CN110972122A (en) | Terminal matched with wireless earphone, TWS (time and frequency switching) equipment and communication method | |
WO2024066694A1 (en) | Connection method and apparatus for audio devices, and storage medium and device | |
CN104038626B (en) | The communication means of mobile computing device and accessory device | |
WO2021239032A1 (en) | Bluetooth protocol connection method and apparatus, storage medium, and related device | |
US20140189537A1 (en) | Framework and method for dynamic talker ID based media treatment in a group communication | |
CN113709906B (en) | Wireless audio system, wireless communication method and equipment | |
CN109618062B (en) | Voice interaction method, device, equipment and computer readable storage medium | |
CN111031433A (en) | Wireless earphone and interaction method and interaction system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |