Android Question BLE or BleExtended is not discovering services/characteristics in TI-SensorTag

cesarcm

Member
Licensed User
Longtime User
Using the sample "BLE Send Data":

"ble_DeviceFound" is called and method "manager.Connect(MacAddress, False)" is executed but it returns nothing; it means that "ble_Connected" is not being performed.

Any idea?

Thanks.
Cesar
 

cesarcm

Member
Licensed User
Longtime User
B4A paths:

c:\Java\jdk1.7.0_45\bin\javac.exe

c:\Android\android-sdk\platforms\android-19\android.jar
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
The paths are not relevant.

Are there any messages in the logs?

Erel,

I also have tested it with others BLE modules as like Estimote, BLE112 (Bluegiga), OLP425 (ConnectBlue), etc.

The log just shows "Discovering Services." that I found at "BleManager.java":

public void onConnectionStateChange(BluetoothGatt gatt, int status,
int newState) {
if (newState == BluetoothProfile.STATE_CONNECTED) {
BleManager.this.gatt = gatt;

Common.Log("Discovering services.");
gatt.discoverServices();
}


Kind regards,
Cesar
 
Upvote 0

deantangNYP

Active Member
Licensed User
Longtime User
I just bought a TI-SensorTag, possible to share some sample b4a codes that will work with the SensorTag?
Thanks.
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
I just bought a TI-SensorTag, possible to share some sample b4a codes that will work with the SensorTag?
Thanks.
Erel,

The problem is not the SensorTag or BLE112 or OLP425, but something in B4A!

I have tested those devices under iOS (iPhone 4S) and everyhting works fine!

I also have installed some BLE app tools from Google Play into Nexus4 and the devices/services/characteristics are foubd/discovered as well.

>>> With "unfiltered" logs I got:

Button2_click
Message 0
SensorTag, MACaddress
Connecting...
Discovering services.
Service discovery failed.
Disconnected



Thanks in advance!

Kind regards,
Cesar
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
The library calls gatt.discoverServices and the onServicesDiscovered event is raised with a status that indicates failure. There isn't any other logic in the library.
Erel,

Ok! And?

Why others BLE app tools - from Google Play - find/discover the devices?

Same Nexus4 and same KitKat 4.4.2 ...

B4A found all devices (Estimote, OLP425, BLE112, SensorTag) but not the services ... any other idea?

BLE is crucial for our app!

Any suggestion from someone else?

Thanks.
Regards,
Cesar
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
Erel,

Ok! And?

Why others BLE app tools - from Google Play - find/discover the devices?

Same Nexus4 and same KitKat 4.4.2 ...

B4A found all devices (Estimote, OLP425, BLE112, SensorTag) but not the services ... any other idea?

BLE is crucial for our app!

Any suggestion from someone else?

Thanks.
Regards,
Cesar

Erel,

I have tested it on Samsung S3 and it works fine! :)

I will check all configs on Nexus4 ...

Thanks for all.
Regards,
Cesar
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
Erel,

Unfortunately BLE on iOS is much more stable ...

A dream/desire: Basic4iOS :)

The paradise: Basic4All (Android, iOS, WP8)

Regards,
Cesar
 
Upvote 0

cesarcm

Member
Licensed User
Longtime User
Upvote 0

cesarcm

Member
Licensed User
Longtime User
Erel,

Thanks!

Exactly why iPhone/iOS is a success - everything works fine on that! All layers are well-tested before release.
I have no problem with any developed software for iOS.
I just choosed Nexus4 since it is a Google phone and Android is so "pure" as should be. I was expecting no errors at all. It is insane.

Regards,
Cesar
Erel,

All problems that we are facing are also described here (link below) for many many users as well.
Incluiding tips as like:
- BLE on Samsung S3/S4 works better than S5
- BLE on Android 4.3 works better than 4.4 (KitKat)

OK! I am getting back to iOS (for while) ...

Regards,
Cesar
 
Upvote 0
Top