porting from bluez4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

I'm porting our company's application from bluez4 to bluez5.  I'm currently using bluez5.42  (I'm nervous about using higher than that because I've had to backport many kernel changes to support this recent version (what else do I need to backport?)).  I have most things working, but there are two issues I've not yet been able to resolve.  The first is devices reconnecting when they come back into range.  For example, I am testing with a Jawbone from Jambox.  When coming back into range (or powering back on), I watch it attempt to connect, and it fails.  If I have bluetoothctl up I see the status change from connected to unconnected about three or four times before the Jambox quits trying and powers back down.   I have a BTLE keyboard that comes back into range and will not connect until I hit a key and the connection happens.   I have other BTLE devices that attempt to reconnect, but fail as well.

The second issue is that of  headset devices.  In Bluez4 there was a headset 'profile' and the IndicateCall method that could be invoked.  In bluez5 there is the Alert1 interface with the NewAlert call, but it is deprecated code, so what should I be using?  As a matter of interest, if I try to use the NewAlert method what is the proper use?  I've tried:

root# dbus-send --print-reply --system --dest=org.bluez --type=method_call /org/bluez org.bluez.Alert1.NewAlert string:"ringer" uint16:1 string:"active"
Error org.bluez.Error.InvalidArguments: Invalid arguments in method call

TIA,

Tom
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux