Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: Declaring the ICS to test & certify a product using BlueZ From: Marcel Holtmann In-Reply-To: Date: Thu, 30 Jul 2015 13:49:30 +0200 Cc: linux-bluetooth@vger.kernel.org Message-Id: <7B46C76B-AC19-435A-9CDC-CD1BE063E382@holtmann.org> References: To: Romain Izard Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Romain, > To pass the Bluetooth certification, it is necessary to describe the > behaviour of the certified product in a set of documents called > Implementation Conformance Statements (ICS). These documents describe > a list of features existing in the Bluetooth specification, that can > be mandatory, optional or prohibited, as well as logic rules to > combine those features. > > I'm trying to certify a product based on a Texas Instruments WL1831 > chip, using the latest BlueZ userspace and the kernel module from the > TI backport environment for its R8.5 WiFi driver package (based on > Linux 3.12.10). The kernel itself is a based on a 2.6.32 vendor tree. > The userspace component is based on bluetoothd, and its DBus API. As > TI provides this chip with a pre-certified close-source bluetooth > stack when using Sitara chips (not my case), there is little > information regarding stack certification. > > The good point is that this setup works, and I'm able work in both > BR/EDR and LE modes. Unfortunately, as I am only integrating all those > pieces, I do not know very well how to fill the ICS documents. Many > questions are quite low level, and I do not know how BlueZ beheaves, > nor even how to look for this behaviour. > > I can try to rely on some already existing information. The "android" > directory has a set of "pics-*.txt" files, but those may not be valid > when using bluetoothd. The Bluetooth certified composant database > contains a list of BlueZ stacks certified in the past, and it is > possible to get their ICS. But the ICS format evolves with the current > certification, so it's difficult to reuse an old one. Moreover, I > believe that it is possible that the correct ICS information depends > from configuration options for the stack, either at compilation time > or at runtime. > > For those of you who have already passed a Bluetooth certification, > how did choose your ICS parameters ? What are the settings you know > that correspond to ICS parameters ? PICS are normally product specific. Use the Android ones as an initial set and go from there. They are a good default. We have not gotten around to provide the same level of PCIS, PIXIT and PTS documentation for the non-Android builds. If you are looking for a recent sample, I think the Google ChromeOS one might be pretty good one since it did qualify against Bluetooth 4.0 core spec. Also the Samsung Tizen one might be pretty complete. Feel free to provide patches that add PICS etc. to BlueZ source code like we did for BlueZ for Android. Maybe others will then comment and contribute as well. > The ICS parameters lead to a long list of tests to be run in the > Profile Tuning Suite. What needs to run on the tested device to pass > those tests ? Should bluetoothd be launched, and is it required to > configure it in a special way ? No special configuration should be required. Unless you enable some exotic PICS that require a bit of special handling. At least I do not remember any large issues from BlueZ for Android qualification runs and it shares all the core code. Regards Marcel