2008-03-26 16:08:34

by Frederic Danis

[permalink] [raw]
Subject: [Bluez-devel] HID certification using PTS

Hello,

I am testing HID (BlueZ utils 3.22) using latest PTS (2.3.1) and I got
some problems with it :

- currently, when performing a CreateDevice, input service connects then
disconnects from remote device. This makes some tests failed.
What do you think if this does not disconnect (and create classic device
connection) ?

- when kernel (2.6.22) receives a VIRTUAL_CABLE_UNPLUG from PTS (tests
TC_HOS_HCR_BV_02_I and TC_HOS_HCR_BV_04_I) it does not close the L2CAP
channels as PTS waits for.
I take a look in 2.6.22 sources, and it seems to me this disconnection
should happen, am I right ?
Is it fixed in later kernel ?

Regards

Fred

--
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic Access Company
Software engineer
Mail : mailto:[email protected]
-----------------------------------------------


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2008-03-27 15:09:12

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] HID certification using PTS

Hi Frederic,

>>> - currently, when performing a CreateDevice, input service connects
>>> then
>>> disconnects from remote device. This makes some tests failed.
>>> What do you think if this does not disconnect (and create classic
>>> device
>>> connection) ?
>>
>> does using CreateSecureDevice helps? Can you verify with bluez-
>> utils-3.29 and see if it is still a problem?
>
> I tried with CreateSecureDevice and latest 3.29 version but PTS
> tests failed.
> I think this is related to the disconnection in Create*Device process.
> What do you think if disconnection is removed from this process ? Or
> add a new API, something like CreateAndConnectSecureDevice ?

can you please check the service records of the PTS. Does it set the
reconnect value to TRUE. Please check hcidump and see if CreateDevice
actually connects the control and interrupt PSM.

Does it help if you call CreateDevice() and then Connect() to pass the
test.

>>> - when kernel (2.6.22) receives a VIRTUAL_CABLE_UNPLUG from PTS
>>> (tests
>>> TC_HOS_HCR_BV_02_I and TC_HOS_HCR_BV_04_I) it does not close the
>>> L2CAP
>>> channels as PTS waits for.
>>> I take a look in 2.6.22 sources, and it seems to me this
>>> disconnection
>>> should happen, am I right ?
>>> Is it fixed in later kernel ?
>>
>> I recall that there was a fix for this.
>
> Do you remember if this has been integrated in kernel ?
> I take a look to latest kernel (2.6.24) and do not see any change
> that seems to be related to this problem.

Please include the hcidump -X -V output for this case.

Regards

Marcel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-03-27 10:45:24

by Frederic Danis

[permalink] [raw]
Subject: Re: [Bluez-devel] HID certification using PTS

Hello Marcel,

>> - currently, when performing a CreateDevice, input service connects
>> then
>> disconnects from remote device. This makes some tests failed.
>> What do you think if this does not disconnect (and create classic
>> device
>> connection) ?
>
> does using CreateSecureDevice helps? Can you verify with bluez-
> utils-3.29 and see if it is still a problem?

I tried with CreateSecureDevice and latest 3.29 version but PTS tests failed.
I think this is related to the disconnection in Create*Device process.
What do you think if disconnection is removed from this process ? Or add a new API, something like CreateAndConnectSecureDevice ?

>> - when kernel (2.6.22) receives a VIRTUAL_CABLE_UNPLUG from PTS (tests
>> TC_HOS_HCR_BV_02_I and TC_HOS_HCR_BV_04_I) it does not close the L2CAP
>> channels as PTS waits for.
>> I take a look in 2.6.22 sources, and it seems to me this disconnection
>> should happen, am I right ?
>> Is it fixed in later kernel ?
>
> I recall that there was a fix for this.

Do you remember if this has been integrated in kernel ?
I take a look to latest kernel (2.6.24) and do not see any change that seems to be related to this problem.

Thanks

Fred

--
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic Access Company
Software engineer
Mail : mailto:[email protected]
-----------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-03-26 16:16:51

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] HID certification using PTS

Hi Frederic,

> I am testing HID (BlueZ utils 3.22) using latest PTS (2.3.1) and I got
> some problems with it :
>
> - currently, when performing a CreateDevice, input service connects
> then
> disconnects from remote device. This makes some tests failed.
> What do you think if this does not disconnect (and create classic
> device
> connection) ?

does using CreateSecureDevice helps? Can you verify with bluez-
utils-3.29 and see if it is still a problem?

> - when kernel (2.6.22) receives a VIRTUAL_CABLE_UNPLUG from PTS (tests
> TC_HOS_HCR_BV_02_I and TC_HOS_HCR_BV_04_I) it does not close the L2CAP
> channels as PTS waits for.
> I take a look in 2.6.22 sources, and it seems to me this disconnection
> should happen, am I right ?
> Is it fixed in later kernel ?

I recall that there was a fix for this.

Regards

Marcel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel