ATAK_PLUGIN payload ParseFromString error

Đang mở
#912 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
networking

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
855
Fork
355
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/python

Tất cả issue của meshtastic/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.