Re: Raspberry Pi 3: BLE via Java?

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

 



Hi Johannes,

On Thu, Mar 24, 2016 at 2:53 PM, Kropf Johannes
<Johannes.Kropf@xxxxxxxxx> wrote:
> Hi,
>
> I was using BLE also on the Raspberry 2 with Java before, using a USB Bluetooth dongle.
> However, what you need is the Java dbus API which maps the DBUS objects to Java objects.
>
> It is available in the Linux repos:
> sudo apt-get install libdbus-java
>
> If you need help let me now, can provide you some source code as well if wanted.

No top-posting in this mailing list please.

>
> However, I have problems using the newest versions of bluez 5.37 and 5.38 with ble hci devices like a weighing scale. The devices do not connect anymore automatically when paired.

Automatically reconnecting can be done via plugin or RegisterProfile:

https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt

>
>
> JOHANNES KROPF
> Health & Environment Department
> Biomedical Systems
>
> AIT Austrian Institute of Technology GmbH
> Viktor Kaplan Straße 2  |  2700 Wiener Neustadt  |  Austria
> T +43(0) 50550-4845  |  M +43(0) 664 235 1732  |  F +43(0) 50550-4803
> johannes.kropf@xxxxxxxxx |  http://www.ait.ac.at
>
> FN: 115980 i HG Wien  |  UID: ATU14703506
> www.ait.ac.at/Email-Disclaimer
>
> ________________________________________
> Von: linux-bluetooth-owner@xxxxxxxxxxxxxxx [linux-bluetooth-owner@xxxxxxxxxxxxxxx]&quot; im Auftrag von &quot;Luiz Augusto von Dentz [luiz.dentz@xxxxxxxxx]
> Gesendet: Dienstag, 15. März 2016 10:07
> An: PV Subramanian
> Cc: linux-bluetooth@xxxxxxxxxxxxxxx
> Betreff: Re: Raspberry Pi 3: BLE via Java?
>
> Hi,
>
> On Tue, Mar 15, 2016 at 2:05 AM, PV Subramanian <pvs@xxxxxxxxxx> wrote:
>> Hello: Just got my new Raspberry Pi 3, and confirmed BLE is working
>> (sudo hcitool lescan)
>
> hcitool is deprecated, either use bluetoothctl or btmgmt to scan.
>
>> How can one access BlueZ via Java, to enable applications?
>
> There exists Java bindings for D-Bus, so you can probably use
> bluetoothd, otherwise you will probably need to implement the
> something to talk to the mgmt interface in java.
>
>> Thanks
>>
>> PVS
>> --
>> 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
>
>
>
> --
> Luiz Augusto von Dentz
> --
> 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



-- 
Luiz Augusto von Dentz
--
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