Unable to receive messages but SDK works otherwise

Abierto
#906 0 comentarios 1 reacción 0 asignados Ver en GitHub

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
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Python
Estrellas
855
Forks
355
Merge medio
3 d 3 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshtastic/python

Todos los issues de meshtastic/python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.