Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Raspberry pi 降级到bluez 5.50后出现蓝牙错误_Raspberry Pi_Bluez_Raspberry Pi Zero - Fatal编程技术网

Raspberry pi 降级到bluez 5.50后出现蓝牙错误

Raspberry pi 降级到bluez 5.50后出现蓝牙错误,raspberry-pi,bluez,raspberry-pi-zero,Raspberry Pi,Bluez,Raspberry Pi Zero,我刚降级到Bluez5.50。启动服务时,我收到以下错误: bluetoothd -d -n bluetoothd[2179]: Bluetooth daemon 5.50 bluetoothd[2179]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf bluetoothd[2179]: src/main.c:parse_config() discovto=0 bluetoothd[2179]: src/main.c:pa

我刚降级到Bluez5.50。启动服务时,我收到以下错误:

bluetoothd -d -n
bluetoothd[2179]: Bluetooth daemon 5.50
bluetoothd[2179]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
bluetoothd[2179]: src/main.c:parse_config() discovto=0
bluetoothd[2179]: src/main.c:parse_config() pairto=0
bluetoothd[2179]: src/main.c:parse_config() privacy=off
bluetoothd[2179]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
bluetoothd[2179]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
bluetoothd[2179]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
bluetoothd[2179]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
bluetoothd[2179]: src/main.c:parse_config() Key file does not have key “MinEncKeySize” in group “GATT”
D-Bus setup failed: Connection ":1.48" is not allowed to own the service "org.bluez" due to security policies in the configuration file
bluetoothd[2179]: Unable to get on D-Bus
所以我不能再启动蓝牙了。我没有(故意)弄乱任何D总线设置

调试信息 uname DMESG hcitool lsmod 包装 brcmfmac rfkill Bluetooth.conf
cat/etc/bluetooth/main.conf
[一般]
#如果此处未设置名称且未加载插件“hostname”,则默认为“BlueZ X.YZ”。
#默认情况下加载插件“hostname”,并覆盖此处设置的名称,因此
改为考虑用变量PrTyTyHistNeNe=修改/ETC/Mault信息。
#Name=BlueZ
#默认设备类。只有主设备类位和次设备类位为
#考虑过。默认值为“0x000000”。
#类别=0x000100
#在返回到不可发现模式之前,在可发现模式下停留多长时间
#该值以秒为单位。默认值为180,即3分钟。
#0=禁用计时器,即永远保持可发现状态
可发现超时=0
#在返回到不可发现模式之前,在可修复模式下停留多长时间
#该值以秒为单位。默认值为0。
#0=禁用计时器,即永远保持可修复状态
PairableTimeout=0
#使用供应商id源(转让人)、供应商、产品和版本信息
#没有个人资料支持。这些值由“:”和赋值器、VID、PID分隔
#和版本。
#可能的供应商id源值:蓝牙、usb(默认为usb)
#DeviceID=蓝牙:1234:5678:abcd
#对连接到的以前未知的设备执行反向服务发现
#我们。该选项实际上仅用于鉴定,因为咬入测试仪
#不喜欢我们对一些测试用例执行反向SDP(尽管可能会出现这种情况)
#理论也可能是其他有用的目的)。默认为“true”。
#ReverseServiceDiscovery=true
#在查询后启用名称解析。如果不需要,请将其设置为“false”
#远程设备命名并希望缩短发现周期。默认为“true”。
#名称解析=真
#启用调试链接键的运行时持久性。默认值为false,其中
#使调试链接键仅在连接期间有效
#它们是为之而创建的。
#DebugKeys=false
#将所有控制器限制为指定的传输。默认值
#是“双”,即BR/EDR和LE均已启用(当硬件支持时)。
#可能值:“dual”、“bredr”、“le”
#ControllerMode=dual
#支持多配置文件规范。这允许指定
#系统仅支持多个配置文件单设备(MPSD)配置
#或者多个配置文件单个设备(MPSD)和多个配置文件多个
#设备(MPMD)配置。
#可能值:“关闭”、“单个”、“多个”
#多功能文件=关闭
#永久启用以下适配器的快速可连接设置:
#支持它。启用后,其他设备可以更快地连接到我们,
#然而,折衷的办法是增加功耗。此功能
#将仅在内核版本4.1及更高版本上完全工作。默认为
#“错”。
#FastConnectable=false
#默认隐私设置。
#允许使用专用地址。
#可能值:“关闭”、“设备”、“网络”
#当前不支持“网络”选项
#默认为“关闭”
隐私=关闭
[关贸总协定]
#GATT属性缓存。
#可能值:
#始终:即使对于未配对的设备,也始终缓存属性,这是
#推荐使用,因为它最适合互操作性,具有更一致的
#重新连接时间,并允许正确跟踪所有用户的通知
#设备。
#是:仅缓存配对设备的属性。
#否:从不缓存属性
#默认值:始终
#缓存=始终
#访问安全特征所需的最小加密密钥大小。
#可能的值:0和7-16。0表示不在乎。
#默认为0
#MinEncKeySize=0
[政策]
#
#重新构造定义了应该尝试的远程服务集
#在链路丢失的情况下重新连接(链路监控
#超时)。策略插件应该包含一组由
#默认值,但可以在此处覆盖此列表。通过将列表设置为
#清空重新连接功能将被禁用。
#重新构建=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb
#ReconnectAttempts定义链接后尝试重新连接的次数
#迷路了。将该值设置为0将禁用重新连接功能。
#重新连接尝试次数=7次
#重新连接间隔以秒为单位定义要在其间使用的间隔集
#尝试。
#如果重新连接尝试中定义的尝试次数大于
#间隔集重复上一个间隔直到最后一次尝试。
#重新连接间隔=1,2,4,8,16,32,64
#“自动启用”定义了在找到所有控制器时启用这些控制器的选项。
#这包括启动时存在的适配器以及插入的适配器
#稍后。默认为“false”。
自动启用=真
uname -a
Linux stereopi 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
[   25.182516] Bluetooth: Core ver 2.22
[   25.184013] Bluetooth: HCI device and connection manager initialized
[   25.184039] Bluetooth: HCI socket layer initialized
[   25.184053] Bluetooth: L2CAP socket layer initialized
[   25.184124] Bluetooth: SCO socket layer initialized
[   26.603279] Bluetooth: HCI UART driver ver 2.3
[   26.603296] Bluetooth: HCI UART protocol H4 registered
[   26.611594] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   26.621006] Bluetooth: HCI UART protocol Broadcom registered
[  113.411241] Bluetooth: hci0: sending frame failed (-49)
[ 1728.994428] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1728.994462] Bluetooth: HIDP socket layer initialized
hcitool dev
Devices:
lsmod |grep -iE '.*(btusb|bluetooth|hidp|l2cap).*'
hidp                   24576  0
bluetooth             409600  3 hidp,hci_uart,btbcm
ecdh_generic           28672  1 bluetooth
rfkill                 28672  4 bluetooth,cfg80211
dpkg -l | grep blue
iF  bluez                          5.50-1+rpt1                         armhf        Bluetooth tools and daemons
rc  pi-bluetooth                   0.1.12                              all          Raspberry Pi 3 bluetooth
dmesg | grep brcmfmac
[   14.249869] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   14.279400] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   14.279833] usbcore: registered new interface driver brcmfmac
[   14.544592] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   14.544779] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   14.545983] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   24.080897] brcmfmac: power management disabled
rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
cat /etc/bluetooth/main.conf
[General]

# Defaults to 'BlueZ X.YZ', if Name is not set here and plugin 'hostname' is not loaded.
# The plugin 'hostname' is loaded by default and overides the Name set here so
# consider modifying /etc/machine-info with variable PRETTY_HOSTNAME=<NewName> instead.
#Name = BlueZ

# Default device class. Only the major and minor device class bits are
# considered. Defaults to '0x000000'.
#Class = 0x000100

# How long to stay in discoverable mode before going back to non-discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
DiscoverableTimeout = 0

# How long to stay in pairable mode before going back to non-discoverable
# The value is in seconds. Default is 0.
# 0 = disable timer, i.e. stay pairable forever
PairableTimeout = 0

# Use vendor id source (assigner), vendor, product and version information for
# DID profile support. The values are separated by ":" and assigner, VID, PID
# and version.
# Possible vendor id source values: bluetooth, usb (defaults to usb)
#DeviceID = bluetooth:1234:5678:abcd

# Do reverse service discovery for previously unknown devices that connect to
# us. This option is really only needed for qualification since the BITE tester
# doesn't like us doing reverse SDP for some test cases (though there could in
# theory be other useful purposes for this too). Defaults to 'true'.
#ReverseServiceDiscovery = true

# Enable name resolving after inquiry. Set it to 'false' if you don't need
# remote devices name and want shorter discovery cycle. Defaults to 'true'.
#NameResolving = true

# Enable runtime persistency of debug link keys. Default is false which
# makes debug link keys valid only for the duration of the connection
# that they were created for.
#DebugKeys = false

# Restricts all controllers to the specified transport. Default value
# is "dual", i.e. both BR/EDR and LE enabled (when supported by the HW).
# Possible values: "dual", "bredr", "le"
#ControllerMode = dual

# Enables Multi Profile Specification support. This allows to specify if
# system supports only Multiple Profiles Single Device (MPSD) configuration
# or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple
# Devices (MPMD) configurations.
# Possible values: "off", "single", "multiple"
#MultiProfile = off

# Permanently enables the Fast Connectable setting for adapters that
# support it. When enabled other devices can connect faster to us,
# however the tradeoff is increased power consumptions. This feature
# will fully work only on kernel version 4.1 and newer. Defaults to
# 'false'.
#FastConnectable = false

# Default privacy setting.
# Enables use of private address.
# Possible values: "off", "device", "network"
# "network" option not supported currently
# Defaults to "off"
Privacy = off

[GATT]
# GATT attribute cache.
# Possible values:
# always: Always cache attributes even for devices not paired, this is
# recommended as it is best for interoperability, with more consistent
# reconnection times and enables proper tracking of notifications for all
# devices.
# yes: Only cache attributes of paired devices.
# no: Never cache attributes
# Default: always
#Cache = always

# Minimum required Encryption Key Size for accessing secured characteristics.
# Possible values: 0 and 7-16. 0 means don't care.
# Defaults to 0
# MinEncKeySize = 0

[Policy]
#
# The ReconnectUUIDs defines the set of remote services that should try
# to be reconnected to in case of a link loss (link supervision
# timeout). The policy plugin should contain a sane set of values by
# default, but this list can be overridden here. By setting the list to
# empty the reconnection feature gets disabled.
#ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb

# ReconnectAttempts define the number of attempts to reconnect after a link
# lost. Setting the value to 0 disables reconnecting feature.
#ReconnectAttempts=7

# ReconnectIntervals define the set of intervals in seconds to use in between
# attempts.
# If the number of attempts defined in ReconnectAttempts is bigger than the
# set of intervals the last interval is repeated until the last attempt.
#ReconnectIntervals=1,2,4,8,16,32,64

# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'false'.
AutoEnable=true