From: Szymon Janc <ext.szymon.janc@tieto.com>
To: krishnaks@iwavesystems.com
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: StartLescan rerturns false
Date: Thu, 03 Sep 2015 16:25:43 +0200 [thread overview]
Message-ID: <3088225.58tBxefHLJ@leonov> (raw)
In-Reply-To: <d2ec8d829215f8a06d693dd61ec226a2.squirrel@iwavesystems.com>
Hi,
On Thursday 03 of September 2015 10:00:14 krishnaks@iwavesystems.com wrote:
> > Hi,
> >
> > I have ported bluez to Android Kitkat 4.4.3 and I am testing Bluetooth Low
> > energy from android application.
> > BluetoothAdapter's method startLeScan returns false during scanning BLE
> > devices.
> > register-client method is getting called in hal-gatt.c. But looks like
> > "scanStarted" function is returning false.
> >
> > Have anyone faced this issue.
> >
> > Thanks in advance
> > KP
>
> Hi All,
>
> From the Android Logcat I found that GATT JNI is failing to initialize
>
> E/BtGatt.JNI( 833): ERROR: void android::initializeNative(JNIEnv*,
> jobject)(L718): Failed to initialize Bluetooth GATT, status: 1##
>
> Is this could be the reason for startlescan to return false?
Yes, profile must be initialized if you want to use it.
> Regards,
> KP
>
> ----------------Log----------------------
> I/BtGatt.JNI( 833): void android::classInitNative(JNIEnv*, jclass)(L684):
> classInitNative: Success!
> D/BtGatt.DebugUtils( 833): handleDebugAction() action=null
> D/BtGatt.GattService( 833): Received start request. Starting profile...
> D/BtGatt.GattService( 833): start()
> D/BlueZ ( 833):
> external/bluetooth/bluez/android/hal-bluetooth.c:get_profile_interface()
> gatt
> D/BlueZ ( 833): external/bluetooth/bluez/android/hal-gatt.c:init()
> E/BtGatt.JNI( 833): ERROR: void android::initializeNative(JNIEnv*,
> jobject)(L718): Failed to initialize Bluetooth GATT, status: 1##
> I/ActivityManager( 523): Start proc com.android.mms for broadcast
> com.android.mms/.transaction.MmsSystemEventReceiver: pid=897
> D/BLE ( 1233): Before LE Scan statusfalse
> D/BluetoothAdapter( 1233): startLeScan(): null
> D/BtGatt.GattService( 1059): registerClient123() -
> UUID=e7db8dc6-dc0b-41ff-b036-41b761fd4837
> I/audio_hw_primary( 188): start_output_stream... 2016291600, device 2
> W/audio_hw_primary( 188): card 1, port 0 device 0x2
> W/audio_hw_primary( 188): rate 48000, channel 2 period_size 0xc0
> W/audio_hw_primary( 188): do_out_standby... 2016291600
> D/BLE ( 1233): After LE Scan statusfalse
> --------------Log--------------
There is no daemon logs here but my guess would be that required crypto stuff
is missing in kernel. Check "Linux Kernel requirements" section in
android/README for list of required kernel options.
--
BR
Szymon Janc
next prev parent reply other threads:[~2015-09-03 14:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 13:31 USB BT gives problem If device plugged during boot to platform krishnaks
2015-08-28 19:07 ` Marcel Holtmann
2015-08-31 7:13 ` krishnaks
2015-09-02 12:24 ` StartLescan rerturns false krishnaks
2015-09-03 14:00 ` krishnaks
2015-09-03 14:25 ` Szymon Janc [this message]
2015-09-04 12:45 ` krishnaks
2015-09-21 10:43 ` GATT onWriteCharacteristic() returns status=1 (BT_STATUS_FAIL) krishnaks
2015-09-21 11:02 ` Szymon Janc
[not found] ` <71b8da83b60d4739a7cf443599cf4b3f.squirrel@iwavesystems.com>
2015-09-22 5:13 ` krishnaks
2015-09-22 10:26 ` Luiz Augusto von Dentz
2015-09-22 10:59 ` krishnaks
2015-09-23 11:06 ` krishnaks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3088225.58tBxefHLJ@leonov \
--to=ext.szymon.janc@tieto.com \
--cc=krishnaks@iwavesystems.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox