--ble-scan will crash
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- linux, python
- Área
- embedded-iot, networking
Línea de trabajo
Start in meshtastic/ble_interface.py at find_device (around line 158), which raises BLEError when the address is not found, and at connect (around line 178) that calls it. The --ble-scan path is in meshtastic/main.py common() near line 1363. Reproducing needs a physical Meshtastic node and a Linux Bluetooth stack, so first check whether the scan returns any devices at all. Done means the scan or direct-address connect succeeds on Linux, or the error path explains the failure clearly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I'm running the Meshtastic CLI from source meshtastic_cli/bin/activate using Linux Mint. The user is in a Bluetooth group.
USB connection works fine. However, Bluetooth connection fails.
I'm sure the node is fine, as Bluetooth connection works fine on Android.
I've tried searching and specifying the MAC address, but it's still ineffective.
Does anyone know how to solve this problem?
Node: faketec v5
Version: 2.6.11.60ec05e
Distro: Linux Mint 22.2 cinnamon 6.4.8
Kernel version: Linux 6.14.0-35-generic
Python version: 3.12.3
Meshtastic CLI Version 2.7.4
``` INFO file:ble_interface.py scan line:129 Scanning for BLE devices (takes 10 seconds)...
Traceback (most recent call last):
File "/home/ghost/meshtastic_cli/bin/meshtastic", line 7, in <module>
sys.exit(main())
^^^^^^
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/__main__.py", line 2203, in main
common()
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/__main__.py", line 1363, in common
client = BLEInterface(
^^^^^^^^^^^^^
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/ble_interface.py", line 64, in __init__
raise e
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/ble_interface.py", line 60, in __init__
self.client = self.connect(address)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/ble_interface.py", line 178, in connect
device = self.find_device(address)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ghost/meshtastic_cli/lib/python3.12/site-packages/meshtastic/ble_interface.py", line 158, in find_device
raise BLEInterface.BLEError(
meshtastic.ble_interface.BLEInterface.BLEError: No Meshtastic BLE peripheral with identifier or address 'CF:94:E9:10:9F:50' found. Try --ble-scan to find it.
- Lenguaje dominante
- Python
- Estrellas
- 855
- Forks
- 355
- Merge medio
- 3 d 3 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
meshtastic/python#972 ·
Los mantenedores suelen responder en 1 día
-
Bug: Can't run on TermuxPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
meshtastic/python#969 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
meshtastic/python#506 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
meshtastic/python#985 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Undocumented `--set` choicesPosiblemente ocupada @Cryptoteep la tomó hace 54 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
meshtastic/python#978 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de meshtastic/python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sagemathinc/sagebrush#2768 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vllm-project/vllm-ascend#23791 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
QuantConnect/lean-cli#792 ·
Los mantenedores suelen responder en 1 día