All of lore.kernel.org
 help / color / mirror / Atom feed
* Help troubleshooting a random Bluez 5.50 Failed to set privacy: Rejected (0x0b) error during IPL
@ 2019-01-15 16:13 John Rucker
  0 siblings, 0 replies; only message in thread
From: John Rucker @ 2019-01-15 16:13 UTC (permalink / raw)
  To: linux-bluetooth

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-15 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 16:13 Help troubleshooting a random Bluez 5.50 Failed to set privacy: Rejected (0x0b) error during IPL John Rucker

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.