All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Abner <pheonix.sja@att.net>
To: linux-bluetooth@vger.kernel.org
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Subject: Re: bluez iphone connection
Date: Mon, 7 Dec 2015 22:19:01 -0500	[thread overview]
Message-ID: <56664C25.8040308@att.net> (raw)
In-Reply-To: <CABBYNZ+ZtsMcnq2gaGcBeqcAXOCtwsRh9+wC0Y3qv_OV8XL8gA@mail.gmail.com>



On 12/07/2015 09:24 AM, Luiz Augusto von Dentz wrote:
> What kind of setup is this, can you use a different adapter per
> system, Bluetooth pair work in relation to the adapter address so the
> iPhone has no idea you are switching between systems.
One computer, two operating systems, one common controller. I really like
the idea that the phone or trackpad shouldn't care about switching systems.
Problem I have is Bluez has to set pairing, not user, so one system sets 
with
pin of xxxx, other with yyyy, device seems to say machine A, so I'll except
pin xxxx, but not yyyy. So copy xxxx to replace yyyy. If bluez asked for pin
then could tell it instead of copy it, but copy easier then remembering 
hundreds
of pins.
>> >   Both systems I get:
>> >Bluetooth: Unexpected continuation frame (len 0)
>> >connect error: Too many levels of symbolic links (40)
> Im afraid there is something wrong which the way you copy pairing
> details from one system to the other, anyway it is probably not
> recommended to do that in the first place.
This only occurs with iphone, not a trackpad. So copying the pin should
not be an issue. The pin is encoded, don't know by which crypto method.
Plus, one way, phone to pc works, pc to phone doesn't.
>> >   Honestly forget which applies to connection from pc to phone, vs. phone to
>> >pc.
>> >If someone could direct me to documentation, which I cant find through web
>> >searching,
>> >or answer this, I'd be thankful. Hopefully, an automated process for end
>> >users to simply connect to devices, would be nice.
> There is plenty of example on how to pair, gnome has done that if you
> need a graphical interface and bluetoothctl is also capable of doing
> it, but Im afraid the problem with your setup so I suggest you use a
> different adapter per system if possible or mount the same partition
> in the place of /var/lib/bluetooth so the system are synchronized when
> you reboot/
   ArchLinux normally has most info, debian not too bad, one guy's 
article helped me
to create a systemd service, based on his BT keyboard issues.
   And I don't see why one controller must be dedicated per OS.
   Binding to one partition, not an option. When LFS moves to another 
machine
it will never see that partition. At which time it will be a different 
controller, but I am
not at that development stage. I assume same hostname, yet different 
controller will
provide a new connection slot on phone, thereby not creating an issue of 
pins. This
would be a different /var/lib/bluetooth/<controller>/<same.MAC>/info.

But all said, this points to bluez. I haven't even asked about its other 
issues.
Both systems:
    Failed to obtain handles for "Service Changed" characteristic
One with multiple:
    Not enough free handles to register service

Was just working out connecting. I have gotten it to where I can switch 
between OSes
and connect by phone issuing the connect command. Both are accompanied by:

Bluetooth: Unexpected continuation frame (len 0)

The ubuntu can issue, through graphical means (and NetworkManager), 
connection.
The LFS system, no graphical yet, just fb/gpu terminal, can not issue 
connection.
Bluetoothctl has the "info", trusted, paired, etc, but refuses to 
connect. I have connected
by "remove", restart phone and computer, issue new pin. Of course the 
means that ubuntu
will no longer work until I re-pair, new pin, which without the copy 
means I must, remove,
reboot, re-pair the LFS, and around I go.
   Now if someone knows exact sequence of connection of a paired device 
using either
hcitool or bluetoothctl this would be helpful. I've tried agent on, 
pairable on, discoverable on,
pair <mac>, (already paired it complains), connect <mac>, different 
sequences of those
commands.
   Some is new, just added in sound today (so not researched yet):
bluetoothd[269]: a2dp-source profile connect failed for 
70:3E:AC:50:D8:89: Protocol not available
kernel: Bluetooth: Unexpected continuation frame (len 0)
bluetoothd[269]: Can't open input device: No such file or directory (2)
bluetoothd[269]: AVRCP: failed to init uinput for 70:3E:AC:50:D8:89
bluetoothd[269]: Invalid folder length
   I am by no means an expert, but logically and process of elimination 
don't point
to pin, nor the concept of one controller per OS, thou broadcom might 
like that idea.
A missing module, a support library maybe?
Steve

      reply	other threads:[~2015-12-08  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-05 12:00 bluez iphone connection Steve Abner
2015-12-07 14:24 ` Luiz Augusto von Dentz
2015-12-08  3:19   ` Steve Abner [this message]

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=56664C25.8040308@att.net \
    --to=pheonix.sja@att.net \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.