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

Mi Band Demo NotFoundError #5

Open
lkalneus opened this issue May 31, 2016 · 11 comments
Open

Mi Band Demo NotFoundError #5

lkalneus opened this issue May 31, 2016 · 11 comments

Comments

@lkalneus
Copy link

Hi! I've tried mi band demo, but got an error "NotFoundError: Service not found in device."

Should I turn something on the device first before a try?

@beaufortfrancois
Copy link
Owner

@lkalneus
Copy link
Author

Android 5.1.1 (OxygenOS 2.1.4, the device is Oneplus one).
Also, I use Chromium 53.0.2754

@beaufortfrancois
Copy link
Owner

beaufortfrancois commented May 31, 2016

Let's figure out which one(s) is not found first ;)
Can you open the JS console (from about:inspect) and copy/paste these commands after trying to connect to it?

miband.server.getPrimaryService(0xFEE0).then(s => console.log('MIBAND_SERVICE'));
miband.server.getPrimaryService(0xFEE7).then(s => console.log('IOS_SERVICE'));

@lkalneus
Copy link
Author

Well, the second one is failed.

image

@beaufortfrancois
Copy link
Owner

Can you now install the nRF Master Control Panel Android app, scan for your MiBand device, connect to it and share found services?

@lkalneus
Copy link
Author

image

@beaufortfrancois
Copy link
Owner

Do you have more services?
If not, do you know which firmware version of the MiBand device you're running?
Does your device work with the official Mi Fit app?

@beaufortfrancois
Copy link
Owner

Oh! I wonder if it's because it is not the same model as well.
I've only tried this demo with my Mi Band device: http://www.amazon.com/gp/product/B00RMO0T5I

@lkalneus
Copy link
Author

No, that's all. Yes it works with Mi Fit app. The firmware version is 4.16.3.7. Heart rate firmware version is 1.3.76.18

@lkalneus
Copy link
Author

lkalneus commented Jun 2, 2016

So, looks like there is no way for me to make this demo?

@beaufortfrancois
Copy link
Owner

You may want to try to remove

server.getPrimaryService(IOS_SERVICE_UUID).then(service => {
return this._cacheCharacteristic(service, MAC_ADDRESS_UUID);
}),
but even so, I think you need at some point to "pair" the device and you'll need the MAC Address for this IIRC ;(

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