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

Cannot connect #8

Open
hamen opened this issue Feb 9, 2016 · 10 comments
Open

Cannot connect #8

hamen opened this issue Feb 9, 2016 · 10 comments

Comments

@hamen
Copy link

hamen commented Feb 9, 2016

Hi all
I'm trying out the example app, but I cannot get it to connect. The band is working fine with its official app, but, when I try this one, I get:

02-09 08:56:08.699 26181-26181/? I/BTConnectionManager: trying to connect
02-09 08:56:08.703 26181-26181/? I/BTConnectionManager: connecting...
02-09 08:56:08.706 26181-26181/? I/BTConnectionManager: not already paired
02-09 08:56:08.706 26181-26181/? D/BluetoothAdapter: stopLeScan()
02-09 08:56:08.706 26181-26181/? D/BluetoothAdapter: STATE_ON
02-09 08:56:08.707 26181-26181/? I/BTConnectionManager: Starting BTLE Discovery
02-09 08:56:08.709 26181-26181/? D/BluetoothAdapter: startLeScan(): null
02-09 08:56:08.710 26181-26181/? D/BluetoothAdapter: STATE_ON
02-09 08:56:08.712 26181-6142/? D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=6
02-09 08:56:08.717 26181-26181/? V/BTConnectionManager: starting scan
02-09 08:56:53.730 26181-26181/? I/BTConnectionManager: Stopping discovery
02-09 08:56:53.732 26181-26181/? E/miband-android: Fail: No bluetooth devices
02-09 08:56:53.732 26181-26181/? E/MainNormalActivity: Fail: No bluetooth devices
02-09 08:56:53.732 26181-26181/? D/MainNormalActivity: not found

I'm having the same issue with the Activity and the Service. I'm working with Android 6. Band firmware is 1.0.9.55. Any help, please?

@vladansw
Copy link

Hi,
I have the same problem not being able to connect on android 4.4.2
Maybe Xiaomi changed something in protocol?
You solved this issue?

Vlada

@RokHoang
Copy link

I have the same problem. Does anyone have a solution? I am using android 6.0.

@polaris0227
Copy link

Hi, all.
I've resolved this issue.
For hamen's issue, you have to check your miband version first.
If your miband is not MI, but MI1S or something, then you have to change some code.
And for other guys, please attach log you got.
Then I'll try to help you to resolve issues.
Regards.

@vladansw
Copy link

Hi Polaris,

how did you fix this connect issue?

Vlada

@polaris0227
Copy link

polaris0227 commented Aug 4, 2016

Hi, vladansw.
What is your band version?
MI or MI1S or MI1A? This is so important info.
If possible, please attach log when connecting to band.
Polaris.

On Sat, Jul 30, 2016 at 8:05 PM, vladansw notifications@github.com wrote:

Hi Polaris,

how did you fix this connect issue?

Vlada


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANbfpFmWewiWY0ADlmnyzrA2yJhKK93vks5qa4RLgaJpZM4HWMV6
.

@zachrattner
Copy link

@polaris0227 What is the process you followed if you have a MI1A band?

@borichellow
Copy link

@polaris0227, how to solve issue on MI1S ?

@borichellow
Copy link

borichellow commented Sep 10, 2016

Okay, i think i found the problem. In class BTConnectionManager when it checks all devices, searched device name suppose to be only "MI" and deviceAddress should startsWith "88:0F:10"
And for example my device has other name and other MacAddress. Thats why it "think" that there is no device :(
@polaris0227 what is your suggestion?

@dmotpan
Copy link

dmotpan commented Jan 13, 2017

@borichellow this is the same for me. i've just added the library in the project as a module and edit the deviceAddress

@ghost
Copy link

ghost commented Jul 10, 2017

Unable to connect with MI Band. showing "No bluetooth devices" message in ActionCallback

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

7 participants