Am 30.08.2017 15:45, schrieb walter harms:
hi,
ich habe hier ein Problem mit einem simplen
bluetooth-Adapter, der eigentlich nur eine
Serielleschnittstelle simulieren soll.
Der Aufbau via bluetoothctl sieht so aus:
bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:02 omnfr19.odl.bfs.de [default]
[NEW] Device 00:12:03:27:76:10 automess
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# power on
[CHG] Controller 00:1A:7D:DA:71:02 Class: 0x00010c
Changing power on succeeded
[CHG] Controller 00:1A:7D:DA:71:02 Powered: yes
[bluetooth]# agent on
Agent registered
[bluetooth]# pair 00:12:03:27:76:10
Attempting to pair with 00:12:03:27:76:10
Failed to pair: org.bluez.Error.AlreadyExists
* war ein Test, dass pswd wurde in einem vorhergehenden
Versuch schon gesetzt
[bluetooth]# trust 00:12:03:27:76:10
Changing 00:12:03:27:76:10 trust succeeded
[bluetooth]# connect 00:12:03:27:76:10
Attempting to connect to 00:12:03:27:76:10
[CHG] Device 00:12:03:27:76:10 Connected: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 00:12:03:27:76:10 Connected: no
* Das ist merkwürdig, erst geht es
Connected: yes
* dann aber doch nicht:
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 00:12:03:27:76:10 Connected: no
* auch keine Hinweise im Log oder ein device
[bluetooth]# show
Controller 00:1A:7D:DA:71:02
Name: omnfr19.odl.bfs.de
Alias: omnfr19.odl.bfs.de
Class: 0x00010c
Powered: yes
Discoverable: no
Pairable: yes
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0517
Discovering: no
Ich habe einige Sachen aus dem Internet probiert aber bislang ohne Erfolg.
Sonst jemand so ein Verhalten schon gesehen ?
re,
wh
Ich denke ich habe es gefunden, das Missverständis war dass bluetoothctl der Ersatz für
alle anderen
Kommandos ist, nun weiss ich das eine serielle Verbindung nur mit rfcomm gemacht werden
kan (bug or feature ?)
rfcomm bind rfcomm0 00:12:03:27:76:10
nun mit stty -F /dev/rfcomm0
die Geschwindigkeit setzen und
cat </dev/rfcomm0 | xxd
zeigt das was kommt.
Ich kann es noch nicht interpretieren sieht aber schon mal gut aus.
re,
wh