Bluetooth - Handsfree mute

1,500 views
Skip to first unread message

guru

unread,
Sep 23, 2010, 12:35:27 AM9/23/10
to android-porting
Hi All,

I connected Handsfree (HF) device to android phone, and received the
incoming call. While in the call i tried to mute the call, it is
getting mute but on GUI the mute icon is not getting changed. It is in
unmute condition only.

When I discussed this, what I got is

HF will communicate using AT commands AT+VGM=0 to mute telephony
modem and if i mute from GUI it will mute the micro phone.

so If we mute from HF we have to unmute from HF itself.

Please let me know the behavior?

Pavan Savoy

unread,
Sep 23, 2010, 11:49:10 PM9/23/10
to guru....@gmail.com, android-porting
Hi ..

Do you happen to have a development platform with modem on it?
I am interested to know how you managed to connect to HSP/HFP from UI if you don't have a modem?
or do you have a modem ?





--
--Pavan Savoy

Pavan Savoy

unread,
Sep 25, 2010, 11:11:08 AM9/25/10
to Suresh Chandra Pal, guru, android-porting
HFP can support mute right? among voice dialing, redialing etc.? isn't this what makes hfp different from hsp?
in any case i was interested to know how the sco connection was established? via the android gui or via some test application?

On Sat, Sep 25, 2010 at 2:13 AM, Suresh Chandra Pal <sureshch...@gmail.com> wrote:
Guys,
This is a little bit confusing for me. I wonder that HSP/HFP supports mute from Headset device. Please correct me if I am wrong.



--
--Pavan Savoy

guru

unread,
Sep 27, 2010, 3:15:29 AM9/27/10
to android-porting
Hi Pavan,

I connected my HF device to Android Mobile. I tried mute and unmute
from HF. It is happening. When I traced using logs it is going to
BluetoothHandsfree.java where +VGM registered.

// Microphone Gain
parser.register("+VGM", new AtCommandHandler() {
@Override
public AtCommandResult handleSetCommand(Object[] args) {
// AT+VGM=<gain> in range [0,15]
// Headset/Handsfree is reporting its current gain
setting
return new AtCommandResult(AtCommandResult.OK);
}
});

here nothing is handle to mute and unmute. I am not getting how this
mute/unmute is happening and how will handle this?

Thanks
Gururaja B O

On Sep 25, 8:11 pm, Pavan Savoy <pavan.sa...@gmail.com> wrote:
> HFP can support mute right? among voice dialing, redialing etc.? isn't this
> what makes hfp different from hsp?
> in any case i was interested to know how the sco connection was established?
> via the android gui or via some test application?
>
> On Sat, Sep 25, 2010 at 2:13 AM, Suresh Chandra Pal <
>
>
>
> sureshchandra...@gmail.com> wrote:
> > Guys,
> > This is a little bit confusing for me. I wonder that HSP/HFP supports mute
> > from Headset device. Please correct me if I am wrong.
>
> > On Fri, Sep 24, 2010 at 12:49 PM, Pavan Savoy <pavan.sa...@gmail.com>wrote:
>
> >> Hi ..
>
> >> Do you happen to have a development platform with modem on it?
> >> I am interested to know how you managed to connect to HSP/HFP from UI if
> >> you don't have a modem?
> >> or do you have a modem ?
>
> >> On Thu, Sep 23, 2010 at 10:05 AM, guru <guru.nav...@gmail.com> wrote:
>
> >>> Hi All,
>
> >>> I connected Handsfree (HF) device to android phone, and received the
> >>> incoming call. While in the call i tried to mute the call, it is
> >>> getting mute but on GUI the mute icon is not getting changed. It is in
> >>> unmute condition only.
>
> >>> When I discussed this, what I got is
>
> >>> HF will communicate using AT commands AT+VGM=0 to mute  telephony
> >>> modem and if i mute from GUI it will mute the micro phone.
>
> >>> so If we mute from HF we have to unmute from HF itself.
>
> >>> Please let me know the behavior?
>
> >>> --
> >>> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >>> website:http://groups.google.com/group/android-porting
>
> >> --
> >> --Pavan Savoy
>
> >>  --
> >> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>

