--ble-scan will crash
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 15/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- linux, python
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 855
- フォーク
- 355
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
meshtastic/python のほかの issue
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
meshtastic/python#972 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Can't run on Termux対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meshtastic/python#969 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
meshtastic/python#506 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
meshtastic/python#985 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Undocumented `--set` choices対応中かも @Cryptoteep が 54 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
meshtastic/python#978 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
meshtastic/python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sagemathinc/sagebrush#2768 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vllm-project/vllm-ascend#23791 ·
メンテナーはふだん 1 日以内に返信
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/lean-cli#792 ·
メンテナーはふだん 1 日以内に返信