From 82b6d126a5a0506994ea46a1db4b5f97bc762868 Mon Sep 17 00:00:00 2001 From: dscp46 Date: Fri, 14 Mar 2025 07:44:22 +0100 Subject: [PATCH 1/2] [agw] Use UI Frames instead of I Frames --- d_rats/agw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d_rats/agw.py b/d_rats/agw.py index 3adeda0..9a70907 100755 --- a/d_rats/agw.py +++ b/d_rats/agw.py @@ -696,7 +696,7 @@ def transmit_data(conn, dcall, spath, data): 0x00, # Space for flag (?) dst, # Dest Call src, # Source Path - 0x3E, # Info + 0x03, # Unnumbered Info 0xF0) # PID: No layer 3 data_frame += data From f55f343e2a8a14ec0783acecfaea285b4a6fa5ff Mon Sep 17 00:00:00 2001 From: dscp46 Date: Fri, 14 Mar 2025 07:48:12 +0100 Subject: [PATCH 2/2] [agw] Fix AX.25 addresses encoding format --- d_rats/agw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d_rats/agw.py b/d_rats/agw.py index 9a70907..102d199 100755 --- a/d_rats/agw.py +++ b/d_rats/agw.py @@ -683,14 +683,14 @@ def transmit_data(conn, dcall, spath, data): # left one bit dst_str = "".join([chr(ord(x) << 1) for x in call]) dst_str += encode_ssid(sid) - dst = dst_str.encode('utf-8', 'replace') + dst = bytes(dst_str, 'latin1') src_str = "" for scall in spath: call, sid = ssid(scall) src_str += "".join([chr(ord(x) << 1) for x in call]) src_str += encode_ssid(sid, spath[-1] == scall) - src = src_str.encode('utf-8', 'replace') + src = bytes(src_str, 'latin1') data_frame = struct.pack("!B7s%isBB" % len(src), 0x00, # Space for flag (?)