All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arthur LAMBERT <lambertarthur22@gmail.com>
To: Tobias Svehagen <tobias.svehagen@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: gatt server and reset of hci device
Date: Wed, 29 Jun 2016 14:33:10 +0200	[thread overview]
Message-ID: <20160629123310.GA11250@arthur-bzh> (raw)

> What version of bluez are you using?

5.37 & 5.39 & 5.40. Same result for all these versions.

> Yes you can also look at tools/gatt-service.c for a C example of using
> the GATT dbus API.

Ok thanks. I will check that.

> Can you run 'bluetoothd -nE -d src/gatt-database.c'. Do you see
> something like 'GATT Manager registered for adapter: /org/bluez/hci0'?

[arthur ] sudo ./bluetoothd -nE -d src/gatt-database.
[sudo] password for arthur: 
bluetoothd[9754]: Bluetooth daemon 5.39
bluetoothd[9754]: Unknown key PageTimeout in main.conf
bluetoothd[9754]: Unknown key InitiallyPowered in main.conf
bluetoothd[9754]: Unknown key RememberPowered in main.conf
bluetoothd[9754]: Unknown key EnableGatt in main.conf
bluetoothd[9754]: Starting SDP server
bluetoothd[9754]: Bluetooth management interface 1.4 initialized
bluetoothd[9754]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[9754]: Failed to read advertising features: Unknown Command (0x01)
bluetoothd[9754]: hci0 Load Connection Parameters failed: Unknown Command (0x01)

I replace the main.conf from source in /etc and retry the test :

[arthur ] sudo ./bluetoothd -nE -d src/gatt-database.
bluetoothd[11131]: Bluetooth daemon 5.39
bluetoothd[11131]: Starting SDP server
bluetoothd[11131]: Bluetooth management interface 1.4 initialized
bluetoothd[11131]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[11131]: Failed to read advertising features: Unknown Command (0x01)
bluetoothd[11131]: hci0 Load Connection Parameters failed: Unknown Command (0x01)

This test is running on ubuntu 14.04. We stop bluetooth service before starting bluetoothd.
We also run the test on arm target but without trouble this time.

Arthur.

             reply	other threads:[~2016-06-29 12:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 12:33 Arthur LAMBERT [this message]
2016-06-29 13:22 ` gatt server and reset of hci device Tobias Svehagen
  -- strict thread matches above, loose matches on Subject: below --
2016-07-07 14:55 Arthur LAMBERT
2016-06-29 13:31 Arthur LAMBERT
2016-06-29 13:39 ` Tobias Svehagen
2016-05-11 12:51 Arthur LAMBERT
2016-05-12  8:39 ` Luiz Augusto von Dentz
2016-05-12  9:56   ` Arthur LAMBERT
2016-06-27 15:54   ` Arthur LAMBERT
2016-06-29  7:20     ` Tobias Svehagen

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=20160629123310.GA11250@arthur-bzh \
    --to=lambertarthur22@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=tobias.svehagen@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 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.