Git Product home page Git Product logo

ble-test-peripheral-android's People

Contributors

beaufortfrancois avatar g-ortuno avatar j796160836 avatar jyasskin avatar scheib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ble-test-peripheral-android's Issues

Misuse of mBluetoothAdapter.isMultipleAdvertisementSupported()

In https://github.com/WebBluetoothCG/ble-test-peripheral-android/blob/master/app/src/main/java/io/github/webbluetoothcg/bletestperipheral/Peripheral.java there is:

if (!mBluetoothAdapter.isMultipleAdvertisementSupported()) {
  Toast.makeText(this, R.string.bluetoothAdvertisingNotSupported, Toast.LENGTH_LONG).show();
  Log.e(TAG, "Advertising not supported");
}

And this is misuse of isMultipleAdvertisementSupported, check this AltBeacon/android-beacon-library#266:

It is important to understand that just because isMultipleAdvertisementSupported() returns false does not mean that the device cannot advertise at all -- it means either that it cannot advertise at all OR that it can only transmit one advertisement at a time. Many Motorola devices (Moto X, Moto G) behave this way. The way you are supposed to check if advertising is supported at all is to get an instance of BluetoothLEAdvertiser. If the call to get an instance fails, then it is not supported.

mGattServer.sendResponse return wrong value?

Hi!
Possible need to return "status" instead returning GATT_SUCCES?

 status = BluetoothGatt.GATT_SUCCESS;
        descriptor.setValue(value);
      }
      if (responseNeeded) {
        mGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS,
            /* No need to respond with offset */ 0,
            /* No need to respond with a value */ null);
      }

See here

Disconnect devices button doesn't disconnect

Calling mGattServer.cancelConnection(device); doesn't disconnect device as I've observed in btmon and adb logs when tapping "Disconnect devices" button.
Moreover, onConnectionStateChange is not called which means "Devices connected" text is not updated.

@g-ortuno

Question about Characteristic.setValue

I have used this app to receive MID messages from an iOS app.

I am now trying to send messages and I am struggling to understand some of the logic.
When I call BluetoothGattCharacteristic.setValue(), this only sets the local value, which only goes to the other side after they have tried to read it.

So one can call BluetoothGattServer.notifyCharacteristicChanged() to suggest a read operation.

So, my question is: the only way to be sure the data has been read (before I can write more), is to wait for the next BluetoothGattServerCallback.onCharacteristicReadRequest() call? Is it the way it is supposed to work?

Problem with Thermometer

It appears the logic for the Temperature may be off.
I think the bits for the Centigrade values may need to be shifted by one more:
C Value: Byte 3,4 actual, Byte 3,4 expect
1: Actual 0, 7f, Expect 80, 3f
2: Actual 0, 80, Expect 00, 40
3: Actual 40, 80 , Expect 40, 40

does not connect to app

Hi,

I am having difficulty in connecting my pc with app. While my ubuntu is connected to phone, I have zero connection in "connection status". I am new in this field. I greatly appreciate any suggestions.

Thank you,
Best,
Parian

Ble Pairing

Hi,

Is it possible to do Ble Pairing?
I am creating one custom application using this application as a reference. In this application, I want to add some encryption mechanism and for that, I want to make bond connection b/w two devices.

I know we can call createBond() on the central side to request the pairing. But how can I handle the createBond call at the peripheral side? What changes do I need to apply? Does current code support this feature?

Cadence

Guys, it would be great if you add cadence simulation, because it's really useful feature. Now i'm working on endomondo activity track uploading and i don't know how to transmit cadence info. I can get real device with cadence sensor, and intercept traffic but it's money and time. Your software could help me, but as i can see you're not supporting it.
Maybe you have plans to add in future?

Notifications not working since last update

Hey there, awesome job with this app, it is really helpful! ๐Ÿ˜Ž

I am the developer of https://github.com/wyeworks/ember-bluetooth and I was using this app to test the addon. Everything was working fine, but since last update from the Play store (the one that added the Health Thermometer device) the notifications stopped working for at least the Battery device. I tried this with 3 different devices.

Can anyone confirm that?

MAC Address change every few minutes

Hi,

We observe that MAC address of the peripheral is changing every few minutes.
Is it possible to assign fixed MAC address for the peripheral (Battery / Heart Rate Monitor)?

