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

Several services/characteristics don't work #57

Closed
ashmanov opened this issue Jul 28, 2014 · 10 comments
Closed

Several services/characteristics don't work #57

ashmanov opened this issue Jul 28, 2014 · 10 comments

Comments

@ashmanov
Copy link

Hello!
In short, I have noble (thank you for your work, by the way) on linux with BlueZ 4.101.
My iPad app tries to find characteristics from linux peripheral. It works in case of only one service and one characteristic. When I add one more, it fails to find any services (though the app finds the peripheral).

I've also described my problem here (and pasted my code): http://stackoverflow.com/questions/24925795/bluetooth-le-on-ios-cannot-work-with-many-services-and-characteristics

I wish you can help me, because I have no idea what to do.

P.S. I've tested my .js code with LightBlue on my Mac - it works. And gatttool also finds all the needed characteristics. And nRF Master also. However, LightBlue on iPad finds nothing (the iPad has Bluetooth 4.0 support and runs the latest iOS 7 version).

@sandeepmistry
Copy link
Collaborator

@ashmanov I can't seem to find a link to your bleno code from the stackoverflow post (only iOS and dubs) ... I can try it it out on my Linux PC with an iOS, once you share it.

Have you tried toggling bluetooth off/on on you iPad, it caches services/characteristics, the cache is reset when bluetooth is reset.

@ashmanov
Copy link
Author

Oops, forgot to share bleno code.
https://yadi.sk/d/4mnzcovwY4QE8
You need to launch test in 'tests' folder.

@ashmanov
Copy link
Author

Yes, I've tried it, it didn't help.

@sandeepmistry
Copy link
Collaborator

Works for me on Linux PC + iPhone with LightBlue:

photo-4

@ashmanov
Copy link
Author

That's good. Can you please try it with the iOS app? When I launch it, it finds the service, but fails to find any characteristic.
https://yadi.sk/d/85t-KH3XYCrFh

@sandeepmistry
Copy link
Collaborator

Works for me ... had to remove the dependency for VK-ios-sdk though.

2014-07-29 20:37:34.862 lexy[4498:60b] characteristic <CBCharacteristic: 0x16588d10 UUID = 49C0F63B-38A4-4007-8D14-AA03AA87C104, Value = (null), Properties = 0x8, Notifying = NO, Broadcasting = NO>
2014-07-29 20:37:34.864 lexy[4498:60b] 49C0F63B-38A4-4007-8D14-AA03AA87C104
2014-07-29 20:37:34.865 lexy[4498:60b] characteristic <CBCharacteristic: 0x165a9b50 UUID = 55E5C83D-E6ED-48AE-B946-1AA593024CE4, Value = (null), Properties = 0x2, Notifying = NO, Broadcasting = NO>
2014-07-29 20:37:34.867 lexy[4498:60b] 55E5C83D-E6ED-48AE-B946-1AA593024CE4

My app delegate is:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    _client = [[WCNBluetoothClient alloc] init];

    [_client connect];
    return YES;
}

@ashmanov
Copy link
Author

Thank you! It is strange and awesome.
What linux version and what bluez, nodejs do you use? And iPhone&iOS?

@ashmanov
Copy link
Author

I've tried my code on Ubuntu 14.04 instead of OpenSuse 13.1, and it works!

@sandeepmistry
Copy link
Collaborator

Nice! Which version of BlueZ does OpenSuse 13.1 use? I was using Ubuntu 13.10 with BlueZ 4.10 ... can we close this issue?

@sandeepmistry
Copy link
Collaborator

Issue resolved, closing.

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