Unable to receive messages but SDK works otherwise

オープン
#906 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

The report concerns the meshtastic.receive pypubsub topic in the Python SDK's serial interface, so start with how meshtastic.serial_interface.SerialInterface dispatches incoming packets. Reproducing needs a Meshtastic device connected over USB that receives direct text messages. The issue has no comments or assignee, and reproducing it depends on hardware, so a newcomer would need a maintainer's direction first. Done means text messages sent to the node reach the on_receive callback.

索引モデルが issue の本文から書いたものです。

説明

Using the following dead simple code based on countless examples, fails for me when using the Meshtastic Python SDK and the Seeed Wio Tracker L1 Pro.

import time
import meshtastic
import meshtastic.serial_interface
from pubsub import pub


def on_receive(packet, interface):
    print(packet)

pub.subscribe(on_receive, "meshtastic.receive")

interface = meshtastic.serial_interface.SerialInterface()

print("Waiting for messages...")
while True:
    time.sleep(5)

This will report occasional telemetry and position messages from various nodes but never any messages sent to the node. Received messages appear on the node's screen and can be read there but are never reported via the receiver hook. The node is connected by USB.

Note that I can retrieve the node list, send messages and interact with the node config via the Python SDK - I just can't seem to receive messages.

Things I've tried:

  • Various meshtastic SDK versions in the 2.6.x and 2.7.x series
  • Python versions 3.11, 3.12 and 3.13.
  • Tried with both L1 Pros I have
  • Firmware versions 2.715 and 2.7.19 (no difference)
  • Usiing pypubsub's snoop feature to see all events - there are just none for incoming text messages.

I feel like I must be missing something. Any pointers on how to troubleshoot this?

主要言語
Python
スター
855
フォーク
355
平均マージ
3日 3時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshtastic/python のほかの issue

meshtastic/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。