You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```robotframework-aprslib``` is a [Robot Framework](https://www.robotframework.org) keyword collection for the [aprslib](https://github.com/rossengeorgiev/aprs-python) Python library. It allows you to establish a connection to the APRS-IS servers and send/receive/decode APRS requests.
5
-
6
-
## Examples
7
-
8
-
### Send a single packet to APRS-IS and wait for the response
9
-
10
-
# Send a single message to WXBOT, wait for a response message and display it on the console.
# Receive the package. By default, aprslib decodes it ...
104
-
${packet} = Receive APRS Packet
105
-
106
-
# ... but for now, let's get the raw message from that decode packet
107
-
# and display it on the console
108
-
${packet} = Get Raw Message Value From APRS Packet ${packet}
109
-
Log To Console ${packet}
4
+
```robotframework-aprslib``` is a [Robot Framework](https://www.robotframework.org) keyword collection for the [aprslib](https://github.com/rossengeorgiev/aprs-python) Python library. It allows licensed ham radio operators to establish a connection to the APRS-IS servers and send/receive/decode APRS requests.
110
5
111
6
## Default settings when creating new APRS-IS connection
112
7
@@ -117,7 +12,7 @@ When you initialize an APRS connection without explicitly setting parameters suc
117
12
-__callsign__ = ``N0CALL``
118
13
-__passcode__ = ``-1``
119
14
-__aprs-is filter__ = not set
120
-
-__aprsis_msgno__ = ``0`` (this is equal to ``AA`` if you need to get the msgno in alphanumeric format)
15
+
-__aprsis_msgno__ = ``0`` (this is equal to ``AA`` if you rather want to use the [more recent replyack scheme](http://www.aprs.org/aprs11/replyacks.txt))
121
16
122
17
This default set of values will allow you to establish a read-only connection to APRS-IS, assuming that the respective APRS-IS server that you intend to connect with permits such a connection.
123
18
@@ -127,21 +22,25 @@ You can either specify all parameters during the initial setup of the library or
@@ -153,7 +52,7 @@ You can either specify all parameters during the initial setup of the library or
153
52
|``Set APRS-IS Passcode`` and ``Get APRS-IS Passcode``|Sets/Gets the APRS-IS passcode|
154
53
|``Set APRS-IS Filter`` and ``Get APRS-IS Filter``|Sets/Gets the APRS-IS server filter. Note: This keyword performs a (basic) sanity check on the content and will cause an error in case an invalid filter qualifier has been submitted|
155
54
|``Get Current APRS-IS Configuration``|Returns a dictionary containing all previously listed parameters and the APRS-IS connection status to the user (basically a collection of all previously mentioned keywords). An AIS object whose value is different to ```None``` indicates an active connection.|
156
-
|``Get APRS-IS MsgNo``, ``Set APRS-IS MsgNo``, ``Increment APRS-IS MsgNo`` and ``Get APRS-IS MsgNo as Alphanumeric``| Gets and sets the MsgNo. The ``alphanumeric`` keyword provides the message number in a format which [supports the more recent replyack scheme](http://www.aprs.org/aprs11/replyacks.txt). The following rules apply: a) If you want to set the value directly, a max value of 675 (equals ``ZZ``) is possible b) Setter methods only accept numeric values c) if you use the ``Increment`` keyword, an increment to the value of 675 (``ZZ``) will automatically reset the value to ``AA``.
55
+
|``Get APRS MsgNo``, ``Set APRS MsgNo``, ``Increment APRS MsgNo`` and ``Get APRS-IS MsgNo as Alphanumeric``| Gets and sets the MsgNo. The ``alphanumeric`` keyword provides the message number in a format which [supports the more recent replyack scheme](http://www.aprs.org/aprs11/replyacks.txt). The following rules apply: a) If you want to set the value directly, a max value of 675 (equals ``ZZ``) is possible b) Setter methods only accept numeric values c) if you use the ``Increment`` keyword, an increment to the value of 675 (``ZZ``) will automatically reset the value to ``AA``.``Get APRS MsgNo`` does NOT automatically increment the message number.|
157
56
158
57
## Other Robot Keywords supported by this library
159
58
@@ -178,7 +77,228 @@ You can either specify all parameters during the initial setup of the library or
178
77
179
78
- The current version of the Robot Framework does not support WHILE loops which would permit the Robot script to run endlessly (when needed). Loops can only be triggered with the help of finite FOR loops. This should be enough for testing but unless a real WHILE loop is made available for the Robot Framework, you can't build an APRS messaging server which will not terminate after a certain point in time.
180
79
181
-
- The ```Receive APRS Packet``` command has no timeout which means that it will only return back from this code if it has found a message that is to be returned back to Robot. If you depend on timeout, you may need to amend your APRS-IS filter settings and handle the filter process in your code.
80
+
- The ```Receive APRS Packet``` keyword has no timeout which means that it will only return back from this code if it has found a message that is to be returned back to Robot. If you depend on timeout, you may need to amend your APRS-IS filter settings and handle the filter process in your code.
81
+
82
+
- The keyword ``Send APRS Packet`` will __not__ check whether the APRS-IS connection has been establised read-only (``N0CALL`` call sign) or read-write.
83
+
84
+
## Examples
85
+
86
+
All examples can be downloaded from this repo.
87
+
88
+
### Send a single packet to APRS-IS and wait for the response
89
+
90
+
```robotframework
91
+
# Send a single message to WXBOT, wait for a response message and display it on the console.
0 commit comments