Serial on FreeBSD (/dev/ttyU0)
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
- 22/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- embedded-iot
Línea de trabajo
The connection code is in meshtastic/serial_interface.py: the debug line 'Connecting to' in init is followed by a serial.Serial(...) call with exclusive=True, and a tcsetattr block is platform-specific. Start by reproducing on a FreeBSD box or by tracing which pyserial backend opens /dev/ttyU0 and where it stalls. Done means the interface connects to the device on FreeBSD and the CLI gets node information back.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hey,
I decided to give this a shot on FreeBSD, it almost seems like it wants to work:
ugen0.3: <Espressif Systems BQ Station G2> at usbus0 (disconnected)
umodem0: at uhub0, port 2, addr 6 (disconnected)
umodem0: detached
ugen0.3: <Espressif Systems BQ Station G2> at usbus0
umodem0 on uhub0
umodem0: <Espressif Systems BQ Station G2, class 239/2, rev 2.00/1.00, addr 7> on usbus0
umodem0: data interface 1, has no CM over data, has no break
though it doesn't do anything:
➜ sq meshtastic --debug --port /dev/ttyU0
DEBUG file:__main__.py common line:1272 Not logging serial output
DEBUG file:serial_interface.py __init__ line:47 Connecting to /dev/ttyU0
So I started looking at the code for it and noticed the termios / tcsetattr and it dawned on me that it probably has something to do with that because I've had to use different termios settings for FreeBSD before. I noticed there's some tcsetattr stuff here for Windows specifically:
https://github.com/meshtastic/python/blob/master/meshtastic/serial_interface.py#L51
from the pyserial project:
The module named "serial" automatically selects the appropriate backend.
yeah evidently not if you're having to use tcsetattr :) but yeah I'm at a loss for what backend it might be trying to use:
self.stream = serial.Serial(
self.devPath, 115200, exclusive=True, timeout=0.5, write_timeout=0
)
since we don't really get anymore log messages after
logging.debug(f"Connecting to {self.devPath}")
I'll take a look at this a bit later but just in case I forget, here's a ticket
- 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