M
M
Muxlevator2016-01-26 11:52:01
Bluetooth
Muxlevator, 2016-01-26 11:52:01

How to raise PAN Bluetooth on OpenWrt?

We have: Openwrt 15.x, household router with usb, some kind of usb dongle. The iron is working, it scans, it sees devices nearby, it pairs normally. The service added (spdtool add NAP) to the list, Windows sees the device, steams and in the context menu offers "Connect via -> Access point", but does not want to connect (which is logical, because it is not configured). How to raise bnep0 (there is no such interface), how to bridge grids? It seems that this is done by python scripts from the bluez-examples package, but a) the scripts do not work, they say "an error in import dbus, there is no such module", b) it doesn't matter , because. bluez does not expose its interfaces to dbus:

# dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames
method return time=1453795633.305923 sender=org.freedesktop.DBus -> destination=:1.7 serial=3 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.7"
      string ":1.4"
      string "org.bluez"
   ]

#dbus-send --system --type=method_call --print-reply --dest=org.bluez / org.freedesktop.DBus.Introspectable.Introspect
method return time=1453795640.171153 sender=:1.4 -> destination=:1.8 serial=32 reply_serial=2
   string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node><interface name="org.freedesktop.DBus.Introspectable"><method name="Introspect"><arg name="xml" type="s" direction="out"/>
</method></interface><interface name="org.freedesktop.DBus.ObjectManager"><method name="GetManagedObjects"><arg name="objects" type="a{oa{sa{sv}}}" direction="out"/>
</method><signal name="InterfacesAdded"><arg name="object" type="o"/>
<arg name="interfaces" type="a{sa{sv}}"/>
</signal>
<signal name="InterfacesRemoved"><arg name="object" type="o"/>
<arg name="interfaces" type="as"/>
</signal>
</interface><node name="org"/></node>"

More suspicious:
# bluetoothd -n
bluetoothd[1435]: Bluetooth daemon 5.30
bluetoothd[1435]: Starting SDP server
bluetoothd[1435]: Failed to open RFKILL control device
bluetoothd[1435]: Bluetooth management interface 1.7 initialized
bluetoothd[1435]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[1435]: Failed to register org.bluez.LEAdvertisingManager1
bluetoothd[1435]: Failed to register LEAdvertisingManager1 interface for adapter
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Error adding Link Loss service
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Current Time Service could not be registered
bluetoothd[1435]: gatt-time-server: Input/output error (5)
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Not enough free handles to register service
bluetoothd[1435]: Sap driver initialization failed.
bluetoothd[1435]: sap-server: Operation not permitted (1)

(It didn't tell me anything even with Google, but suddenly someone Copenhagen)
So,
1. Are there ways to raise the PAN without accessing dbus? (I don't have pand and it's like deprecate-zeros 5 years ago)
3. If not, how to fix bluez and raise PAN via dbus?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question