Re: [BLE] org.bluez.Device1.Connect() returns org.bluez.Error.NotAvailable

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

 



Hi Ting,

On Wed, Dec 12, 2012, Ting Chou wrote:
> I tried Device.Pair, it does connect to the LE device like the first call to
> Device.Connect, but:
> 
> - I can't unpair the device (CancelPairing can't do this).

There's no "unpair" method. You'd need to call Adapter.RemoveDevice to
do it.

> - If I Device.Disconnect after Device.Pair, then I can't connect to the device
>   again by either Device.Connect or Device.Pair:
>   - Device1.Connect
>     Error org.bluez.Error.NotAvailable: Operation currently not available
>   - Device1.Pair
>     Error org.bluez.Error.AlreadyExists: Already Exists
> 
> I still can't connect to the LE device once I disconnect it.

That means that the profiles that are supposed to be supported with this
device are not calling either device_set_auto_connect() or
btd_device_add_attio_callback(). Both of those functions should cause
bluetoothd to start doing passive scanning and try to connect to the
device. Btw, which kernel version are you using. IIRC you'll need
something like 3.5 or newer for LE passive scanning to work.

Johan
--
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