Thanks,
Giridhar.

Feature Request: Custom Defined Services and Identifiers

With my current project, I was remiss to find that the options for configuring the services of the simulated BLE peripheral device were lacking. I would love to be able to define devices with custom local names, service definitions with user definable UUIDs (or autogenerated ones) and custom attributes so that I can more fully simulate the devices I will be connecting while I am debugging the code of my central application. This would make debugging points of failure in my peripheral hardware so much easier and put your app miles ahead of the other ones that are on the marketplace.

IOS can't not connect.

Excuse me, I follow project can work .
I use Android System to connect is work .
I use IOS System to connect is not work.
Can you help me how to do ?

Battery service (180F) not available

Not sure if this is a Linux/Chrome bug or related to #94. I'm running on Ubuntu 18.04 with Chrome. Heartrate test seems to work fine, so I'm confused why there are issues with Battery simulation.

I'm testing through this page:
https://googlechrome.github.io/samples/web-bluetooth/battery-level.html
Seeing the following "Live Output":

Requesting Bluetooth Device...
Connecting to GATT Server...
Getting Battery Service...
Argh! NotFoundError: No Services matching UUID 0000180f-0000-1000-8000-00805f9b34fb found in Device.

I found that exact 0000180f-... battery_service UUID in the android code here:

The reset energy app works:
https://googlechrome.github.io/samples/web-bluetooth/reset-energy.html

Live output of:

Requesting Bluetooth Device...
Connecting to GATT Server...
Getting Heart Rate Service...
Getting Heart Rate Control Point Characteristic...
Writing Heart Rate Control Point Characteristic...
> Energy expended has been reset.

Which successfully resets the energy expended value to zero in the android app.

Trying to troubleshoot with bluetoothctl (Linux CLI utility). Seeing reasonable GATT listing "Heart Rate Control Point" (2A39) when opening the heartrate tab in the android app:

menu gatt
list-attributes
Primary Service
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0001
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
Characteristic
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0001/char0002
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed
Primary Service
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028
	0000180d-0000-1000-8000-00805f9b34fb
	Heart Rate
Characteristic
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028/char0029
	00002a37-0000-1000-8000-00805f9b34fb
	Heart Rate Measurement
Descriptor
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028/char0029/desc002b
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
Descriptor
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028/char0029/desc002c
	00002901-0000-1000-8000-00805f9b34fb
	Characteristic User Description
Characteristic
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028/char002d
	00002a38-0000-1000-8000-00805f9b34fb
	Body Sensor Location
Characteristic
	/org/bluez/hci0/dev_65_56_A7_7E_47_2C/service0028/char002f
	00002a39-0000-1000-8000-00805f9b34fb
	Heart Rate Control Point

But when switching over to the Battery tab, I don't see the battery service listed.

menu gatt
list-attributes
Primary Service
	/org/bluez/hci0/dev_5C_91_FB_35_1C_CE/service0001
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
Characteristic
	/org/bluez/hci0/dev_5C_91_FB_35_1C_CE/service0001/char0002
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed

Upon a fresh connection, I do see the 180F battery status UUID logged with the [CHG] tag, but it does not persist with list-attributes.

[miles g5]# connect 5C:91:FB:35:1C:CE
Attempting to connect to 5C:91:FB:35:1C:CE
[CHG] Device 5C:91:FB:35:1C:CE Connected: yes
Connection successful
[CHG] Device 54:59:49:F9:57:73 ServicesResolved: no
[CHG] Device 54:59:49:F9:57:73 Connected: no
[DEL] Characteristic
	/org/bluez/hci0/dev_54_59_49_F9_57_73/service0001/char0002
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed
[DEL] Primary Service
	/org/bluez/hci0/dev_54_59_49_F9_57_73/service0001
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[DEL] Device 54:59:49:F9:57:73 miles g5
[NEW] Primary Service
	/org/bluez/hci0/dev_5C_91_FB_35_1C_CE/service0001
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[NEW] Characteristic
	/org/bluez/hci0/dev_5C_91_FB_35_1C_CE/service0001/char0002
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed
[CHG] Device 5C:91:FB:35:1C:CE UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:91:FB:35:1C:CE UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:91:FB:35:1C:CE UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:91:FB:35:1C:CE ServicesResolved: yes

