linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bluez iphone connection
@ 2015-12-05 12:00 Steve Abner
  2015-12-07 14:24 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Abner @ 2015-12-05 12:00 UTC (permalink / raw)
  To: linux-bluetooth

Hi, I'm end user on both ubuntu 15.10, and LFS with 
kdbus,systemd-227,4.2 kernel.
I've connected both systems to iphone, but with big song and dance. 
First connected
to ubuntu, worked. Boot into LFS, use bluetoothctl, finally get it to 
connect.  Go back to
ubuntu, must delete, use bluetoothctl remove, start process over, 
finally get connected.
Boot LFS, cp over "info" as have done with trackpad. This cp is only 
work around I've found
so that you dont have to reset and start from scratch when rebooting. 
But I didn't
try to remove iphone and restart whole 30 min connection process on LFS. 
Go back
to ubuntu and it just refuses to connect, did not request new pairing on 
purpose, that's why
didn't attempt dance on LFS.
   Both systems I get:
Bluetooth: Unexpected continuation frame (len 0)
connect error: Too many levels of symbolic links (40)
   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.
   Apologies if wrong list, but only one that I found on bluetooth, linux.
Steve


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bluez iphone connection
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2015-12-07 14:24 UTC (permalink / raw)
  To: Steve Abner; +Cc: linux-bluetooth@vger.kernel.org

Hi Steve,

On Sat, Dec 5, 2015 at 2:00 PM, Steve Abner <pheonix.sja@att.net> wrote:
> Hi, I'm end user on both ubuntu 15.10, and LFS with kdbus,systemd-227,4.2
> kernel.
> I've connected both systems to iphone, but with big song and dance. First
> connected
> to ubuntu, worked. Boot into LFS, use bluetoothctl, finally get it to
> connect.  Go back to
> ubuntu, must delete, use bluetoothctl remove, start process over, finally
> get connected.
> Boot LFS, cp over "info" as have done with trackpad. This cp is only work
> around I've found
> so that you dont have to reset and start from scratch when rebooting. But I
> didn't
> try to remove iphone and restart whole 30 min connection process on LFS. Go
> back
> to ubuntu and it just refuses to connect, did not request new pairing on
> purpose, that's why
> didn't attempt dance on LFS.

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.

>   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.

>   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/

>   Apologies if wrong list, but only one that I found on bluetooth, linux.
> Steve
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bluez iphone connection
  2015-12-07 14:24 ` Luiz Augusto von Dentz
@ 2015-12-08  3:19   ` Steve Abner
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Abner @ 2015-12-08  3:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Luiz Augusto von Dentz



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-08  3:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).