libsooshi icon indicating copy to clipboard operation
libsooshi copied to clipboard

bluez says opteration is not supported

Open con-f-use opened this issue 7 years ago • 3 comments

When running the example on my machine, I get:

(process:5291): sooshi-ERROR **: Error starting read routine: GDBus.Error:org.bluez.Error.NotSupported: Operation is not supported

From that I would suspect, I have an incompatible bluez version on my system. What version did you guys test the example with? Also, does someone know of a fix?

Full output

I use a usbdongle with broadcom (ID 0a5c:21ec) bm 20702 chip and bluez 5.43 (also present in 5.48).

con-f-use avatar Mar 15 '18 11:03 con-f-use

I have tested this with 5.46.r27.g5a765af1c-1. Unfortunately, it has been a while since I worked on this, so I can't tell you what's causing this. Try updating!

I updated README.md to also contain this information.

ghtyrant avatar Mar 15 '18 15:03 ghtyrant

Good enough. Had to do a release-upgrade of my Linux since the latest bluez version in the package sources was still to low. I'm on 5.48 now and it works.

con-f-use avatar Apr 12 '18 14:04 con-f-use

Ah damn, that was a false positive. I DO get the same error with bluez 5.48 and 5.49 both experimental enabled on Ubuntu 18.04. And on Manjaro (Archlinux).

┌─12-19:40⏚ [confus@confusion:~/devel/electronics/mooshi/libsooshi/example] c6fb6:master 2 ± 
└▪ ps aux | grep blue
root      2231  0.0  0.0  39104  5372 ?        Ss   19:37   0:00 /usr/lib/bluetooth/bluetoothd -E
confus    3468  0.0  0.0  12432  2336 pts/4    S+   19:43   0:00 grep --color=auto blue
┌─12-19:43⏚ [confus@confusion:~/devel/electronics/mooshi/libsooshi/example] c6fb6:master ± 
└▪ make run
LD_LIBRARY_PATH=../ G_MESSAGES_DEBUG=all ./example
sooshi-INFO: Found interface org.bluez.Adapter1!
sooshi-INFO: Found interface org.bluez.Device1!
sooshi-INFO: Added Mooshimeter (Path: /org/bluez/hci0/dev_20_CD_39_A0_B6_D7)
(process:3536): sooshi-DEBUG: Connecting to Mooshimeter ...
sooshi-INFO: Found interface org.bluez.GattCharacteristic1!
sooshi-INFO: Found interface org.bluez.GattCharacteristic1!
sooshi-INFO: Serial In & Serial Out already available!
(process:3536): sooshi-DEBUG: Sending message #0 to Mooshimeter:
(process:3536): sooshi-DEBUG:     [0] 1 (\u0001 1)

(process:3536): sooshi-ERROR **: Error calling WriteValue: GDBus.Error:org.bluez.Error.InvalidArguments: Invalid arguments in method call
make: *** [Makefile:24: run] Trace/breakpoint trap (core dumped)
┌─12-19:43⏚ [confus@confusion:~/devel/electronics/mooshi/libsooshi/example] c6fb6:master 2 ± 
└▪ lsb_release 
example*  main.c    main.o    Makefile  
┌─12-19:43⏚ [confus@confusion:~/devel/electronics/mooshi/libsooshi/example] c6fb6:master 2 ± 
└▪ lsb_release -a
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	17.1.7
Codename:	Hakoila
┌─12-19:44⏚ [confus@confusion:~/devel/electronics/mooshi/libsooshi/example] c6fb6:master ± 
└▪ /usr/lib/bluetooth/bluetoothd -v
5.49

Btw, cheers from Innsbruck... :-D

con-f-use avatar Apr 12 '18 14:04 con-f-use