Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync fail: data null #7

Open
relan opened this issue Jan 10, 2016 · 2 comments
Open

Sync fail: data null #7

relan opened this issue Jan 10, 2016 · 2 comments

Comments

@relan
Copy link

relan commented Jan 10, 2016

I'm testing the example app on Nexus 4 with Android 5.1.1. It manages to connect to my Mi Band (original version with color LEDs), blink with LEDs, vibrate, but fails to sync data.

Logcat:

I/BTConnectionManager( 3020): trying to connect
I/BTConnectionManager( 3020): connecting...
D/BluetoothGatt( 3020): connect() - device: 88:0F:10:92:xx:xx, auto: false
D/BluetoothGatt( 3020): registerApp()
D/BluetoothGatt( 3020): registerApp() - UUID=ba833154-5870-4379-8396-e55b971348fa
D/BtGatt.GattService(31894): registerClient() - UUID=ba833154-5870-4379-8396-e55b971348fa
D/BtGatt.GattService(31894): onClientRegistered() - UUID=ba833154-5870-4379-8396-e55b971348fa, clientIf=6
D/BluetoothGatt( 3020): onClientRegistered() - status=0 clientIf=6
D/BtGatt.GattService(31894): clientConnect() - address=88:0F:10:92:xx:xx, isDirect=true
D/btif_config(31894): btif_get_address_type: Device [88:0f:10:92:xx:xx] address type 0
D/btif_config(31894): btif_get_device_type: Device [88:0f:10:92:xx:xx] type 2
D/ACDB-LOADER(  189): ACDB -> send_afe_cal
W/bt-btif (31894): info:x0
D/        (31894): remote version info [88:0f:10:92:xx:xx]: 0, 0, 0
D/BtGatt.GattService(31894): onConnected() - clientIf=6, connId=6, address=88:0F:10:92:xx:xx
D/btif_config(31894): btif_get_device_type: Device [88:0f:10:92:xx:xx] type 2
D/BluetoothGatt( 3020): onClientConnectionState() - status=0 clientIf=6 device=88:0F:10:92:xx:xx
D/BluetoothGatt( 3020): discoverServices() - device: 88:0F:10:92:xx:xx
D/BtGatt.GattService(31894): discoverServices() - address=88:0F:10:92:xx:xx, connId=6
D/BtGatt.GattService(31894): onSearchCompleted() - connId=6, status=0
D/BluetoothGatt( 3020): onSearchComplete() = Device=88:0F:10:92:xx:xx Status=0
I/BTConnectionManager( 3020): Stopping discovery
E/miband-android( 3020): Fail: No bluetooth devices
E/MainNormalActivity( 3020): Fail: No bluetooth devices
D/MainNormalActivity( 3020): not found
D/miband-android( 3020): Connection success, now pair: true
D/MainNormalActivity( 3020): Connected with Mi Band!
I/ActivityManager(  552): START u0 {cmp=com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity} from uid 10061 on display 0
V/WindowManager(  552): addAppToken: AppWindowToken{1fa1572f token=Token{51e310e ActivityRecord{2f86db09 u0 com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity t442}}} to stack=1 task=442 at 2
D/ACDB-LOADER(  189): ACDB -> send_afe_cal
I/AppCompatViewInflater( 3020): app:theme is now deprecated. Please move to using android:theme instead.
V/WindowManager(  552): Adding window Window{25391ec5 u0 com.betomaluje.android.miband.example/com.betomaluje.android.miband.example.activities.ActivitiesChartActivity} at 6 of 12 (after Window{32bd9837 u0 com.betomaluje.android.miband.example/com.betomaluje.android.miband.example.activities.MainNormalActivity})
I/ActivityManager(  552): Displayed com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity: +161ms
I/ActivityManager(  552): START u0 {cmp=com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity} from uid 10061 on display 0
V/WindowManager(  552): addAppToken: AppWindowToken{32fef9be token=Token{89f9879 ActivityRecord{11d6e140 u0 com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity t442}}} to stack=1 task=442 at 2
D/ACDB-LOADER(  189): ACDB -> send_afe_cal
I/AppCompatViewInflater( 3020): app:theme is now deprecated. Please move to using android:theme instead.
V/WindowManager(  552): Adding window Window{26e8d16c u0 com.betomaluje.android.miband.example/com.betomaluje.android.miband.example.activities.ActivitiesChartActivity} at 6 of 12 (after Window{32bd9837 u0 com.betomaluje.android.miband.example/com.betomaluje.android.miband.example.activities.MainNormalActivity})
I/ActivityManager(  552): Displayed com.betomaluje.android.miband.example/.activities.ActivitiesChartActivity: +133ms
D/BluetoothGatt( 3020): setCharacteristicNotification() - uuid: 0000ff03-0000-1000-8000-00805f9b34fb enable: true
D/BtGatt.GattService(31894): registerForNotification() - address=88:0F:10:92:xx:xx enable: true
D/BtGatt.GattService(31894): onRegisterForNotifications() - address=null, status=0, registered=1, charUuid=0000ff03-0000-1000-8000-00805f9b34fb
D/BluetoothGatt( 3020): setCharacteristicNotification() - uuid: 0000ff06-0000-1000-8000-00805f9b34fb enable: true
D/BtGatt.GattService(31894): registerForNotification() - address=88:0F:10:92:xx:xx enable: true
D/BtGatt.GattService(31894): onRegisterForNotifications() - address=null, status=0, registered=1, charUuid=0000ff06-0000-1000-8000-00805f9b34fb
D/BluetoothGatt( 3020): setCharacteristicNotification() - uuid: 0000ff07-0000-1000-8000-00805f9b34fb enable: true
D/BtGatt.GattService(31894): registerForNotification() - address=88:0F:10:92:xx:xx enable: true
D/BtGatt.GattService(31894): onRegisterForNotifications() - address=null, status=0, registered=1, charUuid=0000ff07-0000-1000-8000-00805f9b34fb
D/BluetoothGatt( 3020): setCharacteristicNotification() - uuid: 0000ff0c-0000-1000-8000-00805f9b34fb enable: true
D/BtGatt.GattService(31894): registerForNotification() - address=88:0F:10:92:xx:xx enable: true
D/BtGatt.GattService(31894): onRegisterForNotifications() - address=null, status=0, registered=1, charUuid=0000ff0c-0000-1000-8000-00805f9b34fb
D/BluetoothGatt( 3020): setCharacteristicNotification() - uuid: 0000ff0e-0000-1000-8000-00805f9b34fb enable: true
D/BtGatt.GattService(31894): registerForNotification() - address=88:0F:10:92:xx:xx enable: true
D/BtGatt.GattService(31894): onRegisterForNotifications() - address=null, status=0, registered=1, charUuid=0000ff0e-0000-1000-8000-00805f9b34fb
E/MainNormalActivity( 3020): Sync fail: data null
I/BTCommandManager( 3020): handleControlPoint GOT DATA:0x       6
@polaris0227
Copy link

Hi, @relan .
I've also got same issue.
Did you resolve this problem.
If so, then please provide solution for me.
Best regards.
Polaris.

@relan
Copy link
Author

relan commented Jul 15, 2016

@polaris0227, no, I didn't solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants