All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John Rucker" <John.Rucker@Solar-Current.com>
To: <linux-bluetooth@vger.kernel.org>
Subject: Help troubleshooting a random Bluez 5.50 Failed to set privacy: Rejected (0x0b) error during IPL
Date: Tue, 15 Jan 2019 10:13:03 -0600	[thread overview]
Message-ID: <000001d4aced$31eb5540$95c1ffc0$@Solar-Current.com> (raw)

I have a Raspberry Pi Zero W setup as a Bluetooth LE peripheral based on
BlueZ 5.50 and Node.JS. I'm running this on Raspbian Stretch Lite with a
build date of November 13, 2018. I upgraded BlueZ from 5.43 to 5.50. My
blePeripheral class works well for me, I'm able to securely bind to my
iPhone and exchange encrypted data with the Raspberry Pi Zero W. as
expected.

However, If I reboot the Raspberry Pi, and the random address of the bound
device (iPad in this example) changes, that device can no longer read or
write a secure characteristic. This seems to randomly happen, sometimes I
can reboot the Pi and everything is fine. When this happens (see snipit).
If I issue a sudo systemctl restart bluetooth after I get this error
everything works great until it randomly pops up again.  I have posted more
detail on the problem here
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=229337 

I'm open for trying anything all suggestions welcome.  Thanks

snipit from journalctl -u bluetooth.  
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:set_name() sending set
local name command for index 0
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:set_mode() sending set
mode command for index 0
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:new_settings_callback()
Settings: 0x00000281
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:settings_changed()
Changed settings: 0x00000201
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:adapter_start() adapter
/org/bluez/hci0 has been enabled
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:trigger_passive_scanning()
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:trigger_passive_scanning()

Jan 15 09:51:21 rgPi1 bluetoothd[355]: Failed to set mode: Rejected (0x0b)
Jan 15 09:51:21 rgPi1 bluetoothd[355]: Failed to set mode: Rejected (0x0b)
Jan 15 09:51:21 rgPi1 bluetoothd[355]: Failed to set privacy: Rejected
(0x0b)

Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:load_link_keys_complete() link keys loaded for hci0
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:load_ltks_complete()
LTKs loaded for hci0
Jan 15 09:51:21 rgPi1 bluetoothd[355]: src/adapter.c:load_irks_complete()
IRKs loaded for hci0
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:load_conn_params_complete() Connection Parameters loaded for
hci0
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:local_name_changed_callback() Name: rGauge Transmitter
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:local_name_changed_callback() Short name:
Jan 15 09:51:21 rgPi1 bluetoothd[355]:
src/adapter.c:local_name_changed_callback() Current alias: rGauge
Transmitter


                 reply	other threads:[~2019-01-15 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000001d4aced$31eb5540$95c1ffc0$@Solar-Current.com' \
    --to=john.rucker@solar-current.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.