From: William Kenworthy <billk@iinet.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: bluez 5 not connecting
Date: Sun, 27 Apr 2014 11:14:11 +0800 [thread overview]
Message-ID: <535C7603.709@iinet.net.au> (raw)
In-Reply-To: <201404261933.16917.michaelkintzios@gmail.com>
On 04/27/14 02:33, Mick wrote:
> On Thursday 24 Apr 2014 02:11:57 William Kenworthy wrote:
>
>> 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 <dev_id>
>> trust <dev_id>
>> exit
>>
>> In a shell:
>> rfcomm bind rfcomm0 <dev_id>
>>
>> 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
>
> Thanks BillK, your suggestions above helped somewhat, because I was able to
> connect with my phone, but it didn't get me far enough. I was not able to
> connect with rfcomm to my mobile. When I ran 'pon <connection_name>' pppd
> started, but I got errors like:
>
> Apr 26 18:15:12 dell_xps chat[29579]: -- write failed: Transport endpoint is
> not connected
> Apr 26 18:15:12 dell_xps chat[29579]: Failed
>
>
> This was despite the fact that I had created manually the rfcomm0 device and
> binded it to the bdaddr of my phone as you suggested.
>
> Googling for this error revealed that this is because the rfcomm code has
> changed - but there is a patch which may fix things:
>
> http://comments.gmane.org/gmane.linux.bluez.kernel/42303
>
>
> I ran out of time and did not try 'rfcomm connect' instead of 'rfcomm bind' to
> see if it makes a difference in my case.
>
> FYI, I'm on net-wireless/bluez-5.15 and kernel 3.12.13-gentoo.
>
I just upgraded to 3.12.13 and it stopped working with the same error
you have.
I did see some other messages saying that certain kernel versions are
broken but I'll now need to look into that now.
BillK
next prev parent reply other threads:[~2014-04-27 3:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 9:13 [gentoo-user] bluez 5 not connecting William Kenworthy
2014-04-23 11:59 ` covici
2014-04-23 12:48 ` William Kenworthy
2014-04-23 13:26 ` covici
2014-04-23 17:06 ` [gentoo-user] " James
2014-04-24 1:11 ` William Kenworthy
2014-04-26 18:33 ` Mick
2014-04-27 3:14 ` William Kenworthy [this message]
2014-04-27 7:27 ` William Kenworthy
2014-05-28 18:42 ` Mick
2014-05-28 19:02 ` Samuli Suominen
2014-05-28 22:28 ` Mick
2014-05-28 23:05 ` William Kenworthy
2014-05-29 6:27 ` Mick
2014-05-29 10:18 ` Mick
2014-05-29 22:32 ` William Kenworthy
2014-05-30 5:34 ` Mick
2014-06-01 19:20 ` Mick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=535C7603.709@iinet.net.au \
--to=billk@iinet.net.au \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox