Bluetooth NAPに接続した後、bnep0インターフェイスは表示されません。

Bluetooth NAPに接続した後、bnep0インターフェイスは表示されません。

現在、Bluetooth PANネットワークを介してLinuxを実行しているカスタムボードと携帯電話を接続しようとしています。私の携帯電話はNAPで、マザーボードはPANUです。

私は次の文書に従いました。運営案内そしてBlueZ 5.Xを使用したBluetooth PANネットワークの設定
見つけることができるbt-panスクリプトを使用しています。ここ

デバイスをペアリングしてbt-panを正常に実行できますが(少なくともそうです)、bnep0ネットワークインターフェイスは起動しません。

# bt-pan --debug client 60:45:CB:2F:C6:4C --wait
DEBUG:root:Using local device (addr: 00:16:A4:0A:15:13): /org/bluez/hci0
DEBUG:root:Using remote device (addr: 60:45:CB:2F:C6:4C): /org/bluez/hci0/dev_60_45_CB_2F_C6_4C
DEBUG:root:Connected to network (dev_remote: /org/bluez/hci0/dev_60_45_CB_2F_C6_4C, addr: 60:45:CB:2F:C6:4C) uuid 'nap' with iface: bnep0
Passing in opts.wait

私が見つけたところによれば、bnep0インターフェースが自動的に表示されるはずです。私も修正しましたが、/etc/network/interfacesbt-panの実行後にbnep0インターフェイスがトリガされるように設定されていません。

私が持っている唯一のBluetoothログは次のとおりです。

#tail -f /var/log/messages 
Jan  1 03:39:22 linux-board daemon.info bluetoothd[249]: bnep%d connected
Jan  1 03:39:22 linux-board daemon.info bluetoothd[249]: bnep0 disconnected

スクリプトを2番目に実行すると、次のエラーが発生します。

# bt-pan --debug client 60:45:CB:2F:C6:4C --wait
DEBUG:root:Using local device (addr: 00:16:A4:0A:15:13): /org/bluez/hci0
DEBUG:root:Using remote device (addr: 60:45:CB:2F:C6:4C): /org/bluez/hci0/dev_60_45_CB_2F_C6_4C
Traceback (most recent call last):
  File "/usr/bin/bt-pan", line 238, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/bin/bt-pan", line 209, in main
    try: iface = net.Connect(opts.uuid)
  File "/usr/lib/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
  File "/usr/lib/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
dbus.exceptions.DBusException: org.bluez.Error.Failed: Input/output error

そして次のログ

#tail -f /var/log/messages 
Jan  1 03:43:19 sama5d2_puv3 daemon.err bluetoothd[249]: bnep: Could not bring up bnep0: No such device(19)
Jan  1 03:43:19 sama5d2_puv3 daemon.err bluetoothd[249]: bnep: Failed to kill connection: No such file or directory (2)
Jan  1 03:43:19 sama5d2_puv3 daemon.err bluetoothd[249]: connect failed Input/output error

3回目の実行では、1回目の実行と同じ結果が表示されます。


インターフェイスが表示されない理由を知っている人はいますか?

ベストアンサー1

おすすめ記事