From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0EBC7138A1F for ; Thu, 24 Apr 2014 01:12:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F1F1E0A93; Thu, 24 Apr 2014 01:12:21 +0000 (UTC) Received: from icp-osb-irony-out1.external.iinet.net.au (icp-osb-irony-out1.external.iinet.net.au [203.59.1.210]) by pigeon.gentoo.org (Postfix) with ESMTP id 6D8DCE0A5C for ; Thu, 24 Apr 2014 01:12:19 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigIAIxkWFM6B0c6/2dsb2JhbABagwZPqyKZboEaFnSCJQEBBYEJCw0LCSUPAkYTCAEBiDwOzTAXjXYRAQJVFoQjBIljjxKBOIUjKItTgz4wgTU X-IronPort-AV: E=Sophos;i="4.97,915,1389715200"; d="scan'208";a="217848880" Received: from unknown (HELO moriah.localdomain) ([58.7.71.58]) by icp-osb-irony-out1.iinet.net.au with ESMTP; 24 Apr 2014 09:12:10 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 5DAC87798 for ; Thu, 24 Apr 2014 09:12:09 +0800 (WST) X-Virus-Scanned: amavisd-new at lan.localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.lan.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hALDdJ4TOU1O for ; Thu, 24 Apr 2014 09:11:59 +0800 (WST) Received: from [192.168.44.3] (moriah [192.168.44.3]) by moriah.localdomain (Postfix) with ESMTP id A384018EA6 for ; Thu, 24 Apr 2014 09:11:58 +0800 (WST) Message-ID: <535864DD.10204@iinet.net.au> Date: Thu, 24 Apr 2014 09:11:57 +0800 From: William Kenworthy User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: bluez 5 not connecting References: <53578420.1040604@iinet.net.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: c3a1e960-774c-4ad8-8aca-8cab645bc4b9 X-Archives-Hash: 2a1e5711577de74bd8d9f75a28ea0927 On 04/24/14 01:06, James wrote: > William Kenworthy iinet.net.au> writes: > > >> The bluez-5 stack is causing me some problems. >> What am I missing/misunderstanding? > > These wireless protocols, have many versions (variants) and > nuances via the prticular hardware that is used. Some light > reading might better postion you? > > > https://www.usenix.org/legacy/event/woot07/tech/full_papers/ > spill/spill_html/index.html > > http://www.ti.com/tool/packet-sniffer > > net-wireless/bluez-hcidump (never tried this one) > > > I would think that there should be some open-source Bluetooth packet > sniffers that may help diagnose the problem. > > I was able to find : > > MAC Address Prefix Manufacturer > 001103 kawamura electric inc. > > > using the MAC address. Perhaps an email to their tech support > descriping your problems might help? > > I suggest you dissect the packets and hardware and look for the issue > to your problem. Can you move the BT device to a winblozs box and > see if it works? Amplifiers die all the time, particularly if they > are overheated or fed noisy power...... > > could be hardware or software related..... dissect the pieces, > > HTH, > good_hunting! > James > > I was able to get it working manually - gentoo's init scripts are out of date with bluez 5, blutoothctl is broken (or probably just poorly documented which equates to the same thing if the command doesn't work) . In bluetoothctl: power on scan on agent on default-agent pair trust exit In a shell: rfcomm bind rfcomm0 do serial port stuff with /dev/rfcomm0 rfcomm unbind rfcomm0 bluetoothctl connect command does not work - connects and immediately disconnects with an error gentoo's rfcomm initscript has removed the -f flag which bluez 5 does not have, but it also looks like the bind all in the 5.17 ebuild is also not supported by late bluez5 so it immediately exits and no rfcomm device is created. Ive adapted my python script to the changes now - but the pairing does not survive restarting bluetooth so I'll need an expect script to set it up each bluetooth re-init as it looks like there are no scripting hooks in bluetoothctl. BillK