Commit Graph

207 Commits

Author SHA1 Message Date
Joerg Schultze-Lutter 35cd062348 Removed unnecessary comments 2021-09-09 23:13:24 +02:00
Joerg Schultze-Lutter 93b0101305 Added test script for new APRS 'message' format field 'ackMsgNo' 2021-09-09 23:08:24 +02:00
Joerg Schultze-Lutter cf2e7162b0 Fixed final msg parser bug when no msgno was present 2021-09-09 22:41:09 +02:00
Joerg Schultze-Lutter ba2fbe0ae8 ackMsgNo support (http://www.aprs.org/aprs11/replyacks.txt)
Decode the 'new' ackMsgNo for ack/rej responses and standard
APRS messages while still honoring the original format from aprs101.pdf

The following assumptions apply when handling APRS messages in general:

Option 1: no message ID present:
    send no ACK
    outgoing messages have no msg number attachment
        Example data exchange 1:
        DF1JSL-4>APRS,TCPIP*,qAC,T2PRT::WXBOT    :94043
        WXBOT>APRS,qAS,KI6WJP::DF1JSL-4 :Mountain View CA. Today,Sunny High 60

        Example data exchange 2:
        DF1JSL-4>APRS,TCPIP*,qAC,T2SPAIN::EMAIL-2  :blah@gmail.com Hallo
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :Email sent to blah@gmail.com

Option 2: old message number format is present: (example: msg{12345)
    Send ack with message number from original message (ack12345)
    All outgoing messages have trailing msg number ( {abcde ); can be numeric or
    slphanumeric counter. See aprs101.pdf chapter 14
        Example data exchange 1:
        DF1JSL-4>APRS,TCPIP*,qAC,T2SP::EMAIL-2  :blah@gmail.com Hallo{12345
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :ack12345
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :Email sent to blah@gmail.com{891
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::EMAIL-2  :ack891

        Example data exchange 2:
        DF1JSL-4>APRS,TCPIP*,qAC,T2CSNGRAD::EMAIL-2  :blah@gmail.com{ABCDE
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :ackABCDE
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :Email sent to blah@gmail.com{893
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::EMAIL-2  :ack893

Option 3: new messages with message ID but without trailing retry msg ids: msg{AB}
    Do NOT send extra ack
    All outgoing messages have 2-character msg id, followed by message ID from original message
    Example:
    User sends message "Hello{AB}" to MPAD
    MPAD responds "Message content line 1{DE}AB" to user
    MPAD responds "Message content line 2{DF}AB" to user

    AB -> original message
    DE, DF -> message IDs generated by MPAD

        Example data exchange 1:
        DF1JSL-4>APRS,TCPIP*,qAC,T2NUERNBG::WXBOT    :99801{AB}
        WXBOT>APRS,qAS,KI6WJP::DF1JSL-4 :Lemon Creek AK. Today,Scattered Rain/Snow and Patchy Fog 50% {QL}AB
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::WXBOT    :ackQL}AB
        WXBOT>APRS,qAS,KI6WJP::DF1JSL-4 :High 40{QM}AB
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::WXBOT    :ackQM}AB

        Example data exchange 2:
        DF1JSL-4>APRS,TCPIP*,qAC,T2SPAIN::EMAIL-2  :blah@gmail.com Hallo{AB}
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :Email sent to blah@gmail.com{OQ}AB
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::EMAIL-2  :ackOQ}AB

Option 4: new messages with message ID and with trailing retry msg ids: msg{AB}CD
    Follow the instructions as per http://www.aprs.org/aprs11/replyacks.txt

        Example data exchange 1:
        DF1JSL-4>APRS,TCPIP*,qAC,T2CZECH::WXBOT    :99801{LM}AA
        WXBOT>APRS,qAS,KI6WJP::DF1JSL-4 :Lemon Creek AK. Today,Scattered Rain/Snow and Patchy Fog 50% {QP}LM
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::WXBOT    :ackQP}LM
        WXBOT>APRS,qAS,KI6WJP::DF1JSL-4 :High 40{QQ}LM
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::WXBOT    :ackQQ}LM
        Example data exchange 2:
        DF1JSL-4>APRS,TCPIP*,qAC,T2SP::EMAIL-2  :blah@gmail.com Welt{DE}FG
        EMAIL-2>APJIE4,TCPIP*,qAC,AE5PL-JF::DF1JSL-4 :Email sent to blah@gmail.com{OS}DE
        DF1JSL-4>APOSB,TCPIP*,qAS,DF1JSL::EMAIL-2  :ackOS}DE
2021-09-09 22:13:33 +02:00
Rossen Georgiev f5776bf2f7 ci: add py3.9 2021-02-17 22:19:40 +00:00
Rossen 55d85c6bc5
Move to Github Actions (#59) 2021-01-21 23:27:50 +00:00
Rossen Georgiev 097ba853c4 bump v0.6.37 2019-10-26 20:17:21 +01:00
Rossen Georgiev 512d97122c fix StopIteration breaking a test on py37+ 2019-10-08 20:02:24 +01:00
Rossen Georgiev 2f0f74a06d fix SyntaxWarning for py38 and remove py33 on travis 2019-10-08 19:42:53 +01:00
Rossen Georgiev c3c886e5c6 fix #54; getting a float instead of integer 2019-10-08 19:38:17 +01:00
Rossen Georgiev 5a84e5fd0b travis: remove py2.6 add py3.7 2019-06-02 11:24:47 +01:00
Rossen Georgiev 94b89a6da4 parsing: fix incorrect parsing of msgNo
msgNo should accept alphanumeric characters

fix #36
2018-01-20 14:55:23 +00:00
Rossen Georgiev acb4c66ff9 fix #39; typos 2018-01-20 14:38:23 +00:00
Rossen Georgiev 39a9c0a1a4 fix #35 #lines not being filtered on python3 2017-09-28 21:15:14 +01:00
Rossen Georgiev b6d67fd66d docs: fix print syntax in example
Fixes #32
2017-09-23 13:35:01 +01:00
Bryce Salmi 96d914b29d Initial telemetry packet report (#27) 2017-03-19 11:48:09 +00:00
Rossen Georgiev 7d5dafa649 PositionReport: validate lat and long
added input validation for latitude and longitude
2017-03-12 12:33:13 +02:00
Liu Huayu 9cee09b7a8 Correct param name in examples docs (#24) 2017-03-05 03:33:56 +00:00
Rossen Georgiev b1939176c6 add py3.6 + nightly to travis 2017-02-21 19:46:12 +02:00
Rossen Georgiev f6a952a109 bump to v0.6.46 2017-01-28 23:24:20 +02:00
Rossen Georgiev 8a3a677c07 fix parsing of message ACK/REJ; #23 2017-01-28 23:22:21 +02:00
Rossen Georgiev ef5ecb8db5 scrutinizer enable code rating 2016-09-08 23:49:47 +03:00
Rossen Georgiev aaa1848586 docs: fix repo link 2016-08-16 22:50:03 +01:00
Rossen Georgiev 0017a7cc11 update documetation links to rtd; #20 2016-08-16 22:33:58 +01:00
Rossen Georgiev 5563a6d8c7 refactor total_seconds() for py2.6 comp 2016-08-16 22:28:00 +01:00
Rossen Georgiev 566446bfd7 fix skip_login check being reversed 2016-08-16 22:22:24 +01:00
Rossen Georgiev 9ca16d077d docs: removed unused plugins 2016-08-16 22:14:48 +01:00
Rossen Georgiev 5093287b32 renamed req.txt to requirements.txt 2016-08-16 22:14:08 +01:00
Rossen Georgiev 2d0560ce16 bump to v0.6.45 2016-08-16 22:08:50 +01:00
Rossen Georgiev 0964d83097 added parameter 'skip_login', #19
doesn't attempt to login, useful when using software such as xastir
2016-08-16 22:07:32 +01:00
Rossen Georgiev 9e6c292422 fix incorrect caputation of timestamp in some cases 2016-08-16 21:50:21 +01:00
Rossen Georgiev 8abcc85761 fix aprs.inet.IS logger name 2016-03-17 21:42:41 +00:00
Rossen Georgiev 202dc8fa0e fix value error when parsing course & speed 2016-03-17 21:22:55 +00:00
Rossen Georgiev 0ea9f1dede fix undefined packet reference in parsing.position 2016-03-17 20:54:49 +00:00
Rossen Georgiev 20e35f018c fix setup.py not including subpackages 2016-03-04 09:34:29 +00:00
Rossen Georgiev 416f80d509 added 'make docs' 2016-03-04 08:00:58 +00:00
Rossen Georgiev e42eb7220e fix broken test_timestamp_valid 2016-03-04 07:47:54 +00:00
Rossen Georgiev 2724d6682a fix fail to parse telem config with end whitespace 2016-03-04 07:42:07 +00:00
Rossen Georgiev 44dd7da2ed added tests for parsing.common #15 2016-01-27 13:55:10 +00:00
Rossen Georgiev 10ce45030d renamed test_parse_header to test_parse_common 2016-01-27 09:00:37 +00:00
Rossen Georgiev 22d0823091 added tests for parsing.misc 2016-01-27 08:56:03 +00:00
Rossen Georgiev 68190860b7 removed _ prefix from most parse functions 2016-01-27 07:47:53 +00:00
Rossen Georgiev a27c6f3ffe made sendall accept APRSPacket instances 2016-01-26 17:44:11 +00:00
Rossen Georgiev 3a83822674 tiny reorganization in parsing.weather 2016-01-25 11:57:40 +00:00
Rossen Georgiev ba4c0776dd added tests for aprslib.util; fix #17 2016-01-25 09:04:45 +00:00
Rossen Georgiev 50335ddf40 packet or dict can be loaded into packet objects 2016-01-24 11:56:23 +00:00
Rossen Georgiev a04cb87a75 added PositionReport object 2016-01-24 06:42:39 +00:00
Rossen Georgiev 4350481fa4 updated CHANGES 2016-01-24 06:16:47 +00:00
Rossen Georgiev 633ad2ea84 added DAO parsing, fix #14 2016-01-23 07:17:34 +00:00
Rossen Georgiev 4b6ee9f27d clean up unused variables #13 2016-01-21 05:52:19 +00:00