Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v5 00/11] shared/hfp: Add support for HFP HF
Date: Tue, 28 Oct 2014 08:20:19 +0100	[thread overview]
Message-ID: <2479106.vBuIEmuL25@leonov> (raw)
In-Reply-To: <1414151975-20588-1-git-send-email-lukasz.rymanowski@tieto.com>

Hi Łukasz,

On Friday 24 of October 2014 13:59:24 Lukasz Rymanowski wrote:
> Following patches extends hfp API with HFP HF functionality.
> HFP HF parser has been added and unit test for it.
> 
> To consider: how strict we should be when it comes to parsing
> AT responses. For example, at the moment, command +CCLC:<cr><lf>
> will be recognized as +CCLC: eventhough correct response format
> should be <cr><lf>+CCLC:<cr><lf>
> 
> Note: As discussed on IRC I did not try to generalize code.
> 
> v2:
> * minor self review fixes
> * response callback on send command, contains now result (OK/ERROR) and
> data from unsolicited response if available.
> 
> v3:
> * Fix some memory leaks found on self review
> 
> v4:
> * Fallback to approach from v1 in context of response callback for AT
> command. Bassically, if AT+X has +X and OK response, response callback
> contains only OK or ERROR code (including CME which will be added in
> following patches). To get +X response, user need to use hfp_hf_register()
> API. It is done mostly to keep hfp.c simple. With this approach we do not
> have to cache all +X in hfp.c before calling response callback.
> 
> v5:
> * Szymon comments taken into account
> * Support to handle wrapped commands in ringbuffer. Note that for testing I
> used modified buffer size in hfp but eventually unit test will be done for
> that.
> 
> Lukasz Rymanowski (11):
>   shared/hfp: Add support for HFP HF
>   shared/hfp: Add set_debug and close_on_unref API for HFP HF
>   shared/hfp: Add set disconnect handler and disconnect API to HFP HF
>   shared/hfp: Add register/unregister event for HFP HF
>   shared/hfp: Add HFP HF parser
>   shared/hfp: Add send AT command API for HFP HF
>   unit/test-hfp: Provide test_handler function via struct data
>   unit/test-hfp: Add init test for HFP HF
>   unit/test-hfp: Add send command tests for HFP HF
>   unit/test-hfp: Add tests for unsolicited results for HFP HF
>   unit/test-hfp: Add some robustness tests for HFP HF
> 
>  src/shared/hfp.c | 649
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/shared/hfp.h | 
> 30 +++
>  unit/test-hfp.c  | 283 ++++++++++++++++++++++--
>  3 files changed, 943 insertions(+), 19 deletions(-)

All patches are now applied, thanks.

-- 
BR
Szymon Janc

      parent reply	other threads:[~2014-10-28  7:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 11:59 [PATCH v5 00/11] shared/hfp: Add support for HFP HF Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 01/11] " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 02/11] shared/hfp: Add set_debug and close_on_unref API " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 03/11] shared/hfp: Add set disconnect handler and disconnect API to " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 04/11] shared/hfp: Add register/unregister event for " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 05/11] shared/hfp: Add HFP HF parser Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 06/11] shared/hfp: Add send AT command API for HFP HF Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 07/11] unit/test-hfp: Provide test_handler function via struct data Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 08/11] unit/test-hfp: Add init test for HFP HF Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 09/11] unit/test-hfp: Add send command tests " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 10/11] unit/test-hfp: Add tests for unsolicited results " Lukasz Rymanowski
2014-10-24 11:59 ` [PATCH v5 11/11] unit/test-hfp: Add some robustness tests " Lukasz Rymanowski
2014-10-28  7:20 ` Szymon Janc [this message]

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=2479106.vBuIEmuL25@leonov \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lukasz.rymanowski@tieto.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox