BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connection
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- linux, python
- Domínio
- cli, documentation
Direção de pesquisa
Encontre o bloco de tratamento do erro DEVICE_NOT_FOUND da CLI e as dicas existentes de solução de problemas do Bluetooth; src/nimble/NimbleBluetooth.cpp oferece contexto sobre o comportamento de conexão única, mas não é necessariamente um arquivo a ser alterado. Adicione um item para Linux/bluez explicando a reconexão automática com dispositivos pareados e inclua a solução alternativa com bluetoothctl disconnect e ReconnectMode=none. Concluído significa que o erro da CLI identifica claramente o caso de reconexão automática e fornece uma correção acionável.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Environment: Ubuntu Linux with bluez, Meshtastic T3S3 on firmware 2.7.26, meshtastic CLI 2.7.8 from pip.
Repro
Step one. Pair and trust the node from the host, entering the PIN shown on the device screen:
bluetoothctl pair AA:BB:CC:DD:EE:FF
bluetoothctl trust AA:BB:CC:DD:EE:FF
Step two. Disconnect cleanly and reboot the machine, or let the node go to sleep.
Step three. Run the CLI:
meshtastic --ble name_or_address --info
The CLI reports "No Meshtastic BLE peripheral with identifier or address '...' found" (also seen as "Timed out waiting for connection completion"), and --ble-scan comes back empty. Meanwhile bluetoothctl info AA:BB:CC:DD:EE:FF shows "Connected: yes".
What I think is going on
This is the one-slot trap, not an adapter problem. Meshtastic nodes allow a single BLE connection and stop advertising while connected (single connectable advertising instance in src/nimble/NimbleBluetooth.cpp). bluez defaults to ReconnectMode=global, which silently reconnects bonded devices after a reboot or power event and never lets the slot go. Result: the node is connected-but-invisible. The CLI scan only sees advertising nodes, and this one isn't advertising.
Even published Linux guides run into it. This write-up (https://dustinrue.com/2025/12/connecting-to-a-meshtastic-node-using-bluetooth-from-linux/) hits the same behavior ("bluetoothctl staying connected to the node when it shouldn't have") and its advice is to reboot the machine, which works but masks the cause. As far as I can tell nobody has written down the mechanism, so it keeps catching people.
Workaround (verified)
In /etc/bluetooth/main.conf, under the General section, add:
ReconnectMode=none
then run:
systemctl restart bluetooth
The node stays free ("Connected: no") until a client actually connects, and the CLI connects normally.
Suggestion
The CLI already prints helpful hints for "BLE device not found", in the DEVICE_NOT_FOUND error handling block: Bluetooth disabled / deep sleep / out of range. A Linux-specific bonded auto-reconnect bullet would have saved me an afternoon. If a hint like that would be useful, I'm happy to open a small PR — a "Device is bonded and Bluetooth auto-reconnected (Linux/bluez)" bullet plus a bluetoothctl disconnect / ReconnectMode=none tip.
- Linguagem predominante
- Python
- Estrelas
- 855
- Forks
- 355
- Merge médio
- 3d 3h
- PRs com merge (30d)
- 12
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de meshtastic/python
-
Bug: Can't run on TermuxTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshtastic/python#969 ·
Mantenedores costumam responder em até 1 dia
-
good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
meshtastic/python#506 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
meshtastic/python#985 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Undocumented `--set` choicesTalvez já em andamento @Cryptoteep assumiu há 54 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
meshtastic/python#978 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
meshtastic/python#977 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de meshtastic/python
Issues semelhantes
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Talvez já em andamento @gouyu-hou assumiu hoje. Abertatriage/confirmed
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
agentscope-ai/agentscope#4397 ·
Mantenedores costumam responder em até 2 dias
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
NousResearch/hermes-agent#161712 ·
Mantenedores costumam responder em até 1 dia
-
[New Check]: postgresql_flexible_server_public_network_access_disabledTalvez já em andamento @pouria-l assumiu hoje. Abertafeature-request status/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
prowler-cloud/prowler#13615 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SACGF/variantgrid#2941 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
linkedin/Liger-Kernel#1730 ·
Mantenedores costumam responder em até 3 dias