Skip to contentSkip to conversation

Fix SPP connection to wrong uuid

PATCH JAGANATH KANAKKASSERY 2 participants 2 messages Dec 2, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

SGkgTHVpeiwNCg0KPj4gVGhpcyBwYXRjaCBpdGVyYXRlcyB0aHJvdWdoIHRoZSByZWNvcmQgbGlz dCwgZmluZHMgdGhlIHJlY29yZCB3aXRoIHRoZSB1dWlkDQo+PiBhbmQgZ2V0IHRoZSBjaGFubmVs IGZyb20gdGhhdA0KPj4NCj5JIHN1c3BlY3QgdGhlcmUgaXMgc29tZXRoaW5nIGVsc2Ugd3Jvbmcg aGVyZSwgd2Ugc2hvdWxkIGJlIGxvb2tpbmcgZm9yDQo+dGhlIHNwZWNpZmljIFVVSUQgbm90IDB4 MTEwMSwgcGVyaGFwcyB0aGF0IGlzIGhhcHBlbmluZyBiZWNhdXNlIHlvdQ0KPmhhdmUgYSBzaW5n bGUgYWdlbnQgdGhhdCByZWdpc3RlciBmb3IgU1BQIGdlbmVyaWNhbGx5LCBhbmQgZG9uJ3Qgc2V0 DQo+YW55IFNlcnZpY2UgVVVJRCwgdGhlcmVmb3JlIGl0IHdpbGwgbG9vayBmb3IgYW55IFNQUCBy YXRoZXIgdGhhbiB0aGUNCj5zZXJ2aWNlIFVVSUQuDQoNCk9rLCBJIHdpbGwgY2hlY2sgd2h5IHNl YXJjaGluZyB1dWlkIGlzIDB4MTEwMSBhbmQgbm90IHRoZSBzcGVjaWZpYyB1dWlkLg0KQnV0IHdl IGhhdmUgcmVnaXN0ZXJlZCBkaWZmZXJlbnQgYWdlbnRzIGZvciBlYWNoIHV1aWQsIGJ1dCBoYXMg dG8gY2hlY2sNCndlIGFyZSBkb2luZyBzb21ldGhpbmcgd3Jvbmcgd2hpbGUgcmVnaXN0ZXJpbmcu DQoNClRoYW5rcywNCkphZ2FuYXRo

#1 lore raw

Hi Jaganath,

Quoted 11 lines · JAGANATH KANAKKASSERY

Hi Luiz,

Quoted 8 lines
Quoted 3 lines

This patch iterates through the record list, finds the record with the uuid and get the channel from that

I suspect there is something else wrong here, we should be looking for the specific UUID not 0x1101, perhaps that is happening because you have a single agent that register for SPP generically, and don't set any Service UUID, therefore it will look for any SPP rather than the service UUID.

Quoted 3 lines

Ok, I will check why searching uuid is 0x1101 and not the specific uuid. But we have registered different agents for each uuid, but has to check we are doing something wrong while registering.

You need to make sure you are setting the Service UUID properly:

string Service

The primary service class UUID
(if different from the actual
profile UUID)

Signature · 1 line
Luiz Augusto von Dentz