Serial on FreeBSD (/dev/ttyU0)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- embedded-iot
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 855
- 派生
- 355
- 平均合并
- 3 天 3 小时
- 30 天内合并 PR
- 12
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
meshtastic/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
meshtastic/python#972 ·
维护者通常 1 天内回复
-
Bug: Can't run on Termux可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 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 个 reaction ·
维护者通常 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 天内回复