2012-01-08 17:51:55

by Ilia, Kolominsky

[permalink] [raw]
Subject: Connectable PANU state for PTS certifications?

Hi!

I am trying to pass PTS tests for PANU.
Number of them try to initialize connection to PANU ( IUT ) and
fail because of " bluetoothd[298]: Server unavailable: (0x1115)".
Spec. says that support for connectable mode in PANU is optional,
and the code ( server.c:: server_register() ) seems to register
only NAP server.

The question is - is it possible to enable the connectable PANU
mode ( maybe via configuration or light modifications to the code )?


Kind regards,
Ilia Kolominsky
[email protected]
Direct:? +972(9)7906231
Mobile: +972(54)909009






2012-01-09 10:26:57

by Marcel Holtmann

[permalink] [raw]
Subject: RE: Connectable PANU state for PTS certifications?

Hi Ilia,

> > > I am trying to pass PTS tests for PANU.
> > > Number of them try to initialize connection to PANU ( IUT ) and
> > > fail because of " bluetoothd[298]: Server unavailable: (0x1115)".
> > > Spec. says that support for connectable mode in PANU is optional,
> > > and the code ( server.c:: server_register() ) seems to register
> > > only NAP server.
> > >
> > > The question is - is it possible to enable the connectable PANU
> > > mode ( maybe via configuration or light modifications to the code )?
> >
> > look at doc/network-api.txt. So in theory you can do something like
> > NetworkServer.Register("panu", "br0").
> >
> > However I have the slight suspicion that only "nap" is really fully
> > implemented and tested.
>
> Seems so - register_server() explicitly checks that uuid to is "nap"
> and emits btd_error_failed in case it is not.

feel free to send patches for it.

Regards

Marcel



2012-01-09 09:20:44

by Ilia, Kolominsky

[permalink] [raw]
Subject: RE: Connectable PANU state for PTS certifications?

SGkgTWFyY2VsLA0KVGhhbmtzIGZvciByZXBseSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2Ut
LS0tLQ0KPiBGcm9tOiBNYXJjZWwgSG9sdG1hbm4gW21haWx0bzptYXJjZWxAaG9sdG1hbm4ub3Jn
XQ0KPiBTZW50OiBTdW5kYXksIEphbnVhcnkgMDgsIDIwMTIgMTA6MjQgUE0NCj4gVG86IElsaWEs
IEtvbG9taW5za3kNCj4gQ2M6IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlc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PiBpbXBsZW1lbnRlZCBhbmQgdGVzdGVkLg0KDQpTZWVt
cyBzbyAtIHJlZ2lzdGVyX3NlcnZlcigpIGV4cGxpY2l0bHkgY2hlY2tzIHRoYXQgdXVpZCB0byBp
cyAibmFwIg0KYW5kIGVtaXRzIGJ0ZF9lcnJvcl9mYWlsZWQgaW4gY2FzZSBpdCBpcyBub3QuDQo+
IA0KPiBSZWdhcmRzDQo+IA0KPiBNYXJjZWwNCj4gDQoNCkJlc3RzLCBJbGlhLg0K

2012-01-08 20:24:13

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Connectable PANU state for PTS certifications?

Hi Ilia,

> I am trying to pass PTS tests for PANU.
> Number of them try to initialize connection to PANU ( IUT ) and
> fail because of " bluetoothd[298]: Server unavailable: (0x1115)".
> Spec. says that support for connectable mode in PANU is optional,
> and the code ( server.c:: server_register() ) seems to register
> only NAP server.
>
> The question is - is it possible to enable the connectable PANU
> mode ( maybe via configuration or light modifications to the code )?

look at doc/network-api.txt. So in theory you can do something like
NetworkServer.Register("panu", "br0").

However I have the slight suspicion that only "nap" is really fully
implemented and tested.

Regards

Marcel