Naveen Jain

unread,
Sep 28, 2010, 12:22:24 AM9/28/10
to pavan...@gmail.com, Suresh Chandra Pal, guru, android-porting

The HFP profile does not support MUTE feature. Please find the description of AT+VGM command as per the HFP specification.

Syntax: AT+VGM=<gain>

Description:

This command is issued by the HF device to report its current microphone gain level setting to the AG (phone). <gain> is a decimal numeric constant, relating to a particular (implementation dependent) volume level controlled by the HF device. This command does not change the microphone gain of the AG; it simply indicates the current value of the microphone gain in the HF device.

Values:

<gain>: 0 -15, entered as integer values, where

0 = Minimum gain [It does not mean mite but just that this is min mic gain]

15 = Maximum gain

 

So how does HF device implement the mute feature? When user enables mute during a call from HF device (by pressing some key/s on the HF device), the HF device simply cuts the mic input (typically setting the mic gain to zero), and only silence goes to the AG and then to the remote device. As AG+VGM=0 does not mean any thing to AG, it cannot assume that mute is enabled by HF. Hence when you enable mute from HF, you must unmute from HF.

Gururaj BO

unread,
Sep 29, 2010, 12:15:34 AM9/29/10
to Naveen Jain, pavan...@gmail.com, Suresh Chandra Pal, android-porting
Hi  Naveen Jain

Thanks for the information. In the HF device that I am using, the manual they have given is if we press particular button, it will mute the call. from logs I got is AT+VGM=0. may be they are telling mic gain of 0 as mute.

Since when I mute( mean VGM=0) then UI is not getting updated and showing mute icon. So i took reference as VM=0 then updating the GUI.

Is it valid to update mute icon based on VGM value?

Thanks
Gururaja B O

naveen...@gmail.com

unread,
Sep 29, 2010, 3:18:06 AM9/29/10
to Gururaj BO, pavan...@gmail.com, Suresh Chandra Pal, android-porting
Another question I have is, have u come across any phone that shows the mute icon on UI when we do mute from HF device?

Sent on my BlackBerry® from Vodafone


From: Gururaj BO <guru....@gmail.com>
Date: Wed, 29 Sep 2010 09:45:34 +0530
To: Naveen Jain<naveen...@gmail.com>
Cc: <pavan...@gmail.com>; Suresh Chandra Pal<sureshch...@gmail.com>; android-porting<android...@googlegroups.com>
Subject: Re: [android-porting] Bluetooth - Handsfree mute

Naveen Jain

unread,
Sep 29, 2010, 1:29:24 AM9/29/10
to Gururaj BO, pavan...@gmail.com, Suresh Chandra Pal, android-porting

Hi Guru,

 

Spec does not say that AT+VGM=0 is MUTE and mentions that “0” means minimum mic gain. Of course we can assume that minimum mic gain == mute but it needs to be tested with few HF devices to ensure that the solution is interoperable.

 

Assuming that our assumption is right and VM=0 means MUTE, you can display the mute icon on the GUI.

 

But do you want user to then unmute from UI? We never know, if I see mute icon, I may go and unmute from phone as it is easier compared to pressing some combinations of buttons on HF device. In such case are you sending +VGM command from phone to HFP device and with what value +VGM:??. Unless you do this the MIC on HFP device is still mute.

 

What happens when you mute the mic from phone? Does the phone sends +VGM:0 to HF device?

 

Are you planning to support such behavior where user mute from phone and un-mute from HF device? - I see potential issues here as unless the HF (mute/unmute) state is synchronized with AG. For example if I do mute from phone and then press HF device buttons to un-mute, we never know if the HFP device will try to understand that user action as mute or un-mute. This needs to be tested.

 

Regards,

Naveen

Reply all
Reply to author
Forward
0 new messages