From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 15 19:36:43 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D5BD106566B for ; Tue, 15 Dec 2009 19:36:43 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp6.freeserve.com (smtp6.freeserve.com [193.252.22.192]) by mx1.freebsd.org (Postfix) with ESMTP id 207E28FC08 for ; Tue, 15 Dec 2009 19:36:42 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3623.me.freeserve.com (SMTP Server) with ESMTP id 45DAF7000043 for ; Tue, 15 Dec 2009 20:36:41 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3623.me.freeserve.com (SMTP Server) with ESMTP id 39F3D7000044 for ; Tue, 15 Dec 2009 20:36:41 +0100 (CET) Received: from rya-online.net (unknown [89.194.195.183]) by mwinf3623.me.freeserve.com (SMTP Server) with SMTP id 37EB67000043 for ; Tue, 15 Dec 2009 20:36:40 +0100 (CET) X-ME-UUID: 20091215193640229.37EB67000043@mwinf3623.me.freeserve.com Received: (nullmailer pid 2667 invoked by uid 1000); Tue, 15 Dec 2009 19:36:38 -0000 Date: Tue, 15 Dec 2009 19:36:37 +0000 (GMT) To: freebsd-bluetooth@freebsd.org In-Reply-To: <1260285672.503038.542.nullmailer@galant.ukfsn.org> References: <20091201125054.44a00147@zelz27> <1259694948.961003.27487.nullmailer@galant.ukfsn.org> <1259695873.086896.28523.nullmailer@galant.ukfsn.org> <1260285672.503038.542.nullmailer@galant.ukfsn.org> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-272804268-1260732731=:793" Content-ID: Message-Id: <1260905798.329544.2767.nullmailer@galant.ukfsn.org> From: Iain Hibbert Subject: obex transfer speeds 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, 15 Dec 2009 19:36:43 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-272804268-1260732731=:793 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Hi, While obexapp is the subject, I wonder what kind of transfer speeds people get? Normally I use obexapp to copy files to and from my phone but they are not much big files and I've never bothered with speed tests.. I have been working some long hours at a tedious job lately and thought I would listen to some music off my phone. However, transferring tracks is tedious. I have calculated (see attached program) that I'm getting about 12-15 kbytes/second by using windows mobile bluetooth explorer in suck mode (navigate to my laptop, then copy and paste the directory to the sd card) using obexapp to push files seemed to go faster, about 15-20 kbytes/second initially but obexapp doesn't handle sending complete directories so I had to write a wrapper script and then when I left this going overnight it only transferred about 15 tracks (I think a resource leak in the phone, which needed a reboot afterwards) So, my question is what kind of speeds should we normally expect with OBEX? I thought bluetooth should be faster than that but I don't really know what version my phone has (laptop has Broadcom BCM2045B 2.0+EDR and specs I found on the web says HTC Elf has 2.0 but I don't know about EDR) and I only have a single computer so while a speed test would be possible with two dongles, there could be interference in the stack. Has anybody done anything like that in the past? I read some comments previously on the list and have raised the MTU to 8192 bytes as suggested for an older obexapp but that hasn't improved the speed much. Any other ideas? regards, iain --0-272804268-1260732731=:793 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=btstat.c Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: bytes per second program Content-Disposition: ATTACHMENT; FILENAME=btstat.c I2luY2x1ZGUgPGJsdWV0b290aC5oPg0KI2luY2x1ZGUgPGVyci5oPg0KI2lu Y2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQojaW5jbHVk ZSA8dW5pc3RkLmg+DQoNCmNvbnN0IGNoYXIgKmRldiA9ICJ1YnQwIjsNC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