This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfUARTv2 does not work with ble_app_uart application

Hello,

I run the /examples/ble_peripheral/ble_app_uart application on a PCA10028 using the S110 soft device.

My phone is the motorola G, updated to the lollipop android version.

When i am trying to connect from my phone to the nordic DK, i got an error "Device doesn't support UART", Disconnecting.

I tried to change the android application and added the following code in the top of enableTXNotification():

	Log.w(TAG, "LISTING SERVICES..");
	List <BluetoothGattService> RxServices = mBluetoothGatt.getServices();
	 for(BluetoothGattService RxService: RxServices) {
		  Log.w(TAG, "SERVICE UUID:" + RxService.getUuid().toString());
     }

For some reason the uart service/characteristics are not shown properly, as i got only those:

09-01 13:48:05.996: W/UartService(23914): LISTING SERVICES..

09-01 13:48:05.996: W/UartService(23914): SERVICE UUID:00001800-0000-1000-8000-00805f9b34fb

09-01 13:48:05.996: W/UartService(23914): SERVICE UUID:00001801-0000-1000-8000-00805f9b34fb

09-01 13:48:05.996: W/UartService(23914): SERVICE UUID:0000180f-0000-1000-8000-00805f9b34fb

09-01 13:48:05.996: W/UartService(23914): SERVICE UUID:0000180a-0000-1000-8000-00805f9b34fb

09-01 13:48:05.996: E/UartService(23914): Rx service not found!

09-01 13:48:06.024: D/BluetoothGatt(23914): cancelOpen() - device: D8:5A:23:CE:AF:D0

Could you help regarding what the problem is and why the UART service/characteristics are not discovered properly? [mBluetoothGatt.getService(RX_SERVICE_UUID) and RxService.getCharacteristic(TX_CHAR_UUID) are null]

Parents Reply Children
No Data
Related