Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluez says opteration is not supported #7

Open
con-f-use opened this issue Mar 15, 2018 · 3 comments
Open

bluez says opteration is not supported #7

con-f-use opened this issue Mar 15, 2018 · 3 comments

Comments

@con-f-use
Copy link

con-f-use commented Mar 15, 2018

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).

@ghtyrant
Copy link
Owner

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.

@con-f-use
Copy link
Author

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
Copy link
Author

con-f-use commented Apr 12, 2018

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 con-f-use reopened this Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants