All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Prabhu Chawandi <foss.chaws@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: bluez/android
Date: Mon, 15 Jun 2015 16:15:50 +0200	[thread overview]
Message-ID: <2870599.ZBzDzverey@leonov> (raw)
In-Reply-To: <CAKafyqqT54fvu_fFMGKKmngwnt7RPgC9gSR6rU3TqY_Zavqr9A@mail.gmail.com>

Hi Prabhu,

On Monday 15 of June 2015 19:11:32 Prabhu Chawandi wrote:
> Hi Szymon,
> 
>    Thanks for your reply. I was debugging further, I noticed that
> while connecting at service level, there is CIND callback
> (cind_cmd_cb) is coming which is for Call Indicator AT CMD.
> I am curious to know, how it is happening, which can help me to
> understand and  try for other call backs.

Please don't top-post on ML.

As for your question: HFP HAL has methods that should be called as a reply for 
some callbacks ie for cind that would be cind_response. You can check 
"android/hardware/bt_hf.h". 

Yet, Android HAL is rather lowlevel interface not recommended for direct use.
If for whatever reason you are stuck with it I suggest checking Android 
Framework source code as this (and header comments) is the only documentation 
you get for it.

> On Mon, Jun 15, 2015 at 5:42 PM, Szymon Janc <szymon.janc@tieto.com> wrote:
> > Hi Prabhu,
> > 
> > On Monday 15 of June 2015 17:06:41 Prabhu Chawandi wrote:
> >>  This is with respect to HFP profile.
> >> 
> >> While I pressed the Button on my HF device, service level connection
> >> is happening - BTHF_STATE_CONNECTED is coming.
> >> 
> >> But next callbacks are not coming on pressing of buttons - like voice
> >> recognition.
> >> 
> >> Can any body help me
> > 
> > HFP is a bit special since BfA provides only part of the implementation
> > and
> > rest is implemented in Android Framework. When HF device is connected SLC
> > creation must happen. Most likely your HF device is sending some AT
> > commands and you must response to those as per HFP specification. Only
> > when all required SLC AT commands are handled state will be set to
> > BTHF_STATE_SCL_CONNECTED. This is normally handled by Android Framework
> > but if you are using haltest you must handle those on your own.
> > 
> > For details on how to setup SLC I recommend HFP specification lecture.
> > 
> > --
> > BR
> > Szymon Janc

-- 
BR
Szymon Janc

  reply	other threads:[~2015-06-15 14:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 11:36 bluez/android Prabhu Chawandi
2015-06-15 12:12 ` bluez/android Szymon Janc
2015-06-15 13:41   ` bluez/android Prabhu Chawandi
2015-06-15 14:15     ` Szymon Janc [this message]
2015-06-15 14:59       ` bluez/android Prabhu Chawandi
2015-06-15 16:23         ` bluez/android Szymon Janc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2870599.ZBzDzverey@leonov \
    --to=szymon.janc@tieto.com \
    --cc=foss.chaws@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.