Skip to content

meshtastic --ble stuck after "Connected to radio" #491

Open

Description

@dirkbeer

Hi - Really appreciate the BLE support!

I'm having a problem where meshtastic --ble stops after connecting to the radio and nothing further happens:

root@cottonmouth:~# . meshtastic/bin/activate
(meshtastic) root@cottonmouth:~# bluetoothctl devices
Device F7:BE:57:1F:90:05 dto_9005
(meshtastic) root@cottonmouth:~# meshtastic --ble-scan
Found: name='dto_9005' address='F7:BE:57:1F:90:05'
BLE scan finished
(meshtastic) root@cottonmouth:~# meshtastic --ble dto_9005
Connected to radio

Once I Ctrl-C out of that, meshtastic --ble-scan can no longer see the device, even though it is still present:

^CException ignored in: <module 'threading' from '/usr/lib/python3.11/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1583, in _shutdown
    lock.acquire()
KeyboardInterrupt:
(meshtastic) root@cottonmouth:~# meshtastic --ble-scan
BLE scan finished
(meshtastic) root@cottonmouth:~# bluetoothctl devices
Device F7:BE:57:1F:90:05 dto_9005

Running it with debug on, it looks like it is communicating successfully in the background: https://pastebin.com/M7XHP0K6

Can you help? Here's my info:

meshtastic --support

 System: Linux
   Platform: Linux-6.1.0-rpi8-rpi-v8-aarch64-with-glibc2.36
   Release: 6.1.0-rpi8-rpi-v8
   Machine: aarch64
   Encoding (stdin): utf-8
   Encoding (stdout): utf-8
 meshtastic: v2.2.22
 Executable: /root/meshtastic/bin/meshtastic
 Python: 3.11.2 CPython GCC 12.2.0

meshtastic --info

Warning: No Meshtastic devices detected.

Activity

  1. dirkbeer commented on Feb 25, 2024

    @dirkbeer
    Author

    Looks like I was just using it wrong, didn't realize that the --ble dto_9005 has to be included with every command. For example,

    meshtastic --ble dto_9005 --nodes

    works just fine.

  2. ianmcorvidae commented on Jun 8, 2024

    @ianmcorvidae
    Contributor

    So yeah, the --ble bit does need to be included with every command. If you're still seeing it hung after Connected to radio, you could try running with --debug, which will at least show if it's still attempting to do stuff or not. That might narrow down what's causing it to hang up, potentially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLEbluetooth-related issueshelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions