From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 16:37:09 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EBBF16A415 for ; Tue, 9 Jan 2007 16:37:09 +0000 (UTC) (envelope-from shurik@zk.informjust.ua) Received: from mash.informjust.ua (mash.informjust.ua [193.111.173.17]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDAA13C44C for ; Tue, 9 Jan 2007 16:37:09 +0000 (UTC) (envelope-from shurik@zk.informjust.ua) Received: from status.informjust.ua ([10.1.8.202]) by mash.informjust.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.65 (FreeBSD)) (envelope-from ) id 1H4JGI-000HEE-O4 for freebsd-bluetooth@freebsd.org; Tue, 09 Jan 2007 17:51:42 +0200 Received: from [10.2.113.65] (helo=zk.informjust.ua) by status.informjust.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1H4JIN-0004YK-Bw for freebsd-bluetooth@freebsd.org; Tue, 09 Jan 2007 17:53:51 +0200 Received: from sigterm.zk.informjust.ua ([10.2.113.30]) by zk.informjust.ua with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1H4JIF-000BvY-4t for freebsd-bluetooth@freebsd.org; Tue, 09 Jan 2007 17:53:43 +0200 Message-ID: <45A3BAAB.4040903@zk.informjust.ua> Date: Tue, 09 Jan 2007 17:54:19 +0200 From: "Alexander V. Ribchansky" User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 16:37:09 -0000 Hello! Does freebsd implementation of bluetooth stack support data rates of bluetooth 2.0? I found, that my USB BT adapter Surecom EP-2101 works as if it be 1.2 but not 2.0 bluetooth in connection with N73 phone (which support 2.0 transfer speeds). Under WINXP there is much faster transmitting speeds, which is seems to be bluetooth 2.0 speeds... -- With best regards, Alexander V. Ribchansky Uzhgorod, Ukraine AVR39-RIPE From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 17:52:48 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F107C16A5D1 for ; Tue, 9 Jan 2007 17:52:48 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.freebsd.org (Postfix) with ESMTP id CDC7D13C428 for ; Tue, 9 Jan 2007 17:52:48 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id E64B43BE7E; Tue, 9 Jan 2007 11:52:47 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31228-01-72; Tue, 9 Jan 2007 11:52:47 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id 8FE6A3BE38; Tue, 9 Jan 2007 11:52:47 -0600 (CST) Message-ID: <45A3D66C.2050605@savvis.net> Date: Tue, 09 Jan 2007 09:52:44 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: "Alexander V. Ribchansky" References: <45A3BAAB.4040903@zk.informjust.ua> In-Reply-To: <45A3BAAB.4040903@zk.informjust.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 17:52:49 -0000 Alexander, > Does freebsd implementation of bluetooth stack support data rates of > bluetooth 2.0? no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 edr as of now. > I found, that my USB BT adapter Surecom EP-2101 works as if it be 1.2 > but not 2.0 bluetooth in connection with N73 phone (which support 2.0 > transfer speeds). Under WINXP there is much faster transmitting speeds, > which is seems to be bluetooth 2.0 speeds... correct. bluetooth 2.0 devices are backward compatible with bluetooth 1.1 stacks, however you will only get 1.1 speeds. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 19:55:12 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 738A316A407 for ; Tue, 9 Jan 2007 19:55:12 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.freebsd.org (Postfix) with ESMTP id 38D7113C468 for ; Tue, 9 Jan 2007 19:55:12 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 863623BEB0; Tue, 9 Jan 2007 13:55:11 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03795-02-71; Tue, 9 Jan 2007 13:55:11 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id EE96E3BE24; Tue, 9 Jan 2007 13:55:10 -0600 (CST) Message-ID: <45A3F31D.2060709@savvis.net> Date: Tue, 09 Jan 2007 11:55:09 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: triosoft@triosoft.com.ua References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> In-Reply-To: <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 19:55:12 -0000 Alexander, >>> Does freebsd implementation of bluetooth stack support data rates of >>> bluetooth 2.0? >> no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 >> edr as of now. > > AS OF NOW sounds better than NEVER will :o) but may I ask you do you make > some steps towards edr support? is it realy hard to include edr support? the main problem is time. basically i have to 1) go to a store/online and pick up a couple of bluetooth 2.0+edr adapters. those are in $20 us range now (i.e cheap); 2) read and understand bluetooth 2.0 spec; 3) make changes to the existing code; i do not think it would be very hard to add edr support. i suspect that all needed to be done is to properly detect and configure edr device. > can I help with something? I'm wery base-level programmer, but if you > point me to some docs or specs etc or may be just give me some part of > whole job I can help? AFAIK BlueZ do not support edr too... is it so > difficult to implement edr on 1.1 base? like i said, it should not be very hard to add 2.0+edr support. btw, bluez does support 2.0+edr, so it could save me some time. you could do a simple task of updating ng_hci.h headers to include all the 2.0+edr hci commands and events. i think someone already might have done a port of it. you are more then welcome to send patches to the list. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 20:01:18 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DA8E16A492 for ; Tue, 9 Jan 2007 20:01:18 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from a64.ic.uz.ua (a64.ic.uz.ua [212.1.100.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0756513C45D for ; Tue, 9 Jan 2007 20:01:17 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from [127.0.0.1] (helo=webmail.ic.uz.ua) by a64.ic.uz.ua with esmtp (Exim 4.65) (envelope-from ) id 1H4Mr7-000G8c-AA; Tue, 09 Jan 2007 21:41:57 +0200 Received: from 194-7-124-91.pool.ukrtel.net ([91.124.7.194]) (SquirrelMail authenticated user triosoft@triosoft.com.ua) by webmail.ic.uz.ua with HTTP; Tue, 9 Jan 2007 21:41:57 +0200 (EET) Message-ID: <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> In-Reply-To: <45A3D66C.2050605@savvis.net> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> Date: Tue, 9 Jan 2007 21:41:57 +0200 (EET) From: triosoft@triosoft.com.ua To: "Maksim Yevmenkin" User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 20:01:18 -0000 > Alexander, > >> Does freebsd implementation of bluetooth stack support data rates of >> bluetooth 2.0? > > no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 > edr as of now. AS OF NOW sounds better than NEVER will :o) but may I ask you do you make some steps towards edr support? is it realy hard to include edr support? can I help with something? I'm wery base-level programmer, but if you point me to some docs or specs etc or may be just give me some part of whole job I can help? AFAIK BlueZ do not support edr too... is it so difficult to implement edr on 1.1 base? BUT! Anyway, THANK you for your job! You'r a MONSTER (in good meaning of this world :o) -- With best regards, Alexander V. Ribchansky Uzhgorod, Ukraine AVR39-RIPE From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 21:03:56 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A9A516A416 for ; Tue, 9 Jan 2007 21:03:56 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from mail.holtmann.net (coyote.holtmann.net [217.160.111.169]) by mx1.freebsd.org (Postfix) with ESMTP id A443313C465 for ; Tue, 9 Jan 2007 21:03:54 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from [192.168.5.242] (p5487C817.dip.t-dialin.net [84.135.200.23]) by mail.holtmann.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l09KmqIE019702; Tue, 9 Jan 2007 21:48:53 +0100 From: Marcel Holtmann To: Maksim Yevmenkin In-Reply-To: <45A3F31D.2060709@savvis.net> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> Content-Type: text/plain Date: Tue, 09 Jan 2007 21:48:40 +0100 Message-Id: <1168375720.32577.6.camel@violet> Mime-Version: 1.0 X-Mailer: Evolution 2.9.5 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on coyote.holtmann.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 21:03:56 -0000 Hi Maksim, > >>> Does freebsd implementation of bluetooth stack support data rates of > >>> bluetooth 2.0? > >> no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 > >> edr as of now. > > > > AS OF NOW sounds better than NEVER will :o) but may I ask you do you make > > some steps towards edr support? is it realy hard to include edr support? > > the main problem is time. basically i have to > > 1) go to a store/online and pick up a couple of bluetooth 2.0+edr > adapters. those are in $20 us range now (i.e cheap); > > 2) read and understand bluetooth 2.0 spec; > > 3) make changes to the existing code; > > i do not think it would be very hard to add edr support. i suspect that > all needed to be done is to properly detect and configure edr device. > > > can I help with something? I'm wery base-level programmer, but if you > > point me to some docs or specs etc or may be just give me some part of > > whole job I can help? AFAIK BlueZ do not support edr too... is it so > > difficult to implement edr on 1.1 base? > > like i said, it should not be very hard to add 2.0+edr support. btw, > bluez does support 2.0+edr, so it could save me some time. > > you could do a simple task of updating ng_hci.h headers to include all > the 2.0+edr hci commands and events. i think someone already might have > done a port of it. you are more then welcome to send patches to the list. actually you don't have to do anything to support EDR. The way EDR is specified is that it is on by default if both sides support EDR. The link manager will automatically detect it and then use it. Only when you wanna disable EDR you have to set the bits in packet mask. Regards Marcel From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 21:07:10 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6669816A403 for ; Tue, 9 Jan 2007 21:07:10 +0000 (UTC) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001a.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3312F13C458 for ; Tue, 9 Jan 2007 21:07:09 +0000 (UTC) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out001a.email.savvis.net with Microsoft SMTPSVC(6.0.3790.1830); Tue, 9 Jan 2007 15:07:09 -0600 Received: from [127.0.0.1] ([75.82.168.166]) by s228130hz1ew171.apptix-01.savvis.net over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Tue, 9 Jan 2007 15:07:08 -0600 Message-ID: <45A403FC.7050106@savvis.net> Date: Tue, 09 Jan 2007 13:07:08 -0800 From: maksim yevmenkin User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Marcel Holtmann References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168375720.32577.6.camel@violet> In-Reply-To: <1168375720.32577.6.camel@violet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Jan 2007 21:07:08.0938 (UTC) FILETIME=[1FC546A0:01C73432] Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 21:07:10 -0000 Marcel, >>>>> Does freebsd implementation of bluetooth stack support data rates of >>>>> bluetooth 2.0? >>>> no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 >>>> edr as of now. >>> AS OF NOW sounds better than NEVER will :o) but may I ask you do you make >>> some steps towards edr support? is it realy hard to include edr support? >> the main problem is time. basically i have to >> >> 1) go to a store/online and pick up a couple of bluetooth 2.0+edr >> adapters. those are in $20 us range now (i.e cheap); >> >> 2) read and understand bluetooth 2.0 spec; >> >> 3) make changes to the existing code; >> >> i do not think it would be very hard to add edr support. i suspect that >> all needed to be done is to properly detect and configure edr device. >> >>> can I help with something? I'm wery base-level programmer, but if you >>> point me to some docs or specs etc or may be just give me some part of >>> whole job I can help? AFAIK BlueZ do not support edr too... is it so >>> difficult to implement edr on 1.1 base? >> like i said, it should not be very hard to add 2.0+edr support. btw, >> bluez does support 2.0+edr, so it could save me some time. >> >> you could do a simple task of updating ng_hci.h headers to include all >> the 2.0+edr hci commands and events. i think someone already might have >> done a port of it. you are more then welcome to send patches to the list. > > actually you don't have to do anything to support EDR. The way EDR is > specified is that it is on by default if both sides support EDR. The > link manager will automatically detect it and then use it. Only when you > wanna disable EDR you have to set the bits in packet mask. thanks for the comment. that is what i meant by "properly detect and configure edr device". basically look at the supported features for the local device and set packet type mask depending on this. as it stands right now freebsd bluetooth stack will only use DM/H1, DM/H3 and DM/H5 packets (last two only used if the device supports them). thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 21:31:55 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FC1516A415 for ; Tue, 9 Jan 2007 21:31:55 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from mail.holtmann.net (coyote.holtmann.net [217.160.111.169]) by mx1.freebsd.org (Postfix) with ESMTP id 9F78B13C471 for ; Tue, 9 Jan 2007 21:31:54 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from [192.168.5.242] (p5487C817.dip.t-dialin.net [84.135.200.23]) by mail.holtmann.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l09LW0tb020154; Tue, 9 Jan 2007 22:32:02 +0100 From: Marcel Holtmann To: maksim yevmenkin In-Reply-To: <45A403FC.7050106@savvis.net> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168375720.32577.6.camel@violet> <45A403FC.7050106@savvis.net> Content-Type: text/plain Date: Tue, 09 Jan 2007 22:31:48 +0100 Message-Id: <1168378308.32577.9.camel@violet> Mime-Version: 1.0 X-Mailer: Evolution 2.9.5 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on coyote.holtmann.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 21:31:55 -0000 Hi Maksim, > >>>>> Does freebsd implementation of bluetooth stack support data rates of > >>>>> bluetooth 2.0? > >>>> no, freebsd bluetooth stack is v1.1 and does not support bluetooth 2.0 > >>>> edr as of now. > >>> AS OF NOW sounds better than NEVER will :o) but may I ask you do you make > >>> some steps towards edr support? is it realy hard to include edr support? > >> the main problem is time. basically i have to > >> > >> 1) go to a store/online and pick up a couple of bluetooth 2.0+edr > >> adapters. those are in $20 us range now (i.e cheap); > >> > >> 2) read and understand bluetooth 2.0 spec; > >> > >> 3) make changes to the existing code; > >> > >> i do not think it would be very hard to add edr support. i suspect that > >> all needed to be done is to properly detect and configure edr device. > >> > >>> can I help with something? I'm wery base-level programmer, but if you > >>> point me to some docs or specs etc or may be just give me some part of > >>> whole job I can help? AFAIK BlueZ do not support edr too... is it so > >>> difficult to implement edr on 1.1 base? > >> like i said, it should not be very hard to add 2.0+edr support. btw, > >> bluez does support 2.0+edr, so it could save me some time. > >> > >> you could do a simple task of updating ng_hci.h headers to include all > >> the 2.0+edr hci commands and events. i think someone already might have > >> done a port of it. you are more then welcome to send patches to the list. > > > > actually you don't have to do anything to support EDR. The way EDR is > > specified is that it is on by default if both sides support EDR. The > > link manager will automatically detect it and then use it. Only when you > > wanna disable EDR you have to set the bits in packet mask. > > thanks for the comment. > > that is what i meant by "properly detect and configure edr device". > basically look at the supported features for the local device and set > packet type mask depending on this. as it stands right now freebsd > bluetooth stack will only use DM/H1, DM/H3 and DM/H5 packets (last two > only used if the device supports them). that is the trick with EDR. You have to set the bits to disable EDR. So if you do nothing it is on by default. Regards Marcel From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jan 9 23:15:47 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5273316A506 for ; Tue, 9 Jan 2007 23:15:47 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smarthost01.eng.net (smarthost01.eng.net [213.130.146.173]) by mx1.freebsd.org (Postfix) with ESMTP id E6E8713C455 for ; Tue, 9 Jan 2007 23:15:46 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from netmail01.eng.net ([213.130.128.38] helo=rya-online.net) by smarthost01.eng.net with smtp (Exim 4.62) (envelope-from ) id 1H4Oza-0005f7-OO; Tue, 09 Jan 2007 21:58:55 +0000 Received: (nullmailer pid 4407 invoked by uid 1000); Tue, 09 Jan 2007 21:35:26 -0000 Date: Tue, 9 Jan 2007 21:35:26 +0000 (GMT) To: Maksim Yevmenkin In-Reply-To: <45A3F31D.2060709@savvis.net> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1168378526.559195.4307.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 23:15:47 -0000 On Tue, 9 Jan 2007, Maksim Yevmenkin wrote: > the main problem is time. basically i have to > > 2) read and understand bluetooth 2.0 spec; The HCI spec is not very different, just some extensions and a bit of obsoletions. The biggest problem I found was that ADD_SCO_CON is deprecated in favour of SETUP_SCO_CON but the 2.0 dongle I have doesn't implement that and must use ADD_SCO_CON anyway. > you could do a simple task of updating ng_hci.h headers to include all the > 2.0+edr hci commands and events. i think someone already might have done a > port of it. you are more then welcome to send patches to the list. the NetBSD (src/sys/netbt/) hci.h file contains all the 2.0 definitions.. I'm not sure exactly, what is required to support any extra speeds because there is no command to say 'enable EDR now'. The only thing that might be necessary in fact is to specify the packet types that may be used. IIRC, FreeBSD uses 0xffff as the packet type mask by default? Confusingly, the extra packet types are enabled by clearing the bits unused in the earlier specifications. I only have one USB port so I can't test throughput between v2.0 dongles, but have the following two devices currently installed: (v1.1) bt3c0: bdaddr 00:04:76:e1:4a:f5 flags 0x3 ptype: [0xff1e] DM1 DH1 DM3 DH3 DM5 DH5 features: <3 slot> <5 slot> (v2.0 + EDR) ubt0: bdaddr 00:08:1b:8d:ba:6d flags 0x3 ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 features: <3 slot> <5 slot> <3 slot EDR ACL> <5 slot EDR ACL> <3 slot EDR eSCO> Even when using a mouse/keyboard the superiority of the v2.0 device is apparent (sometimes I get jaggy movement with the mouse, or jerky keypresses when typing fast with the bt3c) so I always recommend people get a v2.0 device. iain From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jan 10 09:37:16 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3FDF16A40F for ; Wed, 10 Jan 2007 09:37:15 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from mash.informjust.ua (mash.informjust.ua [193.111.173.17]) by mx1.freebsd.org (Postfix) with ESMTP id 3017813C448 for ; Wed, 10 Jan 2007 09:37:15 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from status.informjust.ua ([10.1.8.202]) by mash.informjust.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.65 (FreeBSD)) (envelope-from ) id 1H4ZZH-000Jax-PV; Wed, 10 Jan 2007 11:16:23 +0200 Received: from [10.2.113.65] (helo=zk.informjust.ua) by status.informjust.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1H4ZbV-0008eW-8V; Wed, 10 Jan 2007 11:18:41 +0200 Received: from sigterm.zk.informjust.ua ([10.2.113.30]) by zk.informjust.ua with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1H4ZbK-000MOg-Th; Wed, 10 Jan 2007 11:18:30 +0200 Message-ID: <45A4AF8F.90106@triosoft.com.ua> Date: Wed, 10 Jan 2007 11:19:11 +0200 From: "Alexander V. Ribchansky" User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: Iain Hibbert References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168378526.559195.4307.nullmailer@galant.ukfsn.org> In-Reply-To: <1168378526.559195.4307.nullmailer@galant.ukfsn.org> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 09:37:16 -0000 Iain Hibbert ?????: > On Tue, 9 Jan 2007, Maksim Yevmenkin wrote: > > >> the main problem is time. basically i have to >> >> 2) read and understand bluetooth 2.0 spec; >> > > The HCI spec is not very different, just some extensions and a bit of > obsoletions. The biggest problem I found was that ADD_SCO_CON is > deprecated in favour of SETUP_SCO_CON but the 2.0 dongle I have doesn't > implement that and must use ADD_SCO_CON anyway. > > >> you could do a simple task of updating ng_hci.h headers to include all the >> 2.0+edr hci commands and events. i think someone already might have done a >> port of it. you are more then welcome to send patches to the list. >> > > the NetBSD (src/sys/netbt/) hci.h file contains all the 2.0 definitions.. > > I'm not sure exactly, what is required to support any extra speeds because > there is no command to say 'enable EDR now'. The only thing that might be > necessary in fact is to specify the packet types that may be used. > > IIRC, FreeBSD uses 0xffff as the packet type mask by default? > > Confusingly, the extra packet types are enabled by clearing the bits > unused in the earlier specifications. I only have one USB port so I can't > test throughput between v2.0 dongles, but have the following two devices > currently installed: > > (v1.1) > bt3c0: bdaddr 00:04:76:e1:4a:f5 flags 0x3 > ptype: [0xff1e] DM1 DH1 DM3 DH3 DM5 DH5 > > features: <3 slot> <5 slot> > > > > (v2.0 + EDR) > ubt0: bdaddr 00:08:1b:8d:ba:6d flags 0x3 > ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 > I'm a very-very newbie in bluetooth, but if the whole problem is to properly detect adapter capabilities and to properly config frame mask if adapter supports EDR, could someone tell me a place in src, where I should apply WHERRY DIRTY HACK to insist that adapter support EDR frames? just to test if it work with 2.0 adapter. Or I miss something, reading this thread? Thanks! -- AVR39-RIPE From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jan 10 22:07:20 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8CFF16A412 for ; Wed, 10 Jan 2007 22:07:20 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smarthost01.eng.net (smarthost01.eng.net [213.130.146.173]) by mx1.freebsd.org (Postfix) with ESMTP id AF0E013C428 for ; Wed, 10 Jan 2007 22:07:20 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from netmail01.eng.net ([213.130.128.38] helo=rya-online.net) by smarthost01.eng.net with smtp (Exim 4.62) (envelope-from ) id 1H4lbF-0002AH-BF; Wed, 10 Jan 2007 22:07:18 +0000 Received: (nullmailer pid 480 invoked by uid 1000); Wed, 10 Jan 2007 21:44:21 -0000 Date: Wed, 10 Jan 2007 21:44:21 +0000 (GMT) To: "Alexander V\. Ribchansky" In-Reply-To: <45A4AF8F.90106@triosoft.com.ua> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168378526.559195.4307.nullmailer@galant.ukfsn.org> <45A4AF8F.90106@triosoft.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1168465461.328656.2681.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 22:07:21 -0000 On Wed, 10 Jan 2007, Alexander V. Ribchansky wrote: > Iain Hibbert ?????: > > ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 > > I'm a very-very newbie in bluetooth, but if the whole problem is to > properly detect adapter capabilities and to properly config frame mask > if adapter supports EDR, could someone tell me a place in src, where I > should apply WHERRY DIRTY HACK to insist that adapter support EDR > frames? just to test if it work with 2.0 adapter. Or I miss something, > reading this thread? You need to adjust the packet types that are allowed - look at sys/netgraph/bluetooth/hci/ng_hci_ulpi.c and search for CREATE_CON to see where the connection is made. Just a few lines down hardwire req->cp.pkt_type=0xcc18 which should enable all the packet types as above. To make it work properly, you would have to interpret the other packet types from the mask. regards, iain From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jan 10 23:14:26 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A9D616A47C for ; Wed, 10 Jan 2007 23:14:26 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.freebsd.org (Postfix) with ESMTP id 32DF913C45B for ; Wed, 10 Jan 2007 23:14:26 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id D28BE3BF00; Wed, 10 Jan 2007 17:14:17 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09619-01-10; Wed, 10 Jan 2007 17:14:17 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id A52B33BEFF; Wed, 10 Jan 2007 17:14:16 -0600 (CST) Message-ID: <45A57347.4000207@savvis.net> Date: Wed, 10 Jan 2007 15:14:15 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: "Alexander V. Ribchansky" References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168378526.559195.4307.nullmailer@galant.ukfsn.org> <45A4AF8F.90106@triosoft.com.ua> <1168465461.328656.2681.nullmailer@galant.ukfsn.org> In-Reply-To: <1168465461.328656.2681.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 23:14:26 -0000 Iain Hibbert wrote: > On Wed, 10 Jan 2007, Alexander V. Ribchansky wrote: > >> Iain Hibbert ?????: >>> ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 >> I'm a very-very newbie in bluetooth, but if the whole problem is to >> properly detect adapter capabilities and to properly config frame mask >> if adapter supports EDR, could someone tell me a place in src, where I >> should apply WHERRY DIRTY HACK to insist that adapter support EDR >> frames? just to test if it work with 2.0 adapter. Or I miss something, >> reading this thread? > > You need to adjust the packet types that are allowed - look at > sys/netgraph/bluetooth/hci/ng_hci_ulpi.c and search for CREATE_CON to see > where the connection is made. Just a few lines down hardwire > req->cp.pkt_type=0xcc18 which should enable all the packet types as > above. > > To make it work properly, you would have to interpret the other packet > types from the mask. actually, it appears that nothing is required to be done at all. i got my self a couple of bluetooth 2.0+edr dongles from bestbuy, specifically Jan 10 14:21:40 beetle kernel: ubt0: on uhub2 Jan 10 14:21:40 beetle kernel: ubt0: Kensington Bluetooth EDR Dongle, rev 2.00/0.00, addr 2 Jan 10 14:21:40 beetle kernel: ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 Jan 10 14:21:40 beetle kernel: ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 and Jan 10 14:21:46 beetle kernel: ubt1: on uhub6 Jan 10 14:21:46 beetle kernel: ubt1: Broadcom Corp BCM92045DG-Flash_UHE, rev 2.00/1.00, addr 3 Jan 10 14:21:46 beetle kernel: ubt1: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 Jan 10 14:21:46 beetle kernel: ubt1: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=64; nframes=5, buffer size=320 and connected them to two different freebsd boxes, specifically FreeBSD beetle.savvis.net 7.0-CURRENT FreeBSD 7.0-CURRENT #79: Tue Nov 21 17:21:46 PST 2006 max@beetle.digisle.com:/usr/obj/usr/src/sys/GENERIC i386 and FreeBSD peahi.savvis.ad.savvis.net 7.0-CURRENT FreeBSD 7.0-CURRENT #14: Tue Nov 21 10:57:25 PST 2006 max@peahi.savvis.ad.savvis.net:/usr/obj/usr/src/sys/GENERIC sparc64 both boxes are sitting about two meters apart in my office. i used ttcp (ports/benchmarks/ttcp) as basic tool to measure throughput. both machines connected using bluetooth lan profile (i.e. ppp over rfcomm link) ppp config on server: rfcomm-server: #enable force-scripts set timeout 0 set lqrperiod 10 set ifaddr 192.168.1.2 192.168.1.1 255.255.255.255 enable lqr accept lqr disable pap deny pap disable chap deny chap accept dns ppp config on client rfcomm-client: set dial set timeout 0 set ifaddr 192.168.1.1 192.168.1.2 255.255.255.255 accept dns now results receiver side: peahi% ttcp -r -s -f m ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp ttcp-r: socket ttcp-r: accept from 192.168.1.2 ttcp-r: 16777216 bytes in 72.29 real seconds = 1.77 Mbit/sec +++ ttcp-r: 11684 I/O calls, msec/call = 6.34, calls/sec = 161.63 ttcp-r: 0.1user 2.6sys 1:12real 3% 166i+1416d 1860maxrss 0+0pf 11682+1039csw sender side: beetle# ttcp -t -s 192.168.1.1 ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 192.168.1.1 ttcp-t: socket ttcp-t: connect ttcp-t: 16777216 bytes in 72.28 real seconds = 226.66 KB/sec +++ ttcp-t: 2048 I/O calls, msec/call = 36.14, calls/sec = 28.33 ttcp-t: 0.0user 0.2sys 1:12real 0% 1i+341d 424maxrss 0+0pf 7774+17csw as you can see i got close to 2 Mbit/sec throughput (receiver reports in Mbit/sec and sender reports in Kbytes/sec). numbers look consistent on both sides. in theory bluetooth 2.0+edr can give you up to 3 Mbit/sec (please correct me if i wrong here), but in real life you unlikely to see this because of protocol header overhead. in this case its protocol stack looks something like tcp -> ip -> ppp -> rfcomm -> l2cap bottom line: it looks like bluetooth 2.0+edr dongles will talk high speed without stack doing anything at all. i'm not sure why do you see low transfer speed, but perhaps it has something to do with obex? thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jan 11 21:11:51 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 900A416A403 for ; Thu, 11 Jan 2007 21:11:51 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from a64.ic.uz.ua (a64.ic.uz.ua [212.1.100.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4668413C44C for ; Thu, 11 Jan 2007 21:11:51 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from [127.0.0.1] (helo=webmail.ic.uz.ua) by a64.ic.uz.ua with esmtp (Exim 4.65) (envelope-from ) id 1H57DB-000H02-EF; Thu, 11 Jan 2007 23:11:49 +0200 Received: from 144-5-124-91.pool.ukrtel.net ([91.124.5.144]) (SquirrelMail authenticated user triosoft@triosoft.com.ua) by webmail.ic.uz.ua with HTTP; Thu, 11 Jan 2007 23:11:49 +0200 (EET) Message-ID: <57864.91.124.5.144.1168549909.squirrel@webmail.ic.uz.ua> In-Reply-To: <45A57347.4000207@savvis.net> References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168378526.559195.4307.nullmailer@galant.ukfsn.org> <45A4AF8F.90106@triosoft.com.ua> <1168465461.328656.2681.nullmailer@galant.ukfsn.org> <45A57347.4000207@savvis.net> Date: Thu, 11 Jan 2007 23:11:49 +0200 (EET) From: triosoft@triosoft.com.ua To: freebsd-bluetooth@freebsd.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 21:11:51 -0000 -skip- > as you can see i got close to 2 Mbit/sec throughput (receiver reports in > Mbit/sec and sender reports in Kbytes/sec). numbers look consistent on > both sides. in theory bluetooth 2.0+edr can give you up to 3 Mbit/sec > (please correct me if i wrong here), but in real life you unlikely to > see this because of protocol header overhead. in this case its protocol > stack looks something like > > tcp -> ip -> ppp -> rfcomm -> l2cap > > bottom line: it looks like bluetooth 2.0+edr dongles will talk high > speed without stack doing anything at all. i'm not sure why do you see > low transfer speed, but perhaps it has something to do with obex? > > thanks, > max > > Very-very strange... I use obexapp from ports to use FTRN profile, and whatever I do I do not get to speeds of EDR. Same thing with kubuntu linux 6.06 tls live cd. All works, but slowly. So could you PLEASE try to use obexapp between two freebsd boxes to transfer files? or even use obexapp to transfer files from and to some EDR-capable device like phone? Everything is seems to be that the low speed is "thanks to" some obex stuff. but why??? is something from bluetooth 1.2 spec hardcoded in openobex or obexapp? And one more question, I hack a bit src/usr.sbin/bluetooth/hccontrol/util.c to fully dump and describe all 8 bytes of features. Is it worthy to post patches here? Thanks for all your and Iain Hibbert answers! -- AVR39-RIPE From owner-freebsd-bluetooth@FreeBSD.ORG Fri Jan 12 08:43:39 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D111016A412 for ; Fri, 12 Jan 2007 08:43:39 +0000 (UTC) (envelope-from old@home.old.com.ua) Received: from home.old.com.ua (home.old.com.ua [82.193.107.192]) by mx1.freebsd.org (Postfix) with ESMTP id F092613C45B for ; Fri, 12 Jan 2007 08:43:38 +0000 (UTC) (envelope-from old@home.old.com.ua) Received: from home.old.com.ua (localhost.old.com.ua [127.0.0.1]) by home.old.com.ua (8.13.8/8.13.8) with ESMTP id l0C8M0VS067136 for ; Fri, 12 Jan 2007 10:22:00 +0200 (EET) (envelope-from old@home.old.com.ua) Received: (from old@localhost) by home.old.com.ua (8.13.8/8.13.8/Submit) id l0C8M0ML067135 for freebsd-bluetooth@freebsd.org; Fri, 12 Jan 2007 10:22:00 +0200 (EET) (envelope-from old) Date: Fri, 12 Jan 2007 10:22:00 +0200 From: Dmitry Dyomin To: freebsd-bluetooth@freebsd.org Message-ID: <20070112082200.GA67105@old.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: PAN support X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 08:43:39 -0000 Maksim, Are there any plans for PAN support on FreeBSD BT stack? I'm currently forced to use M$ windows with my SE M600, as one can only initiate PAN connection from this phone, not LAN. From owner-freebsd-bluetooth@FreeBSD.ORG Fri Jan 12 17:47:02 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAFF416A416 for ; Fri, 12 Jan 2007 17:47:02 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.freebsd.org (Postfix) with ESMTP id 81D5E13C44B for ; Fri, 12 Jan 2007 17:47:00 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 7C5B43BE8B; Fri, 12 Jan 2007 11:46:59 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09147-01-78; Fri, 12 Jan 2007 11:46:59 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id 2860B3BE49; Fri, 12 Jan 2007 11:46:59 -0600 (CST) Message-ID: <45A7C992.4040805@savvis.net> Date: Fri, 12 Jan 2007 09:46:58 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: Dmitry Dyomin References: <20070112082200.GA67105@old.com.ua> In-Reply-To: <20070112082200.GA67105@old.com.ua> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: PAN support X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 17:47:02 -0000 Dmitry Dyomin wrote: > Maksim, > > Are there any plans for PAN support on FreeBSD BT stack? not at the moment. i'm extremely busy right now. > I'm currently forced to use M$ windows with my SE M600, as one > can only initiate PAN connection from this phone, not LAN. sorry about that :( max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Jan 12 22:56:35 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4300316A412 for ; Fri, 12 Jan 2007 22:56:35 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0B8D413C441 for ; Fri, 12 Jan 2007 22:56:34 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 5C7E63BE4D; Fri, 12 Jan 2007 16:56:34 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19207-01-2; Fri, 12 Jan 2007 16:56:34 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id 05FD63BE49; Fri, 12 Jan 2007 16:56:33 -0600 (CST) Message-ID: <45A81220.9010601@savvis.net> Date: Fri, 12 Jan 2007 14:56:32 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: triosoft@triosoft.com.ua References: <45A3BAAB.4040903@zk.informjust.ua> <45A3D66C.2050605@savvis.net> <49327.91.124.7.194.1168371717.squirrel@webmail.ic.uz.ua> <45A3F31D.2060709@savvis.net> <1168378526.559195.4307.nullmailer@galant.ukfsn.org> <45A4AF8F.90106@triosoft.com.ua> <1168465461.328656.2681.nullmailer@galant.ukfsn.org> <45A57347.4000207@savvis.net> <57864.91.124.5.144.1168549909.squirrel@webmail.ic.uz.ua> In-Reply-To: <57864.91.124.5.144.1168549909.squirrel@webmail.ic.uz.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: is bluetooth 2.0 speeds supported on freebsd? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 22:56:35 -0000 triosoft@triosoft.com.ua wrote: > -skip- >> as you can see i got close to 2 Mbit/sec throughput (receiver reports in >> Mbit/sec and sender reports in Kbytes/sec). numbers look consistent on >> both sides. in theory bluetooth 2.0+edr can give you up to 3 Mbit/sec >> (please correct me if i wrong here), but in real life you unlikely to >> see this because of protocol header overhead. in this case its protocol >> stack looks something like >> >> tcp -> ip -> ppp -> rfcomm -> l2cap >> >> bottom line: it looks like bluetooth 2.0+edr dongles will talk high >> speed without stack doing anything at all. i'm not sure why do you see >> low transfer speed, but perhaps it has something to do with obex? > > Very-very strange... I use obexapp from ports to use FTRN profile, and > whatever I do I do not get to speeds of EDR. Same thing with kubuntu linux > 6.06 tls live cd. All works, but slowly. So could you PLEASE try to use > obexapp between two freebsd boxes to transfer files? or even use obexapp > to transfer files from and to some EDR-capable device like phone? > Everything is seems to be that the low speed is "thanks to" some obex > stuff. but why??? is something from bluetooth 1.2 spec hardcoded in > openobex or obexapp? ok, i just tried to transfer 7 mbytes file from one box to another using bluetooth 2.0+edr dongles and obexapp. i can confirm that throughput is nowhere near bluetooth 2.0+edr throughput. i basically get around 55 kbytes/sec (around 440 kbit/sec) which is way too low. i do not think that this has anything to do with the dongles or the stack (because i demonstrated about 2 mbit throughput with lan profile and ttcp), so it could only be either obexapp itself on openobex library. btw, what tool did you use on ubuntu linux to transfer files over obex? can you tell it uses openopex library as well? in the mean time, i'm going to take a look at obexapp and see if i goofed anywhere. > And one more question, I hack a bit > src/usr.sbin/bluetooth/hccontrol/util.c to fully dump and describe all 8 > bytes of features. Is it worthy to post patches here? yes thanks, max