* BLE for Android
@ 2013-12-31 11:47 bill dr
2013-12-31 12:02 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 6+ messages in thread
From: bill dr @ 2013-12-31 11:47 UTC (permalink / raw)
To: linux-bluetooth
Hi,
I am trying to port BLE into a 4.1.1 android device.
I found that bluez git repository contains an android directory.
Could you explain me or point me to any link or document that explain
how to use this directory. Is there any HAL implementation already
done. Or this directory contains only "bluedroid" code ?
Thank you !
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BLE for Android
2013-12-31 11:47 BLE for Android bill dr
@ 2013-12-31 12:02 ` Luiz Augusto von Dentz
2014-01-03 11:02 ` Andrei Emeltchenko
0 siblings, 1 reply; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2013-12-31 12:02 UTC (permalink / raw)
To: bill dr; +Cc: linux-bluetooth@vger.kernel.org
Hi,
On Tue, Dec 31, 2013 at 1:47 PM, bill dr <bilel.dr@gmail.com> wrote:
> Hi,
>
> I am trying to port BLE into a 4.1.1 android device.
> I found that bluez git repository contains an android directory.
> Could you explain me or point me to any link or document that explain
> how to use this directory. Is there any HAL implementation already
> done. Or this directory contains only "bluedroid" code ?
>
> Thank you !
Checkout the README:
https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README
It is a clean implementation of bluetooth HAL, so no bluedroid code
bellow the HAL interface, above HAL is considered Android itself even
though it may actually contain bluetooth specific bits here and there.
Btw, we are almost ready to start looking at the BLE HAL.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BLE for Android
2013-12-31 12:02 ` Luiz Augusto von Dentz
@ 2014-01-03 11:02 ` Andrei Emeltchenko
2014-01-03 11:39 ` bill dr
0 siblings, 1 reply; 6+ messages in thread
From: Andrei Emeltchenko @ 2014-01-03 11:02 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: bill dr, linux-bluetooth@vger.kernel.org
Hi all,
On Tue, Dec 31, 2013 at 02:02:59PM +0200, Luiz Augusto von Dentz wrote:
> Hi,
>
> On Tue, Dec 31, 2013 at 1:47 PM, bill dr <bilel.dr@gmail.com> wrote:
> > Hi,
> >
> > I am trying to port BLE into a 4.1.1 android device.
There is no sense to make this work, use the latest Android instead, many
things should be already working ...
Best regards
Andrei Emeltchenko
> > I found that bluez git repository contains an android directory.
> > Could you explain me or point me to any link or document that explain
> > how to use this directory. Is there any HAL implementation already
> > done. Or this directory contains only "bluedroid" code ?
> >
> > Thank you !
>
> Checkout the README:
> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README
>
> It is a clean implementation of bluetooth HAL, so no bluedroid code
> bellow the HAL interface, above HAL is considered Android itself even
> though it may actually contain bluetooth specific bits here and there.
> Btw, we are almost ready to start looking at the BLE HAL.
>
>
>
> --
> Luiz Augusto von Dentz
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BLE for Android
2014-01-03 11:02 ` Andrei Emeltchenko
@ 2014-01-03 11:39 ` bill dr
2014-01-03 11:55 ` Andrei Emeltchenko
0 siblings, 1 reply; 6+ messages in thread
From: bill dr @ 2014-01-03 11:39 UTC (permalink / raw)
To: Andrei Emeltchenko, Luiz Augusto von Dentz, bill dr,
linux-bluetooth@vger.kernel.org
Hi all,
Thank you Luiz and Andrei for your responses.
@Andrei : I am aware that the latest android version supports "as best
as it can" BLE. But I have a constaint to use 4.1 Android only.
That lead us to my second question : what should I do to add such support ?
If I have understood correctly the HAL Bluetooth (in Bluez package) is
different from Android HAL.
so to have BLE support in Android 4.1 I have to:
1- Adding the last Bluez package and compile it.
2- make changes to Android Bluetooth HAL or just add a JNI interface
wrapping the Bluetooth HAL one ?
3- make changes to system service to support BLE.
4- make changes to Android SDK to export these changes to developpers.
Is it correct ? is there more straightforward way ?
especially about the second point and the confusion between Bluetooth
HAL and Android HAL.
Thank you for your help.
Regards,
Bilel
2014/1/3 Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>:
> Hi all,
>
> On Tue, Dec 31, 2013 at 02:02:59PM +0200, Luiz Augusto von Dentz wrote:
>> Hi,
>>
>> On Tue, Dec 31, 2013 at 1:47 PM, bill dr <bilel.dr@gmail.com> wrote:
>> > Hi,
>> >
>> > I am trying to port BLE into a 4.1.1 android device.
>
> There is no sense to make this work, use the latest Android instead, many
> things should be already working ...
>
> Best regards
> Andrei Emeltchenko
>
>> > I found that bluez git repository contains an android directory.
>> > Could you explain me or point me to any link or document that explain
>> > how to use this directory. Is there any HAL implementation already
>> > done. Or this directory contains only "bluedroid" code ?
>> >
>> > Thank you !
>>
>> Checkout the README:
>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README
>>
>> It is a clean implementation of bluetooth HAL, so no bluedroid code
>> bellow the HAL interface, above HAL is considered Android itself even
>> though it may actually contain bluetooth specific bits here and there.
>> Btw, we are almost ready to start looking at the BLE HAL.
>>
>>
>>
>> --
>> Luiz Augusto von Dentz
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BLE for Android
2014-01-03 11:39 ` bill dr
@ 2014-01-03 11:55 ` Andrei Emeltchenko
2014-01-03 12:02 ` bill dr
0 siblings, 1 reply; 6+ messages in thread
From: Andrei Emeltchenko @ 2014-01-03 11:55 UTC (permalink / raw)
To: bill dr; +Cc: Luiz Augusto von Dentz, linux-bluetooth@vger.kernel.org
Hi Bilel,
On Fri, Jan 03, 2014 at 12:39:04PM +0100, bill dr wrote:
> Hi all,
> Thank you Luiz and Andrei for your responses.
>
> @Andrei : I am aware that the latest android version supports "as best
> as it can" BLE. But I have a constaint to use 4.1 Android only.
>
>
> That lead us to my second question : what should I do to add such support ?
>
> If I have understood correctly the HAL Bluetooth (in Bluez package) is
> different from Android HAL.
There is no Bluetooth HAL in Android 4.1, HAL appeared when Android moved
to Bluedroid stack in version 4.2.
> so to have BLE support in Android 4.1 I have to:
>
> 1- Adding the last Bluez package and compile it.
> 2- make changes to Android Bluetooth HAL or just add a JNI interface
> wrapping the Bluetooth HAL one ?
> 3- make changes to system service to support BLE.
> 4- make changes to Android SDK to export these changes to developpers.
Looks too much work for nothing.
> Is it correct ? is there more straightforward way ?
> especially about the second point and the confusion between Bluetooth
> HAL and Android HAL.
Forget about HAL, hack JNI ....
Best regards
Andrei Emeltchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BLE for Android
2014-01-03 11:55 ` Andrei Emeltchenko
@ 2014-01-03 12:02 ` bill dr
0 siblings, 0 replies; 6+ messages in thread
From: bill dr @ 2014-01-03 12:02 UTC (permalink / raw)
To: Andrei Emeltchenko, bill dr, Luiz Augusto von Dentz,
linux-bluetooth@vger.kernel.org
2014/1/3 Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>:
> Hi Bilel,
>
> On Fri, Jan 03, 2014 at 12:39:04PM +0100, bill dr wrote:
>> Hi all,
>> Thank you Luiz and Andrei for your responses.
>>
>> @Andrei : I am aware that the latest android version supports "as best
>> as it can" BLE. But I have a constaint to use 4.1 Android only.
>>
>>
>> That lead us to my second question : what should I do to add such support ?
>>
>> If I have understood correctly the HAL Bluetooth (in Bluez package) is
>> different from Android HAL.
>
> There is no Bluetooth HAL in Android 4.1, HAL appeared when Android moved
> to Bluedroid stack in version 4.2.
>
OK I got it. Indeed, my confusion comes from bluedroid
>> so to have BLE support in Android 4.1 I have to:
>>
>> 1- Adding the last Bluez package and compile it.
>> 2- make changes to Android Bluetooth HAL or just add a JNI interface
>> wrapping the Bluetooth HAL one ?
>> 3- make changes to system service to support BLE.
>> 4- make changes to Android SDK to export these changes to developpers.
>
> Looks too much work for nothing.
isn't it required to have a proper support ?
indeed it is too munch work. is there any alternative ?
>
>> Is it correct ? is there more straightforward way ?
>> especially about the second point and the confusion between Bluetooth
>> HAL and Android HAL.
>
> Forget about HAL, hack JNI ....
OK.
>
> Best regards
> Andrei Emeltchenko
>
Thank you.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-03 12:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 11:47 BLE for Android bill dr
2013-12-31 12:02 ` Luiz Augusto von Dentz
2014-01-03 11:02 ` Andrei Emeltchenko
2014-01-03 11:39 ` bill dr
2014-01-03 11:55 ` Andrei Emeltchenko
2014-01-03 12:02 ` bill dr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox