Deal with third-party packets #22
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: W1CDN/aprs_tool#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Under #20 I added "subpacket" as a field just to get them into the DB, but it's not a great solution.
Subpackets need to go into the database right, but I need to make sure of how APRS says they are to be used.
Spec seems pretty clear, and seems to match what
aprslib
is doing. I just need to insert thesubpacket
into the db, not the original one.It's also probably useful to keep the original header packet around in case it is needed for debugging (http://www.aprs.org/doc/APRS101.PDF).
For example:
K0RQ-1>APDW16,KB0UGF-3,WIDE1,WIDE2-1:}KD0IOE>APRX29,TCPIP,K0RQ-1*:;KD0IOE-R *111111z4651.16N/09652.75WrPHG41504/444.625MHz +5 CC1 https://kd0ioe.com/repeater
Header:
K0RQ-1>APDW16,KB0UGF-3,WIDE1,WIDE2-1:
Packet to store or map:
KD0IOE>APRX29,TCPIP,K0RQ-1*:;KD0IOE-R *111111z4651.16N/09652.75WrPHG41504/444.625MHz +5 CC1 https://kd0ioe.com/repeater
TODO:
subpacket
field in the main fields of the dbheader
fieldBut to really show where the packets are coming from, you need to update the full path. In the example above, it should be
KD0IOE>APRX29,TCPIP,K0RQ-1,KB0UGF-3
right?
Or here's another:
K0RQ-1>APDW16,KB0UGF-3,WIDE1,WIDE2-1:}KD0IOE>APRX29,TCPIP,K0RQ-1*:;145.35-FM*111111z4652.05N/09645.35Wr145.350MHz T123 R30m W0ILO Fargo Mhd
https://www.aprs-is.net/IGateDetails.aspx and http://aprsisce.wikidot.com/me-not-3rd.
Yeah, aprslib parses very simply and doesn't seem to adjust the path: https://github.com/rossengeorgiev/aprs-python/blob/master/aprslib/parsing/thirdparty.py
It's important to keep the header packet separately because it tells you that the header station is still operating as of whatever date and it can be mapped (if we have a last position for the station). The you need to keep the header info available so the routing is correct. In the above example, KB0UGF-3 would otherwise be dropped.
Still have this to do after #43: