Linux bluetooth development
 help / color / mirror / Atom feed
From: Gowtham Anandha Babu <gowtham.ab@samsung.com>
To: 'Luiz Augusto von Dentz' <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org,
	'Bharat Bhusan Panda' <bharat.panda@samsung.com>,
	cpgs@samsung.com,
	'Grzegorz Kolodziejczyk' <grzegorz.kolodziejczyk@tieto.com>
Subject: RE: Query regarding bneptest tool
Date: Mon, 11 May 2015 19:49:42 +0530	[thread overview]
Message-ID: <002501d08bf5$8d509020$a7f1b060$@samsung.com> (raw)
In-Reply-To: <CABBYNZJ7UsmsnO+WJr3b3Ke2Scu5CtTsof0w4-4b+-2xEw6w9A@mail.gmail.com>

Hi Luiz,

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Luiz Augusto von Dentz
> Sent: Monday, May 11, 2015 5:58 PM
> To: Gowtham Anandha Babu
> Cc: linux-bluetooth@vger.kernel.org; Bharat Bhusan Panda;
> cpgs@samsung.com; Grzegorz Kolodziejczyk
> Subject: Re: Query regarding bneptest tool
> 
> Hi Gowtham,
> 
> On Mon, May 11, 2015 at 3:12 PM, Gowtham Anandha Babu
> <gowtham.ab@samsung.com> wrote:
> > Hi Luiz,
> >
> >> -----Original Message-----
> >> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> >> owner@vger.kernel.org] On Behalf Of Luiz Augusto von Dentz
> >> Sent: Monday, May 11, 2015 5:06 PM
> >> To: Gowtham Anandha Babu
> >> Cc: linux-bluetooth@vger.kernel.org; Bharat Bhusan Panda;
> >> cpgs@samsung.com; Grzegorz Kolodziejczyk
> >> Subject: Re: Query regarding bneptest tool
> >>
> >> Hi Gowtham,
> >>
> >> On Mon, May 11, 2015 at 2:06 PM, Gowtham Anandha Babu
> >> <gowtham.ab@samsung.com> wrote:
> >> > Hi All,
> >> >
> >> > I am testing BlueZ bnep test tool (tools/bneptest) using PTS 6.1.0.
> >> > The BNEP client test cases are not passing in BT_IO_SEC_MEDIUM
> >> > security level.
> >> > My PTS PICS and PIXIT are same as android/pixit-bnep.txt,
> >> > android/pics-bnep.txt.
> >> > Whereas when the security level is BT_IO_SEC_LOW, it is passing.
> >> > If it is a valid fix, then I will send a patch for the same.
> >> > This is tested in Linux, not sure about android.
> >>
> >> It might be related to pairing then, do you have any agent registered
> >> in the system? Check the HCI logs with btmon, it should tell us what is
> happening.
> >>
> >
> > I have attached both logs. Below is the procedure I followed.
> >
> > --------------------------------------------------------------------
> > PTS output:
> > Test case : TC_CTRL_BV_02_C started
> >         - Received passkey: 564246, from: gowtham-ab-0
> >         - User canceled the current operation MMI.
> >         - MMI CM_EXIT
> >         - got an OTHERWISE
> >         - MTC: Test case ended
> >          -Final Verdict: INCONC
> > TC_CTRL_BV_02_C finished
> > --------------------------------------------------------------------
> > BlueZ output:
> > /latest_bluez/bluez/test$  sudo ./bneptest -c 00:1B:DC:07:33:4E -b
> > pan0 -n bnep0 bnep_client_connect connecting 00:1B:DC:07:33:4E cannot
> > initiate bnep connection connected_client_cb ^Cgot sig = 2, cleaning
> > up...
> > cleanup successful - exit
> > --------------------------------------------------------------------
> > /latest_bluez/bluez/test$ ./simple-agent Agent registered Release
> > gowtham.ab@gowtham-ab:~/latest_bluez/bluez/test$ ./simple-agent
> Agent
> > registered RequestConfirmation
> (/org/bluez/hci0/dev_00_1B_DC_07_33_4E,
> > 564246) Confirm passkey (yes/no): yes Release
> > --------------------------------------------------------------------
> 
> The passkey looks correct:
> 
> > HCI Event: User Confirmation Request (0x33) plen 10         [hci0] 128.242120
>         Address: 00:1B:DC:07:33:4E (Vencer Co., Ltd.)
>         Passkey: 564246
> 
> But we never confirm it then PTS probably times out waiting for it. If you are
> getting release that probably means the agent is no longer registered, but
> then I wonder why it received the RequestConfirmation.
> 
> > After confirming the passkey, it becomes Authentication Failure and
> > Remote User Terminated Connection as captured in  btmon, hcidump logs.
> > What might be the problem?
> 
> > HCI Event: Simple Pairing Complete (0x36) plen 7            [hci0] 158.243129
>         Status: Authentication Failure (0x05)
>         Address: 00:1B:DC:07:33:4E (Vencer Co., Ltd.)
> > HCI Event: Auth Complete (0x06) plen 3                      [hci0] 158.244139
>         Status: Authentication Failure (0x05)
>         Handle: 70
> 
> 30 seconds has passed then probably PTS gives up.
> 

Sorry. The issue is in controller. When I used PTS dongle, there are no issues, working perfectly.
All test cases are passing.
Thanks.

> >
> >> >
> >> > diff --git a/tools/bneptest.c b/tools/bneptest.c index
> >> > 98ee9b1..fccecd2 100644
> >> > --- a/tools/bneptest.c
> >> > +++ b/tools/bneptest.c
> >> > @@ -477,7 +477,7 @@ static int bnep_client_connect(void)
> >> >                                         BT_IO_OPT_SOURCE_BDADDR, &src_addr,
> >> >                                         BT_IO_OPT_DEST_BDADDR, &dst_addr,
> >> >                                         BT_IO_OPT_PSM, BNEP_PSM,
> >> > -                                       BT_IO_OPT_SEC_LEVEL,
> >> > BT_IO_SEC_MEDIUM,
> >> > +                                       BT_IO_OPT_SEC_LEVEL,
> >> > + BT_IO_SEC_LOW,
> >> >                                         BT_IO_OPT_OMTU, BNEP_MTU,
> >> >                                         BT_IO_OPT_IMTU, BNEP_MTU,
> >> >                                         BT_IO_OPT_INVALID);
> >> >
> >> >
> >> > Regards,
> >> > Gowtham Anandha Babu
> >> >
> >>
> >>
> >>
> >> --
> >> Luiz Augusto von Dentz
> >> --
> >
> > Regards,
> > Gowtham Anandha Babu
> >
> >> To unsubscribe from this list: send the line "unsubscribe
> >> linux-bluetooth" in the body of a message to
> >> majordomo@vger.kernel.org More majordomo info at
> >> http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> --
> Luiz Augusto von Dentz
> --

Regards,
Gowtham Anandha Babu

> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2015-05-11 14:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 11:06 Query regarding bneptest tool Gowtham Anandha Babu
2015-05-11 11:36 ` Luiz Augusto von Dentz
2015-05-11 12:12   ` Gowtham Anandha Babu
2015-05-11 12:28     ` Luiz Augusto von Dentz
2015-05-11 14:19       ` Gowtham Anandha Babu [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='002501d08bf5$8d509020$a7f1b060$@samsung.com' \
    --to=gowtham.ab@samsung.com \
    --cc=bharat.panda@samsung.com \
    --cc=cpgs@samsung.com \
    --cc=grzegorz.kolodziejczyk@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.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