Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dirkbeer opened this issue Feb 25, 2024 · 1 comment
Open

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

dirkbeer opened this issue Feb 25, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dirkbeer
Copy link

dirkbeer commented Feb 25, 2024

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.
@dirkbeer
Copy link
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.

@garthvh garthvh added the help wanted Extra attention is needed label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants