ATAK_PLUGIN payload ParseFromString error

未关闭
#912 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
networking

调研方向

Start in the ATAK_PLUGIN receive path, where on_receive logs 'Failed to decode ATAK_PLUGIN protobuf' for a TAKPacket. Take the raw payload bytes from the log (starting 0x08 0x01 0x12 0x3e) and try parsing them against meshtastic.protobuf.TAKPacket to find the field or schema mismatch. Done means the packet decodes, or the mismatch is documented and the handler fails gracefully.

由索引模型根据 Issue 内容生成。

描述

This error is reported to Meshtastic Gateway application but its getting thrown from python API. So opening a ticket here.

Env
MacOS/Meshtastic unit communicating over Serial port. meshtastic unit is communicating with another meshtastic unit part of Meshtastic APP<->Meshtastic Plugin <-> ATAK App on an Android device.

Whenever a chat message originates from ATAK and received via meshtastic unit, this error occurs

Command :
tak-meshtastic-gateway -s /dev/cu.usbserial-0001 -d

Error:
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_receive - 358 - DEBUG - Failed to decode ATAK_PLUGIN protobuf: Error parsing message with type 'meshtastic.protobuf.TAKPacket'

Copied from log
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - INFO | ??:??:?? 11768 Tell client we have new packets 441
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - DEBUG | ??:??:?? 11768 [SerialConsole] FromRadio=STATE_SEND_PACKETS
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - DEBUG | ??:??:?? 11768 [SerialConsole] phone downloaded packet (id=0x7b580d15 fr=0x7c5cb208 to=0xffffffff, transport = 1, WantAck=0, HopLim=7 Ch=0x0 Portnum=72 rxSNR=12.5 rxRSSI=-46 hopStart=7 rela
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_receive - 341 - DEBUG - {'from': 2086449672, 'to': 4294967295, 'decoded': {'portnum': 'ATAK_PLUGIN', 'payload': b'\x08\x01\x12>\n\n\x80us\xe6\xb3\xa0AA\xe04\x120\x80Nu\xba\xbe\x80\xb4Eg\x9b_s\xd5u\x81\xeeX\xfc\x91I\xedS\xd74Z"\x82y\x04\xb4E\x023Yh\x8a\t\xe1\xb2\xd1\x15\x1e\xb7\xc1)\x88\xce\xe52\x15\n\x06\xcc \xfa\x0e\x82\x8b\x12\x0b\x84\xf1\xc2\x0e{L \xddW\x9d\x17', 'bitfield': 0}, 'id': 2069368085, 'rxSnr': 12.5, 'hopLimit': 7, 'rxRssi': -46, 'hopStart': 7, 'relayNode': 8, 'transportMechanism': 'TRANSPORT_LORA', 'raw': from: 2086449672
to: 4294967295
decoded {
portnum: ATAK_PLUGIN
payload: "\010\001\022>\n\n\200us\346\263\240AA\3404\0220\200Nu\272\276\200\264Eg\233_s\325u\201\356X\374\221I\355S\3274Z"\202y\004\264E\0023Yh\212\t\341\262\321\025\036\267\301)\210\316\3452\025\n\006\314 \372\016\202\213\022\013\204\361\302\016{L \335W\235\027"
bitfield: 0
}
id: 2069368085
rx_snr: 12.5
hop_limit: 7
rx_rssi: -46
hop_start: 7
relay_node: 8
transport_mechanism: TRANSPORT_LORA
, 'fromId': '!7c5cb208', 'toId': '^all'}
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_receive - 345 - INFO - Got a message from !7c5cb208
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_receive - 358 - DEBUG - Failed to decode ATAK_PLUGIN protobuf: Error parsing message with type 'meshtastic.protobuf.TAKPacket'
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - dm_socket_thread - run - 42 - WARNING - timed out
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - DEBUG | ??:??:?? 11768 [RadioIf] Started Tx (id=0x7b580d15 fr=0x7c5cb208 to=0xffffffff, transport = 1, WantAck=0, HopLim=6 Ch=0x70 encrypted len=111 rxSNR=12.5 rxRSSI=-46 hopStart=7 relay=0x3
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - DEBUG | ??:??:?? 11768 [RadioIf] 0 packets remain in the TX queue
[2026-04-01 11:31:24] - TAK Meshtastic Gateway[97136] - tak_meshtastic_gateway - on_log_message - 375 - INFO - DEBUG | ??:??:?? 11768

主要语言
Python
星标
855
派生
355
平均合并
3 天 3 小时
30 天内合并 PR
12

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

meshtastic/python 的其他 Issue

查看 meshtastic/python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。