Adding Device Information service to gatt server as a 4th service

When i add a new service (Device Information service) to the gatt server,read and write descriptors,values do not work for some time followed by GATT TIMEOUT and GATT ERROR.
Ive implemented the Device Information Service similar to the other services and added it to the Gatt server.Is my implementation wrong?

Not advertising. Internal error occured

image

Here's my adb log below in case it can help diagnose this error.

07-06 08:27:05.570  7743  7743 D BluetoothGattServer: close()
07-06 08:27:05.570  7743  7743 D BluetoothGattServer: unregisterCallback() - mServerIf=5
07-06 08:27:05.570  7667  7711 D BtGatt.GattService: unregisterServer() - serverIf=5
07-06 08:27:05.570  7667  7711 D BtGatt.GattService: deleteServices() - serverIf=5
07-06 08:27:05.571  7667  7711 D bt_btif_gatt: btif_gatts_delete_service
07-06 08:27:05.571  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2010
07-06 08:27:05.571  7667  7696 E bt_att  : Active Service Found 
07-06 08:27:05.571  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 11
07-06 08:27:05.571  7667  7686 D BtGatt.GattService: onServiceDeleted() srvcHandle=40, status=0
07-06 08:27:05.571  7667  7711 D bt_btif_gatt: btif_gatts_unregister_app
07-06 08:27:05.572  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2001
07-06 08:27:05.572  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 6
07-06 08:27:05.572  7743  7743 D BluetoothAdapter: STATE_ON
07-06 08:27:05.573  7667  7688 D BtGatt.AdvertiseManager: message : 1
07-06 08:27:05.573  7667  7688 D BtGatt.AdvertiseManager: stop advertise for client 6
07-06 08:27:05.573  7667  7688 D bt_btif_gattc: btif_gattc_multi_adv_disable
07-06 08:27:05.573  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1034
07-06 08:27:05.581  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 23
07-06 08:27:05.581  7667  7686 D BtGatt.GattService: onAdvertiseInstanceDisabled() - clientIf=6, status=0
07-06 08:27:05.581  7667  7686 D BtGatt.GattService: Client app is not null!
07-06 08:27:05.581  7667  7679 D BtGatt.GattService: unregisterClient() - clientIf=6
07-06 08:27:05.582  7667  7679 D bt_btif_gattc: btif_gattc_unregister_app
07-06 08:27:05.582  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1001
07-06 08:27:05.582  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 1
07-06 08:27:05.599   274   274 W SurfaceFlinger: couldn't log to binary event log: overflow.
07-06 08:27:05.612  7743  7743 D BluetoothGattServer: registerCallback()
07-06 08:27:05.613  7743  7743 D BluetoothGattServer: registerCallback() - UUID=c49353cf-bf20-410e-8be0-f0a8c796cfbd
07-06 08:27:05.613  7667  7680 D BtGatt.GattService: registerServer() - UUID=c49353cf-bf20-410e-8be0-f0a8c796cfbd
07-06 08:27:05.613  7667  7680 D bt_btif_gatt: btif_gatts_register_app
07-06 08:27:05.613  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2000
07-06 08:27:05.613  7667  7696 E bt_btif : register application first_unuse rcb_idx = 0
07-06 08:27:05.613  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 0
07-06 08:27:05.614  7667  7686 D BtGatt.GattService: onServerRegistered() - UUID=c49353cf-bf20-410e-8be0-f0a8c796cfbd, serverIf=5
07-06 08:27:05.614  7743  7757 D BluetoothGattServer: onServerRegistered() - status=0 serverIf=5
07-06 08:27:05.614  7743  7743 D BluetoothGattServer: addService() - service: 0000180f-0000-1000-8000-00805f9b34fb
07-06 08:27:05.614  7667  7678 D BtGatt.GattService: beginServiceDeclaration() - uuid=0000180f-0000-1000-8000-00805f9b34fb
07-06 08:27:05.615  7667  7679 D BtGatt.GattService: addCharacteristic() - uuid=00002a19-0000-1000-8000-00805f9b34fb
07-06 08:27:05.615  7667  7711 D BtGatt.GattService: endServiceDeclaration()
07-06 08:27:05.615  7667  7711 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=0
07-06 08:27:05.615  7667  7711 D BtGatt.GattService: continueServiceDeclaration() - next entry type=1
07-06 08:27:05.615  7667  7711 D bt_btif_gatt: btif_gatts_add_service
07-06 08:27:05.615  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2004
07-06 08:27:05.615  7667  7696 E bt_btif : create service rcb_idx = 0
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 7
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: onServiceAdded() UUID=0000180f-0000-1000-8000-00805f9b34fb, status=0, handle=40
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=40
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - next entry type=2
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btif_gatts_add_characteristic
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2006
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 9
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: onCharacteristicAdded() UUID=00002a19-0000-1000-8000-00805f9b34fb, status=0, srvcHandle=40, charHandle=42
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=40
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btif_gatts_start_service
07-06 08:27:05.616  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - completed.
07-06 08:27:05.616  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2008
07-06 08:27:05.616  7743  7755 D BluetoothGattServer: onServiceAdded() - service=0000180f-0000-1000-8000-00805f9b34fbstatus=0
07-06 08:27:05.617  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 12
07-06 08:27:05.617  7667  7686 D BtGatt.GattService: onServiceStarted() srvcHandle=40, status=0
07-06 08:27:05.618  7743  7743 D BluetoothAdapter: STATE_ON
07-06 08:27:05.619   843   854 D BluetoothManagerService: checkIfCallerIsForegroundUser: valid=true callingUser=0 parentUser=-10000 foregroundUser=0
07-06 08:27:05.620   843  1808 D BluetoothManagerService: checkIfCallerIsForegroundUser: valid=true callingUser=0 parentUser=-10000 foregroundUser=0
07-06 08:27:05.621  7667  7679 D BtGatt.GattService: registerClient() - UUID=157ea4ad-bf86-44ca-b9fb-df50ff1271de
07-06 08:27:05.621  7667  7679 D bt_btif_gattc: btif_gattc_register_app
07-06 08:27:05.621  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1000
07-06 08:27:05.621  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 0
07-06 08:27:05.622  7667  7686 D BtGatt.GattService: onClientRegistered() - UUID=157ea4ad-bf86-44ca-b9fb-df50ff1271de, clientIf=6
07-06 08:27:05.622  7743  7756 D BluetoothLeAdvertiser: onClientRegistered() - status=0 clientIf=6
07-06 08:27:05.622  7667  7688 D BtGatt.AdvertiseManager: message : 0
07-06 08:27:05.626  7667  7688 D BtGatt.AdvertiseManager: starting multi advertising
07-06 08:27:05.626  7667  7688 D bt_btif_gattc: btif_gattc_multi_adv_enable
07-06 08:27:05.627  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1031
07-06 08:27:05.627  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 20
07-06 08:27:05.627  7667  7686 D BtGatt.GattService: onAdvertiseInstanceEnabled() - clientIf=6, status=1
07-06 08:27:05.628  7667  7680 D BtGatt.GattService: unregisterClient() - clientIf=6
07-06 08:27:05.628  7667  7680 D bt_btif_gattc: btif_gattc_unregister_app
07-06 08:27:05.628  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1001
07-06 08:27:05.628  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 1
07-06 08:27:05.634   843   855 V WindowManager: Adding window Window{27738c8 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripheral} at 4 of 8 (after Window{39584a4 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripherals})
07-06 08:27:05.650  7743  7743 E io.github.webbluetoothcg.bletestperipheral.Peripheral: Not broadcasting: 4
07-06 08:27:05.670   843   862 I WindowManager: Screen frozen for +249ms due to Window{27738c8 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripheral}
07-06 08:27:06.127  7667  7688 E BtGatt.ContextMap: Context not found for ID 6
07-06 08:27:06.128  7667  7688 E BtGatt.GattService: Advertise app or callback is null
07-06 08:27:06.177   843   843 V ActivityManager: Display changed displayId=0
07-06 08:27:06.199   374  3661 D audio_hw_primary: adev_set_parameters: enter: rotation=0
07-06 08:27:06.199   374  3661 D mot_vr_audio_hw: adev_set_parameters: rotation=0
07-06 08:27:06.201   843  1271 I InputReader: Reconfiguring input devices.  changes=0x00000004
07-06 08:27:06.201   843  1271 I InputReader: Device reconfigured: id=5, name='atmel_mxt_ts', size 1440x2560, orientation 0, mode 1, display id 0
07-06 08:27:06.211   843   862 I ActivityManager: Config changes=480 {1.0 208mcc?mnc en_US ldltr sw411dp w411dp h659dp 560dpi nrml port finger -keyb/v/h -nav/h s.24}
07-06 08:27:06.226  1759  1759 D ImsConfigImpl: onConfigurationChange
07-06 08:27:06.249  7743  7743 D BluetoothGattServer: close()
07-06 08:27:06.249  7743  7743 D BluetoothGattServer: unregisterCallback() - mServerIf=5
07-06 08:27:06.250  7667  7711 D BtGatt.GattService: unregisterServer() - serverIf=5
07-06 08:27:06.250  7667  7711 D BtGatt.GattService: deleteServices() - serverIf=5
07-06 08:27:06.250  7667  7711 D bt_btif_gatt: btif_gatts_delete_service
07-06 08:27:06.250  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2010
07-06 08:27:06.250  7667  7696 E bt_att  : Active Service Found 
07-06 08:27:06.251  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 11
07-06 08:27:06.251  7667  7686 D BtGatt.GattService: onServiceDeleted() srvcHandle=40, status=0
07-06 08:27:06.251  7667  7711 D bt_btif_gatt: btif_gatts_unregister_app
07-06 08:27:06.251  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2001
07-06 08:27:06.251  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 6
07-06 08:27:06.251  7743  7743 D BluetoothAdapter: STATE_ON
07-06 08:27:06.278   274   274 W SurfaceFlinger: couldn't log to binary event log: overflow.
07-06 08:27:06.307  7743  7743 D BluetoothGattServer: registerCallback()
07-06 08:27:06.308  7743  7743 D BluetoothGattServer: registerCallback() - UUID=0034bf5b-bcb6-4177-96ad-844d2fdc0e00
07-06 08:27:06.308  7667  7679 D BtGatt.GattService: registerServer() - UUID=0034bf5b-bcb6-4177-96ad-844d2fdc0e00
07-06 08:27:06.308  7667  7679 D bt_btif_gatt: btif_gatts_register_app
07-06 08:27:06.308  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2000
07-06 08:27:06.309  7667  7696 E bt_btif : register application first_unuse rcb_idx = 0
07-06 08:27:06.309  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 0
07-06 08:27:06.309  7667  7686 D BtGatt.GattService: onServerRegistered() - UUID=0034bf5b-bcb6-4177-96ad-844d2fdc0e00, serverIf=5
07-06 08:27:06.309  7743  7755 D BluetoothGattServer: onServerRegistered() - status=0 serverIf=5
07-06 08:27:06.309  7743  7743 D BluetoothGattServer: addService() - service: 0000180f-0000-1000-8000-00805f9b34fb
07-06 08:27:06.310  7667  7711 D BtGatt.GattService: beginServiceDeclaration() - uuid=0000180f-0000-1000-8000-00805f9b34fb
07-06 08:27:06.310  7667  7680 D BtGatt.GattService: addCharacteristic() - uuid=00002a19-0000-1000-8000-00805f9b34fb
07-06 08:27:06.311  7667  7678 D BtGatt.GattService: endServiceDeclaration()
07-06 08:27:06.311  7667  7678 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=0
07-06 08:27:06.312  7667  7678 D BtGatt.GattService: continueServiceDeclaration() - next entry type=1
07-06 08:27:06.312  7667  7678 D bt_btif_gatt: btif_gatts_add_service
07-06 08:27:06.312  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2004
07-06 08:27:06.312  7667  7696 E bt_btif : create service rcb_idx = 0
07-06 08:27:06.312  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 7
07-06 08:27:06.312  7667  7686 D BtGatt.GattService: onServiceAdded() UUID=0000180f-0000-1000-8000-00805f9b34fb, status=0, handle=40
07-06 08:27:06.312  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=40
07-06 08:27:06.312  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - next entry type=2
07-06 08:27:06.312  7667  7686 D bt_btif_gatt: btif_gatts_add_characteristic
07-06 08:27:06.312  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2006
07-06 08:27:06.312  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 9
07-06 08:27:06.312  7667  7686 D BtGatt.GattService: onCharacteristicAdded() UUID=00002a19-0000-1000-8000-00805f9b34fb, status=0, srvcHandle=40, charHandle=42
07-06 08:27:06.312  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - srvcHandle=40
07-06 08:27:06.313  7667  7686 D bt_btif_gatt: btif_gatts_start_service
07-06 08:27:06.313  7667  7686 D BtGatt.GattService: continueServiceDeclaration() - completed.
07-06 08:27:06.313  7667  7686 D bt_btif_gatt: btgatts_handle_event: Event 2008
07-06 08:27:06.313  7743  7756 D BluetoothGattServer: onServiceAdded() - service=0000180f-0000-1000-8000-00805f9b34fbstatus=0
07-06 08:27:06.313  7667  7686 D bt_btif_gatt: btapp_gatts_handle_cback: Event 12
07-06 08:27:06.313  7667  7686 D BtGatt.GattService: onServiceStarted() srvcHandle=40, status=0
07-06 08:27:06.318  7743  7743 D BluetoothAdapter: STATE_ON
07-06 08:27:06.322   843  1402 D BluetoothManagerService: checkIfCallerIsForegroundUser: valid=true callingUser=0 parentUser=-10000 foregroundUser=0
07-06 08:27:06.324   843  1963 D BluetoothManagerService: checkIfCallerIsForegroundUser: valid=true callingUser=0 parentUser=-10000 foregroundUser=0
07-06 08:27:06.327  7667  7680 D BtGatt.GattService: registerClient() - UUID=619801f8-1137-4155-b655-d34121d4f54c
07-06 08:27:06.327  7667  7680 D bt_btif_gattc: btif_gattc_register_app
07-06 08:27:06.327  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1000
07-06 08:27:06.327  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 0
07-06 08:27:06.328  7667  7686 D BtGatt.GattService: onClientRegistered() - UUID=619801f8-1137-4155-b655-d34121d4f54c, clientIf=6
07-06 08:27:06.328  7743  7757 D BluetoothLeAdvertiser: onClientRegistered() - status=0 clientIf=6
07-06 08:27:06.329  7667  7688 D BtGatt.AdvertiseManager: message : 0
07-06 08:27:06.331  7667  7688 D BtGatt.AdvertiseManager: starting multi advertising
07-06 08:27:06.332  7667  7688 D bt_btif_gattc: btif_gattc_multi_adv_enable
07-06 08:27:06.332  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1031
07-06 08:27:06.332  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 20
07-06 08:27:06.332  7667  7686 D BtGatt.GattService: onAdvertiseInstanceEnabled() - clientIf=6, status=1
07-06 08:27:06.333  7667  7679 D BtGatt.GattService: unregisterClient() - clientIf=6
07-06 08:27:06.333  7667  7679 D bt_btif_gattc: btif_gattc_unregister_app
07-06 08:27:06.333  7667  7686 D bt_btif_gattc: btgattc_handle_event: Event 1001
07-06 08:27:06.333  7667  7686 D bt_btif_gattc: btif_gattc_upstreams_evt: Event 1
07-06 08:27:06.342   843  1325 V WindowManager: Adding window Window{150c455 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripheral} at 4 of 10 (after Window{39584a4 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripherals})
07-06 08:27:06.365  7743  7743 E io.github.webbluetoothcg.bletestperipheral.Peripheral: Not broadcasting: 4
07-06 08:27:06.397   843   862 I WindowManager: Screen frozen for +269ms due to Window{150c455 u0 io.github.webbluetoothcg.bletestperipheral/io.github.webbluetoothcg.bletestperipheral.Peripheral}
07-06 08:27:06.832  7667  7688 E BtGatt.ContextMap: Context not found for ID 6
07-06 08:27:06.833  7667  7688 E BtGatt.GattService: Advertise app or callback is null

Stuck on Connecting to Gatt Server...

Hello,

I tried to read battery level from the battery samples, using the Peripheral Simulator, however after succesfuly pairing my phone, I simply get "Connecting to GATT Server..." without any readings. Thank you in advance! FYI I am using Chrome browser on Windows 10.

Problem with Random Device Address

Every time the Device Address(Random Device Address) is changing. But I need Static Address(Which can not be changed in particular time Intervals). How can I achieve this in the given project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.