andengineering / A-D-HDP-Android-Demo

Sample App for connect Android device to A&D Continua Device
www.andonline.com
28 stars 18 forks source link

Cant able to get data from UA-651BLE #13

Open manikavi opened 8 years ago

manikavi commented 8 years ago

Hi, I'm getting 22 as Status code after successful connection(**Error is highlighted here*),Please let me know how to proceed further?

09-14 13:33:58.600: D/SN(31796): Dashboard onCreate jp.co.aandd.bleSimpleApp.DashboardActivity@107fbc76 09-14 13:33:58.649: D/SN(31796): BleService - success 09-14 13:33:58.650: D/SN(31796): Dashboard onResume jp.co.aandd.bleSimpleApp.DashboardActivity@107fbc76 09-14 13:33:58.650: D/BluetoothAdapter(31796): startLeScan(): null 09-14 13:33:58.653: D/BluetoothLeScanner(31796): onClientRegistered() - status=0 clientIf=5 09-14 13:33:58.694: D/SN(31796): BleService - connected 09-14 13:33:58.695: D/BluetoothAdapter(31796): startLeScan(): null 09-14 13:33:58.695: E/BluetoothAdapter(31796): LE Scan has already started 09-14 13:33:58.716: D/SN(31796): DashBoard onLeScan 09-14 13:33:58.719: D/SN(31796): DashBoard UnBonded Device false false 09-14 13:34:07.483: D/SN(31796): Dashboard onPause jp.co.aandd.bleSimpleApp.DashboardActivity@107fbc76 09-14 13:34:07.483: D/BluetoothAdapter(31796): stopLeScan() 09-14 13:34:13.576: D/SN(31796): Dashboard onResume jp.co.aandd.bleSimpleApp.DashboardActivity@107fbc76 09-14 13:34:13.576: D/BluetoothAdapter(31796): startLeScan(): null 09-14 13:34:13.582: D/BluetoothLeScanner(31796): onClientRegistered() - status=0 clientIf=5 09-14 13:34:49.726: D/SN(31796): DashBoard onLeScan 09-14 13:34:49.732: D/BluetoothAdapter(31796): stopLeScan() 09-14 13:34:49.793: D/SN(31796): connectDevice device D0:5F:B8:03:79:70 09-14 13:34:49.793: D/BluetoothManager(31796): getConnectionState() 09-14 13:34:49.793: D/BluetoothManager(31796): getConnectedDevices 09-14 13:34:49.797: W/SN(31796): Attempt to connect in state: 0 09-14 13:34:49.799: D/BluetoothGatt(31796): connect() - device: D0:5F:B8:03:79:70, auto: false 09-14 13:34:49.799: D/BluetoothGatt(31796): registerApp() 09-14 13:34:49.799: D/BluetoothGatt(31796): registerApp() - UUID=db3b233c-c290-4301-86ef-5c71753f58ac 09-14 13:34:49.803: D/BluetoothGatt(31796): onClientRegistered() - status=0 clientIf=5 09-14 13:34:49.807: D/SN(31796): bluetoothGatt android.bluetooth.BluetoothGatt@37b64914 09-14 13:34:49.876: D/BluetoothGatt(31796): onClientConnectionState() - status=0 clientIf=5 device=D0:5F:B8:03:79:70 09-14 13:34:49.883: D/SN(31796): onConnectionStateChange()D0:5F:B8:03:79:70, A&D_UA-651BLE_037970, status=0 newState=2 09-14 13:34:49.883: D/SN(31796): Device Address : D0:5F:B8:03:79:70 09-14 13:34:49.886: D/SN(31796): Bone Status: 12 09-14 13:34:49.894: D/SN(31796): DashBoard onReceive TYPE_GATT_CONNECTED 09-14 13:34:49.894: D/BluetoothGatt(31796): discoverServices() - device: D0:5F:B8:03:79:70 09-14 13:34:49.899: D/SN(31796): Connect Device 09-14 13:34:52.665: D/BluetoothGatt(31796): onSearchComplete() = Device=D0:5F:B8:03:79:70 Status=0 09-14 13:34:52.667: D/SN(31796): onServicesDiscovered()D0:5F:B8:03:79:70, A&D_UA-651BLE_037970, status=0 09-14 13:34:52.669: D/SN(31796): DashBoard onReceive TYPE_GATT_SERVICES_DISCOVERED 09-14 13:34:52.751: D/SN(31796): TYPE_GATT_SERVICES_DISCOVERED gatt android.bluetooth.BluetoothGatt@37b64914 service jp.co.aandd.bleSimpleApp.gatt.BleReceivedService@1c5965bd 09-14 13:34:52.751: D/BluetoothGatt(31796): setCharacteristicNotification() - uuid: 00002a35-0000-1000-8000-00805f9b34fb enable: true 09-14 13:35:19.768: D/BluetoothGatt(31796): onClientConnectionState() - status=22 clientIf=5 device=D0:5F:B8:03:79:70 09-14 13:35:19.792: D/SN(31796): onConnectionStateChange()D0:5F:B8:03:79:70, A&D_UA-651BLE_037970, status=22 newState=0 09-14 13:35:19.797: D/SN(31796): DashBoard onReceive TYPE_GATT_ERROR 09-14 13:35:19.853: D/SN(31796): Disconnect Device 09-14 13:35:19.853: D/SN(31796): DashBoard onReceive TYPE_GATT_DISCONNECTED 09-14 13:35:19.853: D/BluetoothGatt(31796): close() 09-14 13:35:19.853: D/BluetoothGatt(31796): unregisterApp() - mClientIf=5 09-14 13:35:19.855: D/BluetoothGatt(31796): cancelOpen() - device: D0:5F:B8:03:79:70 09-14 13:35:19.936: D/BluetoothAdapter(31796): startLeScan(): null 09-14 13:35:19.940: D/BluetoothLeScanner(31796): onClientRegistered() - status=0 clientIf=5 09-14 13:35:19.969: D/SN(31796): DashBoard onLeScan 09-14 13:35:19.972: D/SN(31796): DashBoard UnBonded Device false false