BlueZ Qualification
There was some discussion about Bluetooth qualification almost a year ago. Has there been any news since that discussion?
Are there any products using the BlueZ stack that have been tested and approved by the BQB (Bluetooth Qualification Body)?
To aid in certification are there ICS (implementation conformance specifications/statements) for individual profiles supported by BlueZ?
Thanks,
-Daryl.
Quoted 1 line · Daryl Van Vorst
There was some discussion about Bluetooth qualification almost a year ago. Has there been any news since that discussion?
Several people (from different companies) seem to be working on writing test scripts. But there is no centralized effort.
Quoted 1 line
Are there any products using the BlueZ stack that have been tested and approved by the BQB (Bluetooth Qualification Body) ?
Not that I know of.
Quoted 2 lines
To aid in certification are there ICS (implementation conformance specifications/statements) for individual profiles supported by BlueZ ?
Not yet. A lot of people are interested but no one has made any moves so far.
It's good that you brought this issue up again. Because "7 layers UK" (a BQB company) expressed some interest in carrying out qualification work on BlueZ without charging any fees as part of their marketing.
So it's a good time to unite the efforts. We should probably start some project where people could contribute test scripts and stuff.
I'm pretty sure that Sony and Inventel have done some work on it. Any comments/suggestions/ideas from you guys ?
Thanks
Max
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Max, can you "coordinate the efforts" for qualification ? Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ? Who is your contact at 7layers ?
Le Jeudi 27 F=E9vrier 2003 22:09, Max Krasnyansky a =E9crit :
Quoted 2 lines
Quoted 1 line · Daryl Van Vorst
There was some discussion about Bluetooth qualification almost a year ag=
o.
Quoted 10 lines
Quoted 1 line
Has there been any news since that discussion?
Several people (from different companies) seem to be working on writing test scripts. But there is no centralized effort.
Quoted 2 lines
Are there any products using the BlueZ stack that have been tested and approved by the BQB (Bluetooth Qualification Body) ?
Not that I know of.
Quoted 8 lines
Quoted 2 lines
To aid in certification are there ICS (implementation conformance specifications/statements) for individual profiles supported by BlueZ ?
Not yet. A lot of people are interested but no one has made any moves so far.
It's good that you brought this issue up again. Because "7 layers UK" (a BQB company) expressed some interest in carrying out qualification work o=
n
Quoted 15 lines
BlueZ without charging any fees as part of their marketing. So it's a good time to unite the efforts. We should probably start some project where people could contribute test scripts and stuff.
I'm pretty sure that Sony and Inventel have done some work on it. Any comments/suggestions/ideas from you guys ?
Thanks
Max
Quoted 8 lines
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
Quoted 4 lines
Max, can you "coordinate the efforts" for qualification ? Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ? Who is your contact at 7layers ?
I have had a nice talk about this topic with Prof. Dr.-Ing. J=F6rg Wollert from the FH Bochum at the Bluetooth Kongress in Germany. They have done some work with 7 Layers Germany and if you like I can try to coordinate the efforts to get a Bluetooth qualification for BlueZ.
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
BlueZ Qualification and 7 Layers UK
Hello.
I run the Bluetooth lab at 7 Layers UK and contacted Max offering to do qualification work for BlueZ in some not-obviously-commercial way. A quick summery of who we are may help you understand where we are coming from.
7 Layers run numerous Bluetooth and GSM labs around the world, boast 4 BQB's and also supply and support Bluetooth test labs for other organisations.
7 Layers UK are eagerly awaiting completion of our BQTF status (the audit was the hardest 2 days work I can remember...), our BQB is nearly 1 year old :o) We have a qualified RF and protocol test rig though some tests we have done by 7 Layers in Germany.
I want to get involved in BlueZ and am willing to devote some time and perhaps even money to it. My Linux experience is limited and personally I know the bottom end of the Bluetooth stack much better than the top.
It seems I am in a good position to assist or coordinate the qualification of BlueZ. Now I don't relay know who you are and what your involvement with BlueZ is, please could you drop me a few lines of introduction. Also I'd like to know how having a qualified BlueZ would help you so I can focus on the value.
Best Wishes
Halam
--------------------------------------------
Halam Rose
Bluetooth Specialist
7 layers UK Ltd
Don't miss the 7 layers
Update-seminar on testing & qualification
9 April 2003
London Heathrow
more details: www.7layers.com/news-room/news-room-events-2003.html
Tel: +44 (0)1763 262524
Fax: +44 (0)1763 261177
Mob: +44 (0)7876 560922
[email protected]
www.7layers-UK.com
Melbourn Science Park
Cambridge Road
Melbourn
Hertfordshire SG8 6HB
--------------------------------------------
The information contained in this message
is confidential and should not be disclosed
to any third party whether or not you are the
intended addressee indicated in the message.
Addressees of this email may exercise their
rights under the 1988 Data Protection Act.
--------------------------------------------
-----Original Message-----
From: Marcel Holtmann [mailto:[email protected]]
Sent: 28 February 2003 09:39
To: [email protected]
Cc: Max Krasnyansky; Daryl Van Vorst; BlueZ Mailing List; [email protected]; BlueZ Mailing List
Subject: Re: [Bluez-devel] BlueZ Qualification
Hi,
Quoted 4 lines
Max, can you "coordinate the efforts" for qualification ? Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ? Who is your contact at 7layers ?
I have had a nice talk about this topic with Prof. Dr.-Ing. Jörg Wollert from the FH Bochum at the Bluetooth Kongress in Germany. They have done some work with 7 Layers Germany and if you like I can try to coordinate the efforts to get a Bluetooth qualification for BlueZ.
Regards
Marcel
Re: [Bluez-devel] BlueZ Qualification and 7 Layers UK
Le Vendredi 28 F=E9vrier 2003 11:49, Halam Rose a =E9crit :
Quoted 4 lines
Hello.
I run the Bluetooth lab at 7 Layers UK and contacted Max offering to do qualification work for BlueZ in some not-obviously-commercial way. A qui=
ck
Quoted 9 lines
summery of who we are may help you understand where we are coming from.
7 Layers run numerous Bluetooth and GSM labs around the world, boast 4 BQB's and also supply and support Bluetooth test labs for other organisations.
7 Layers UK are eagerly awaiting completion of our BQTF status (the audit was the hardest 2 days work I can remember...), our BQB is nearly 1 year old :o) We have a qualified RF and protocol test rig though some tests w=
e
Quoted 4 lines
have done by 7 Layers in Germany.
I want to get involved in BlueZ and am willing to devote some time and perhaps even money to it. My Linux experience is limited and personally =
I
Quoted 3 lines
know the bottom end of the Bluetooth stack much better than the top.
It seems I am in a good position to assist or coordinate the qualificatio=
n
Quoted 2 lines
of BlueZ. Now I don't relay know who you are and what your involvement with BlueZ is, please could you drop me a few lines of introduction. Als=
o
Quoted 1 line
I'd like to know how having a qualified BlueZ would help you so I can foc=
us
Quoted 1 line
on the value.
I work for Inventel (go to www.inventel.com for more information). Basicall= y=20
we design and manufacture wireless access points. We already have one produ= ct=20
qualified (BlueDSL) althouth it doesn't use Bluez.
Our next generation product uses Bluez, and we have already started=20 qualification tests/reports regarding the bluetooth stack. The profiles we=20 need to qualify are=20
LAN Access Profile
PAN
It would be an interest for us to have Bluez officially qualified, as we=20 wouldn't have to redo this part of the Bluetooth qualification for everyone= =20
of our products...=20
Do you plan to have Bluez listed as a qualified stack ? What "tester side" are you using to do the qualification ?
We can help by providing you with a Bluetooth access point with everything=20 you need to run the scripts, modify the stack etc...
Although we only need to qualify the access point side of the profiles, you= =20
can use this platform to do anything with bluez including other profiles=20 qualification etc...
Regards,
David.
Quoted 48 lines
Best Wishes
Halam
--------------------------------------------
Halam Rose
Bluetooth Specialist
7 layers UK LtdDon't miss the 7 layers
Update-seminar on testing & qualification
9 April 2003
London Heathrow
more details: www.7layers.com/news-room/news-room-events-2003.htmlTel: +44 (0)1763 262524
Fax: +44 (0)1763 261177
Mob: +44 (0)7876 560922
[email protected]
www.7layers-UK.comMelbourn Science Park
Cambridge Road
Melbourn
Hertfordshire SG8 6HB--------------------------------------------
The information contained in this message
is confidential and should not be disclosed
to any third party whether or not you are the
intended addressee indicated in the message.
Addressees of this email may exercise their
rights under the 1988 Data Protection Act.
-------------------------------------------------Original Message-----
From: Marcel Holtmann [mailto:[email protected]]
Sent: 28 February 2003 09:39
To: [email protected]
Cc: Max Krasnyansky; Daryl Van Vorst; BlueZ Mailing List; [email protected]; BlueZ Mailing List
Subject: Re: [Bluez-devel] BlueZ Qualification
Quoted 8 lines
Hi,
Quoted 4 lines
Max, can you "coordinate the efforts" for qualification ? Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ? Who is your contact at 7layers ?I have had a nice talk about this topic with Prof. Dr.-Ing. J=F6rg Woller=
t
Quoted 12 lines
from the FH Bochum at the Bluetooth Kongress in Germany. They have done some work with 7 Layers Germany and if you like I can try to coordinate the efforts to get a Bluetooth qualification for BlueZ.
Regards
Marcel
Quoted 8 lines
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Re: [Bluez-devel] BlueZ Qualification and 7 Layers UK
In reply to Halam RoseQuoted 6 lines · Halam Rose
I want to get involved in BlueZ and am willing to devote some time and perhaps even money to it. My Linux experience is limited and personally I know the bottom end of the Bluetooth stack much better than the top.
It seems I am in a good position to assist or coordinate the qualification of BlueZ.
Ok. Looks like we have a volunteer :). That would be perfectly ok with me.
Quoted 4 lines
Now I don't relay know who you are and what your involvement with BlueZ is, please could you drop me a few lines of introduction. Also I'd like to know how having a qualified BlueZ would help you so I can focus on the value.
I guess I don't have to introduce myself ;-).
http://bluez.sourceforge.net/CREDITS will pretty much tell you who is who.
btw Folks, we're probably missing quite a few people there. If you find that your name is missing please drop me a note.
Thanks
Max
Re: [Bluez-devel] BlueZ Qualification and 7 Layers UK
Hi,
Quoted 5 lines
Quoted 4 lines
Now I don't relay know who you are and what your involvement with BlueZ is, please could you drop me a few lines of introduction. Also I'd like to know how having a qualified BlueZ would help you so I can focus on the value.
I guess I don't have to introduce myself ;-).
I think the same apply to me ;)
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 11 lines · Marcel Holtmann
Hi,
Quoted 4 lines
Max, can you "coordinate the efforts" for qualification ? Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ? Who is your contact at 7layers ?I have had a nice talk about this topic with Prof. Dr.-Ing. J=F6rg Wollert from the FH Bochum at the Bluetooth Kongress in Germany. They have done some work with 7 Layers Germany and if you like I can try to coordinate the efforts to get a Bluetooth qualification for BlueZ.
It's certainly up to you Marcel (i.e. I don't mind). But you and I are the=20 primary developers. So ...
Max
Folks,
Let's move this discussion to the bluez-devel list. Please remove bluez-users from your CC list when you reply. (this one will be last CC).
Thanks
Max
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 1 line · David LIBAULT
Max, can you "coordinate the efforts" for qualification ?
I probably could. But I don't want to because I won't be very effective at it. Mostly because of lack of time. When I do get free time I'd rather fix bugs and implement missing features.
So I'd prefer if somebody else will lead and coordinate the efforts.
Quoted 2 lines
Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ?
I don't know. That's what we need to discuss.
There are many questions (at least in my mind) like
- Does it make sense to have qualified stack in the official kernel ? Like I mentioned before I don't want to add things that simply don't make sense for general stack operation only because we want to pass qualification (I'm talking mostly about kernel stuff here).
In which case a separate qualified kernel package with the same API as mainstream kernel make sense.
- What happens when we make changes to the stack ? Have to qualify again ?
etc
Max
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
Quoted 11 lines
Quoted 2 lines
Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ?I don't know. That's what we need to discuss.
There are many questions (at least in my mind) like
- Does it make sense to have qualified stack in the official kernel ? Like I mentioned before I don't want to add things that simply don't make sense for general stack operation only because we want to pass qualification (I'm talking mostly about kernel stuff here).
In which case a separate qualified kernel package with the same API as mainstream kernel make sense.
Quoted 1 line
- What happens when we make changes to the stack ? Have to qualify again ?
the first thing here is that we must differ between the kernel modules and the userspace utitlities. Question is what make really sense to qualify and what kind of userspace programs need to be qualified? I think for the beginning we should concentrate only on HCI and L2CAP and we should go along with stable releases of the 2.4 kernel. And the best Kernel to start with is for me the not yet released 2.4.21. Sticking to an external Kernel package is very ugly because it needs to be maintained and this is a job that can not be done by any of us at the moment and in general it does not make sense to double the work.
Getting a qualification for all new 2.4 kernel should be easy, because we mostly don't change things in the core layers and bugfixes didn't need to be qualified again if I am right. If we do a big change or add new features we have to qualify again, so we should automate as most things as we can to make this easy and fast. I think that the time between the 2.4 kernel releases is a good gap and it will grow bigger after the 2.6 comes out and we should completly forget about to qualify a 2.6 in the first six month. The userspace component looks mostly the same. Most big changes are done for SDP and PAN in the last months.
The BlueZ kernel modules are working perfect in conjunction with other devices and other stacks, but we have already seen that we need to add some quirks for passing the qualification and I agree completly with Max that is a bad idea to have things that don't makes sense, but are needed for a qualification. We should start colleting these quirks and see how we handle them. At the moment I see two ways out of this problem:
1. Include them into the kernel code and make them a compile option
2. Have own patches against the stable kernel for qualification
The same rules apply to the userspace utils and also to the userspace protocol implementations like SDP and OBEX.
In general I think a qualified version of the BlueZ stack is a good idea, but this is also hard work and at this points comes the money problem in. The end user don't get any advantages of a qualified Linux Bluetooth (it only sounds great), but companies who plan to use BlueZ in their Bluetooth products will save a lot of time, money and knowledge if they don't have to qualify the complete stack again. If we really got BlueZ qualified and companies can take advantage of it I think that they should payback something to the OpenSource community. And at this point the idea of a non-profit organization which takes care of a qualified version of the BlueZ stack and represent the Linux fraction in the Bluetooth SIG comes to my mind.
People that already have some experiences in qualification (and especially BlueZ) should start now sharing their results with us, so we can start planing the next step.
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
Quoted 3 lines
People that already have some experiences in qualification (and especially BlueZ) should start now sharing their results with us, so we can start planing the next step.
I checked a little ten months ago, but unfortunately I didn't need to get qualification for now. However I can help and comment by experiences personally.
Finally it seems that it's duty to sell products in order to get interoperability and good quality. At least, any companies must do testing for application profile using final products and get quarification itself.
I don't know it's really useful, because codes will continue to change and linux has various platforms, kernel version, CPU, even derivations with some extensions. Can one quarification cover all of them? I feel it's good to just confirm core functionarities (l2cap, sdp and gap for me).
Regards,
Takashi
Quoted 1 line · Takashi Sasai
I feel it's good to just confirm core functionarities (l2cap, sdp and gap for me).
That's one of the benefits of qualification effort that for example I as a developer will get. And if helps companies that make devices based on Linux it's even better.
Max
Quoted 5 lines · Marcel Holtmann
The BlueZ kernel modules are working perfect in conjunction with other devices and other stacks, but we have already seen that we need to add some quirks for passing the qualification and I agree completly with Max that is a bad idea to have things that don't makes sense, but are needed for a qualification.
That the biggest thing that concerns me about qualification. And that's where separate package helps.
Quoted 4 lines
We should start colleting these quirks and see how we handle them. At the moment I see two ways out of this problem:
1. Include them into the kernel code and make them a compile option
That can be pretty ugly.
Quoted 1 line
2. Have own patches against the stable kernel for qualification
I guess by "separate package" I didn't necessarily mean tar.gz with make install or whatever. It could be a patch.
Quoted 2 lines
The same rules apply to the userspace utils and also to the userspace protocol implementations like SDP and OBEX.
For some reason I'm less concerned about ugliness in the user-space code ;-) (must be because I'm a kernel guy). I'm just kidding of course.
Quoted 4 lines
In general I think a qualified version of the BlueZ stack is a good idea, but this is also hard work and at this points comes the money problem in. The end user don't get any advantages of a qualified Linux Bluetooth (it only sounds great),
True. %99.9 percent of the Linux users couldn't care less whether Bluetooth stack is qualified or not as long as it works correctly.
Quoted 4 lines
but companies who plan to use BlueZ in their Bluetooth products will save a lot of time, money and knowledge if they don't have to qualify the complete stack again. If we really got BlueZ qualified and companies can take advantage of it I think that they should payback something to the OpenSource community.
Yeah, like buy a new Volvo SUV for me for example ;-)
Quoted 3 lines
And at this point the idea of a non-profit organization which takes care of a qualified version of the BlueZ stack and represent the Linux fraction in the Bluetooth SIG comes to my mind.
I'm not sure about that. Might be a good idea.
Max
Quoted 44 lines · Marcel Holtmann
Hi,
Quoted 12 lines
Quoted 2 lines
Who is going to write the test report ?
Is Bluez going to be listed as official Bluetooth qualified stack ?I don't know. That's what we need to discuss.
There are many questions (at least in my mind) like
- Does it make sense to have qualified stack in the official kernel ? Like I mentioned before I don't want to add things that simply don't make sense for general stack operation only because we want to pass qualification (I'm talking mostly about kernel stuff here). In which case a separate qualified kernel package with the same API as mainstream kernel make sense.Quoted 2 lines
- What happens when we make changes to the stack ? Have to qualify again ?
the first thing here is that we must differ between the kernel modules and the userspace utitlities. Question is what make really sense to qualify and what kind of userspace programs need to be qualified? I think for the beginning we should concentrate only on HCI and L2CAP and we should go along with stable releases of the 2.4 kernel. And the best Kernel to start with is for me the not yet released 2.4.21. Sticking to an external Kernel package is very ugly because it needs to be maintained and this is a job that can not be done by any of us at the moment and in general it does not make sense to double the work.
Getting a qualification for all new 2.4 kernel should be easy, because we mostly don't change things in the core layers and bugfixes didn't need to be qualified again if I am right. If we do a big change or add new features we have to qualify again, so we should automate as most things as we can to make this easy and fast. I think that the time between the 2.4 kernel releases is a good gap and it will grow bigger after the 2.6 comes out and we should completly forget about to qualify a 2.6 in the first six month. The userspace component looks mostly the same. Most big changes are done for SDP and PAN in the last months.
The BlueZ kernel modules are working perfect in conjunction with other devices and other stacks, but we have already seen that we need to add some quirks for passing the qualification and I agree completly with Max that is a bad idea to have things that don't makes sense, but are needed for a qualification. We should start colleting these quirks and see how we handle them. At the moment I see two ways out of this problem:
Quoted 3 lines
1. Include them into the kernel code and make them a compile option
2. Have own patches against the stable kernel for qualification
IMHO, it is possible to have L2CAP qualified without messing up that much the code, and without changing the behavior/performance when "the other side" is working properly. It anyway does not make sense to have one stack for qualification and one stack for "real usage", as, in theory, only qualified bluetooth products should be runing... Bluez is one of the cleanest Bluetooth implementations, and is becoming (or is already) a reference implementation. Lets qualify it !
Quoted 4 lines
The same rules apply to the userspace utils and also to the userspace protocol implementations like SDP and OBEX.
Quoted 11 lines
In general I think a qualified version of the BlueZ stack is a good idea, but this is also hard work and at this points comes the money problem in. The end user don't get any advantages of a qualified Linux Bluetooth (it only sounds great), but companies who plan to use BlueZ in their Bluetooth products will save a lot of time, money and knowledge if they don't have to qualify the complete stack again. If we really got BlueZ qualified and companies can take advantage of it I think that they should payback something to the OpenSource community. And at this point the idea of a non-profit organization which takes care of a qualified version of the BlueZ stack and represent the Linux fraction in the Bluetooth SIG comes to my mind.
My interest as a company is to help having Bluez qualified. If once I have suffered, for the qualification I have to pay someone again later there is absolutely no interest in having Bluez qualified ! I just use Bluez as it is and qualify it myself !
I also think that having Bluez qualified is very small effort compared to the one of developing a complete/robust/functional/performant stack. The biggest effort has already been done by Maxim and other people, and it is open source. Companies take more advantage from Bluez itself than from a "qualified" Bluez. Qualification should be as the stack itself : open source.
Quoted 4 lines
People that already have some experiences in qualification (and especially BlueZ) should start now sharing their results with us, so we can start planing the next step.
Next step : L2CAP qualification.
The main issue is to have the tester side...
1) write a small user-mode program that can open and close an ACL channel,
and send any kind of packet over this link
2) write a script for each test case
Quoted 16 lines
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 5 lines · David LIBAULT
Quoted 1 line
2. Have own patches against the stable kernel for qualification
IMHO, it is possible to have L2CAP qualified without messing up that much the code, and without changing the behavior/performance when "the other side" is working properly.
May be. But we don't seem to know that for sure. What about that L2CAP MTU negotiation thing for example ?
Quoted 3 lines
It anyway does not make sense to have one stack for qualification and one stack for "real usage", as, in theory, only qualified bluetooth products should be runing...
Linux servers, workstations, laptops, etc are not "bluetooth products". Also we're not saying two stacks right. We're saying a separate package (or patch or whatever). And the only reason to have that package is if qualification support becomes ugly.
Quoted 2 lines
Bluez is one of the cleanest Bluetooth implementations, and is becoming (or is already) a reference implementation. Lets qualify it !
Sure. I'm with you.
Quoted 15 lines
Quoted 14 lines
The same rules apply to the userspace utils and also to the userspace protocol implementations like SDP and OBEX.
In general I think a qualified version of the BlueZ stack is a good idea, but this is also hard work and at this points comes the money problem in. The end user don't get any advantages of a qualified Linux Bluetooth (it only sounds great), but companies who plan to use BlueZ in their Bluetooth products will save a lot of time, money and knowledge if they don't have to qualify the complete stack again. If we really got BlueZ qualified and companies can take advantage of it I think that they should payback something to the OpenSource community. And at this point the idea of a non-profit organization which takes care of a qualified version of the BlueZ stack and represent the Linux fraction in the Bluetooth SIG comes to my mind.
Quoted 4 lines
My interest as a company is to help having Bluez qualified. If once I have suffered, for the qualification I have to pay someone again later there is absolutely no interest in having Bluez qualified ! I just use Bluez as it is and qualify it myself !
Darn, no Volvo for me :(
Quoted 5 lines
I also think that having Bluez qualified is very small effort compared to the one of developing a complete/robust/functional/performant stack. The biggest effort has already been done by Maxim and other people, and it is open source. Companies take more advantage from Bluez itself than from a "qualified" Bluez. Qualification should be as the stack itself : open source.
I see another benefit of qualification. In order to get qualified we need a tool set that implements test cases and stuff. This toolset is pretty much a regression test suite which is always good to have.
Quoted 10 lines
Quoted 3 lines
People that already have some experiences in qualification (and especially BlueZ) should start now sharing their results with us, so we can start planing the next step.
Next step : L2CAP qualification.
The main issue is to have the tester side...
1) write a small user-mode program that can open and close an ACL channel,
and send any kind of packet over this link
Don't you guys have that already ? If not I'll write this one. Do you have any specific features in mind ?
Quoted 1 line
2) write a script for each test case
Anybody willing to contribute that ?
It sounds like we need to create a module in CVS and start putting things that we need together. Any suggestion for a name ? "qube" ?
Max
Quoted 9 lines · Max Krasnyansky
Quoted 5 lines · David LIBAULT
Quoted 1 line
2. Have own patches against the stable kernel for qualification
IMHO, it is possible to have L2CAP qualified without messing up that much the code, and without changing the behavior/performance when "the other side" is working properly.
May be. But we don't seem to know that for sure. What about that L2CAP MTU negotiation thing for example ?
I propose that we take this issue as the first step to qualification.
Quoted 54 lines
Quoted 4 lines
It anyway does not make sense to have one stack for qualification and one stack for "real usage", as, in theory, only qualified bluetooth products should be runing...
Linux servers, workstations, laptops, etc are not "bluetooth products". Also we're not saying two stacks right. We're saying a separate package (or patch or whatever). And the only reason to have that package is if qualification support becomes ugly.
Quoted 2 lines
Bluez is one of the cleanest Bluetooth implementations, and is becoming (or is already) a reference implementation. Lets qualify it !
Sure. I'm with you.
Quoted 15 lines
Quoted 14 lines
The same rules apply to the userspace utils and also to the userspace protocol implementations like SDP and OBEX.
In general I think a qualified version of the BlueZ stack is a good idea, but this is also hard work and at this points comes the money problem in. The end user don't get any advantages of a qualified Linux Bluetooth (it only sounds great), but companies who plan to use BlueZ in their Bluetooth products will save a lot of time, money and knowledge if they don't have to qualify the complete stack again. If we really got BlueZ qualified and companies can take advantage of it I think that they should payback something to the OpenSource community. And at this point the idea of a non-profit organization which takes care of a qualified version of the BlueZ stack and represent the Linux fraction in the Bluetooth SIG comes to my mind.
Quoted 4 lines
My interest as a company is to help having Bluez qualified. If once I have suffered, for the qualification I have to pay someone again later there is absolutely no interest in having Bluez qualified ! I just use Bluez as it is and qualify it myself !
Darn, no Volvo for me :(
Quoted 6 lines
I also think that having Bluez qualified is very small effort compared to the one of developing a complete/robust/functional/performant stack. The biggest effort has already been done by Maxim and other people, and it is open source. Companies take more advantage from Bluez itself than from a "qualified" Bluez. Qualification should be as the stack itself : open source.
I see another benefit of qualification. In order to get qualified we need a tool set that implements test cases and stuff. This toolset is pretty much a regression test suite which is always good to have.
Quoted 6 lines
Quoted 3 lines
People that already have some experiences in qualification (and especially BlueZ) should start now sharing their results with us, so we can start planing the next step.
Next step : L2CAP qualification.
Quoted 7 lines
Quoted 4 lines
The main issue is to have the tester side...
1) write a small user-mode program that can open and close an ACL
channel, and send any kind of packet over this linkDon't you guys have that already ? If not I'll write this one. Do you have any specific features in mind ?
I have sent to you a very small program (l2capsession.c). You can make it GPL. To make sure you have it, I have attached it to this message. This program uses as an input a very simple script file that tells what to send, to what address etc...
BUT
This is usable only for "over L2CAP" protocols like SDP, BNEP, RFCOMM etc... To do L2CAP tests, we need the same type of application but that sends data directly over an ACL link. Is it a special type of socket that needs to be opened to do so ?
This ACLsession program will help us do the L2CAP MTU negotiation test and we'll all see if fixing it in the main stream code is that much of a big deal, and what the 7layers BQB can reasonably accept.
Quoted 5 lines
Quoted 2 lines
2) write a script for each test case
Anybody willing to contribute that ?
Inventel can contribute with some test cases scripts using l2capsession. We'll do that if l2capsession "kind of way to do things" is retained. For the L2CAP tests (ACLsession) we have nothing yet.
Quoted 4 lines
It sounds like we need to create a module in CVS and start putting things that we need together. Any suggestion for a name ? "qube" ?
Max
// David LIBAULT
// Le 29 Janvier 2003
// l2capsession : l2cap session handler
/*
l2capsession - L2CAP session handler
Copyright (C) 2003 David Libault <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation;
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS SOFTWARE IS DISCLAIMED.
*/
#include <stdio.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
int l2cap_sock = -1 ;
int do_open(char *args)
{
struct l2cap_options l2o;
int psm, olen, mtu ;
char bd_addr_str[128] ;
bdaddr_t dst ;
struct sockaddr_l2 sa;
int result ;
bdaddr_t src_addr = *BDADDR_ANY; if (l2cap_sock != -1)
{
printf("l2cap socket already opened...\n") ;
return -1 ;
}
sscanf(args, "%s %d %d", bd_addr_str, &psm, &mtu) ;
printf("ba : %s, psm %d, mtu %d\n", bd_addr_str, psm, mtu) ;
str2ba(bd_addr_str, &dst) ;
l2cap_sock = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP) ;
if (l2cap_sock < 0)
{
printf("Error, can't open l2cap socket to %s\n", args) ;
printf("l2cap_sock : %d\n", l2cap_sock) ;
return -1 ;
}
// Set local address
getsockopt(l2cap_sock, SOL_L2CAP, L2CAP_OPTIONS, &l2o, &olen);
l2o.imtu = l2o.omtu = mtu;
setsockopt(l2cap_sock, SOL_L2CAP, L2CAP_OPTIONS, &l2o, sizeof(l2o)); sa.l2_family = AF_BLUETOOTH;
sa.l2_psm = 0;
sa.l2_bdaddr = src_addr;
if (bind(l2cap_sock, (struct sockaddr *) &sa, sizeof(sa)))
{
printf("Error, Couldn't bind socket\n") ;
return -1 ;}
sa.l2_psm = psm ;
sa.l2_bdaddr = dst;
result = connect(l2cap_sock, (struct sockaddr *)&sa, sizeof(sa)) ;
if (result == 0)
{
return 0 ;
}
else
{
printf("Connection failed, result : %d\n", result) ;
l2cap_sock = -1 ;
return -1 ; }
}
int do_close()
{
close(l2cap_sock) ;
l2cap_sock = -1 ;
}
int do_sleep(char *args)
{
int i ;
sscanf(args, "%d", &i) ;
printf("Sleep %d seconds\n", i) ;
sleep(i) ;
}
int do_send(char *args)
{
int bytesSent = 0 ;
unsigned char packet[10000] ; unsigned char byte[5] ;
int reqsize = 0 ;
int n = 0 ;
int i ;
int value ;
if (l2cap_sock < 0)
{
printf("Can't send while l2cap socket is not opened\n") ;
return -1 ;
}
do
{
sscanf(args, "%s", byte) ;
args += strlen(byte) +1 ;
sscanf(byte, "%x", &value) ;
packet[reqsize] = value ;
reqsize++ ;
} while (strlen(args)) ; printf("Sending %d bytes\n", reqsize) ;
for (i=0 ; i<reqsize ; i++)
printf("0x%2.2X ", packet[i]) ;
printf("\n") ;
n = send(l2cap_sock, packet, reqsize, 0);
if (n == -1)
{
printf("Error sending data\n");
return -1;
}
if (n != reqsize)
{
printf("Error sent %d out of %d bytes\n", n, reqsize) ;
return -1 ; }
}
int do_wait(char *args)
{
int rx_timeout ; fd_set readFds; struct timeval timeout; int bytesRecvd = 0 ;
char rspbuf[256] ;
int i ;
if (l2cap_sock < 0)
{
printf("Can't wait while l2cap socket is not opened\n") ;
return -1 ;
}
sscanf(args, "%d", rx_timeout) ;
timeout.tv_sec = rx_timeout;
timeout.tv_usec = 0;
FD_SET(l2cap_sock, &readFds);
printf("Waiting for response\n");
if (0 == select(l2cap_sock + 1, &readFds, NULL, NULL, &timeout)) {
printf("Client timed out\n");
return -1;
}
bytesRecvd = recv(l2cap_sock, rspbuf, 256, 0);
printf("Read %d bytes :\n", bytesRecvd);
for (i=0 ; i<bytesRecvd ; i++)
printf("0x%2.2X ", rspbuf[i]) ; printf("\n") ;
return 0;
}
char *freadline(FILE *f)
{
static char buffer[65000] ;
int c,i = 0 ;
int escape_next=0;
int comments=0;
c = fgetc(f) ;
while((!feof(f))&&(i<65000))
{
switch (c)
{
case '#':
// hash : comments, or not ?
if (escape_next) {buffer[i++]=c;escape_next=0;break;}
comments=1;
break; case '\\':
// escaping next char
if (escape_next) {buffer[i++]=c;escape_next=0;break;}
escape_next=1;
break;
case '\n':
// case '\r':
// end of line
// buffer[i++] = c;
buffer[i++] = 0;
return buffer;
break;
case EOF:
// end of file
buffer[i++]=0;
return buffer;
break;
default:
// normal
if (comments==0) buffer[i++] = c ;
break;
}
c = fgetc(f); }
buffer[i++]=0;
return buffer ;
}
int handle_input(char *line)
{
char command[25] ;
sscanf(line, "%s", command) ;
printf("Got command %s\n", command) ;
if (!strncmp(command, "open", 4))
{
do_open(line + 4) ;
}
else if (!strncmp(command, "close", 5))
{
do_close() ;
}
else if (!strncmp(command, "send", 4))
{
do_send(line + 4) ;
}
else if (!strncmp(command, "wait", 4))
{
do_wait(line + 4) ;
}
else if (!strncmp(command, "sleep", 5))
{
do_sleep(line + 5) ;
}
}int main(int argc, char **argv)
{
FILE *f_input=NULL ; char *line_buff ;
f_input = fopen(argv[1], "r") ;
if (f_input == NULL)
{
printf("Impossible to open file %s\n", argv[1]) ;
return -1 ;
}
while(!feof(f_input))
{
line_buff = freadline(f_input) ;
if (strlen(line_buff))
{
// printf("Handling line\n") ;
handle_input(line_buff) ;
} }
return 0 ;
}
Quoted 5 lines · David LIBAULT
Le Jeudi 6 Mars 2003 23:06, Max Krasnyansky a =E9crit :
Quoted 4 lines
Quoted 3 lines · David LIBAULT
Quoted 1 line
2. Have own patches against the stable kernel for qualification
IMHO, it is possible to have L2CAP qualified without messing up that mu=
ch
Quoted 1 line
Quoted 1 line
Quoted 1 line
the code, and without changing the behavior/performance when "the othe=
r
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
side" is working properly.
May be. But we don't seem to know that for sure. What about that L2CAP M=
TU
Quoted 3 lines
Quoted 1 line
negotiation thing for example ?
I propose that we take this issue as the first step to qualification.
Agreed.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Next step : L2CAP qualification.
The main issue is to have the tester side...
1) write a small user-mode program that can open and close an A=
CL
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
channel, and send any kind of packet over this link
Don't you guys have that already ? If not I'll write this one. Do you have any specific features in mind ?
I have sent to you a very small program (
l2capsession.c). You can make it=20 GPL. To make sure you have it, I have attached it to this message. This=20 program uses as an input a very simple script file that tells what to send=
,=20
Quoted 5 lines
to what address etc...
BUT
This is usable only for "over L2CAP" protocols like SDP, BNEP, RFCOMM etc.=
..
Quoted 1 line
To do L2CAP tests, we need the same type of application but that sends dat=
a=20
Quoted 1 line
directly over an ACL link. Is it a special type of socket that needs to be=
=20
Quoted 1 line
opened to do so ?
Yes raw HCI socket. I'll write that one.
Quoted 1 line
This ACLsession program will help us do the L2CAP MTU negotiation test and=
=20
Quoted 2 lines
we'll all see if fixing it in the main stream code is that much of a big=20 deal, and what the 7layers BQB can reasonably accept.
Ok.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
2) write a script for each test case
Anybody willing to contribute that ?
Inventel can contribute with some test cases scripts using l2capsession.=20 We'll do that if l2capsession "kind of way to do things" is retained.=20 For the L2CAP tests (ACLsession) we have nothing yet.
Sounds good.
Quoted 1 line
Quoted 1 line
It sounds like we need to create a module in CVS and start putting thing=
s
Quoted 1 line
Quoted 1 line
that we need together. Any suggestion for a name ? "qube" ?
Ok. I'll implement this ACL thing and add create cvs tree (including your l= 2session).
Max
=20
=20Quoted 5 lines · David LIBAULT
This ACLsession program will help us do the L2CAP MTU negotiation test and we'll all see if fixing it in the main stream code is that much of a big deal, and what the 7layers BQB can reasonably accept.
Quoted 1 line
Quoted 11 lines
Quoted 4 lines
Quoted 1 line
2) write a script for each test case
Anybody willing to contribute that ?
Inventel can contribute with some test cases scripts using l2capsession. We'll do that if l2capsession "kind of way to do things" is retained. For the L2CAP tests (ACLsession) we have nothing yet.
Quoted 2 lines
It sounds like we need to create a module in CVS and start putting things that we need together. Any suggestion for a name ? "qube" ?
Here you go.
I implemented aclsession and created one common build tree for qualification utils.
QUBE - Qualification Utilities for BluEz
http://bluez.sourceforge.net/download/bluez-qube-0.1.tar.gz
(it has your l2session thing in there).
Max