Skip to content

BLE connection broken for Debian 13 #874

@andi-h

Description

@andi-h

I use the python library open_gopro 0.22.0 and try to open a BLE connection using

async with WirelessGoPro(target="GoPro 2614", interfaces={WirelessGoPro.Interface.BLE}) as gopro:

I get this exception:

Traceback (most recent call last):
  File "./open_gopro/gopro_wireless.py", line 395, in open
  File "./open_gopro/gopro_wireless.py", line 616, in _open_ble
  File "./open_gopro/network/ble/client.py", line 120, in open
  File "./open_gopro/network/ble/adapters/bleak_wrapper.py", line 282, in pair
  File "./pexpect/spawnbase.py", line 354, in expect
  File "./pexpect/spawnbase.py", line 383, in expect_list
  File "./pexpect/expect.py", line 181, in expect_loop
  File "./pexpect/expect.py", line 144, in timeout
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x701f16a8>
command: /usr/bin/bluetoothctl
args: ['/usr/bin/bluetoothctl']
buffer (last 100 chars): b'\r\n\x1b[0;94m[GoPro 2614]> \x1b[0m' 
before (last 100 chars): b'\r\n\x1b[0;94m[GoPro 2614]> \x1b[0m'
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 21404
child_fd: 25
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: <_io.BufferedWriter name='/tmp/pexpect.log'>
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: re.compile(b'#')

/tmp/pexpect.log is:

Waiting to connect to bluetoothd...
^[[0;94m[bluetoothctl]> ^[[0m        ^H^H^H^H^H^H^H^H
^[[0;94m[GoPro 2614]> ^[[0m

Agent registered
^[[0;94m[GoPro 2614]> ^[[0mversion
version
Version 5.82
^[[0;94m[GoPro 2614]> ^[[0mdevices Paired
devices Paired
^[[0;94m[GoPro 2614]> ^[[0m

So it never reaches the expected #. Even if i start it manually on top-level I get >:

$ sudo bluetoothctl
Agent registered
[bluetoothctl]> version
Version 5.82
[bluetoothctl]>

Hardware

  • Camera: Hero13
  • Raspberry Pi Zero 2W (latest Raspberry OS based on Deban 13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds to be reviewed and assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions